mardi 12 mai 2015

Use property variables for the next action which is call by form

I have one jsp web page which is the result of an iterator struts. In other words I have a list which is the result of an easy hibernate query select from TABLE. Iterator struts2:

<s:iterator value="usersList">
   <s:property value="userName"/>
</s:iterator>

At the same time my jsp page has one form that has to call an other action. I'll call that

classAction.java

classAction has to use the variable (userName) that I'll choose into the list. Maybe I have to use paramstruts tag and something like a select struts tag (to tick the userName that I gonna use). Honestly I'm a bit confuse and I don't know exactly how to do what I want.

Any ideas it will be appreciate. Thanks in advance.

Aucun commentaire:

Enregistrer un commentaire