Re: Migrating to struts
I wasn't criticising your suggestions about how to do a migration - you've obviously got experience there. I was suggesting you, or rather Prashanth, look at the possibility of a fresh start. I read the chapter in Struts in Action about migrating normal JSPs to Tiles, and that was complex enough without doing the rest of struts at the same time. There are so many tasks involved in designing a struts app, e.g. seperating out business logic, employing Validator, perhaps DynaActionForms, Tiles as mentioned, evolving a sensible JDBC set-up, security, blah blah blah. You've got to look at why you are considering upgrading in the first place. Is it to make the application easier to develop in the future? Or is it to make the app more commercially marketable (powered by struts) or is it because the current design defies further development? Or other reasons. The point being, if you don't start from scratch, then your migration path will meet heavy compromises along the way. Things will necessarily get messy. I would say to be successful, you would need an in-depth knowledge of struts before you start, as well as an in-depth knowledge of the app itself. Otherwise you are almost certainly doomed to make a mess of the whole thing. It's just my 2 cents anyway and I don't know the background. Adam On 09/03/2003 12:21 AM Mark Lowe wrote: On Tuesday, September 2, 2003, at 10:01 PM, Adam Hardy wrote: Man, I'd just start again from scratch if I could. Wouldn't we all. Not sure thats very realistic, but if you've the biggest budget in the world then i guess it would be okay. But then if you're pulling that kind of revenue in i doubt there's the time either. Telling your client/boss whoever that things aren't as good as perhaps they think things probably isn't the most politic thing one could do. Migrating a taglibs-based app across to a struts-framework could unleash all sorts of difficult problems. I haven't found any, like what exactly?. One clear advantage of struts is its seamless compatibility with any legacy java/jsp. Sure its a good framework because it encourages MVC, but its also a good framework because it doesn't enforce it. If you wanted to first step to porting then mapping the links as forwards i'd say is the most pragmatic first step i can think off. Certainly more pragmatic than starting from scratch. Gradually move to forms out that sort of thing. The team become more familiar with struts without too much pressure. Scriptets can be moved into actions as part of the maintenance cycle, you can also if appropriate have the client pay for some of the work as maintenance. Now excuse me if I'm wrong, but my humble suggestion leaves a lot of room to move, and minimizes risk. Your suggestion would be costly, risky, have no contingency options when situations change. I sympathize with you artisan attitudes, but I've learnt to keep an eye on my disposition toward this sort of thing. Thanks for the wisdom Mark Adam On 09/02/2003 06:10 PM Mark Lowe wrote: I don't know of a url. but I'd start with just using you jsp's as they are, and then map all them all to forwards in struts-config. Struts console is useful and it validates config files also. So you'll then have a struts config file with action path=/myaction type=org.apache.struts.ActionForward forward=/jsp/mypage.jsp / Change the links directly to the jsp's for: html:link page=/myaction.do or c:url url=/myaction.do ( I think ) This will help to start thinking in a event based way (eg. Login.do, Save.do). I think by this time things will become less foggy and you'll start having ideas about where you want to go. Hope this helps Mark On Tuesday, September 2, 2003, at 02:25 PM, 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 - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - 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] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Migrating to struts
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. Just out of curiosity, what are request properties? Did you mean attributes or am I missing something... This message and its contents (to include attachments) are the property of Kmart Corporation (Kmart) and may contain confidential and proprietary information. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on information contained herein is strictly prohibited. Unauthorized use of information contained herein may subject you to civil and criminal prosecution and penalties. If you are not the intended recipient, you should delete this message immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Migrating to struts
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 The question is too vague for any of us to be much help. If your design is such that most of the hard work is done outside of the taglibs in helper classes, then you'll probably be able to reuse that code. If you have a mess of custom taglibs and scriptlets then your job will be considerably harder. Personally, I'd set aside the existing app, and design from the ground up. Don't try to force Struts into doing things the same way they're being done now, it's a lot easier to work with the framework than against it. -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University, PA, IRM
RE: Migrating to struts
This would depend how your application was architected. If you do ONLY jsp (i.e. sql and logic in the page), then basically you are re-writing the application by cutting back-end code out of your jsp pages and creating business logic classes and action class. If your application is reasonably well architected, then you are probably going to be creating DynaForms in xml and on each jsp replacing validation logic, message logic, etc to utilize struts features. Edgar -Original Message- From: Prashanth.S [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 02, 2003 8:25 AM To: [EMAIL PROTECTED] Subject: Migrating to struts 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 - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Migrating to struts
I don't know of a url. but I'd start with just using you jsp's as they are, and then map all them all to forwards in struts-config. Struts console is useful and it validates config files also. So you'll then have a struts config file with action path=/myaction type=org.apache.struts.ActionForward forward=/jsp/mypage.jsp / Change the links directly to the jsp's for: html:link page=/myaction.do or c:url url=/myaction.do ( I think ) This will help to start thinking in a event based way (eg. Login.do, Save.do). I think by this time things will become less foggy and you'll start having ideas about where you want to go. Hope this helps Mark On Tuesday, September 2, 2003, at 02:25 PM, 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 - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Migrating to struts
Man, I'd just start again from scratch if I could. Migrating a taglibs-based app across to a struts-framework could unleash all sorts of difficult problems. Adam On 09/02/2003 06:10 PM Mark Lowe wrote: I don't know of a url. but I'd start with just using you jsp's as they are, and then map all them all to forwards in struts-config. Struts console is useful and it validates config files also. So you'll then have a struts config file with action path=/myaction type=org.apache.struts.ActionForward forward=/jsp/mypage.jsp / Change the links directly to the jsp's for: html:link page=/myaction.do or c:url url=/myaction.do ( I think ) This will help to start thinking in a event based way (eg. Login.do, Save.do). I think by this time things will become less foggy and you'll start having ideas about where you want to go. Hope this helps Mark On Tuesday, September 2, 2003, at 02:25 PM, 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 - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Migrating to struts
On Tuesday, September 2, 2003, at 10:01 PM, Adam Hardy wrote: Man, I'd just start again from scratch if I could. Wouldn't we all. Not sure thats very realistic, but if you've the biggest budget in the world then i guess it would be okay. But then if you're pulling that kind of revenue in i doubt there's the time either. Telling your client/boss whoever that things aren't as good as perhaps they think things probably isn't the most politic thing one could do. Migrating a taglibs-based app across to a struts-framework could unleash all sorts of difficult problems. I haven't found any, like what exactly?. One clear advantage of struts is its seamless compatibility with any legacy java/jsp. Sure its a good framework because it encourages MVC, but its also a good framework because it doesn't enforce it. If you wanted to first step to porting then mapping the links as forwards i'd say is the most pragmatic first step i can think off. Certainly more pragmatic than starting from scratch. Gradually move to forms out that sort of thing. The team become more familiar with struts without too much pressure. Scriptets can be moved into actions as part of the maintenance cycle, you can also if appropriate have the client pay for some of the work as maintenance. Now excuse me if I'm wrong, but my humble suggestion leaves a lot of room to move, and minimizes risk. Your suggestion would be costly, risky, have no contingency options when situations change. I sympathize with you artisan attitudes, but I've learnt to keep an eye on my disposition toward this sort of thing. Thanks for the wisdom Mark Adam On 09/02/2003 06:10 PM Mark Lowe wrote: I don't know of a url. but I'd start with just using you jsp's as they are, and then map all them all to forwards in struts-config. Struts console is useful and it validates config files also. So you'll then have a struts config file with action path=/myaction type=org.apache.struts.ActionForward forward=/jsp/mypage.jsp / Change the links directly to the jsp's for: html:link page=/myaction.do or c:url url=/myaction.do ( I think ) This will help to start thinking in a event based way (eg. Login.do, Save.do). I think by this time things will become less foggy and you'll start having ideas about where you want to go. Hope this helps Mark On Tuesday, September 2, 2003, at 02:25 PM, 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 - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - 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]