aspose file tools
The moose likes JSP and the fly likes Buttons on a JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply 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 opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50691

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50691

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.
 
 
subject: Buttons on a JSP
 
Threads others viewed
Problem with Tomcat
Help to deploy JSF appl. in JBOSS
How private method are written in Jsp page
Problems with TOMCAT 4
validation problem.
developer file tools