aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 60048
    
  65

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: 60048
    
  65

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
 
Similar Threads
Problems with TOMCAT 4
validation problem.
Problem with Tomcat
Help to deploy JSF appl. in JBOSS
How private method are written in Jsp page