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

2014-06-03 Thread Lukasz Lenart
2014-06-03 4:09 GMT+02:00 Janardhana Pagadala jrpagad...@gmail.com: We would like to implement similar functionality in Struts 2.3.x to match with that of above: action name=index1 class=com.test.struts2.action.MyAction tag1 key1=value1 key2=value2 key3=value3 tag2

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 dimitris.mouchrit...@eurodyn.com: Hi all, I'm using struts2-core 2.3.16.3 along with struts2-json-plugin and I have the following

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 param tag. As mentioned in my question, I would like use custom tag tag1, tag2 etc. in action in addition to the param tag. Hope the questions makes sense now. Please suggest if there is a possibility to implement such feature in

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 param like this param name=key1${['key1','key2','key3']}/param 2014-06-03 11:42 GMT+02:00 Janardhana Pagadala jrpagad...@gmail.com: Hello Lukas Thanks for your response but the issue is not with param tag. As mentioned in my question,

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.

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 lukaszlen...@apache.org wrote: I have no idea if it is possible or not, but you can use param like this

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    divloop1/div /@s.iterator @s.iterator

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 the

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 afatt...@yahoo.com.invalid wrote: Consider below action class with three action mappings. Two of them are annotated with a custom annotation `@AjaxAction` public class MyAction extends

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 develo...@tiv-consulting.de: This is simple: public class MyAction extends ActionSupport { private String myParam; public String getMyParam() { return myParam; } public void

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