Re: Using tiles 2 with struts 1

2017-03-13 Thread Kokkodan Venu
This is very urgent This is regarding a project upgrade where I need to stick with Struts 1 and I need Tiles 2 as the Spring framework is getting upgraded. if you have already built the struts-tiles2-1.4.0-SNAPSHOT.jar can you pls send the same to me? I also have a very different upgrade here.

RE: Using Struts2 Rest Plugin with deep cascading actions

2015-01-26 Thread Martin Gainty
} else return -1; } }); Thoughts? Martin --------- The key to prevent a hacked email account is to change password more than every 5 years.. > From: mgai...@hotmail.

RE: Using Struts2 Rest Plugin with deep cascading actions

2015-01-24 Thread Martin Gainty
> Date: Sat, 24 Jan 2015 15:24:49 +0530 > Subject: Re: Using Struts2 Rest Plugin with deep cascading actions > From: ghotankaru...@gmail.com > To: user@struts.apache.org > > Well after doing some research on designing rest api ***best practices*** I > realized I was

Re: Using Struts2 Rest Plugin with deep cascading actions

2015-01-24 Thread Amol Ghotankar
Well after doing some research on designing rest api ***best practices*** I realized I was doing something wrong. For getting all companies, we must use http://localhost/company For getting all locations of that company we can use http://localhost/company/111/locations For anything else to get

Re: Using multiple @Inject in constructor giving run time error

2013-10-16 Thread Lukasz Lenart
> Thanks!! > I am wondering why it is working fine for other case? > I was expecting that Struts2 will convert it for me ;) Rather Guice ;-) But maybe with Guice3 there be no problem ;-) Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ --

Re: Using multiple @Inject in constructor giving run time error

2013-10-16 Thread Umesh Awasthi
Thanks!! I am wondering why it is working fine for other case? I was expecting that Struts2 will convert it for me ;) Thanks Umesh On Wed, Oct 16, 2013 at 12:54 PM, Lukasz Lenart wrote: > 2013/10/16 Umesh Awasthi : > > I am trying to inject few values to my bean like > > > > @Inject > > pub

Re: Using multiple @Inject in constructor giving run time error

