Re: Skip parsing of property for json plugin

2014-06-03 Thread Lukasz Lenart
Hm... I don't see any option for now... extending annotation is a nice thing, can you register a ticket in JIRA? 2014-05-30 17:53 GMT+02:00 Dimitris Mouchritsas : > Hi all, > > I'm using struts2-core 2.3.16.3 along with struts2-json-plugin and I have > the following problem: > > I have an entity

Re: Required Info on Upgrading Struts 1.2.x to Struts 2.3.x

2014-06-03 Thread Janardhana Pagadala
Hello Lukas Thanks for your response but the issue is not with tag. As mentioned in my question, I would like use custom tag , etc. in action in addition to the tag. Hope the questions makes sense now. Please suggest if there is a possibility to implement such feature in Struts 2.3.x Thanks i

Re: Required Info on Upgrading Struts 1.2.x to Struts 2.3.x

2014-06-03 Thread Lukasz Lenart
I have no idea if it is possible or not, but you can use like this ${['key1','key2','key3']} 2014-06-03 11:42 GMT+02:00 Janardhana Pagadala : > Hello Lukas > > Thanks for your response but the issue is not with tag. As > mentioned in my question, I would like use custom tag , etc. > in action

Do properties written in an external file need ApplicationAware ?

2014-06-03 Thread Chris
Hello,I would like to use properties (*) written in an  external file, and read them only once. Do I have to use ApplicationAware, or something else. Whatever, could you give examples please ? (*) some properties like JDBC or LDAP connection's parameters. Thanks Chris

Re: Do properties written in an external file need ApplicationAware ?

2014-06-03 Thread Antonios Gkogkakis
Hi Chris, I'm not sure if struts has a feature that would read property files and put them in the Application scope for you automatically. You can have a look at http://commons.apache.org/proper/commons-configuration/userguide/user_guide.html which will allow you to read the properties file. Then

Re: Required Info on Upgrading Struts 1.2.x to Struts 2.3.x

2014-06-03 Thread Paul Benedict
Struts 1 uses a DTD which doesn't allow custom elements in the configuration... or does it? I have never seen this before. Cheers, Paul On Tue, Jun 3, 2014 at 4:57 AM, Lukasz Lenart wrote: > I have no idea if it is possible or not, but you can use like this > > ${['key1','key2','key3']} > >

Struts2 iterator twice for select tag

2014-06-03 Thread Matt Williams
I am using struts 2.1.8.  I am extending the "org.apache.struts2.components.Select" tag and writing my own "select.ftl" (freemarker template). I need to iterate over the parameter "parameters.list" twice.  Example: <@s.iterator value="parameters.list">    loop1 <@s.iterator value="parame

Re: Struts2 iterator twice for select tag

2014-06-03 Thread Paul Benedict
Maybe you found a bug. Hopefully Struts cleans up its iterator when the tag finishes. Maybe you can look into the source code to find out for us. Cheers, Paul On Tue, Jun 3, 2014 at 12:17 PM, Matt Williams < mattwms1998...@yahoo.com.invalid> wrote: > > I am using struts 2.1.8. I am extending

Struts 2 get custom action anotation in interceptors

2014-06-03 Thread Alireza Fattahi
Consider below action class with three action mappings. Two of them are annotated with a custom annotation `@AjaxAction`     public class MyAction extends ActionSupport{            @Action("action1")       @AjaxAction  //My custom anotation       public String action1(){           }             

Re: Struts 2 get custom action anotation in interceptors

2014-06-03 Thread Dave Newton
Just get the action and check for the annotation. On Jun 3, 2014 1:41 PM, "Alireza Fattahi" wrote: > Consider below action class with three action mappings. Two of them are > annotated with a custom annotation `@AjaxAction` > > public class MyAction extends ActionSupport{ > > @Action("

Re: Multiple parameter names

2014-06-03 Thread Mael Le Guével
Thanks Marc, I think it's the simplest solution. 2014-05-30 18:36 GMT+02:00 Marc Michele : > This is simple: > > public class MyAction extends ActionSupport { > private String myParam; > > public String getMyParam() { > return myParam; > } > > public void setMyParam(String

How to Use JavaScript in Struts2

2014-06-03 Thread NIJO GEORGE
Hi, I'm developing an an application to conduct Online Examinations. Lots of table displays are used in every module. for example Questions, Exam, Results, etc, I have a form which saves a question to db. My Scenario is Following I Have three types of Questions 1. Single choice 2. Mutiple Choice 3