
Originally Posted by
futang
irbouho,
Now I'm on the same page with you. Just defer you initilization from the constructor of your action form to the setServlet method. As you can see from the code I previously posted, no interaction occurs with the action form between instantiation and the call to setServlet.
Mike
I actually tried that after seeing the code and it actually work for the reason you mentioned. My only issue probably may just be one of semantics. With the Action, setting the webAppContext seems(IMO anyway) natural and intuitive. But for the form doing this AND initializing that data object seems...weird. Plus, I've got a minor concern about that particular assumption changing.
Other than my particular usage, the setServlet does work as adverstised for anyone else who is wondering. Thanks for the post.
---------------------------------
David H. McCoy
----------------------------------