This week's book giveaway is in the Android forum.
We're giving away four copies of Android Programming: The Big Nerd Ranch Guide and have Bill Phillips & Chris Stewart on-line!
See this thread for details.
Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP/servlet get or set parameters  RSS feed

 
Philippe Ponceblanc
Ranch Hand
Posts: 35
  • 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
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65979
140
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!