This week's book giveaway is in the Java in General forum.
We're giving away four copies of Event Streams in Action and have Alexander Dean & Valentin Crettaz on-line!
See this thread for details.
Win a copy of Event Streams in Action this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

validation with struts and tiles

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In validate solution , What type of Vlidation ? client side or server side ???
 
Dieter D'haeyere
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My question was just about the form validation (eg. checking for empty input fields).
But problem solved.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!