Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

href path changes in jsp on redirecting the servlet to that jsp

Status
Not open for further replies.

metridevkk

Programmer
Joined
Sep 13, 2004
Messages
4
Location
US
My servlet gets redirected properly to a jsp page(MyPage.jsp), but clicking the links on that jsp page fails.

Get the error:
The requested resource (/CC/servlet/Main.jsp) is not available.

In MyPage.jsp page, the link is defined as follows:
<a href="Main.jsp">Back to Main Page</a>

but after the servlet redirects to MyPage.jsp, the link now have the servlet path attached to it(becomes instead of just Main.jsp), resulting in the above error when i click it.

I am a newbie, so any help is greatly appreciated.
 
Giving the URL as "/CC/Main.jsp" worked...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top