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]