tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: Links not resolving to their correct path in TC 7.0.27
Date Tue, 15 May 2012 09:00:21 GMT
Kiran Badi wrote:
> Sorry fixed it, it was my fault. Base tag was pointing to 8080.Make 
> sense now.

Personal opinion :
<Base> tags are evil. They create all kinds of issues when you move the app, or change

your server configuration.
There shouldn't be any real reason to use them, if your app is structured properly.
Relative paths should work.

> 
> On 5/15/2012 5:27 AM, Kiran Badi wrote:
>> Hi,
>>
>> I have installed tomcat 7.0.27 on Windows Home premium 32 bit system 
>> with JDK 1.6.32. The tomcat is running successfully as service.I can 
>> access the home page of tomcat along with manager application.
>>
>> I deployed my application war file via manager application.The war 
>> file was pulled from netbeans dist folder.
>>
>> Now when I access my this application via IE,I do below steps,
>>
>> 1. I open this http://localhost:8082/xxx/index.jsp in IE. it works 
>> fine, In index page I have several links, for example testservice.jsp
>>
>> 2. so when I click on testservice link, it looks like 
>> http://localhost:8082/xxx/testservice.jsp in address bar and page 
>> opens fine in IE.No issues in IE.
>>
>> Now the real problem comes when I try to repeat the steps in Firefox 
>> and chrome,
>>
>> Step 1 works fine,no issues everything works as expected and index 
>> page comes up,but when it comes to step 2, the address changes to
>>
>> http://localhost:8080/xxx/testservice.jsp .
>>
>> now I am not sure as why FF /Chrome are not sticking to the same ports 
>> as IE.
>>
>> I have 8080 tied up with netbean and it has Tomcat 7.0.11 but its not 
>> running as service.
>>
>> Also I have static custom error page 404 which resolves correctly in 
>> 7.0.27 in all three browsers.
>>
>> Can some one tell me what that I am missing now ?
>>
>> PS: This is how I have links in index page,
>>
>> <li><a href='testservice.jsp'>testservice</a></li>
>>
>>
>> and all jsp resides in web pages folder.I know this gives direct 
>> access to JSP and is bad practice,but thats the seperate task to do in 
>> my list.
>>
>> - Kiran
>>
>>
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message