Win a copy of Securing DevOps this week in the Security forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP/servlet get or set parameters  RSS feed

 
Ranch Hand
Posts: 146
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I search to post or get a parametres with jsp and servlets, i do a little calculator !
jsp>>

Servlet >>


i ask how can i to put the reponse for example a+b=c , how to set c on click the button ?

regards
philippe
 
Author and ninkuma
Marshal
Posts: 66492
160
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your HTML is wrong -- the input elements should have a name attribute not id.

E.g.


Also note that type="int" is invalid, and that you should never omit the quotes around values.
 
incandescent light gives off an efficient form of heat. You must be THIS smart to ride this ride. Tiny ad:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!