• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP link not working on first run

 
KeshavSharma Sharma
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is my login.jsp page:



Here when I load this page for the first time the image as well as the link to another jsp with div id ="changePasswordLinkId" doesn't work. The image is not shown and clicking the anchor link displays the login page again.however if I login once and use the back button of the browser they work. Please help me on this. I will be very thankful. Thanks In advance.

 
Ashwini Kashyap
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see any kind of problem in your code.

Just make sure you place your content like jsp's and images under Webcontent directory structure. It should work for you.

Thanks,
Ashwini Kashyap | www.infocepts.com
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64623
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ashwini Kashyap wrote:... under Webcontent directory structure


be aware that "Webcontent" is an Eclipse convention and is not a real folder specified by the Servlet Specification. You will not have this folder unless using eclipse. Rather, you will have a context root folder,(usually named the same as the context path, but which can be named pretty much anything.
 
Ashwini Kashyap
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes you are right Bear :-)

Thanks,
Ashwini
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic