struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Grobmeier <grobme...@gmail.com>
Subject Re: Dynamic Result Selection
Date Sat, 19 Nov 2011 07:51:17 GMT
Hello Rohan,

On Sat, Nov 19, 2011 at 8:44 AM, rohan jamkhedkar
<rgjamkhedkar@yahoo.co.in> wrote:
>
> <result name="success">%{nextPage}</result>

try to add these results too:

<result name="input">%{nextPage}</result>
<result name="error">%{nextPage}</result>

Input is what is returned when some input is missing, error in case an
error happens.
Please also see the class ActionSupport, were these String constants
are defined. To use it, extend ActionSupport and return for example:
return SUCCESS;

Of course you don't need to use ActionSupport, but I think it is a good idea :-)

Cheers
Christian


-- 
http://www.grobmeier.de
https://www.timeandbill.de

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


Mime
View raw message