aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Navigate from one jsp to another Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Navigate from one jsp to another" Watch "Navigate from one jsp to another" New topic
Author

Navigate from one jsp to another

Tarun Oohri
Ranch Hand

Joined: Feb 20, 2013
Posts: 180
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

Joined: Feb 20, 2013
Posts: 63

onClick() call a function and there set your action as another page.
Vivek SharmaJi
Ranch Hand

Joined: Dec 09, 2012
Posts: 38

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

Joined: Feb 20, 2013
Posts: 180
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 !!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Navigate from one jsp to another