• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to use button within jsp scriptlet  RSS feed

 
maheshm morem
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi i want use the button within the jsp scriptlet tag, how i have to use it?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You shouldn't be using JSP scriptlets at all. They've been outdated and discredited for over 8 years now. It's time to update your JSP knowledge qwith the JSLT and EL.

In any case, buttons are created with HTML tags, not Java code.
 
maheshm morem
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to use it? i do not know any thing about that, how to use it?my problem is that i want to add the items that are selected by the user for that i want button or something else so that when user select that items it goes to his shopping cart . so what i have to for it?

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just add button tags like you would in any other HTML page.
 
maheshm morem
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but when i add button it gives me error , what i have to do?
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
maheshm morem wrote:but when i add button it gives me error , what i have to do?

Fix the problem that causes the error, of course. Or post the details of the error and all related code here - maybe someone can help.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!