I ran into an issue similar to yours where I had a "search" form and a "results" form. What I did was to use a nested form bean, with one nested form bean being the search parameters, and another nested form bean being the results. Both actions knew that the form was nested (as did the two separate forms displayed in the jsp), but each only used the nested form bean that it needed to know about, which made changes to the nested forms and actions independant of the other form/action. This was with POJO, not declared, form beans too. A variation on this is to have a POJO action form extend another one. You should be able to do this and preserve the data in both forms, but I havent' worked much with doing this, I have had odd sporadic problems doing this in early versions of 1.1.
This works when the two actions/forms are relatively coupled. If they are not, you might want to think about using VOs instead of form beans and storing them in the session, and using BeanUtils.copyProperties() to move things from the form bean to/from the VO. -ed > N G wrote: > > I need to instantiate a form that is not associated with my particular > > action and place it on the request before forwarding... > > > > Right now I have to hardcode the name of the form as the key into the > > request scope. I know that you can get the configured name of the form > > that IS associated with your action by doing mapping.getAttribute(). > > However, how do I get the configured name of the form with just > > knowing the fully qualified class name? > > > > Is there a way to do this? > > > > Are there any other suggestion as to how NOT to hardcode the name of the > > form. > > > > Thanks, > > NG > > > > --------------------------------------------------------------------- > > 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]