Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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: 61092
    
  66

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: 61092
    
  66

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Buttons on a JSP