File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Application Frameworks and the fly likes [Stripes] forms: display errors from @ValidateNestedProperties Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "[Stripes] forms: display errors from @ValidateNestedProperties" Watch "[Stripes] forms: display errors from @ValidateNestedProperties" New topic
Author

[Stripes] forms: display errors from @ValidateNestedProperties

Gabriele Fabbri
Ranch Hand

Joined: Dec 05, 2008
Posts: 30
Hi,

I added a @ValidateNestedProperties validation inside an action bean, setting some properties as required.
When I submit the not-filled form I don't get the error messages in the jsp as aspected: it goes back to the form but errors are not displayed.
In the past I did some test using @Validate for simple validation on non-object properties fields and it worked fine... there is something different in this case?

This is the jsp form:


This is the ActionBean:


And this is the model class:


OverZero Software
[url]www.overzero.it[/url]
Gabriele Fabbri
Ranch Hand

Joined: Dec 05, 2008
Posts: 30
Puah!
I solved the problem, and it was a very stupid mistake in the end.
The problem was in the form, I wrote <stripes:errors/> but the correct prefix is "s" not "stripes".
It works fine now.

Gabriele
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [Stripes] forms: display errors from @ValidateNestedProperties
 
Similar Threads
Frameworks? Do I need one? want one?
[Stripes] @ManyToOne relationships: NULL id
Stripes: prepopulated forms question
Displaytag pagination in Stripes
One of My Favorite Stripes Features (A Complex Example)