Hi Laurie, I understand what you are trying to say. What I exactly have is a set of classes which extend from the FormTag, TextTag, ActionError and ActionErrors and do some business Logic implementation. Here They have used the MessageResource for holding the error messages. Now I need to do the same thing in struts 2. When I saw the javadoc it said the WrapperMessageResource was a wrapper over the struts1 MessageResource in struts2 and the WrapperMessageResource extends from the MessageResource.
Also I need to migrate classes which are extending from ActionError and ActionErrors and have the business Logic implemented. I know that struts-2 is not providing ActionErrors nor the ActionError. Instead in the application we have to use addActionError() method provided by the ActionSupport class if I am right. It's easy to do this in an application migration. But I am wondering how to migrate the classes in the framework to struts-2. Looking Forward For ur help. Thanks, Sandeep -----Original Message----- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: Friday, March 28, 2008 11:22 AM To: user@struts.apache.org Subject: Re: Help On Migration vj,sandeep wrote: > Hi All, > > I am migrating an existing FrameWork(classes which are extending from some > of the Struts classes like FormTag,TextTag etc) from struts 1 to struts 2. > It uses MessageResources. I found out that the replacement for the same in > struts2 (2.0.11)is WrapperMessageResources which extends from the > MessageResources. > > But to use the WrapperMessageRessource I need to use the struts > 1.3.5-core.jar provided along with the struts 2.0.11 release otherwise I get > a compilation error as "MessageResources class not found. It is used > indirectly by one of the class files". So is it proper to use the struts > 1.3.5-core.jar? If not Pls suggest a replacement for MessageResources. As Antonio told you, it isn't really a question of 'replacements'. Although conceptually similar, Struts 1 and Struts 2 are entirely different codebases. You should think in terms of what you need to achieve in Struts 2, not in terms of what APIs you used to achive something similar in Struts 1. That said, I have no idea what WrapperMessageResources is. It's not part of the Struts 1, Struts 2 or XWork APIs as far as I can tell. You certainly don't need to include Struts 1 jars in a Struts 2 application to access message resources though. If you can explain what it is you are trying to achieve we may be able to offer better guidance. L. --------------------------------------------------------------------- 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]