struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Riyad Kalla <...@email.arizona.edu>
Subject Re: name="params" in <html:submit>?
Date Mon, 26 Apr 2004 22:28:20 GMT
I'm not terribly clear on what you are asking... your line:
request.getSession(true).setAttribute("params", params);

sets the 'params' variable in your session, so your link could actually just 
be a plan HTML link:
<a href="/myapp/GetChildTool.do">Get Tool</a>

and your action could still pull params out of your session and process it.

Am I missing something?

On Monday 26 April 2004 03:10 pm, Julia Weaver wrote:
> Hi all,
>
> Please advise:
> I know how to pass params when use <html:link> tag.
> But if I want to <html:submit> tag instead, what I
> should use to replace: name="params"? Since I cannot
> use: <html:submit property="action" name="params" />
>
>
> This is in my jsp:
>
> <%
> java.util.HashMap params = new java.util.HashMap();
> 		params.put("toolId", "thisId");
> 		params.put("toolName", "thisName" );
> request.getSession(true).setAttribute("params",
> params);
> %>
>
> <html:link page="/GetChildTool.do" name= "params" >
> 	<bean:write name="tool" property="ToolNbr"/>
> </html:link>
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Photos: High-quality 4x6 digital prints for 25ยข
> http://photos.yahoo.com/ph/print_splash
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message