Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Buttons on a JSP

 
sanaanwar khan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

how to add functionality to a buttons on jsp page to navigate on other jsp page..
 
Chandraprakash Sarathe
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use jsp:forward action to forward control from one JSP to another.
Do some google on syntax.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64858
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64858
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic