Have the action extend ActionSupport and have the class implement its own:
public validate(void).
Look at the code of ActionSupport (or JavaDoc) for how to set error
messages, if an error is set, after validate() executes, Struts2 will
assume an error has occurred and the action will return "input
Write an interceptor then apply it to the actions, assuming that the rules
for what to access can be encoded in the url. If not it then probably
belongs in the service tier.
On Thu, Dec 12, 2013 at 3:01 AM, Chris wrote:
> Hello,
>
> How to organize the actions, when you just want check the pass
I'm guessing that the user fields aren't actually getting set (since that's
done by the params interceptor that hasn't run yet), but you're seeing the
existing values of the object. The passwordRepetition is showing null, but
it similarly hasn't been set by the params interceptor.
You can either
Hello,
The problem was already with the updated example ( 2013-12-12 )
I update again, today, and again error. ( unhandled exception head.ftl )
See
Struts Problem Report
Struts has detected an unhandled exception:
Messages: 1. Template /template/KUTheme/head.ftl not found.
Hello List,
I build myself a custom interceptorstack. The core part has to be the
paramsPrepareParamsStack, because i work with an or-mapper.
In my action class, there are 2 variables:
private User user;
priva
Hi,
I'm not sure if I get what you mean, but I have updated that example
few hours ago - please update and check again.
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
2013/12/13 Chris :
> Hello,
>
>
> Problem since 2013-12-12 with the new version "themes" and Struts2.3.16
>
> htt
Hello,
I had successfully written a conditional visitor validator for a
List in a
validation.xml for a list of Object say Employee. Then I wrote a
validation.xml of the
type Employee-validation.xml where i wrote the validation to be done for
say First
Name , Last Name. Now the validations in
Hello,
I had successfully
written a conditional visitor validator for a List in a
validation.xml for a list of Object say Employee. Then I wrote a
validation.xml of the type Employee-validation.xml where i wrote the
validation to be done for sa
Hello,
Problem since 2013-12-12 with the new version "themes" and Struts2.3.16
https://svn.apache.org/repos/asf/struts/sandbox/trunk/struts2examples/themes
in Struts-2.3.16
The new version
A
struts2examples\themes\src\main\webapp\template\KUTheme_simple\theme.properties
A struts2examp
9 matches
Mail list logo