This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSP and the fly likes Problem with my url linking Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » JSP
Bookmark "Problem with my url linking" Watch "Problem with my url linking" New topic

Problem with my url linking

Mark Reyes
Ranch Hand

Joined: Jul 09, 2007
Posts: 426
Hi All,

I am encountering some problem with my url linking. I am not sure if I missed something.

Basically I have a menu.jsp like this

I just include it in all my other jsp.

When I click on http://localhost:8081/myapp/home.htm, everything looks good.

But, when I click on a link that puts me in another url like this http://localhost:8081/myapp/services/fillup.htm
and then I click on the home menu, I get a 404 error.

When I look at the url, its now pointing to http://localhost:8081/myapp/services/home.htm
It now copies the current url, what can I do to solve this.
I am not sure what can I do to fix this. Any hints?


Sean Clark ---> I love this place!!!
Me ------> I definitely love this place!!!
Mark Reyes
Ranch Hand

Joined: Jul 09, 2007
Posts: 426
I should have done this.. so that its relative to my request path

Have you checked out Aspose?
subject: Problem with my url linking
It's not a secret anymore!