2013-10-16 Thread Lukasz Lenart
2013/10/16 Umesh Awasthi : > I am trying to inject few values to my bean like > > @Inject > public > DefaultJSR303ValidationManager(@Inject(value=ValidatorConstants.PROVIDER_CLASS,required=false) > String providerClassName, > > @Inject(value=ValidatorConstants.IGNORE_XMLCONFIGURAITION,required=

Re: Using themes with s: select

2013-09-10 Thread Chris Pratt
Attachments don't appear to work through the mailing list. (*Chris*) On Tue, Sep 10, 2013 at 11:35 AM, Srineel Mazumdar wrote: > Hi Chris, > > Attached the images. > > Thanks, > Srineel > > > On Tue, Sep 10, 2013 at 1:17 PM, Chris Pratt wrote: > >> Srineel, your images didn't come through the

Re: Using themes with s: select

2013-09-10 Thread Srineel Mazumdar
Hi Chris, Attached the images. Thanks, Srineel On Tue, Sep 10, 2013 at 1:17 PM, Chris Pratt wrote: > Srineel, your images didn't come through the mail list, any chance you > could PasteBin them or put them somewhere else accessible? > (*Chris*) > > > On Tue, Sep 10, 2013 at 7:50 AM, Srineel

Re: Using themes with s: select

2013-09-10 Thread Chris Pratt
Srineel, your images didn't come through the mail list, any chance you could PasteBin them or put them somewhere else accessible? (*Chris*) On Tue, Sep 10, 2013 at 7:50 AM, Srineel Mazumdar wrote: > Hi Chris, > > Thanks for the help. But the change I need is bit different . > > What I need : >

Re: Using themes with s: select

2013-09-10 Thread Srineel Mazumdar
Hi Chris, Thanks for the help. But the change I need is bit different . What I need : [image: Inline image 1] What I am getting : [image: Inline image 2] Code for image 1 : <%@ include file="IncludeTop.jsp" %> <%@ taglib prefix="html" uri="http://jakarta.apache.org/struts/tags-html"; %>

Re: Using themes with s: select

2013-09-08 Thread Chris Pratt
Try cssStyle="background-color:yellow;" (*Chris*) On Sun, Sep 8, 2013 at 9:54 PM, Srineel Mazumdar wrote: > Hi, > > I am using s:select to create a dropdown and then checked the html. I > wanted to add bgcolor as yellow. I referred to the following link > > http://struts.apache.org/release/2.2

Re: Using Util class inside JSP

2013-07-24 Thread Antonio Sánchez
Thank you both. In the future, whenever possible, I'll try to put this logic in a base class. Kind regards. El Martes, 23 de julio de 2013 12:59:06 Dave Newton escribió: > I don't know if it's *explicitly* a bad practice, but it's pretty easy to > hose things up with arbitrary static method acc

Re: Using Util class inside JSP

2013-07-23 Thread Dave Newton
I don't know if it's *explicitly* a bad practice, but it's pretty easy to hose things up with arbitrary static method access. Personally, I wouldn't, and would instead defer things like that to a custom tag or, as you said, a method in the base class, properly named, allowing simple getter access

Re: Using Util class inside JSP

2013-07-23 Thread Paul Benedict
If you want to check if the user is in session, I would create for yourself a BaseAction class which all your Actions extend. In Base Action, expose a getter to do that calculation. It's sounds like you really have a case where you want this property on the Value Stack on each invocation. I use th

Re: Using Util class inside JSP

2013-07-23 Thread Antonio Sánchez
Thank you. Is it discouraged or is it considered a bad practice to use static code in OGNL? It is disallowed by default. Actually, the code would be something like: Do you think it is a better practice to use a base class whenever possible? looks simpler. El Martes, 23 de julio de 2013

Re: Using Util class inside JSP

2013-07-23 Thread Dave Newton
Enable static method access: Then use OGNL's static method notation [1]: Dave [1] http://struts.apache.org/release/2.3.x/docs/ognl-basics.html#OGNLBasics-Accessingstaticproperties On Tue, Jul 23, 2013 at 7:27 AM, Antonio Sánchez wrote: > Hi. > > How can I use utilities classes i

Re: Using Two Parent Pakages!!

2013-07-11 Thread Lukasz Lenart
2013/7/11 Alireza Fattahi : > If the struts finds the result-type "json",in struts2-json-plugin.jar , why > doesn't it make this result-type available to all actions ? Why should I > address struts where this result type is defined ? Results are defined per package, actions are defined per packa

Re: Using Two Parent Pakages!!

2013-07-11 Thread Alireza Fattahi
From: Alireza Fattahi To: Struts Users Mailing List Sent: Wednesday, 10 July 2013, 10:50 Subject: Re: Using Two Parent Pakages!! Hi, So I define some thing like     Is it possible that I say the struts that this the default package for all packages ?! ~R

Re: Using Two Parent Pakages!!

2013-07-10 Thread Lukasz Lenart
2013/7/10 Alireza Fattahi : > Hi, > > So I define some thing like > > namespace="/"> > > > > > Is it possible that I say the struts that this the default package for all > packages ?! There is nothing like that - a default package - you can re-use your package in xml or with annotation: @P

Re: Using Two Parent Pakages!!

2013-07-10 Thread Alireza Fattahi
2013, 10:27 Subject: Re: Using Two Parent Pakages!! 2013/7/10 Alireza Fattahi : > Thanks ! > > I found a code > here:http://struts.apache.org/release/2.0.x/docs/zero-configuration.html > > > @ParentPackage({"my-parent-package1, my-parent-package2"}) package >

Re: Using Two Parent Pakages!!

2013-07-09 Thread Lukasz Lenart
2013/7/10 Alireza Fattahi : > Thanks ! > > I found a code > here:http://struts.apache.org/release/2.0.x/docs/zero-configuration.html > > > @ParentPackage({"my-parent-package1, my-parent-package2"}) package > com.mycompany.myapp.actions import org.apache.struts2.config.ParentPackage; > > > Can I d

Re: Using Two Parent Pakages!!

2013-07-09 Thread Alireza Fattahi
za Fattahi From: Lukasz Lenart To: Struts Users Mailing List ; Alireza Fattahi Sent: Wednesday, 10 July 2013, 10:13 Subject: Re: Using Two Parent Pakages!! 2013/7/10 Alireza Fattahi : > Hi, > > I am using the convention in with json plugin so I

Re: Using Two Parent Pakages!!

2013-07-09 Thread Lukasz Lenart
2013/7/10 Alireza Fattahi : > Hi, > > I am using the convention in with json plugin so I add: > value="json-default" /> > Now I want to use the REST plugin so I should add: > value="rest-default" /> json-default [1] contains just one result definition and two interceptors, so you can merge it in

RE: Using Struts2 OSGi plugin with GlassFish

2013-01-09 Thread Martin Gainty
d, 9 Jan 2013 09:37:02 +0200 > From: christina.kasko...@eurodyn.com > To: mgai...@hotmail.com > CC: user@struts.apache.org; us...@maven.apache.org > Subject: Re: Using Struts2 OSGi plugin with GlassFish > > Hi Martin. > > In struts2-osgi-plugin.jar there is no .\META-INF\mave

Re: Using Struts2 OSGi plugin with GlassFish

2013-01-09 Thread Lukasz Lenart
2013/1/9 Christina Kaskoura : > Thank you for your input Lukasz. I registered a new issue as you suggested > (https://issues.apache.org/jira/browse/WW-3958) Thanks a lot - we need more user experiences in that area :-) Cheers -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ ---

Re: Using Struts2 OSGi plugin with GlassFish

2013-01-09 Thread Christina Kaskoura
Thank you for your input Lukasz. I registered a new issue as you suggested (https://issues.apache.org/jira/browse/WW-3958) Christina On 09/01/2013 09:59, Lukasz Lenart wrote: 2013/1/9 Christina Kaskoura : Hi Lukasz, Unfortunately the felix.jar contained in GlassFish does not include all the

Re: Using Struts2 OSGi plugin with GlassFish

2013-01-09 Thread Lukasz Lenart
2013/1/9 Christina Kaskoura : > Hi Lukasz, > > Unfortunately the felix.jar contained in GlassFish does not include all the > classes included in the felix-related jars declared as dependencies of the > OSGi plugin. So if I exclude the felix main jar as you suggest I get the > following error during

Re: Using Struts2 OSGi plugin with GlassFish

2013-01-08 Thread Christina Kaskoura
Hi Martin. In struts2-osgi-plugin.jar there is no .\META-INF\maven\plugin.xml file. I assume you mean the .\struts-plugin.xml file? Also if I understand correctly there is no existing implementation of the PackageProvider which can work with GlassFish, I will just have to implement my own, is

Re: Using Struts2 OSGi plugin with GlassFish

2013-01-08 Thread Christina Kaskoura
Hi Lukasz, Unfortunately the felix.jar contained in GlassFish does not include all the classes included in the felix-related jars declared as dependencies of the OSGi plugin. So if I exclude the felix main jar as you suggest I get the following error during deployment: java.lang.Exception: j

Re: Using Struts2 OSGi plugin with GlassFish

2013-01-08 Thread Lukasz Lenart
2013/1/8 Christina Kaskoura : > I am trying to use the Struts2 OSGi plugin and have tried creating a web > application containing the struts2-osgi-demo-bundle. All goes well when > deploying the application on Tomcat, however when I try deploying on > GlassFish (which has Felix included) I get a nu

RE: Using Struts2 OSGi plugin with GlassFish

2013-01-08 Thread Martin Gainty
The beauty of implementing a maven-plugin is that all attributes of the plugin are configurable open struts2-osgi-plugin.jar edit .\META-INF\maven\plugin.xml look for as long as your com.opensymphony.xwork2.config.PackageProvider (felix provider) implements interfacescom.opensymphony.xwork2.co

Re: using annotations with struts 2 in jboss not finding actions

2012-10-02 Thread Lukasz Lenart
2012/10/1 jdtommy : > Yes. Struts 2 Nice :-) But could you be more precise ? http://struts.apache.org/downloads.html http://struts.apache.org/downloads.html#PriorReleases Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ -

Re: using annotations with struts 2 in jboss not finding actions

2012-10-01 Thread Lukasz Lenart
Struts2 version ? -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

RE: using annotations with struts 2 in jboss not finding actions

2012-09-28 Thread jdtommy
I think this works in jboss 5.x or above. I am using Jboss 4. If this is incorrect please let me know. -- View this message in context: http://struts.1045723.n5.nabble.com/using-annotations-with-struts-2-in-jboss-not-finding-actions-tp5710681p5710683.html Sent from the Struts - User mailing l

RE: using annotations with struts 2 in jboss not finding actions

2012-09-28 Thread Martin Gainty
so you want the EAR ClassLoader to be searched before JBoss ClassLoader? ..here is how http://phytodata.wordpress.com/2010/10/21/demystifying-the-jboss5-jboss-classloading-xml-file/ HTH Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note d

RE: Using action-chaining as alias (URI-rewrite)

2012-08-07 Thread fustaki
Freemarker 2.3.19. (It comes with Struts 2.3.4) -- View this message in context: http://struts.1045723.n5.nabble.com/Using-action-chaining-as-alias-URI-rewrite-tp5710391p5710393.html Sent from the Struts - User mailing list archive at Nabble.com. ---

RE: Using action-chaining as alias (URI-rewrite)

2012-08-07 Thread Martin Gainty
what version of freemarker are you using? Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilun

Re: Re: Using Base Action for application (struts2)

2012-06-28 Thread Aum Strut
Users Mailing List; samsongbest > Subject: Re: Re: Using Base Action for application (struts2) > Hi, > > What you want to do here, explain to us if so we can provide better > solutions how it should be done in struts2 style. > > Java Rocks. > > > On Thu, Jun 28, 201

Re: Re: Using Base Action for application (struts2)

2012-06-28 Thread samsongbest
Hi, Maybe my understanding is wrong. Please go ahead. Best Regards, Sam Song Cognizant Technology Solutions From: vEnkaTa mohAna rAo SriperumbUdUru Date: 2012-06-29 01:21 To: Struts Users Mailing List; samsongbest Subject: Re: Re: Using Base Action for application (struts2) Hi, What you

Re: Re: Using Base Action for application (struts2)

2012-06-28 Thread vEnkaTa mohAna rAo SriperumbUdUru
gt; > > > Best Regards, > Sam Song > Cognizant Technology Solutions > > From: Aum Strut > Date: 2012-06-29 00:36 > To: samsongbest > CC: Struts Users Mailing List > Subject: Re: Using Base Action for application (struts2) > I am not sure what you mean by constru

Re: Re: Using Base Action for application (struts2)

2012-06-28 Thread samsongbest
t you want? Best Regards, Sam Song Cognizant Technology Solutions From: Aum Strut Date: 2012-06-29 00:36 To: samsongbest CC: Struts Users Mailing List Subject: Re: Using Base Action for application (struts2) I am not sure what you mean by constructor method?? u mean prepare method?? On Thu, Ju

Re: Using Base Action for application (struts2)

2012-06-28 Thread Aum Strut
I am not sure what you mean by constructor method?? u mean prepare method?? On Thu, Jun 28, 2012 at 9:19 PM, samsongbest wrote: > ** > Hi Aum, > > How about put the init type work in the constructor method of the > BaseAction? > > -- > > Best Regards, > > *Sam So

Re: Using Base Action for application (struts2)

2012-06-28 Thread samsongbest
Hi Aum, How about put the init type work in the constructor method of the BaseAction? Best Regards, Sam Song Cognizant Technology Solutions From: Aum Strut Date: 2012-06-29 00:05 To: Struts Users Mailing List Subject: Using Base Action for application (struts2) Hi All, I am not sure how to d

Re: Using Spring proxied Session Beans with the ExecAndWaitInterceptor

2012-05-16 Thread Miguel Almeida
Regarding this issue - and considering any interceptor, not just the ExecAndWaitInterceptor: 1) My issue was, in fact, that I was accessing the request/session scoped bean in my init method. The init method was being called at app startup, where no such context exists 2) If we remove that access,

Re: Using Spring proxied Session Beans with the ExecAndWaitInterceptor

2012-05-15 Thread Łukasz Lenart
What I mean is that injecting something in ExecAndWaitInterceptor which has brought scope can rise concurrency issue because the same bean can be used in two different threads (ExecAndWaitInterceptor thread and request thread). I would rather pack whatever is needed by ExecAndWaitInterceptor and pa

Re: Using Spring proxied Session Beans with the ExecAndWaitInterceptor

2012-05-14 Thread Miguel Almeida
Following up on your suggestion, Lukasz: is concurrency an issue even if you scope the interceptor itself as prototype (or request) ? I was under the impression you could scope the interceptors like this (removing concurrency issues), but actually the previous issue makes me wonder if they're

Re: Using Spring proxied Session Beans with the ExecAndWaitInterceptor

2012-05-14 Thread Łukasz Lenart
I think it's better to repackage what you need and pass as a context variables instead inject session aware beans. It can produce concurrency issues. Regards -- Łukasz http://www.lenart.org.pl/ mobile +48 606 323 122, office +27 11 0838747 Warszawa JUG conference - Confitura http://confitura.pl/

Re: Using Spring proxied Session Beans with the ExecAndWaitInterceptor

2012-05-14 Thread wild_oscar
Hi, I've got the exact same problem as this user. Injecting either request or session scoped beans in an interceptor yields the error "org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scopedTarget.diagnosticContext': Scope 'session' is not active for the cur

Re: using struts2 i want to upload image but nullpointerexception occur

2012-04-23 Thread Maurizio Cucchiara
I'm pretty sure that logoName is always null in the following code line. File(filePath, imageDetailBean.getLogoName()); According with the docs [1], you should change your setter from setLogoName to set setLogoFileName [1] http://struts.apache.org/2.x/docs/file-upload.html Twitter     :http://w

Re: using struts2 i want to upload image but nullpointerexception occur

2012-04-23 Thread Dave Newton
What does your debugger tell you is null? On Mon, Apr 23, 2012 at 10:32 AM, rahul bhalla wrote: > Hello Every one > I m new Struts 2 and i m trying to upload a image on server with the help > of struts 2 but i was unable > to do that i m pasting my co

Re: Using HashMap in selectbox

2012-03-28 Thread Steven Yang
i think you can turn the map to a Set> then use it as listKey as "getKey()" or "key" and listValue as "getValue()" or "value" On Wed, Mar 28, 2012 at 6:16 PM, Rakeshkumar Parmar < rakeshkumar_par...@persistent.co.in> wrote: > I think it requires list. So you can get values from hashmap using > va

RE: Using HashMap in selectbox

2012-03-28 Thread Rakeshkumar Parmar
I think it requires list. So you can get values from hashmap using values() method.then apply person.name. Regards, Rakesh -Original Message- From: Shrinivas Parashar [mailto:shrinivas_paras...@symantec.com] Sent: Wednesday, March 28, 2012 3:44 PM To: Struts Users Mailing List Subject:

RE: Using Spring parentContext to inject common dependencies is injecting dont expected values

2012-03-19 Thread Puneet Babbar 2
Hey Ivan, With my limited knowledge about spring and struts integration - The framework enables "autowiring" by default. (Autowiring means to look for objects defined in Spring with the same name as your object property). To change the wiring mode, modify thespring.autowire property. struts.obj

Re: Using Spring parentContext to inject common dependencies is injecting dont expected values

2012-03-19 Thread Eric Lentz
> As i have read, struts only works with autowired context, dont know why but it's ok. I'm not able to take time to read and understand your whole question, but this premise, upon which your question appears to be built, is incorrect. I use Spring and Struts 2 together, all of the time, and I n

Re: using RedirectMessageInterceptor with actionErrors

2012-03-05 Thread Dave Newton
Define "not firing", are you heeding the advice given regarding the "workflow" interceptor? Dave On Mon, Mar 5, 2012 at 11:08 AM, jkida wrote: > I have a question that I was hoping someone could confirm to make sure I > really do understand whats going on. > > I am using a RedirectMessageInterc

Re: using ajax to populate select box

2011-12-30 Thread raj.prasad1224
Wherever that trucklist.jsp wants to append in the index.jsp page - Thanks & Regards, Rajendra Prasad Royal, Cognizant Technology Solutions. India -- View this message in context: http://struts.1045723.n5.nabble.com/using-ajax-to-populate-select-box-tp5109350p5110632.html Sent from the Struts

Re: using ajax to populate select box

2011-12-30 Thread raj.prasad1224
where ever you want to display that embedded page.. On Fri, Dec 30, 2011 at 6:38 PM, sunitha [via Struts] < ml-node+s1045723n5109977...@n5.nabble.com> wrote: > hi > can you please tell me where to give > > > Regards, > Sunitha > > -- > If you reply to this email, you

Re: using ajax to populate select box

2011-12-30 Thread raj.prasad1224
Hi The value for the Truck can't store in Value Stack,because you are appending the output of the other page in the index.jsp.. But you are not including the source code of that page into index.jsp. The other alternative for your problem is that you can make use of And even you c

Re: using property/constant placeholder in struts config file

2011-12-19 Thread Greg Lindholm
You could also define a global result for success: /templates/application/applicationframe.jsp On Mon, Dec 19, 2011 at 1:44 AM, aum strut wrote: > Thanks Łukasz, that's a perfect approach > > 2011/12/18 Łukasz Lenart > >> Instead hardcoded result you can use expression >> >> >>     ${acti

Re: using property/constant placeholder in struts config file

2011-12-18 Thread aum strut
Thanks Łukasz, that's a perfect approach 2011/12/18 Łukasz Lenart > Instead hardcoded result you can use expression > > > ${actionFrame} > > > And create a BaseAction (as a base action for all your actions) with > getActionFrame() which will return > "/templates/application/applicationfram

Re: using property/constant placeholder in struts config file

2011-12-18 Thread Łukasz Lenart
Instead hardcoded result you can use expression ${actionFrame} And create a BaseAction (as a base action for all your actions) with getActionFrame() which will return "/templates/application/applicationframe.jsp" or whatever your want ;-) Regards -- Łukasz + 48 606 323 122 http://www.len

Re: using xwork validator programatically?

2011-12-01 Thread Josep García
Regarding: 2011/12/1 Josep García > > In order to validate dynamic form input fields (based on freemarker's > ability to render input fields from xml tree), I've also had to code my own > field validator, because my action does not have getter/setter for the > dynamic fields. > > In my derived

Re: using xwork validator programatically?

2011-12-01 Thread Josep García
JIRA created: https://issues.apache.org/jira/browse/WW-3715 2011/12/1 Łukasz Lenart > 2011/12/1 Josep García > > > Basically, validatorKey build from clazz AND context. > > > > final String validatorKey = buildValidatorKey(clazz, context); > > > > I enclose a patch, with changes rela

Re: using xwork validator programatically?

2011-12-01 Thread Łukasz Lenart
2011/12/1 Josep García > Basically, validatorKey build from clazz AND context. > > final String validatorKey = buildValidatorKey(clazz, context); > > I enclose a patch, with changes relative to xwork-core-2.1.6. > > > In order to validate dynamic form input fields (based on freemarker's

Re: using xwork validator programatically?

2011-12-01 Thread Josep García
Basically, validatorKey build from clazz AND context. final String validatorKey = buildValidatorKey(clazz, context); I enclose a patch, with changes relative to xwork-core-2.1.6. In order to validate dynamic form input fields (based on freemarker's ability to render input fields from x

Re: using xwork validator programatically?

2011-11-30 Thread Łukasz Lenart
2011/11/30 Josep García > This way, it works, but the downside: 149 line source file to work around > the problem. > Could you prepare a patch and label it with 3.x ? Maybe we'll be able to refactor the manager with your changes Kind regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl

Re: using xwork validator programatically?

2011-11-30 Thread Łukasz Lenart
2011/11/30 Josep García : > If I pass in a dynamic context name, like in validatorManager.validate(this, > "my-validation"), the AnnotationActionValidator calls its method > getValidators: > >     public synchronized List getValidators(Class clazz, String > context, String method) { >     final

Re: using xwork validator programatically?

2011-11-30 Thread Josep García
If I pass in a dynamic context name, like in validatorManager.validate(this, "my-validation"), the AnnotationActionValidator calls its method getValidators: public synchronized List getValidators(Class clazz, String context, String method) { final String validatorKey = buildValidatorKe

Re: using xwork validator programatically?

2011-11-28 Thread Łukasz Lenart
2011/11/28 Josep García : > I have tried this option, not without a few workarounds: I had to add a > param to struts.xml so validation files are loaded during runtime: >     Hmmm that's bad, each time the configs will be reload from the disk and performance of the application will decrease :

Re: using xwork validator programatically?

2011-11-28 Thread Josep García
Thanks for the tip, Łukasz. I have tried this option, not without a few workarounds: I had to add a param to struts.xml so validation files are loaded during runtime: I have arrived to a leve in which I can call, from my Action: validatorManager.validate(this, "my-validation");

Re: using xwork validator programatically?

2011-11-18 Thread Łukasz Lenart
You can try to obtain ActionValidatorManager instance (@Inject in to an action) and try to use one of its methods. Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ 2011/11/16 Josep García : > Is there any documentation on how

Re: Using tag

2011-09-23 Thread Carl Ballantyne
Hey Anjib, 1 - Check out the tablib docco ( http://struts.apache.org/2.x/docs/select.html). For example with html:select you could use listKey and listValue. Should be something similar for html:options. I always use html:select though as much less code for what I need. 2 - Have your action implem

Re: Using s:actionerror

2011-08-10 Thread Christian Grobmeier
Hello Maurizio, thanks for your kind help. But it was all my fault. I used validation annotations for fields but missed the fact I need instead of . Now the difference is clear and everything works as expected. Sorry for the noise :-) Cheers, Christian On Tue, Aug 9, 2011 at 5:35 PM, Maurizio C

Re: Using s:actionerror

2011-08-09 Thread Maurizio Cucchiara
Hi Christian, I'm pretty sure that Dave understood "simple", when you talked about "plain" theme. A part this, It should be work as you expected. Can you send further details? like action configuration, result... etc Maurizio Cucchiara On 9 August 2011 17:07, Christian Grobmeier wrote: > On Tue

Re: Using s:actionerror

2011-08-09 Thread Christian Grobmeier
Of course, I should use when i try to print field errors. Btw, actionerror is doing stuff in simple theme, like field error does too. I have finally digged the code Cheers + Thanks! On Tue, Aug 9, 2011 at 5:07 PM, Christian Grobmeier wrote: > On Tue, Aug 9, 2011 at 4:23 PM, Dave Newton wrote:

Re: Using s:actionerror

2011-08-09 Thread Christian Grobmeier
On Tue, Aug 9, 2011 at 4:23 PM, Dave Newton wrote: > On Tue, Aug 9, 2011 at 10:20 AM, Christian Grobmeier wrote: >> Shouldn't at least the message text come out of it? > > No, the plain theme doesn't do much for you. Just to make sure.. I am using "simple" theme, i mixed up the name. Guess you me

Re: Using s:actionerror

2011-08-09 Thread Dave Newton
On Tue, Aug 9, 2011 at 10:20 AM, Christian Grobmeier wrote: > Shouldn't at least the message text come out of it? No, the plain theme doesn't do much for you. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For

Re: Using s:actionerror

2011-08-09 Thread Christian Grobmeier
Shouldn't at least the message text come out of it? On Tue, Aug 9, 2011 at 4:16 PM, Dave Newton wrote: > On Tue, Aug 9, 2011 at 10:14 AM, Christian Grobmeier wrote: >> Is it probably related when i switched to the plain theme? > > Yes; the "plain" templates don't do much for you. > > Dave > > --

Re: Using s:actionerror

2011-08-09 Thread Dave Newton
On Tue, Aug 9, 2011 at 10:14 AM, Christian Grobmeier wrote: > Is it probably related when i switched to the plain theme? Yes; the "plain" templates don't do much for you. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.ap

Re: Using string literals or references to objects in @s.url?

2011-07-12 Thread Dave Newton
On Tuesday, July 12, 2011, wrote: > Which of these is more correct when using Struts2 freemarker tag dynamic > attributes for @s.url: > >        <@s.url action="viewitem" itemid="${item.itemid?c}"  /> > or >        <@s.url action="viewitem" itemid=item.itemid /> > > I've been favoring the seco

[OT] Re: Using Display Tag library

2011-07-11 Thread Dave Newton
On Mon, Jul 11, 2011 at 8:34 AM, JavaNoobie87 wrote: > The thing is I'm  NOT using struts 2 here , just basic jsp,javabeans and > servlets .(Its a sort of demo project!). Well, this is a Struts mailing list. > As of now my DAO fetches the result according to this query How the data is retrieved

Re: Using Display Tag library

2011-07-11 Thread JavaNoobie87
Hey Eric, thanks for replying! The thing is I'm NOT using struts 2 here , just basic jsp,javabeans and servlets .(Its a sort of demo project!). As of now my DAO fetches the result according to this query if (con != null){ System.out.println("Connecte

Re: Using Display Tag library

2011-07-11 Thread Eric Lentz
> all samples of the displaytag library that I have come across , >involve storing the entire resultset from the query in the session Really? I use displaytag all the time through the equivalent of request scope. Just pass it a list in the same way you would use a Struts2 select list (http://str

[OT] RE: Using Strut in Desktop Application

2011-04-20 Thread Dave Newton
ail. > > > > > Keenly waiting for your reply. > > Regards, > > Alok > > > > > From: Dave Newton-6 [via Struts] > [mailto:ml-node+4315353-1426382771-199...@n5.nabble.com] > > Sent: Wednesday, April 20, 2011 3:16 PM > To: Singh, Alok (Cognizant) > Subje

RE: Using Strut in Desktop Application

2011-04-20 Thread Alok
(Cognizant) Subject: RE: Using Strut in Desktop Application Why a "desktop" app? And even if you're dead-set on that, why not run an embedded server? Sonar is a web app. Dave On Apr 20, 2011 2:38 AM, "Alok" <[hidden email]> wrote: > > I am trying t

RE: Using Strut in Desktop Application

2011-04-20 Thread Dave Newton
application? > > > > > > > > > > > Regards, > > Thanks in advance, > > Alok > > > > > > > > > > > From: akinsgre [via Struts] > [mailto:ml-node+4313174-1865581785-199...@n5.nabble.com] > > Sent: Tuesday, April 19,

RE: Using Strut in Desktop Application

2011-04-19 Thread Alok
advance, Alok From: akinsgre [via Struts] [mailto:ml-node+4313174-1865581785-199...@n5.nabble.com] Sent: Tuesday, April 19, 2011 6:17 PM To: Singh, Alok (Cognizant) Subject: Re: Using Strut in Desktop Application On Tue, Apr 19, 2011 at 8:40 AM, Alok <[hidden email]> wrote:

RE: Using Strut in Desktop Application

2011-04-19 Thread Alok
advance, Alok From: Mohamed SIDI [via Struts] [mailto:ml-node+4313176-1022600130-199...@n5.nabble.com] Sent: Tuesday, April 19, 2011 6:17 PM To: Singh, Alok (Cognizant) Subject: Re: Using Strut in Desktop Application what do you mean by Struts frame ? 2011/4/19 Alok <[hidden em

RE: Using Strut in Desktop Application

2011-04-19 Thread Alok
advance, Alok From: Dave Newton-6 [via Struts] [mailto:ml-node+4313250-2125301431-199...@n5.nabble.com] Sent: Tuesday, April 19, 2011 6:53 PM To: Singh, Alok (Cognizant) Subject: Re: Using Strut in Desktop Application > I am working on a Desktop application

Re: Using Strut in Desktop Application

2011-04-19 Thread Dave Newton
> I am working on a Desktop application. I would like > to use [the] Struts frame[work] in it. Question one: why? > Is it possible? Sure, in a variety of ways. Most of them don't seem like a good idea. > Please explain me if yes , how to implement. Struts 1 or Struts 2? If Struts 1, I really w

Re: Using Strut in Desktop Application

2011-04-19 Thread Mohamed SIDI
what do you mean by Struts frame ? 2011/4/19 Alok > Hi Team, >I am working on a Desktop application. I would like to use Strut > frame in it. Is it possible? > > Please explain me if yes , how to implement . If not why ? > > Thanks in advance, > Regards, > Alok > > -- > View this mes

Re: Using Strut in Desktop Application

2011-04-19 Thread Greg Akins
On Tue, Apr 19, 2011 at 8:40 AM, Alok wrote: > Hi Team, >I am working on a Desktop application. I would like to use Strut > frame in it. Is it possible? > > I noticed you also posted this question, regarding Maven, to the Maven list. Struts is a web framework afterall. Are you hopin

Re: using select while migrating struts 1 to Struts 2

2011-02-14 Thread Dave Newton
> Is it possible to use old (Struts 1) select with struts 2. Short answer; not really. > In case there are local list in JSP page in struts 1 which uses "option" to > display the list dynamically it has to be written in action class in struts > 2. > > The code for the current approach is below: >

Re: using a custom Converter for elements of a Collection

2011-01-13 Thread Scott Koenig
I was able to find a solution by creating a second converter, PlaylistsConverter, which returns a List of Playlists instead: public Object convertFromString(Map arg0, String[] arg1, Class arg2) { if (arg1.length > 0 && arg1[0].trim() != "") { List playlists = new ArrayList();

Re: using a custom Converter for elements of a Collection

2011-01-12 Thread stanlick
Can we see your related files? On Wed, Jan 12, 2011 at 3:43 PM, Scott Koenig wrote: > Hello, > > In my company's internal CMS, we are implementing two new asset types, > Videos and Playlists (collections of Videos). In the Video UI, the user > designates which Playlists are to be associated with

Re: Using validate.xml and validate()

2010-12-28 Thread Paul Benedict
Yes. You need to extend ValidatorForm (or ValidatorActionForm) to override the validate() method. On Tue, Dec 28, 2010 at 1:55 PM, Anjib Mulepati wrote: > So my form should extends from ValidatorForm? > Anjib > > On 12/28/2010 2:50 PM, Paul Benedict wrote: > >> Option 2 is fine. >> >> On Tue, De

Re: Using validate.xml and validate()

2010-12-28 Thread Anjib Mulepati
So my form should extends from ValidatorForm? Anjib On 12/28/2010 2:50 PM, Paul Benedict wrote: Option 2 is fine. On Tue, Dec 28, 2010 at 1:45 PM, Anjib Mulepati wrote: 1. Complex in the sense my own custom validation for multiple emails. 2. So do you mean i can go with Option 2? Anjib

Re: Using validate.xml and validate()

2010-12-28 Thread Paul Benedict
Option 2 is fine. On Tue, Dec 28, 2010 at 1:45 PM, Anjib Mulepati wrote: > 1. Complex in the sense my own custom validation for multiple emails. > 2. So do you mean i can go with Option 2? > > Anjib > >

Re: Using validate.xml and validate()

2010-12-28 Thread Anjib Mulepati
1. Complex in the sense my own custom validation for multiple emails. 2. So do you mean i can go with Option 2? Anjib On 12/28/2010 2:38 PM, Paul Benedict wrote: On Tue, Dec 28, 2010 at 12:43 PM, Anjib Mulepatiwrote: Ok to make my self clear I have three field to check name,email and message

  1   2   3   4   5   6   7   8   9   >