This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSP and the fly likes Buttons on a JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "Buttons on a JSP" Watch "Buttons on a JSP" New topic
Author

Buttons on a JSP

sanaanwar khan
Greenhorn

Joined: Jan 26, 2012
Posts: 2

how to add functionality to a buttons on jsp page to navigate on other jsp page..
Chandraprakash Sarathe
Greenhorn

Joined: Jan 21, 2012
Posts: 16
You can use jsp:forward action to forward control from one JSP to another.
Do some google on syntax.


Chandraprakash Sarathe
http://javaved.blogspot.com
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63208
    
  69

Chandraprakash Sarathe wrote:You can use jsp:forward action to forward control from one JSP to another.
Do some google on syntax.

&jsp:forward> is completely not the right suggestion.

To assign an action to a button you need to use JavaScript, not JSP.

Remember, all JSP does is to create an HTML page to send the browser. So anything that happens on the client, such as a button press, is controlled by client-side JavaScript.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63208
    
  69

Please be sure to take the time to compose descriptive subjects for your posts. You will attract people who will can give you better and faster answers when your posts have good, descriptive subjects. For more information, please click this link ⇒ UseAMeaningfulSubjectLine.

Using a title such as "asp n servlets" isn't going to attract the attention of those who can best help you.

I have adjusted the subject for you.
 
Have you checked out Aspose?
 
subject: Buttons on a JSP
 
It's not a secret anymore!