pass value from jsp to struts action

Hi,

I need to pass one value from jsp to my struts action.

Code below is used to show orders on one jsp, and my idea was to have button in each row which will redirect me to another page with order details.

<logic:iterate id="lineItem" indexId="index" name="adminForm" property="sthList">

<html:text property="sth[${index}].sth.orderId" />

-

<html:submit styleId="submitButton" onclick="submitForm()" property="showButton" value="Show" />

</logic:iterate>

How can I pass value of my orderId (which is displayed properly on my first jsp) to my struts action, which will handle my second jsp?

Thanks in advance.

[922 byte] By [djordjewa] at [2007-11-27 8:40:55]
# 1

When you create the text boxes dynamically have a unique name for each text box. I hope you already have it.

In you action form, you will have

private String[] orderId = null;

so when reading loop orderId like,

for(k=o;k<orderId.length;k++) {

.........logic goes here.....

}>

skp71a at 2007-7-12 20:39:37 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...