Yes, but I actually do want to use the validation. Is there a way to make struts forward back to an action (instead of just the jsp page) when validation issues are detected? That way, at least I can make the action reload the page scope data that should be there. And, as long as the form reset is not called, their posted data should still be there as well I would think.
Or, another thing that would work for me is if I can have struts not call the form's validate method, but still be able to call it manually from within my action. Anybody know how to do either of these? gary. On Mon, 2004-11-01 at 13:44, Lee Harrington wrote: > Try creating a new action with validate="false" on those times you > don't want to validate the data. > > Lee > > > On Mon, 01 Nov 2004 13:06:31 -0500, Gary S. Cuozzo > <[EMAIL PROTECTED]> wrote: > > Hello, > > I seem to always be struggling with a particular scenario in my Struts > > apps and thought I would ask to see what others are doing. > > > > In my applications, I like to present my forms with the most up-to-date > > data available, so I typically have a 'prep' action that grabs data from > > persistent storage and adds it to the request as page scope data, then > > forwards to the view where it is happily displayed by appropriate tags. > > > > Where I end up fighting is scenarios where I want to use built-in > > validation. If I use the built-in validation, struts will catch an > > error on the server side (like a required field is not filled out) and > > try to forward back to the form, which blows up since the page scope > > data is no longer there. > > > > Is there some other pattern that I should be using? I know I can use > > session scope, but then I guess I would have issues with making sure I > > clear the session when I'm done with the data, etc. > > > > What are others doing in this regard? I'd like to use as much of the > > framework as possible. I've considered turning off validation and just > > doing it myself in my action, then doing the preload stuff before I > > forward back. But then I feel like I'm doing extra work that I > > shouldn't have to. > > > > Thanks for any feedback. I'm hoping somebody has a better way to > > accomplish the same thing without all the hassles I'm currently having > > to work around. > > > > Cheers, > > gary. > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]