struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacob Hookom" <hooko...@uwec.edu>
Subject RE: Validation with tiles
Date Thu, 15 Aug 2002 09:58:01 GMT
Thanks,

An example would be an action like so:

/addEmployee.jsp?boss=45
	<form action="insertEmployee.do">
		<input type="hidden" name="boss" value="45">
		.....
	</form>

/insertEmployee.do
	//do processing
	.....
	//I want to return to: mainBoss.jsp?id=45
	return ActionForward("mainBoss.jsp?id="....);


As you can see, I would like to have struts delegate the response id,
much like the <html:link> as to what property it will return in the
action forward.

I know I can do saveToken on the response with errors, is that the
correct way to handle it adding parameters to the forward dynamically?

Best Regards,
Jacob


| -----Original Message-----
| From: Cedric Dumoulin [mailto:cedric@apache.org]
| Sent: Wednesday, August 14, 2002 7:55 PM
| To: Struts Users Mailing List
| Subject: Re: Validation with tiles
| 
| 
|   If you put params from actions, it can only be request parameters,
set
| with parameter="...". The tiles preferred way is to put tiles
attributes
| in the definition, and forward to this definition.
| 
|    Cedric
| 
| Jacob Hookom wrote:
| 
| >What is the proper way of forwarding users, but with params from
| >actions?
| >
| >Thanks,
| >Jake
| >
| >| -----Original Message-----
| >| From: Cedric Dumoulin [mailto:cedric@apache.org]
| >| Sent: Monday, August 12, 2002 2:56 PM
| >| To: Struts Users Mailing List
| >| Subject: Re: Validation with tiles
| >|
| >|
| >|   Hi,
| >|
| >|   Which version of Struts do you use (1.1 or 1.0.x) ? Your second
| >| solution should works under Struts1.1 latest nightly build. If not,
| >| please report  a bug to bugzilla.
| >|
| >|    Cedric
| >|
| >| Ricardo de Souza Moura wrote:
| >|
| >| > I would like to put in the input attribute a tile definition, but
I
| >| > don't get... There are any method to do this ?
| >| >
| >| > my solution...
| >| >
| >| > <action path="/aberturaCadastro"
| >forward="def.cadastro.identificacao"/>
| >| >
| >| > <action path="/newCustomer" type="classe" scope="request"
| >| > name="customerForm" input="/aberturaCadastro.do"
parameter="method"
| >| > validate="true"> ... </action>
| >| >
| >| >
| >| > but I would like to do this. is It amiss ?
| >| >
| >| > <action path="/newCustomer" type="classe" scope="request"
| >| > name="customerForm" input="def.cadastro.identificacao"
| >| > parameter="method" validate="true"> ... </action>
| >| >
| >| > Thanks
| >| >
| >| >
| >| > _________________________________________________________________
| >| > Tenha você também um MSN Hotmail, o maior webmail do mundo:
| >| > http://www.hotmail.com/br
| >| >
| >| >
| >| > --
| >| > To unsubscribe, e-mail:
| >| > <mailto:struts-user-unsubscribe@jakarta.apache.org>
| >| > For additional commands, e-mail:
| >| > <mailto:struts-user-help@jakarta.apache.org>
| >| >
| >| >
| >|
| >|
| >|
| >| --
| >| To unsubscribe, e-mail:   <mailto:struts-user-
| >| unsubscribe@jakarta.apache.org>
| >| For additional commands, e-mail: <mailto:struts-user-
| >| help@jakarta.apache.org>
| >|
| >| ---
| >| Incoming mail is certified Virus Free.
| >| Checked by AVG anti-virus system (http://www.grisoft.com).
| >| Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002
| >|
| >
| >---
| >Outgoing mail is certified Virus Free.
| >Checked by AVG anti-virus system (http://www.grisoft.com).
| >Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002
| >
| >
| >
| >--
| >To unsubscribe, e-mail:   <mailto:struts-user-
| unsubscribe@jakarta.apache.org>
| >For additional commands, e-mail: <mailto:struts-user-
| help@jakarta.apache.org>
| >
| >
| >
| >
| 
| 
| 
| --
| To unsubscribe, e-mail:   <mailto:struts-user-
| unsubscribe@jakarta.apache.org>
| For additional commands, e-mail: <mailto:struts-user-
| help@jakarta.apache.org>
| 
| ---
| Incoming mail is certified Virus Free.
| Checked by AVG anti-virus system (http://www.grisoft.com).
| Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002
| 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002
 


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


Mime
View raw message