hi jap

in your screen-A ,
add code as below with 2 parameter values to be sent to screen B

<li><a href="bean-parameter.jsp?param1=value1&param2=value2">click here to
test bean:parameter</a></li>



in your screen-B

<bean:parameter id="param1" name="param1"/>
<bean:parameter id="param2" name="param2"/>
<table border="1">
  <tr>
    <th>Parameter Name</th>
    <th>Correct Value</th>
    <th>Test Result</th>
  </tr>
  <tr>
    <td>param1</td>
    <td>value1</td>
    <td><%= param1 %></td>
  </tr>
  <tr>
    <td>param2</td>
    <td>value2</td>
    <td><%= param2 %></td>
  </tr>

</table>

hope this helps you,i found this in some example


-----Original Message-----
From: jj endenburg [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 08, 2005 2:00 PM
To: Struts Mailing list apache
Subject: parameter passing from one jsp-screen to another


Hi everyone,

I have the following problem: how can I pass a
parameter from a jsp-screen A to a jsp-screen B within
the struts-framework?

More concrete:
Screen A has several clickable link instances to
screen B. Each link instance has its own (dynamically
calculated) parameter value to pass to screen B.
This parameter is hidden from the sreen.
Can someone give me a hint on how this parameter
passing can be done in a handy way within struts?

Thanks,
Jan-Jaap

Met vriendelijke groeten,
Jan-Jaap Endenburg




__________________________________
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web
http://birthday.yahoo.com/netrospective/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to