Re: struts 1 to struts2 migration.

2013-08-08 Thread Sreekanth S. Nair
I'm sorry about that, in my migration i never tried to do patches on existing jsp but rewriting the whole jsp. Advise if you take more days but better do it gud migration ;) . And i guess ur problem can be solved by <% OgnlValueStack valStack = (OgnlValueStack)TagUtils.getStack(pageContext); BeanCl

Re: struts 1 to struts2 migration.

2013-08-08 Thread Arpan
Thanks Srikanth, But what about this problem : Such as In struts 1 JSP I have used In JSP scriplet there are many places we used <% String s = x.getName(); %> In struts 2 we can write Now how can I use the "x" object in scriplet. As there are many references of "x" already written, I don't wa

Re: struts 1 to struts2 migration.

2013-08-08 Thread Sreekanth S. Nair
Already suggested by Lukasz, i can see thats only possible way if you don't want to disturb the existing code much. But from my personal experience i can say customizing things will make more complicated when strust2 changes its internal. We were facing so many issues while we started migration. We

Re: struts 1 to struts2 migration.

2013-08-08 Thread Arpan
Hi Sreekanth, We are also planning to do this similar way. In the meanwhile do you have any suggestion or solution for the problems I mentioned. Thank you.. On Thu, Aug 8, 2013 at 11:30 AM, Sreekanth S. Nair < sreekanth.n...@egovernments.org> wrote: > Hi Arpan, >We too did a st

Re: struts 1 to struts2 migration.

2013-08-07 Thread Sreekanth S. Nair
Hi Arpan, We too did a struts1 to strust2 migration in recent past, its not so easy to migrate as it is. Since Struts2 gives more importance to security nowadays its always advisable to learn the correct implementation from struts2 doc and migrate your struts1 actions one by one. Str

Re: struts 1 to struts2 migration.

2013-08-07 Thread Arpan
Thank you so much Lukasz.. While migrating I found few more problems. Such as In struts 1 JSP I have used In scriplet there are many places we used <% String s = x.getName(); %> In struts 2 we can write Now how can I use the "x" object in scriplet. As there are many references of "x" already w

Re: struts 1 to struts2 migration.

2013-08-07 Thread Lukasz Lenart
You can try to write your own ActionMapper which will extract request parameter "action" and base on that lookup for action. 2013/8/7 Arpan : > Anybody to help here... > > Thanks in Advance. > > > On Tue, Aug 6, 2013 at 7:43 PM, Arpan wrote: > >> Hi All, >> >> We are migrating from struts1 to str

Re: struts 1 to struts2 migration.

2013-08-07 Thread Arpan
Anybody to help here... Thanks in Advance. On Tue, Aug 6, 2013 at 7:43 PM, Arpan wrote: > Hi All, > > We are migrating from struts1 to struts2. > > In our pages we have multiple buttons which through struts1 DispatchAction > can be guided to different methods in Action class. For that we need

struts 1 to struts2 migration.

2013-08-06 Thread Arpan
Hi All, We are migrating from struts1 to struts2. In our pages we have multiple buttons which through struts1 DispatchAction can be guided to different methods in Action class. For that we need minimal changes. Such as In action mapping if we add parameter="action" and in JSP if the URL is like