This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP/servlet get or set parameters  RSS feed

 
Philippe Ponceblanc
Ranch Hand
Posts: 59
  • 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: 66256
151
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!