Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
|
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 15th, 2008, 01:39 AM
Registered User
 
Join Date: May 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default HTML hyperlink problem

Hey everyone,

I am building a simple web page in JSP with an embedded java applet that runs an application (the page does not contain any JSP code *yet*, but is saved as a JSP file).

I am using Apache Tomcat 5.5 to render the page. On this page, I tried linking some local files on my workstation for testing purposes. Some samples are shown below:

<a href="C:\Program%20Files\Apache%20Software%20Found ation\Tomcat%205.5\webapps\GSDCRBTMindMapTest\GSDC _PolicyManual.mht"> Test </a>
<a href="C:\gsdcrbtframework.jpg"> Test 2 </a>

When I access the page through Tomcat by typing localhost:8080/<appname> into my browser, these links don't work. Clicking on them does absolutely nothing.

I then created a new HTML file in my application directory just to make sure it wasn't a problem with JSP and put the same links there. They work when I double click the file (access it locally), while they don't do anything again if I access the page using the Tomcat port (i.e. localhost:8080/<appname>).

What is going on here? :confused: The links don't work even if the path is relative to the application directory. The embedded java applet works fine, but it has an application with hyperlinks. And these hyperlinks too don't work if I try to link them to a file present in my hard drive (they work when the links begin with a http://).

Appreciate your help on this. Will be glad to provide more information if needed.







Similar Threads
Thread Thread Starter Forum Replies Last Post
hyperlink problem hastikeyvan Classic ASP Professional 5 January 22nd, 2007 07:03 PM
HyperLink Problem monika.vasvani ASP.NET 1.0 and 1.1 Professional 2 September 30th, 2006 05:17 AM
Hyperlink Problem Lalit Pradhan ASP.NET 2.0 Professional 2 June 14th, 2006 09:36 AM
hyperlink problem Abhinav_jain_mca General .NET 3 August 27th, 2004 07:54 AM
hyperlink problem Abhinav_jain_mca SQL Server 2000 1 August 25th, 2004 01:43 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.