> -----Original Message----- > From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 22, 2002 7:37 PM > To: Struts Users Mailing List > Subject: Re: Using subclasses of class specified in form-bean element > > If you always precreate your form beans (so that Struts > doesn't have to), > you could use the superclass name in the <form-bean> element. > At least > with recent nightly builds of 1.1, such a bean would pass the > "instanceof" > test that Struts performs to see if the existing bean is of > the correct > class. However, making sure this happens in all scenarios > can be pretty > complicated.
Thanks for the precise answer. One thing I'm unclear about. Does the last sentence mean this functionality is supported by Struts but it's pretty complicated to code an application correctly or does it mean that it's pretty complicated to tell whether Struts will always behave this way? This is sounding like a road I don't want to go down. But I am working with wizards that determine the subclass on the second or third page and subclasses would be a nice way to support back-button functionality in a generic way. While on the topic, does anyone have a reference for best practices for coding wizards with Struts? Derek Richardson -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

