File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help with JSP Page

 
Maya sekar
Ranch Hand
Posts: 70
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a jsp page. with three tabs.

when i click on one tab say add employee, it points to the page where employee details are added,
once i have added, the success page is displayed.
then when i click on another tab,
and once again click back to the employee tab,
instead of the add employee page being displayed i find that the success page is being displayed.
but i want the add employee page to be displayed. how do i fix this?
please assist.
thank you in advance.
 
Jack Numen
Ranch Hand
Posts: 42
Hibernate Java Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you are click the Tab your form is being submitted (OR) page is being reloaded in the same context.

Make sure you are not re-submitting your form when clicking on the tab.

This is just a logic error so once recheck your logic.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic