> hi all. > is it possible to have access to form beans from struts1 in struts2 ? we > are in the beginning of the migration to struts2 and it seems like there > will be some period when both frameworks will be active at the same time.. > the only problem now is accessing the session beans managed by struts2 in > struts1 and vice-versa form beans from strut1 mapped in struts2 . > half of the jsp would use struts1 tags and other half struts2 tags. So > there should be beans instantiated in both frameworks. > Probably struts2 bean can be injected to struts1 action with struts1 form > still accessible as execute() argument, but what about other way ? > accessing struts1 form bean (not just data, but managed bean) in struts2 > execute() ?
Hi, when we do such a migration we usually take care that one HTML page is handled completely by one framework. Intercation between frameworks just happens via HTML links or HTTP redirects. If you really have to access struts1 form beans in struts2 actions, have a look under which key they are stored in httpSession and access them just with that key. regards, Christoph This Email was scanned by Sophos Anti Virus