• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Navigate from one jsp to another

 
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 !!!
 
Ranch Hand
Posts: 63
Spring Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
onClick() call a function and there set your action as another page.
 
Ranch Hand
Posts: 38
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 !!!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic