Re: convention plugin Issue

2019-12-30 Thread zahid
lo-world] and namespace []. Struts in that case I believe takes the first encountered just like when using a struts.xml file. I don't use the Convention Plugin but I would suggest a solution might be to use the @Namespace annotation on the class or package. That way you would be able to specify a

Re: convention plugin Issue

2019-12-24 Thread Zahid Rahman
encountered just like when using > a struts.xml file. I don't use the Convention Plugin but I would suggest > a solution might be to use the @Namespace annotation on the class or > package. That way you would be able to specify a unique SCOPE when > calling the action and get the

Re: convention plugin Issue

2019-12-19 Thread John Bush
action name [hello-world] and namespace []. Struts in that case I believe takes the first encountered just like when using a struts.xml file. I don't use the Convention Plugin but I would suggest a solution might be to use the @Namespace annotation on the class or package. That way you would be

Re: convention plugin Issue

2019-12-18 Thread Zahid Rahman
to register a ticket in JIRA, but this is something low > > priority rather. > > > > > > Regards > > Lukasz > > > > sob., 7 gru 2019 o 12:58 Zahid Rahman napisał(a): > >> I think the convention plugin should perform a validation a check for > t

Re: convention plugin Issue

2019-12-18 Thread John Bush
priority rather. Regards Lukasz sob., 7 gru 2019 o 12:58 Zahid Rahman napisał(a): I think the convention plugin should perform a validation a check for the presence of multiple same class names within different package names. That ambiguity has been shown by my test. After all it is quite feas

Re: convention plugin Issue

2019-12-18 Thread Lukasz Lenart
Feel free to register a ticket in JIRA, but this is something low priority rather. Regards Lukasz sob., 7 gru 2019 o 12:58 Zahid Rahman napisał(a): > > I think the convention plugin should perform a validation a check for the > presence of multiple same class names within different

Re: convention plugin Issue

2019-12-07 Thread Zahid Rahman
I think the convention plugin should perform a validation a check for the presence of multiple same class names within different package names. That ambiguity has been shown by my test. After all it is quite feasible and likely that we could have multiple same class names from different package

RE: convention plugin Issue

2019-12-07 Thread Yasser Zamani
Hi, I guess that the behavior of defining actions with same name and namespace is undefined. I think it's not an issue because Convention Plugin has no avenue to distinguish between them when you request http://localhost:8080/hello-world. Regards. >-Original Message- >

convention plugin Issue

2019-12-05 Thread Zahid Rahman
Hi, On this page https://struts.apache.org/plugins/convention/#setup if I have com.example.actions.HelloWorld.java and uk.mypackage.actions.HelloWorld.java with url http://localhost:8080/hello-world then uk.mypackage.actions.HelloWorld.java execute is run. If I have uk.example.actions.HelloWo

Re: Spring Boot + Struts2 Convention Plugin Not Working

2019-03-12 Thread Lukasz Lenart
Struts2, and the convention plugin is not working. > That, is the request URL paths are not being automatically mapped to their > corresponding action classes at all. > > Spring Boot: 1.5.19.RELEASE > Struts2: 2.5.20 > Java VM JDK 1.8 > Maven > > I have the struts2-con

Spring Boot + Struts2 Convention Plugin Not Working

2019-03-11 Thread Rubens Gomes
I using Spring Boot + Struts2, and the convention plugin is not working. That, is the request URL paths are not being automatically mapped to their corresponding action classes at all. Spring Boot: 1.5.19.RELEASE Struts2: 2.5.20 Java VM JDK 1.8 Maven I have the struts2-convention-plugin in

Re: strange error when migrating to convention plugin - Struts 2.5.20

2019-01-28 Thread Lukasz Lenart
sob., 26 sty 2019 o 05:13 developer researcher napisał(a): > > I am doing migration tests to convention plugin using a project generated > with the archetype "struts2-archetype-blank" > > After migrating the actions from struts.xml using the @Action annotation, I >

Re: Migration struts.xml to Convention Plugin - Struts 2.5.20

2019-01-28 Thread Lukasz Lenart
notation be for the default action? @Action("defaultAction") > *2. Global Exception Handling* > > The documentation of convention plugin include exception mapping for action > level and class level, but How should global exceptions and results be > configured? You can on

strange error when migrating to convention plugin - Struts 2.5.20

2019-01-25 Thread developer researcher
I am doing migration tests to convention plugin using a project generated with the archetype "struts2-archetype-blank" After migrating the actions from struts.xml using the @Action annotation, I could observe the following: The line (in a JSP): " rel="stylesheet" type=&

Migration struts.xml to Convention Plugin - Struts 2.5.20

2019-01-25 Thread developer researcher
Hello, I want to migrate a web application based on struts.xml to use annotations, but I have not found documentation and/or examples for the next cases: *1. * How should be the @Action (?) Annotation be for the default action? *2. Global Exception Handling* The documentation of convention

Re: convention plugin struts.xml interceptors

2016-11-05 Thread ronald.a.ander...@gmail.com
On 2016-11-01 12:20 (-0400), Lukasz Lenart wrote: > 2016-11-01 4:00 GMT+01:00 Ronald Andersen : > > Hi Lakasz > > > > Below is the struts.xml and LoginAction (for reference). Using default for > > package name in struts.xml: > > > > > > > > > "-//Apache Software Foundation//DTD Struts Config

Re: convention plugin struts.xml interceptors

2016-11-05 Thread ronald.a.ander...@gmail.com
On 2016-11-01 15:17 (-0400), Ken McWilliams wrote: > Am I wrong in assuming that this new package is supposed to be the default? > If so it should extend conventions-default and there is some constant that > should be set such that conventions uses this package by default. > > Also, perhaps of

Re: convention plugin struts.xml interceptors

2016-11-02 Thread ronald.a.ander...@gmail.com
you have almost the same setup > > > https://github.com/apache/struts-examples/tree/master/unknown-handler > > > > > > > > > Regards > > > -- > > > Łukasz > > > + 48 606 323 122 http://www.lenart.org.pl/ > > > > > > ------

Re: convention plugin struts.xml interceptors

2016-11-02 Thread ronald.a.ander...@gmail.com
On 2016-11-01 12:20 (-0400), Lukasz Lenart wrote: > 2016-11-01 4:00 GMT+01:00 Ronald Andersen : > > Hi Lakasz > > > > Below is the struts.xml and LoginAction (for reference). Using default for > > package name in struts.xml: > > > > > > > > > "-//Apache Software Foundation//DTD Struts Config

Re: convention plugin struts.xml interceptors

2016-11-01 Thread Ken McWilliams
Am I wrong in assuming that this new package is supposed to be the default? If so it should extend conventions-default and there is some constant that should be set such that conventions uses this package by default. Also, perhaps of greater importance: If conventions was working before then the r

Re: convention plugin struts.xml interceptors

2016-11-01 Thread ronald.a.ander...@gmail.com
On 2016-11-01 12:20 (-0400), Lukasz Lenart wrote: > 2016-11-01 4:00 GMT+01:00 Ronald Andersen : > > Hi Lakasz > > > > Below is the struts.xml and LoginAction (for reference). Using default for > > package name in struts.xml: > > > > > > > > > "-//Apache Software Foundation//DTD Struts Config

Re: convention plugin struts.xml interceptors

2016-11-01 Thread Lukasz Lenart
2016-11-01 4:00 GMT+01:00 Ronald Andersen : > Hi Lakasz > > Below is the struts.xml and LoginAction (for reference). Using default for > package name in struts.xml: > > > > "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN" > "http://struts.apache.org/dtds/struts-2.3.dtd";> > >

Re: convention plugin struts.xml interceptors

2016-11-01 Thread ronald.a.ander...@gmail.com
va.struts.LoginAction and result success > > No result defined for action net.codejava.struts.LoginAction and result > > success > > > > How can the struts.xml be configured to ignore the action or how can the > > convention plugin override the struts.xml? Do not

Re: convention plugin struts.xml interceptors

2016-11-01 Thread ronald.a.ander...@gmail.com
On 2016-10-30 18:53 (-0400), Martin Gainty wrote: > > > > > From: ronald.a.ander...@gmail.com > Sent: Sunday, October 30, 2016 1:59 PM > To: user@struts.apache.org > Subject: convention plugin struts.xml interceptors > >

Re: convention plugin struts.xml interceptors

2016-10-31 Thread Ronald Andersen
No result defined > for action net.codejava.struts.LoginAction and result success > > No result defined for action net.codejava.struts.LoginAction and result > success > > > > How can the struts.xml be configured to ignore the action or how can the > convention plugin over

Re: convention plugin struts.xml interceptors

2016-10-31 Thread Ronald Andersen
y wrote: > > > > > From: ronald.a.ander...@gmail.com > Sent: Sunday, October 30, 2016 1:59 PM > To: user@struts.apache.org > Subject: convention plugin struts.xml interceptors > > My actions are working fine by following the convention ru

Re: convention plugin struts.xml interceptors

2016-10-31 Thread Lukasz Lenart
ction and result > success > > How can the struts.xml be configured to ignore the action or how can the > convention plugin override the struts.xml? Do not want to add the LoginAction > to the struts.xml Can you post content of your struts.xml? I think you have defined a main package

Re: convention plugin struts.xml interceptors

2016-10-30 Thread Martin Gainty
From: ronald.a.ander...@gmail.com Sent: Sunday, October 30, 2016 1:59 PM To: user@struts.apache.org Subject: convention plugin struts.xml interceptors My actions are working fine by following the convention rules - no struts.xml required; I need to configure

convention plugin struts.xml interceptors

2016-10-30 Thread ronald.a.ander...@gmail.com
convention plugin override the struts.xml? Do not want to add the LoginAction to the struts.xml Struts2 version->struts2-core-2.3.15.1 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: u

Re: Convention plugin

2016-03-25 Thread Lukasz Lenart
i don’t know what the framework will do by > default. > I read the convention plugin documentation i understood the next: > > action url -> hello > action class -> */actions/HelloAction.class > (result=input), response -> /webapp/content/hello-input.jsp > > But

Re: Convention plugin

2016-03-25 Thread José Antonio Delgado Trujillo
is redirect to /webapp/content/index.jsp (but i don’t know why). In hello-success.jsp and register-success.jsp they are URL action to index. There isn’t IndexAction class so i don’t know what the framework will do by default. I read the convention plugin documentation i understood the next: actio

Re: Convention plugin

2016-03-24 Thread Lukasz Lenart
2016-03-24 22:09 GMT+01:00 José Antonio Delgado Trujillo : > I was trying with the convention plugin and the example in the gitHub. > Now i have a problem with the url to return to index. > There is no index action so i don’t know how to fix the problem without > change the package of

Convention plugin

2016-03-24 Thread José Antonio Delgado Trujillo
I was trying with the convention plugin and the example in the gitHub. My actions class are in the package pfc.struts2.annotations.actions so the namespaces of the URL is /annotations/actions. I put the files jsp in /webapp/content/annotations/actions except the second index.jsp which is in

Re: How do configure struts convention plugin with struts-spring plugin with Action class mapped with annotations

2015-03-03 Thread bavon mike
; Even on disabling CDI and using Spring, Ajax cant locate the action > class. > > > > Mapping the action class in struts.xml and bean in applicationContext.xml > > works fine, problems comes when i want to use annotation( convention > > plugin) for my action class rather than usi

Re: How do configure struts convention plugin with struts-spring plugin with Action class mapped with annotations

2015-03-02 Thread Lukasz Lenart
2015-03-02 10:44 GMT+01:00 bavon mike : > Even on disabling CDI and using Spring, Ajax cant locate the action class. > > Mapping the action class in struts.xml and bean in applicationContext.xml > works fine, problems comes when i want to use annotation( convention > plugin) for m

Re: How do configure struts convention plugin with struts-spring plugin with Action class mapped with annotations

2015-03-02 Thread bavon mike
Even on disabling CDI and using Spring, Ajax cant locate the action class. Mapping the action class in struts.xml and bean in applicationContext.xml works fine, problems comes when i want to use annotation( convention plugin) for my action class rather than using xml. On Mon, Mar 2, 2015 at 12

Re: How do configure struts convention plugin with struts-spring plugin with Action class mapped with annotations

2015-03-02 Thread Lukasz Lenart
You are mixing CDI and Spring - you should use just one DI 2015-03-02 7:32 GMT+01:00 bavon mike : > I am trying to configure spring plugin with strut 2 application, which is > already running with convention plugin, so am using annotations. Am using > ExtJs for my form submission

Re: How do configure struts convention plugin with struts-spring plugin with Action class mapped with annotations

2015-03-02 Thread bavon mike
.apache.org/confluence/display/WW/Spring+Plugin > > > # > web: http://www.jgeppert.com > twitter: http://twitter.com/jogep > > > 2015-03-02 7:32 GMT+01:00 bavon mike : > > > I am trying to configure spring plugin with strut

Re: How do configure struts convention plugin with struts-spring plugin with Action class mapped with annotations

2015-03-01 Thread Johannes Geppert
://twitter.com/jogep 2015-03-02 7:32 GMT+01:00 bavon mike : > I am trying to configure spring plugin with strut 2 application, which is > already running with convention plugin, so am using annotations. Am using > ExtJs for my form submission which was initially working well until i >

How do configure struts convention plugin with struts-spring plugin with Action class mapped with annotations

2015-03-01 Thread bavon mike
I am trying to configure spring plugin with strut 2 application, which is already running with convention plugin, so am using annotations. Am using ExtJs for my form submission which was initially working well until i introduced the spring plugin, now the the ajax request cannot locate the actions

Re: Struts2 configuration (struts.xml) and Convention Plugin not compatible with Java 8?

2014-06-18 Thread Paweł Wielgus
t;> at >>>>> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4076) >>>>> at >>>>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4730) >>>>> at org.apache.catalina.cor

Re: Struts2 configuration (struts.xml) and Convention Plugin not compatible with Java 8?

2014-06-18 Thread Lukasz Lenart
rdContext.java:4730) >>>> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) >>>> at org.apache.catalina.core.StandardHost.start(StandardHost.java:822) >>>> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) >>>> at org.apa

Re: Struts2 configuration (struts.xml) and Convention Plugin not compatible with Java 8?

2014-06-18 Thread Lukasz Lenart
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) >>> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) >>> at org.apache.catalina.core.StandardService.start(StandardService.java:525) >>> at org.apache.catalina.co

Re: Struts2 configuration (struts.xml) and Convention Plugin not compatible with Java 8?

2014-06-18 Thread Paweł Wielgus
t(StandardServer.java:754) >> at org.apache.catalina.startup.Catalina.start(Catalina.java:595) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) >> at >> sun.

Re: Struts2 configuration (struts.xml) and Convention Plugin not compatible with Java 8?

2014-06-18 Thread Lukasz Lenart
AccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:483) > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) > at

Struts2 configuration (struts.xml) and Convention Plugin not compatible with Java 8?

2014-06-18 Thread Paweł Wielgus
) at java.lang.reflect.Method.invoke(Method.java:483) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) [2] - for action found by convention plugin SEVERE: Unable to read class

Re: S2 Convention Plugin broken on Tomcat 8?

2014-03-03 Thread Lukasz Lenart
dkf > > 2014-03-03 0:00 GMT+01:00 Tommy Pham : >> I think the Struts 2.3.16 example REST showcase (struts2-rest-showcase.war) >> also uses convention plugin. I'm having the same exact problem with it on >> Tomcat 8.0.3. >> >> >> On Sun, Mar 2, 2014 at 1

Re: S2 Convention Plugin broken on Tomcat 8?

2014-03-03 Thread Lukasz Lenart
IRA issue and attach sample >>> project? >>> >>> Thanks in advance! >>> >>> 2014-03-02 21:22 GMT+01:00 Tommy Pham : >>> > Hi folks, >>> > >>> > Is anyone having problem getting S2 2.3.16 Convention Plugin to work on >

Re: S2 Convention Plugin broken on Tomcat 8?

2014-03-02 Thread Tommy Pham
I think the Struts 2.3.16 example REST showcase (struts2-rest-showcase.war) also uses convention plugin. I'm having the same exact problem with it on Tomcat 8.0.3. On Sun, Mar 2, 2014 at 1:23 PM, Tommy Pham wrote: > Hi Lukasz, > > Thanks for the prompt reply. Issue WW-4294

Re: S2 Convention Plugin broken on Tomcat 8?

2014-03-02 Thread Tommy Pham
gister a JIRA issue and attach sample > project? > > Thanks in advance! > > 2014-03-02 21:22 GMT+01:00 Tommy Pham : > > Hi folks, > > > > Is anyone having problem getting S2 2.3.16 Convention Plugin to work on > > Tomcat 8.0.3? > > > > I used the tu

Re: S2 Convention Plugin broken on Tomcat 8?

2014-03-02 Thread Lukasz Lenart
Looks like a bug :\ Can you register a JIRA issue and attach sample project? Thanks in advance! 2014-03-02 21:22 GMT+01:00 Tommy Pham : > Hi folks, > > Is anyone having problem getting S2 2.3.16 Convention Plugin to work on > Tomcat 8.0.3? > > I used the tutorial [1] an

S2 Convention Plugin broken on Tomcat 8?

2014-03-02 Thread Tommy Pham
Hi folks, Is anyone having problem getting S2 2.3.16 Convention Plugin to work on Tomcat 8.0.3? I used the tutorial [1] and built the war OK. Deployed on Tomcat 7.0.52 OK. However, I'm getting this error on Tomcat 8.0.3 with the same Oracle/Sun JDK 1.7.0_51 (64 bit): 2014-03-02 12:13:1

Re: StrutsTestCase issues with basic jsp via convention plugin

2014-02-25 Thread Lukasz Lenart
Can you publish the whole project at GitHub instead of the gist? 2014-02-23 18:35 GMT+01:00 John Patrick : > Hi, > > Having some issues around automated testing using struts2-junit-plugin > accessing a jsp via struts2-convention-plugin. > > Basically the following

StrutsTestCase issues with basic jsp via convention plugin

2014-02-23 Thread John Patrick
Hi, Having some issues around automated testing using struts2-junit-plugin accessing a jsp via struts2-convention-plugin. Basically the following two url's; http://struts.apache.org/release/2.3.x/docs/convention-plugin.html http://struts.apache.org/release/2.3.x/docs/struts-2-junit-p

Re: REST Plugin with convention plugin

2013-07-10 Thread Lukasz Lenart
2013/7/10 Alireza Fattahi : > Hi, > > I am trying to use REST Plugin with convention plugin . > > For all REST actions I should extend RestActionMapper, After I extend > RestActionMapper instead of ActionSuppor, the convention plugin those not > find the action any more ! C

REST Plugin with convention plugin

2013-07-10 Thread Alireza Fattahi
Hi, I am trying to use REST Plugin with convention plugin . For all REST actions I should extend RestActionMapper, After I extend RestActionMapper instead of ActionSuppor, the convention plugin those not find the action any more !   ~Regards, ~~Alireza Fattahi

Re: Default action behaviour with convention plugin change in 2.3.12

2013-03-21 Thread Lukasz Lenart
Ok, I have reverted changes to DefaultActionMapper, so the previous logic will work as expected. Thanks Eric for your contribution! Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-un

Re: Default action behaviour with convention plugin change in 2.3.12

2013-03-21 Thread Eric Chatellier
Le 21/03/2013 10:16, Lukasz Lenart a écrit : > Hm... this is strange, could you prepare a small demo app or share > some configuration details? I just attached a maven test project to describe regression to jira ticket: https://issues.apache.org/jira/secure/attachment/12574762/StrutsSample_1.zip w

Re: Default action behaviour with convention plugin change in 2.3.12

2013-03-21 Thread Lukasz Lenart
2013/3/21 Eric Chatellier : > There is maybe a misunderstanding here. > Ticket #WW-3997 is talking about empty action. > > My real problem is that i'm using convention plugin IndexAction. > It was working in 2.3.8, but not anymore in 2.3.12 too. Hm... this is strange, could

Re: Default action behaviour with convention plugin change in 2.3.12

2013-03-21 Thread Eric Chatellier
Le 21/03/2013 07:29, Lukasz Lenart a écrit : > btw. the Convention plugin supports Index action: > http://struts.apache.org/development/2.x/docs/convention-plugin.html#ConventionPlugin-Introduction There is maybe a misunderstanding here. Ticket #WW-3997 is talking about empty action. M

Re: Default action behaviour with convention plugin change in 2.3.12

2013-03-20 Thread Lukasz Lenart
n additional attribute: btw. the Convention plugin supports Index action: http://struts.apache.org/development/2.x/docs/convention-plugin.html#ConventionPlugin-Introduction Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ --

Re: Default action behaviour with convention plugin change in 2.3.12

2013-03-20 Thread Paul Benedict
What I've suggested before -- but haven't done anything about it -- is to allow the struts.xml packages to have an index action. This will execute if the package is specified but no action. This is different than a default action. Paul On Wed, Mar 20, 2013 at 9:02 AM, Dave Newton wrote: > There

Re: Default action behaviour with convention plugin change in 2.3.12

2013-03-20 Thread Dave Newton
There's that filter config solution, but I can't find a good reference to it at the moment. http://stackoverflow.com/questions/8071137/struts-2-execute-action-instead-of-welcome-file/8071249#8071249 Gives the overview, however. Dave On Wed, Mar 20, 2013 at 9:57 AM, Lukasz Lenart wrote: > 201

Re: Default action behaviour with convention plugin change in 2.3.12

2013-03-20 Thread Lukasz Lenart
2013/3/20 Eric Chatellier : > Is there any working solution with 2.3.12 ? > > tried some configurations with > > index > > but doesn't seems to work yet... The problem with is that by Servlet Spec only static resources can be defined as a welcome file, thus leads to solution like: - defin

Re: Default action behaviour with convention plugin change in 2.3.12

2013-03-20 Thread Eric Chatellier
Le 18/03/2013 14:12, Lukasz Lenart a écrit : > > It is related to that issue [1], but I'm still wondering if it is the > correct way to solve it (revert the change) as this prevent properly > handling static resources and you must defined an empty action which > basically is wrong as http server mu

Re: Default action behaviour with convention plugin change in 2.3.12

2013-03-18 Thread Lukasz Lenart
2013/3/18 Eric Chatellier : > I'm trying to update an application using struts with convention > plugin from 2.3.8 to 2.3.12. > > I'm experiencing a change with default action "/" that > was calling "IndexAction#execute()" method in version 2.3.8. >

Default action behaviour with convention plugin change in 2.3.12

2013-03-18 Thread Eric Chatellier
Hi, I'm trying to update an application using struts with convention plugin from 2.3.8 to 2.3.12. I'm experiencing a change with default action "/" that was calling "IndexAction#execute()" method in version 2.3.8. Now, in version 2.3.12, this is resulting in 40

Re: how to write json/xml output using struts 2 and rest + convention plugin

2012-10-08 Thread Jane Wayne
1. looks interesting. could you show an example or do you have one illustrating how to write JSON back? 2. i'm not sure what to do with the online app? On Fri, Oct 5, 2012 at 12:45 PM, Frans Thamura wrote: > hi all esp jane > > let me summarize all our work here. > > 1. S2 REST Plugins > > we mo

Re: how to write json/xml output using struts 2 and rest + convention plugin

2012-10-05 Thread Frans Thamura
hi all esp jane let me summarize all our work here. 1. S2 REST Plugins we modify the default S2 REST Plugin, so we dont need SMD anymore, just use @Action and @Resut with type, and you can get full REST , PUT, GET, DELETE, POST. @Action(name = "/list", method = HttpMethod.GET) -> for REST GET

Re: how to write json/xml output using struts 2 and rest + convention plugin

2012-10-05 Thread Frans Thamura
jane the way our rest model is not using smd which you can get in s2 default rest plugins please visit our s2restplugins.java.net may be this plugins and small wiki can explain more. the category has extended from default persistanc. you must see the spring injection that handle this Frans Tha

Re: how to write json/xml output using struts 2 and rest + convention plugin

2012-10-05 Thread Frans Thamura
may be for full rest showcase you can checkout from our svn in yama.java.net full crud, bootstrap and spring hibernate. coee of our nurdoo.org you can take alook our rest security implementation also there feedback welcome for all Frans Thamura Meruvian On Oct 5, 2012 9:03 PM, "Jane Wayne" wr

Re: how to write json/xml output using struts 2 and rest + convention plugin

2012-10-05 Thread Jane Wayne
frans, i'm looking at http://java.net/projects/nurdoo/sources/nurdoo-web-svn/content/trunk/src/main/java/org/nurdoo/prayers/actions/CategoryAction.java?rev=3. could you please point me specifically to how you guys output JSON/XML back to the client? let me see if i got this right. you guys use

Re: how to write json/xml output using struts 2 and rest + convention plugin

2012-10-05 Thread Jane Wayne
yes, somewhat (not xml, but json). i modified the rest showcase. in particular, i modified, orders-editNew.jsp. i modified the form the look like this: the original line was: i believe the place to return XML/JSON is in the method create(). // POST /orders public HttpHeaders create()

Re: how to write json/xml output using struts 2 and rest + convention plugin

2012-10-05 Thread Frans Thamura
we now use mostly @action and @result as struts.xml replacement. Frans Thamura Meruvian On Oct 5, 2012 7:25 PM, "Lukasz Lenart" wrote: > 2012/10/5 Frans Thamura : > > hi jane > > > > all our apps using s2 with rest and json. > > > > see our example.at www.nurdoo.org > > Yep, exactly, try urls li

Re: how to write json/xml output using struts 2 and rest + convention plugin

2012-10-05 Thread Lukasz Lenart
2012/10/5 Frans Thamura : > hi jane > > all our apps using s2 with rest and json. > > see our example.at www.nurdoo.org Yep, exactly, try urls like below http://www.nurdoo.org/module/prayers http://www.nurdoo.org/module/prayers.json http://www.nurdoo.org/module/prayers.xml Regards -- Łukasz +

Re: how to write json/xml output using struts 2 and rest + convention plugin

2012-10-05 Thread Lukasz Lenart
2012/10/5 Jane Wayne : > not really/entirely what i'm looking for. the struts2-json-plugin > supports json. but what about xml? i need the flexibility to alter > between the two for the client/consumer of the rest services. Did you try to add .xml suffix to request action ? Regards -- Łukasz +

Re: how to write json/xml output using struts 2 and rest + convention plugin

2012-10-05 Thread Frans Thamura
hi jane all our apps using s2 with rest and json. see our example.at www.nurdoo.org source in nurdoo.java.net Frans Thamura Meruvian On Oct 5, 2012 7:11 PM, "Jane Wayne" wrote: > not really/entirely what i'm looking for. the struts2-json-plugin > supports json. but what about xml? i need the

Re: how to write json/xml output using struts 2 and rest + convention plugin

2012-10-05 Thread Jane Wayne
not really/entirely what i'm looking for. the struts2-json-plugin supports json. but what about xml? i need the flexibility to alter between the two for the client/consumer of the rest services. On Thu, Oct 4, 2012 at 7:41 PM, Ken McWilliams wrote: > I'm not familiar with this application but sim

Re: how to write json/xml output using struts 2 and rest + convention plugin

2012-10-04 Thread Ken McWilliams
I'm not familiar with this application but simply look at the documentation for the struts2-json-plugin, you can specify a json result and you can specify include and exclude parameters (so you just return the part(s) of your Action you want). In this way you could define a new map, put a key of "r

how to write json/xml output using struts 2 and rest + convention plugin

2012-10-04 Thread Jane Wayne
i've downloaded the demo apps for struts 2 v2.3.5 SNAPSHOT for today. i am trying to understand and study the rest struts2-rest-showcase webapp. in the rest showcase, the OrdersController class has the following method. public String editNew() { model = new Order(); return "editNew"; } the use

Re: convention plugin mapping question

2012-07-21 Thread Lukasz Lenart
2012/7/19 : > I'm experiencing some slightly unexpected behavior with respect to the > package of the actionless results in my convention plugin app. > > Consider the following action classes and templates: > > com/actions/Delta.class > > > And templ

convention plugin mapping question

2012-07-19 Thread Chad.Davis
I'm experiencing some slightly unexpected behavior with respect to the package of the actionless results in my convention plugin app. Consider the following action classes and templates: com/actions/Delta.class And templates relative to WEB-INF/content/ alpha.ftl delta.ftl The foll

Re: problem with docs for convention plugin

2012-06-27 Thread Maurizio Cucchiara
the docs that is kind of troublesome on the user, >> but easy to fix I'm sure . . . >> >> >> >> http://struts.apache.org/2.3.4/docs/convention-plugin.html#ConventionPlugin-Introduction >> >> The convention plugin points to an older version, which is act

Re: problem with docs for convention plugin

2012-06-26 Thread Dave Newton
easy to fix I'm sure . . . > > > > http://struts.apache.org/2.3.4/docs/convention-plugin.html#ConventionPlugin-Introduction > > The convention plugin points to an older version, which is actually > not compatible with the 2.3.4 struts core. > > > This is from

problem with docs for convention plugin

2012-06-26 Thread ChadDavis
Found a minor bug in the docs that is kind of troublesome on the user, but easy to fix I'm sure . . . http://struts.apache.org/2.3.4/docs/convention-plugin.html#ConventionPlugin-Introduction The convention plugin points to an older version, which is actually not compatible with the 2.3.4 s

RE: Convention plugin: How do I have two methods on the same action using 2 different Interceptor stacks

2012-03-28 Thread Shinobi
? -- View this message in context: http://struts.1045723.n5.nabble.com/Convention-plugin-How-do-I-have-two-methods-on-the-same-action-using-2-different-Interceptor-stacks-tp5589550p5600108.html Sent from the Struts - User mailing list archive at Nabble.com

RE: Convention plugin: How do I have two methods on the same action using 2 different Interceptor stacks

2012-03-23 Thread Shrinivas Parashar
sStack ")) For more details refer to http://struts.apache.org/2.2.3/docs/convention-plugin.html#ConventionPlugin-InterceptorRefannotation -Original Message- From: Shinobi [mailto:harlander3...@yahoo.com] Sent: 23 March 2012 19:34 To: user@struts.apache.org Subject: Convention plugi

Convention plugin: How do I have two methods on the same action using 2 different Interceptor stacks

2012-03-23 Thread Shinobi
I am using struts 2.3.1.2 I have an action class called Students with 2 methods, list and save. Using the convention plugin and bang notation, I want the interceptor stack 'basicStack' to fire for method list and the interceptor stack 'paramsPrepareParamsStack' to fire

Re: convention plugin does not seem to include the WEB-INF/lib dir

2012-03-08 Thread Shinobi
Hi I have upgraded to 2.3.1.2 and it seems to have fixed my issue. Many thanks Dave. -- View this message in context: http://struts.1045723.n5.nabble.com/convention-plugin-does-not-seem-to-include-the-WEB-INF-lib-dir-tp5543609p5546871.html Sent from the Struts - User mailing list archive at

Re: convention plugin does not seem to include the WEB-INF/lib dir

2012-03-07 Thread Łukasz Lenart
Did you try to specify struts.convention.action.includeJars constant ? http://struts.apache.org/2.x/docs/convention-plugin.html#ConventionPlugin-Configurationreference Regards -- Łukasz http://www.lenart.org.pl/ mobile +48 606 323 122, office +27 11 0838747 Warszawa JUG conference - Confitura h

Re: convention plugin does not seem to include the WEB-INF/lib dir

2012-03-07 Thread Jeffrey Black
https://cwiki.apache.org/confluence/display/WW/Convention+Plugin#ConventionPlugin-Actionsinjarfiles On Wed, Mar 7, 2012 at 5:07 AM, Shinobi wrote: > I am using struts 2.2.3 with the convention plugin > > I have a class HelloWorld which is located in hello.jar which is located in >

Re: convention plugin does not seem to include the WEB-INF/lib dir

2012-03-07 Thread Shinobi
I am using struts 2.2.3 with the convention plugin I have a class HelloWorld which is located in hello.jar which is located in WEB-INF/lib. I get a blank page when i go to http://localhost:8080/hello-world because it seems that the convention plugin has not scanned the jars in the WEB-INF/lib

Re: convention plugin does not seem to include the WEB-INF/lib dir

2012-03-07 Thread Łukasz Lenart
2012/3/7 Shinobi : > I have a problem. My Action classes are in a jar in the WEB-INF/lib and > these jars dont seem to appear to be processed. Am I doing something wrong > or is there a way to include them? More details, action class name, config, etc. Kind regards -- Łukasz http://www.lenart.o

convention plugin does not seem to include the WEB-INF/lib dir

2012-03-07 Thread Shinobi
Hi, I have a problem. My Action classes are in a jar in the WEB-INF/lib and these jars dont seem to appear to be processed. Am I doing something wrong or is there a way to include them? Thanks Dave. -- View this message in context: http://struts.1045723.n5.nabble.com/convention-plugin-does

Re: Convention plugin can't find Actions

2011-08-29 Thread Christian Grobmeier
to the wiki, thanks for coming back with it. Pretty sure I need it in 2 months or so. https://cwiki.apache.org/confluence/display/WW/Convention+Plugin#ConventionPlugin-Jetty%28embedded%29 Cheers, Christian > > -Ben > > > -- > View this message in context: > http://struts.104572

Re: Convention plugin can't find Actions

2011-08-28 Thread chengas123
Got it working. I needed to set the constants below in my struts.xml. Could be good to add this to the docs for other people using Jetty in embedded mode. -Ben -- View this message in context: http://struts.1045723.n5.nabble.com/Convention-plugin-can-t-find-Actions-tp4744110p4744666

Re: Convention plugin can't find Actions

2011-08-28 Thread Dave Newton
der and the scanning code. Dave On Sun, Aug 28, 2011 at 4:20 PM, chengas123 wrote: > Thanks for the suggestion. Didn't help though. Shouldn't the fact that it > extends ActionSupport be enough anyway? > > -- > View this message in context: > http://struts.1045723.n5

Re: Convention plugin can't find Actions

2011-08-28 Thread chengas123
Thanks for the suggestion. Didn't help though. Shouldn't the fact that it extends ActionSupport be enough anyway? -- View this message in context: http://struts.1045723.n5.nabble.com/Convention-plugin-can-t-find-Actions-tp4744110p4744116.html Sent from the Struts - User mailing list

Re: Convention plugin can't find Actions

2011-08-28 Thread Dave Newton
Try naming it TestAction. Dave On Sun, Aug 28, 2011 at 4:13 PM, chengas123 wrote: > Hi, > > I created the action below in a package ending with "action" and extended > ActionSupport. Yet, the convention plugin is not finding the action. I > installed the config brows

Convention plugin can't find Actions

2011-08-28 Thread chengas123
Hi, I created the action below in a package ending with "action" and extended ActionSupport. Yet, the convention plugin is not finding the action. I installed the config browser plugin and it does not see the action. Any tips on how I can debug this? I'm running this in embedd

  1   2   3   4   5   >