jj endenburg wrote:

Thank you Erik!

Actually, the information in my question was not
complete. I am sorry for this...
The parameter to pass from jsp-screen A to jsp-screen
B should stay hidden from the end-user.
This is why displaying this parameter in the URL is
not possible, unfortunately.
Instead of this, how can I pass this parameter within
Struts, without the end-user being able to see it?

Thank you,
Jan-Jaap


Try
A.jsp:
<html:form action="B.jsp"...>
<html:hidden property="a1" value="val1"/>
      .
      .
</html:form>

B.jsp:
<c:out value="${param.a1}"/>

the prefix param is needed.

      Wolfgang

--- "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:


Well, how about using a query string parameter in
your links?

http://foo.com/myapp/bar.jsp?itemId=1
http://foo.com/myapp/bar.jsp?itemId=2

And so on?

The Struts html:link tag (or the JSTL c:url tag) can
be used to dynamically
create your links.




http://struts.apache.org/userGuide/struts-html.html#link


Hope that helps,

Erik


Original Message: ----------------- From: jj endenburg [EMAIL PROTECTED] Date: Tue, 8 Mar 2005 00:29:46 -0800 (PST) To: user@struts.apache.org 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]





--------------------------------------------------------------------


mail2web - Check your email from the web at
http://mail2web.com/ .






---------------------------------------------------------------------


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








__________________________________ 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