This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff 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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP 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.
It is sorta covered in the JavaRanch Style Guide.
subject: Href in my JSP