Win a copy of Bad Programming Practices 101 (e-book) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP/servlet get or set parameters  RSS feed

 
Ranch Hand
Posts: 153
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: 66727
167
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.
 
Listen. That's my theme music. That's how I know I'm a super hero. That, and this tiny ad told me:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!