• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

POST and Servlet

 
Popescu Ion
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
I have a jsp page that has a post method to my "Adder" servlet. Something like this :

How can i send more data, let's say, an INT variable besides that POST method. I mean - when i hit "add" button , jsp will send "description" ' value and a variable from my jsp in the same flow.
Thnx in advance.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65335
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Create a hidden input with the name and value you want to send.
 
Popescu Ion
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Create a hidden input with the name and value you want to send.


Thnx very much, it works now.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic