Hi Richard,

There is a bug in Stripes 1.5 where @Validate/@ValidateNestedProperties
annotations are not detected when they are on public fields. This is
fixed in Stripes 1.5.1, which will hopefully be released soon, but is
available immediately from the Subversion repository.

Here is the issue:

http://www.stripesframework.org/jira/browse/STS-604

So, you can either check out the source from SVN with

svn co
https://stripes.svn.sourceforge.net/svnroot/stripes/branches/1.5.x

or, wait for the 1.5.1 release and, as a workaround in the meantime, use
a private field with a getter and a setter, with the annotations on one
of the three.

Hope that helps.

Cheers,
Freddy
http://www.stripesbook.com

On Fri, 20 Feb 2009 17:27:01 +0100, "Richard Hauswald"
<[email protected]> said:
> Hello,
> I want to encrypt the id of a class person. So I annotated the getter
> of persons in my action bean:
> @ValidateNestedProperties(
> {
>       @Validate(field = "id", encrypted = true)
> })
> public List<Person> getPersons() {...}
> 
> ...and created jsp looking like this:
> <c:forEach var="person" items="${actionBean.persons}" varStatus="status">
>       <tr class="<c:out value="${status.index%2==0?'even':'odd' }" />">
>               <td>${person.customerId }</td>
>               <td>${person.firstName }</td>
>               <td>${person.lastName }</td>
>               <td>${person.age }</td>
>               <td><fmt:formatDate value="${person.birthDay.time}" /></td>
>               <s:url var="url" beanclass="${actionBean.class}">
>                       <s:param name="id" value="${person.id}" />
>               </s:url>
>               <td><a href="${url}">edit</a></td>
>       </tr>
> </c:forEach>
> 
> But the url param tag doas not encrypt the id param. What am I doing
> wrong?
> 
> Thanks in advance,
> Richard
> 
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
> CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source code:
> SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to