wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes On click of a Button i eneed to call a JSP Page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "On click of a Button i eneed to call a JSP Page" Watch "On click of a Button i eneed to call a JSP Page" New topic
Author

On click of a Button i eneed to call a JSP Page

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi,

Hi i am having a button close button as shown below inside my JSP Page


Upon clicking on this button it should be redirected to an another jsp page .
(I dont want to use window.open functionality as lot of parameters need to passed )

Please tell me what should be written here ;



Thank you for reading .


Save India From Corruption - Anna Hazare.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Nothing. your button is a submit type for the form that contains it will be submitted. Your JavaScript fucntion is unneccessary, unless you want to add extra pre-submit logic.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Okay

I think i will need to change that to



Now can you please tell me what will be the logic ??

Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

I'm not sure why you changed that. You had a submit button which is in a form, you submit the form and all parameters and values it contains are submitted. Are these parameters you want to submit not incldued in this form?
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Thank you .
 
 
subject: On click of a Button i eneed to call a JSP Page