aspose file tools*
The moose likes Struts and the fly likes validation with struts and tiles 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 » Struts
Bookmark "validation with struts and tiles" Watch "validation with struts and tiles" New topic
Author

validation with struts and tiles

Dieter D'haeyere
Greenhorn

Joined: Apr 07, 2004
Posts: 8
Hello,

I am using Struts and Tiles in a web application. This works all fine, however, there is a problem which I wanted to see solved.

I want to use the validation methods of the struts forms and actions, but this doesn't seem to cooperate well with tiles.

I'll give the example

a standard page might eg look like this :
-header.jsp (with eg a menubar, or a title, whatever)
-body.jsp (with the hml form)
-footer.jsp (with eg. some navigation buttons, or some general comments)

So in my body.jsp, I have a form and a submit button, this leads me to a struts action and form.
But when there is an ActionError thrown in the validation of the Form class then Struts only shows body.jsp, the header.jsp and footer.jsp are not shown anymore.

How can I solve this ?
Dieter D'haeyere
Greenhorn

Joined: Apr 07, 2004
Posts: 8
problem solved
it was just a stupid error
the solution popped up in my mind yesterday

In the input parameter I put my jsp file, but it has to be my tile definition of course :s
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
In validate solution , What type of Vlidation ? client side or server side ???


SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
Dieter D'haeyere
Greenhorn

Joined: Apr 07, 2004
Posts: 8
My question was just about the form validation (eg. checking for empty input fields).
But problem solved.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: validation with struts and tiles
 
Similar Threads
Nesting Tiles
tiles definition
Need your help on tiles urgently ~~
Problem while running a project using tiles in netbeans
Tiles winding me up.