You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by DHarty <ha...@db.erau.edu> on 2001/07/02 16:52:00 UTC
Forwarding Forms (or More Scope Problems)
I have a working Search Form that returns a vector of User Forms.
The page iterates through the vector displaying some info from the form, and
provides each iteration with a submit(modify) button.
I would like to take the UserForm of that iteration, and forward it to the
action class. Currently I am using hidden fields, but do not like that as
it puts the encrypted password into the html source.
The source for the iteration looks like this, where "SearchForm" is the
entire form, and "result" is a vector of "UserForm"s:
------------------------------------------------
<logic:iterate name="SearchForm" property="result" id="user" length="2">
<html:form action="/usermodify" name="user"
type="edu.erau.dcm.teammate.form.UserForm">
<tr>
<td><bean:write name="user" property="username"/> </td>
<td><bean:write name="user" property="lastname"/> </td>
<td><bean:write name="user" property="firstname"/> </td>
<html:hidden name="user" property="username"/>
<html:hidden name="user" property="firstname"/>
...
<html:hidden name="user"
property="confirmpassword"/>
<html:hidden name="user" property="grant"/>
<html:hidden name="user" property="mod"
value="true"/>
<td><html:submit >Modify</html:submit></td>
</tr>
</html:form>
</logic:iterate>
______________________________________--
As I mentioned, this above code works, thanks to the hidden fields, but I
would rather just forward the "user" form to the action and not have to use
the hidden fields.
Any input would be appreciated.
D
RE: Multiple Struts-config files
Posted by DHarty <ha...@db.erau.edu>.
Thanks
D
-----Original Message-----
From: Ted Husted [mailto:husted@apache.org]
Sent: Monday, July 02, 2001 12:11 PM
To: struts-user@jakarta.apache.org
Subject: Re: Multiple Struts-config files
People are working on that, but it hasn't made it into a build let.
For more see,
<
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg10052.html
>
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/
> DHarty wrote:
>
> My struts-config file is beginning to get a bit unwieldy.
>
> Is it possible to call multiple *-config files from web.xml?
>
> ex:
> <init-param>
> <param-name>config</param-name>
> <param-value>/WEB-INF/meaningfulName1-config.xml</param-value>
> </init-param>
> <init-param>
> <param-name>config</param-name>
> <param-value>/WEB-INF/meaningfulName2-config.xml</param-value>
> </init-param>
>
> or will "config" be overwritten each time?
>
> D
>
Re: Multiple Struts-config files
Posted by Ted Husted <hu...@apache.org>.
People are working on that, but it hasn't made it into a build let.
For more see,
<
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg10052.html
>
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/
> DHarty wrote:
>
> My struts-config file is beginning to get a bit unwieldy.
>
> Is it possible to call multiple *-config files from web.xml?
>
> ex:
> <init-param>
> <param-name>config</param-name>
> <param-value>/WEB-INF/meaningfulName1-config.xml</param-value>
> </init-param>
> <init-param>
> <param-name>config</param-name>
> <param-value>/WEB-INF/meaningfulName2-config.xml</param-value>
> </init-param>
>
> or will "config" be overwritten each time?
>
> D
>
Multiple Struts-config files
Posted by DHarty <ha...@db.erau.edu>.
My struts-config file is beginning to get a bit unwieldy.
Is it possible to call multiple *-config files from web.xml?
ex:
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/meaningfulName1-config.xml</param-value>
</init-param>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/meaningfulName2-config.xml</param-value>
</init-param>
or will "config" be overwritten each time?
D