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: sj:select default value not load

2013-08-07 Thread Sreekanth S. Nair
here the value of why is representing key or value ? The value your are providing to *value* attribute (value="%{why}"), it should always represent the key (not the display value). -- Thanks & Regards Srikanth Software Developer eGovernments Foundations www.egover

Re: Annotation Support for bypassing prepare

2013-08-07 Thread Sreekanth S. Nair
I admit it, thats why i mentioned it as a pinch of performance :) . -- Thanks & Regards Srikanth Software Developer eGovernments Foundations www.egovernments.org Mob : 9980078913 On Thu, Aug 8, 2013 at 10:57 AM, Paul Benedict wr

Re: Annotation Support for bypassing prepare

2013-08-07 Thread Paul Benedict
I don't see a performance concern here. Checking a few strings isn't going to slow down anything. On Aug 8, 2013 12:06 AM, "Sreekanth S. Nair" < sreekanth.n...@egovernments.org> wrote: > Guess same performance concern is applicable for that as well. Any ideas of > making it simpler for existing ap

Re: Annotation Support for bypassing prepare

2013-08-07 Thread Sreekanth S. Nair
Guess same performance concern is applicable for that as well. Any ideas of making it simpler for existing app without much coding, performance and clumsiness could be better. And i think @SkipPreapre at method level gives more visibility than at class level @SkipPrepare({"xdsdasds",ydsdsdsdsds","z

Re: Annotation Support for bypassing prepare

2013-08-07 Thread Paul Benedict
Not an array of prepares, but an array of strings for which "execute" methods the Preaparable callback should be excluded. On Aug 7, 2013 11:09 PM, "Sreekanth S. Nair" < sreekanth.n...@egovernments.org> wrote: > With all gratitude, I strongly disagree with that idea . That bring more > clumsiness

Re: Annotation Support for bypassing prepare

2013-08-07 Thread Sreekanth S. Nair
With all gratitude, I strongly disagree with that idea . That bring more clumsiness to big strust2 applications. And the idea of taking an array of Prepare is a good idea but don't you think it consumes a pinch of runtime performance.

RE: sj:select value problem

2013-08-07 Thread David Wang
Thanks Lukasz, David > From: lukaszlen...@apache.org > Date: Wed, 7 Aug 2013 12:01:23 +0200 > Subject: Re: sj:select value problem > To: user@struts.apache.org > > 2013/8/7 David Wang : > > value="%{patternKeyword2}" /> > > I don't know if this supports anything else than ju

RE: [struts 2] java.io.FileNotFoundException: http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd

2013-08-07 Thread Martin Gainty
I dont know which DTD reference in which validator.xml is going fubar assume the dtd is co-located in same folder where Login-validation.xml is located at /pathToLoginValidationXML/xwork-validator-1.0.2.dtd you would need to change the http protocol to file protocol in the specified DOC

Re: Annotation Support for bypassing prepare

2013-08-07 Thread Paul Benedict
I wonder if perhaps there should be a Preparable2 interface that passes in the name of the method that will execute. That might be more advanced than the annotation. OTOH, @SkipPreparable could take an array of method names. Which is more functional? On Sat, Aug 3, 2013 at 3:10 PM, Sreekanth S.

Re: [struts 2] java.io.FileNotFoundException: http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd

2013-08-07 Thread John Boyer
Hi Srikanth: That fixed it. Thank you! John On Aug 7, 2013, at 10:41 AM, Sreekanth S. Nair wrote: > use this > >"-//Apache Struts//XWork Validator 1.0.2//EN" > "http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd";> > > > -- > Regards > Srikanth > > On W

Re: Getting lists back from struts

2013-08-07 Thread Sreekanth S. Nair
Check this tutorial might help you http://www.mkyong.com/struts2/how-to-set-default-value-for-multiple-checkboxes-in-struts-2/ -- Thanks & Regards Srikanth Software Developer eGovernments Foundations www.egovernments.org Mob : 9980078913 --

Re: [struts 2] java.io.FileNotFoundException: http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd

2013-08-07 Thread Chris Pratt
I don't know if it's the latest, but http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd appears to work. (*Chris*) On Wed, Aug 7, 2013 at 10:36 AM, John Boyer wrote: > Hi Martin: > > Okay, but my validation XML is pointing to > http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd,

Re: [struts 2] java.io.FileNotFoundException: http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd

2013-08-07 Thread Sreekanth S. Nair
use this http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd";> -- Regards Srikanth On Wed, Aug 7, 2013 at 11:06 PM, John Boyer wrote: > Hi Martin: > > Okay, but my validation XML is pointing to > http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd, which is no > longer available

RE: [struts 2] java.io.FileNotFoundException: http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd

2013-08-07 Thread Martin Gainty
Hi John xwork-validator-1.0.2.dtd *should* be in xwork-core-.jar jar -tvf xwork-.jar | grep xwork-validator ? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nic

Re: [struts 2] java.io.FileNotFoundException: http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd

2013-08-07 Thread John Boyer
Hi Martin: Okay, but my validation XML is pointing to http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd, which is no longer available. What should it point to now? Thanks, John --- http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";>

Re: [struts 2] java.io.FileNotFoundException: http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd

2013-08-07 Thread Sreekanth S. Nair
Try changing you xxx-validation.xml file dtd url declaration with the latest available dtd inside xwork-core.jar -- Thanks & Regards Srikanth On Wed, Aug 7, 2013 at 10:44 PM, John Boyer wrote: > Hi: > > Suddenly, in-production, we're getting file-not-found errors for the > xwork-validator-1.0.

[struts 2] java.io.FileNotFoundException: http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd

2013-08-07 Thread John Boyer
Hi: Suddenly, in-production, we're getting file-not-found errors for the xwork-validator-1.0.2.dtd at http://www.opensymphony.com/xwork. How can resolve this problem? We're running Struts 2 v2.3.4.1 Thanks, John - 10:01:18 ERROR http-8443-1 com.op

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

Getting lists back from struts

2013-08-07 Thread Fabian Richter
Hi I have encountered this issue a couple of times, always found a way to code around but now I really need to ask: Can struts create lists/arrays (or whatever collection) when e.g. using public class MyAction extends ActionSupport { public List getChoices() { }

Re: sj:select value problem

2013-08-07 Thread Lukasz Lenart
2013/8/7 David Wang : > value="%{patternKeyword2}" /> I don't know if this supports anything else than just a String. Please ask question on the user group or directly under the wiki page https://groups.google.com/forum/#!forum/struts2-jquery https://code.google.com/p/struts2-jq