• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Navigate from one jsp to another

 
Tarun Oohri
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everyone
I am trying to navigate to a jsp page from a jsp page on a click event. The "onClick " target is not hitting on click event.

Thanks !!!
 
Niraj Jha
Ranch Hand
Posts: 63
Java Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
onClick() call a function and there set your action as another page.
 
Vivek SharmaJi
Ranch Hand
Posts: 38
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are trying to submit the page.

1) You need to create form tag with form id and form tag's action should be /After_logout.jsp, type button should be within form tag then create a javascript function to submit it. This function should be called from button's onclick event.

2) Alternatively you use input type submit and create form tag keep this submit button within form tag and form tag's action should be /After_logout.jsp then when you will click submit button, your form will be submitted to After_logout.jsp
 
Tarun Oohri
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vivek SharmaJi wrote:You are trying to submit the page.

1) You need to create form tag with form id and form tag's action should be /After_logout.jsp, type button should be within form tag then create a javascript function to submit it. This function should be called from button's onclick event.

2) Alternatively you use input type submit and create form tag keep this submit button within form tag and form tag's action should be /After_logout.jsp then when you will click submit button, your form will be submitted to After_logout.jsp


Thanks Vivek for the help ... Cheers !!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic