Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with validation

 
Eric Sexton
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the following action mapped in my struts config


First off, with validate set to "false", why does this still get submitted to validation? When I try to set it to "true", it kills the app server altogether. Anyhow, my goal is to get validation and when I get an error, I want to forward to another action that is slightly different then my original action. Right now when the validation occurs, the 'input' parameter is ignored and the 'path' is the action that gets called. Any suggestions?
 
Srikanth Shenoy
author
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just a guess
Your input="/do/secure/searchNoPrepopulate" might be resulting in infinite loop resulting in app server crash.
Another weird thing is that the forward starts with @ rather than /.
Srikanth
Author: Struts Survival Guide
 
Eric Sexton
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But shouldn't the 'validate=false' be stopping it from validating? Why does it still validate?
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The action TYPE attribute should be the fully qualified class name of your ACTION, not your formbean.
Don't forget to map your formbean in a form-bean tag - that is where the TYPE attribute is the fully qualified class name of the formbean.
 
Srikanth Shenoy
author
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good catch Marc...
Srikanth
 
Emilio Butrage´┐Żo
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eric -
Do what the previous posters have suggested, and if that does not work, look at how you are invoking the action class.
I use WSAD and have not seen those problems. Good luck
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic