Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Passing parameter with a Submit Link

 
jhon masco
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody.
I want to pass parameter with a Submit Link similar to this:

I am working in a servlet, this servlet request all the chekboxes from a list (with getParameterValues). I saw that getParameterValues work only with a Submit button therefore I am trying to use the code above.
But the Submit action work ok but...the parameters (name and estado) are not passing!!!
Is possible to pass parameters with a Submit link ???

PD: the parameters work fine if I use something similar to:

but I dont use it because I need the Submit action

If you need more details let me know. Sorry for my english.

Muchas Gracias
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use hidden tags in your form. (I'm moving this thread to a more appropriate forum)
 
jhon masco
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Christophe Verré wrote:Use hidden tags in your form. (I'm moving this thread to a more appropriate forum)

OK
But it is not possible to pass hidden input from a link, I think.
Also I forget to say that are 5 links, every link have a diferent parameter "name"

Thanks
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you make an onClick event on the link (example), which would submit the form with the hidden fields, you'll get them. You can pass the name attribute to the submit function, and set the hidden field value dynamically.
 
jhon masco
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Christophe Verré wrote:If you make an onClick event on the link (example), which would submit the form with the hidden fields, you'll get them. You can pass the name attribute to the submit function, and set the hidden field value dynamically.


Thanks Christophe toooooo much for the Tips ans link.
I had resolved the problem

Muchas Gracias
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic