You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mariano Petrakovsky <mp...@tecnonexo.com> on 2005/07/18 20:52:17 UTC

Cancel and Populating...

  I have a Cancel Button in my page... when it's submit, populating error
occurs...
  In jsf, it's solutionated by the immediante attribute to false. How is in
struts?...

  (When Cancel, i want forward to another page... nothing more :) )

--
Mariano G. Petrakovsky
Programmer · Software Factory
AXG Tecnonexo -  www.tecnonexo.com

Development facilities:Av. Maipú 1252 8º (C1006ACT) · Buenos Aires ·
Argentina.
Tel.: (54-11) 4878-0005 - Fax: (54-11) 4878-0065.

Headquarters: 1604 Spring Hill Road, Suite 160 Vienna · VA 22182 · USA.
Tel.: (202) 986-7541 - Fax: (202) 787-3891.


· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ·
· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ·
· · · ·




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


Re: Cancel and Populating...

Posted by Martin Gainty <mg...@hotmail.com>.
Mariano-
I take you have already identified your ActionForwards with something like 
this in your struts-config.xml?
<action path="/YourCustomAction" type="test.YourCustomAction" >
      <forward name="success" path="/home.jsp" />
      <forward name="cancel" path="/cancel.jsp" />
 </action>
Saludos Cordiales,
M-
----- Original Message ----- 
From: "Mariano Petrakovsky" <mp...@tecnonexo.com>
To: "Lista de correo de Struts" <us...@struts.apache.org>
Sent: Monday, July 18, 2005 2:52 PM
Subject: Cancel and Populating...


>
>  I have a Cancel Button in my page... when it's submit, populating error
> occurs...
>  In jsf, it's solutionated by the immediante attribute to false. How is in
> struts?...
>
>  (When Cancel, i want forward to another page... nothing more :) )
>
> --
> Mariano G. Petrakovsky
> Programmer · Software Factory
> AXG Tecnonexo -  www.tecnonexo.com
>
> Development facilities:Av. Maipú 1252 8º (C1006ACT) · Buenos Aires ·
> Argentina.
> Tel.: (54-11) 4878-0005 - Fax: (54-11) 4878-0065.
>
> Headquarters: 1604 Spring Hill Road, Suite 160 Vienna · VA 22182 · USA.
> Tel.: (202) 986-7541 - Fax: (202) 787-3891.
>
>
> · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 
> ·
> · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 
> ·
> · · · ·
>
>
>
>
> ---------------------------------------------------------------------
> 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


Re: Cancel and Populating...

Posted by Laurie Harper <la...@holoweb.net>.
Mariano Petrakovsky wrote:
>   I have a Cancel Button in my page... when it's submit, populating error
> occurs...
>   In jsf, it's solutionated by the immediante attribute to false. How is in
> struts?...
> 
>   (When Cancel, i want forward to another page... nothing more :) )

What error do you get on submit? Do you mean you get validation errors? If 
so and you're using he Validator framework, you can use <html:cancel/> to 
render your cancel button, which will turn off validation when it's 
clicked. See:

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

> · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ·
> · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ·
> · · · ·

Here are some more for your collection: . . . . . . .

:-)

-- 
Laurie, Open Source advocate, Java geek and novice blogger:
http://www.holoweb.net/laurie


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