This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Href in my JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Href in my JSP" Watch "Href in my JSP" New topic

Href in my JSP

Priya Jotwani
Ranch Hand

Joined: Oct 30, 2002
Posts: 53

I want to build my application on existing Struts code. I have a main page where I just want to include a hyperlink. Clicking on the hyperlink should take me to one JSP Page (but since the data fetching logic is still under process, its only the HTML content in MYJSPPage) But this doesn't works. Since I am not doing any processing, I don't think I should be making an entry in my Struts-Config(for the time being..just to see if my page loads when I click on the link on the main page). I have only made the changes in my Main JSP to include a href tag .

I have included the following line in my Main Page

<a href = "/MyJSPPage.jsp">Click Here</a>

What am I missing ?


Marc Peabody
pie sneak

Joined: Feb 05, 2003
Posts: 4727

Perhaps the jsp is not in your top level directory. Is it in WEB-INF instead???

A good workman is known by his tools.
I agree. Here's the link:
subject: Href in my JSP
Similar Threads
Struts2_Ajax tags not working
struts-layout TABS
hyperlink to file on C: drive does not work
In struts , Hyperlink not woking well
JSP Basics query