Prashanth.S wrote:
Hi all,
i asked this question previously and i havent got reply...I need to know how best can 
we migrate from present running application which uses jsp[and lot of custom taglibs] 
to struts...
Any url reference would also be usefull
Thanks in advance
Prashanth

One of the nice things about Struts, and the J2SE platform generally, is that it's not an either/or decision. Struts doesn't need to be the only player in your application, and you can migrate slices of your application bit by bit.


As mentioned, first examine your motivations for migrating to Struts in the first place. Then use those to decide what to first.

One approach would be to start by doing new development in Struts. If you need to add a new use case, add it with Struts. Your existing pages can link to a Struts *.do action to enter the workflow and the Struts Action can return a link to your *.jsp when its done.

Likewise, when a segment of your application needs to be changed, consider migrating that segment to Struts first and then making the changes.

After you've been doing new development and new changes in Struts for a time, you should reach a point where you can knuckle down and migrate the rest for consistency. Or not. Struts does get upset when there is more than one ActionServlet, but it doesn't care how many other kinds of servlets or pages you use in the application.

If you are already using custom tags, you can probably keep those and use them with Struts. If they need to access the Struts framework objects, like the ActionMappings, take a peek at our source to find out where to find these objects. It just a matter of knowing what request, session, or application key they are stored under.

If you are using scriptlets, move the scriptlet code to an Action class. Then link through the Action class to run that code first. If the code created scripting variables before, use request properties instead. Likewise, any place where you were using request parameters, start using request properties when you move that workflow over to Struts.

-Ted.


-- Ted Husted, Junit in Action - <http://www.manning.com/massol/>, Struts in Action - <http://husted.com/struts/book.html>, JSP Site Design - <http://www.amazon.com/exec/obidos/ISBN=1861005512>.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to