IntRangeFieldValidator - Double javascript validation instead of one

2010-05-27 Thread Pierre BRARD
Hi all, I am using Struts 2 annotations for validation: @Validations(requiredStrings = { @RequiredStringValidator(fieldName = firstName, type = ValidatorType.FIELD, message = First name is required), @RequiredStringValidator(fieldName = lastName, type

Session variable setting

2010-05-20 Thread Pierre BRARD
Hi all, I am implementing a login system with Struts 2. Basically, I have a custom interceptor which checks in session if a particular variable is set. If it is, the user is considered already logged in and if it is not the variable is set in session ( session.setAttribute(connectedUser, user);

Re: Session variable setting

2010-05-20 Thread Pierre BRARD
are not available to the action even if it implements SessionAware. To get the session attribute, I did something like this: @SuppressWarnings(unchecked) MapObject, Object sessionMap = invocation.getInvocationContext().getSession(); On Thu, May 20, 2010 at 5:22 AM, Pierre BRARD brard.pie