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: Struts mapping failing when using struts2-convention-plugin

2011-01-24 Thread stanlick
>>> DEBUG [btpool0-2] InstantiatingNullHandler.debug(57) | Entering > >>>>> nullPropertyValue > >>>>> [target=[com.opensymphony.xwork2.DefaultTextProvider@3e48f2], > >>>>> property=struts] >

Re: Struts mapping failing when using struts2-convention-plugin

2011-01-24 Thread Paweł Wielgus
;> the Servlet container at [/WEB-INF/content/] with result prefix of >>>>> [/WEB-INF/content/subdivision] >>>>> >>>>> DEBUG [main] DefaultResultMapBuilder.trace(69) | Searching for results >>>>> in >>>>> the class pat

Re: Struts mapping failing when using struts2-convention-plugin

2011-01-23 Thread stanlick
the only logged output (to go >>>> along >>>> with the 404 response): >>>> [code] >>>> DEBUG [btpool0-2] ConfigurationManager.debug(57) | Checking >>>> ConfigurationProviders for reload. >>>> >>>> DEBUG [btpool0-2] InstantiatingNullHandler.debug(57) | Enterin

Struts2 2.2.1 exploring annotations with struts2-convention-plugin and struts2-json-plugin

2010-12-13 Thread Ken McWilliams
I'm experimenting with Struts2 annotations and have some observations that I'd like clarification on. 1) When using the convention plug-in the book "Apache Struts 2 Web application Developement states" : The plug-in will scan ... in Java packages whose names contain "struts", "struts2", "action"

Struts2 2.2.1 exploring annotations with struts2-convention-plugin and struts2-json-plugin

2010-12-13 Thread Ken McWilliams
I'm experimenting with Struts2 annotations and have some observations that I'd like clarification on. 1) When using the convention plug-in the book "Apache Struts 2 Web application Developement states" : The plug-in will scan ... in Java packages whose names contain "struts", "struts2", "action"

Re: Struts2 2.2.1 exploring annotations with struts2-convention-plugin and struts2-json-plugin

2010-12-13 Thread Ken McWilliams
My bad #1 is resolved... I had left my jsp's in /WEB-INF/content not realizing that the java package mypackage.struts2.otherpackage.MyAction Didn't map to: /my but /otherpackage/my The examples I'd seen had a package ending in "actions" and I'd made an assumption. On Mon, 2010-12-13 at 15:37

Struts2 2.2.1 exploring annotations with struts2-convention-plugin and struts2-json-plugin

2010-12-13 Thread Ken McWilliams
I'm experimenting with Struts2 annotations and have some observations that I'd like clarification on. 1) When using the convention plug-in the book "Apache Struts 2 Web application Developement states" : The plug-in will scan ... in Java packages whose names contain "struts", "struts2", "action"

Re: Struts2, convention plugin, websphere 6.1

2010-11-18 Thread Dave Newton
I'd backtrack and deploy a simple app with only a single annotated action and the convention plugin and start from there; it's loading the plugin. I'd also check the configuration parameter reference: http://struts.apache.org/2.1.8/docs/convention-plugin.html#ConventionPlugin-Configurationreferenc

Re: Struts2, convention plugin, websphere 6.1

2010-11-18 Thread Aaron Brown
Gently bringing this thread back to the topic in the subject line... Does anyone have any ideas about why my WebSphere 6.1 server would be ignoring the convention plugin and not loading any of my struts2 annotations into the context? I did see some references in the websphere patch info to fixing

Re: Struts2, convention plugin, websphere 6.1

2010-11-18 Thread Li Ying
Everything submit from the client side, are passed as String. So you can't take object instance as your parameter. You need take the ids of these objects as parameter, and load object by the ids by you self. 2010/11/18 Harsh C : > I think that is probably what it was. Basically in my action, I

Re: Struts2, convention plugin, websphere 6.1

2010-11-17 Thread Dave Newton
Please start new threads for new questions. There's a jquery plugin, or you can use any framework in its "raw" form. The latter is almost always my personal recommendation so the JavaScript can be optimized for the application. Dave On Nov 17, 2010 4:30 PM, "Harsh C" wrote:

Re: Struts2, convention plugin, websphere 6.1

2010-11-17 Thread Harsh C
I am using Struts 2.2.1 and would like to get some AJAX functionality in my app, specifically, I would like to use Dojo. The Dojo plugin was deprecated for this release, is there some good documentation/tutorials for getting into Struts 2.2.1 with DOJO?

Re: Struts2, convention plugin, websphere 6.1

2010-11-17 Thread Harsh C
I think that is probably what it was. Basically in my action, I had a list of model objects (modelList) and a model object (selectedModel). I changed the Model type object selectedModel to String type selectedModelId and things work fine now. Now my question is, if I had a checkboxlist backed by

Re: Struts2, convention plugin, websphere 6.1

2010-11-17 Thread Dave Newton
Could also be a type conversion error. On Nov 17, 2010 2:46 PM, "Harsh C" wrote: > So, result "input" is some kind of default result that struts sends a user > to? > > Is validation turned on by default, as I did not specify any validation? If > so, how can I turn it off? > > Thanks, > HC > > On W

Re: Struts2, convention plugin, websphere 6.1

2010-11-17 Thread Harsh C
So, result "input" is some kind of default result that struts sends a user to? Is validation turned on by default, as I did not specify any validation? If so, how can I turn it off? Thanks, HC On Wed, Nov 17, 2010 at 11:39 AM, Dave Newton wrote: > Failed validation will send user back to the i

Re: Struts2, convention plugin, websphere 6.1

2010-11-17 Thread Dave Newton
Failed validation will send user back to the input result. Dave On Nov 17, 2010 2:29 PM, "Harsh C" wrote: > Hi, > > I have an input page which has a checkbox list in a form. Clicking submit > takes the user to a 2nd JSP. > The problem is that when I don't select a checkbox and click on submit, I

Re: Struts2, convention plugin, websphere 6.1

2010-11-17 Thread Harsh C
Hi, I have an input page which has a checkbox list in a form. Clicking submit takes the user to a 2nd JSP. The problem is that when I don't select a checkbox and click on submit, I get to the output page, of course no value is displayed on the output page though. But if I select a checkbox and cli

Re: Struts2, convention plugin, websphere 6.1

2010-11-17 Thread Aaron Brown
T] 0019 SystemOut O DEBUG: com.opensymphony.xwork2.util.FileManager - Creating revision for URL: wsjar:file:/C:/Program Files/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/nw897628Node01Cell/tsbOne.ear/tsb.war/WEB-INF/lib/struts2-convention-plugin-2.1.8.jar!/struts-plugin.xml

Re: Struts2, convention plugin, websphere 6.1

2010-11-17 Thread Dave Newton
Without further information it'll be difficult to help; is devMode turned on? Do you have DEBUG set for *everything*, or just s2 packages, or xwork, or...? It shouldn't matter, but do you have the WebFear filter compatibility flag set (or don't need it due to patch level)? Dave On Wed, Nov 17, 20

Struts2, convention plugin, websphere 6.1

2010-11-17 Thread Aaron Brown
I've been working on implementing Struts 2.1.8 on WebSphere 6.1 and I'm having trouble with the convention plugin and annotation-based configuration. It appears that none of my struts configs are being scanned and/or processed from the annotations. Here's what I know: 1) Struts2 and WebSphere is

Re: Struts2 Convention plugin with junit plugin

2010-05-21 Thread Rebecca Case
So, I take it this just isn't going to work then? - Original Message From: Rebecca Case To: user@struts.apache.org Sent: Sat, May 15, 2010 10:47:08 AM Subject: Struts2 Convention plugin with junit plugin I'm using Struts 2.8.1 using the convention plugin and attemption to

Struts2 Convention plugin with junit plugin

2010-05-15 Thread Rebecca Case
I'm using Struts 2.8.1 using the convention plugin and attemption to junit test this by utilizing StrutsSpringTestCase. The problem I'm experiencing is that the test throws an exception saying "No result defined for action com.becky.action.HowdyFolksAction and result success" if I don't use a Re

RE: spring, struts2, convention plugin, how to "wire" an action class

2010-05-14 Thread Martin Gainty
s ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Thu, 13 May 2010 20:18:34 -0400 > Subject: Re: spring, struts2, convention plugin, how to "wire" an action class > From: vangj...@googlemail.com > To: user@struts.apache.org > > roger, &

Re: spring, struts2, convention plugin, how to "wire" an action class

2010-05-13 Thread Denis Cabasson
My best guess is that the Action instance used in the web application is not actually loaded from the configuration in your applicationContext, but directly by Struts 2 (through the Spring Factory, but still Struts 2). That mean that you will have a bean named myAction in you application conte

Re: spring, struts2, convention plugin, how to "wire" an action class

2010-05-13 Thread Jake Vang
roger, thanks for the steps. i went through each of those steps and made sure my settings/configurations complied. however, i still cannot initialize Action classes using Spring. as an illustration of the problem i am facing, i have created an example that you may download and verify for yourself

Re: spring, struts2, convention plugin, how to "wire" an action class

2010-05-13 Thread RogerV
Jake Vang wrote: > >> If you want Spring to create your action class (as opposed to Struts >> creating them) then you need to define your action in the >> applicationContext.xml file. > > how do you do that? here's a couple of ways i have tried that do NOT work. > 1) Add to your struts.xml

Re: spring, struts2, convention plugin, how to "wire" an action class

2010-05-13 Thread Jake Vang
source anno as well. Can't think off the >>> top of my head. >>> >>> -Original Message- >>> From: Jake Vang [mailto:vangj...@googlemail.com] >>> Sent: 13 May 2010 11:44 >>> To: Struts Users Mailing List >>> Subject: R

Re: spring, struts2, convention plugin, how to "wire" an action class

2010-05-13 Thread Denis Cabasson
. mailto:vangj...@googlemail.com] Sent: 13 May 2010 11:44 To: Struts Users Mailing List Subject: Re: spring, struts2, convention plugin, how to "wire" an action class yes. precisely. On Thu, May 13, 2010 at 6:41 AM, James Cook wrote: Oh, did you want your action as a spring manage

Re: spring, struts2, convention plugin, how to "wire" an action class

2010-05-13 Thread Jake Vang
think off the top > of my head. > > -Original Message- > From: Jake Vang [mailto:vangj...@googlemail.com] > Sent: 13 May 2010 11:44 > To: Struts Users Mailing List > Subject: Re: spring, struts2, convention plugin, how to "wire" an action class > > yes. pr

Re: spring, struts2, convention plugin, how to "wire" an action class

2010-05-13 Thread Jake Vang
> If you want Spring to create your action class (as opposed to Struts > creating them) then you need to define your action in the > applicationContext.xml file. how do you do that? here's a couple of ways i have tried that do NOT work. 1. (normal, naive way that works for defining services)

RE: spring, struts2, convention plugin, how to "wire" an action class

2010-05-13 Thread RogerV
James Cook-13 wrote: > > Oh, did you want your action as a spring managed bean? Ah I think i > massively miss read you. You want to inject predefined values etc? > If you want Spring to create your action class (as opposed to Struts creating them) then you need to define your action in the ap

RE: spring, struts2, convention plugin, how to "wire" an action class

2010-05-13 Thread James Cook
Ahh hmm. You can use the autowired, You just have to declare you stuff in the spring xml. E.g. mailto:vangj...@googlemail.com] Sent: 13 May 2010 11:44 To: Struts Users Mailing List Subject: Re: spring, struts2, convention plugin, how to "wire" an action class yes. precisely. On T

Re: spring, struts2, convention plugin, how to "wire" an action class

2010-05-13 Thread Jake Vang
...@googlemail.com] > Sent: 13 May 2010 11:38 > To: Struts Users Mailing List > Subject: Re: spring, struts2, convention plugin, how to "wire" an action class > > thanks. i won't go that route. i noticed your example (in the first > response) and i realized that i may t

RE: spring, struts2, convention plugin, how to "wire" an action class

2010-05-13 Thread James Cook
riginal Message- > From: Jake Vang [mailto:vangj...@googlemail.com] > Sent: 13 May 2010 11:16 > To: Struts Users Mailing List > Subject: Re: spring, struts2, convention plugin, how to "wire" an action class > > doesn't answer the question but thanks anyways. > > On Thu, Ma

Re: spring, struts2, convention plugin, how to "wire" an action class

2010-05-13 Thread Jake Vang
> Sent: 13 May 2010 11:16 > To: Struts Users Mailing List > Subject: Re: spring, struts2, convention plugin, how to "wire" an action class > > doesn't answer the question but thanks anyways. > > On Thu, May 13, 2010 at 6:12 AM, James Cook wrote: >> Nope, n

RE: spring, struts2, convention plugin, how to "wire" an action class

2010-05-13 Thread James Cook
Yeah sorry, short on time here, didn't see your question at the bottom. Add the spring jar from the spring project. -Original Message- From: Jake Vang [mailto:vangj...@googlemail.com] Sent: 13 May 2010 11:16 To: Struts Users Mailing List Subject: Re: spring, struts2, convention p

Re: spring, struts2, convention plugin, how to "wire" an action class

2010-05-13 Thread Jake Vang
> From: Jake Vang [mailto:vangj...@googlemail.com] > Sent: 13 May 2010 11:09 > To: Struts Users Mailing List > Subject: Re: spring, struts2, convention plugin, how to "wire" an action class > > well, there's something strange about struts2 (with convent

Re: spring, struts2, convention plugin, how to "wire" an action class

2010-05-13 Thread Jake Vang
t; > I am not sure if that alters the way Struts2/Spring does it. But it does > make it a bit clearer to read. > > -Original Message- > From: Jake Vang [mailto:vangj...@googlemail.com] > Sent: 13 May 2010 10:23 > To: user@struts.apache.org > Subject: spring, struts2,

RE: spring, struts2, convention plugin, how to "wire" an action class

2010-05-13 Thread James Cook
: spring, struts2, convention plugin, how to "wire" an action class well, there's something strange about struts2 (with convention plugin) + spring. if your action has a field representing a service, MyInjectedService myInjectedService, you just have to define that in the spring xml fi

Re: spring, struts2, convention plugin, how to "wire" an action class

2010-05-13 Thread Jake Vang
am doing, and in light of what you said, perhaps i am trying to push some logic into the Action class that shouldn't be there. perhaps i should push the logic to a service class instead. in this case, this problem goes away. BUT, the question remains, how can i use DI with struts2 (convention

RE: spring, struts2, convention plugin, how to "wire" an action class

2010-05-13 Thread James Cook
that alters the way Struts2/Spring does it. But it does make it a bit clearer to read. -Original Message- From: Jake Vang [mailto:vangj...@googlemail.com] Sent: 13 May 2010 10:23 To: user@struts.apache.org Subject: spring, struts2, convention plugin, how to "wire" an action class

spring, struts2, convention plugin, how to "wire" an action class

2010-05-13 Thread Jake Vang
i am using struts 2.1.8.1 and the convention plugin. i am also using spring for dependency injections (DI). my question is if it is possible to to use struts2 + convention plugin with spring for DI on my Action classes? i have searched the internet but only seen examples using struts 1 + spring

Re: how to integrate struts2 + convention plugin +spring

2009-05-13 Thread Dave Newton
chen thomas wrote: I'm a Struts 2 newbie .I want to integrate struts2 ,convention plugin and spring. how to do? anyone give me some advice? I'd probably start by reading the Convention and Spring plugin docs--after that if you have any specific questions this is the place to ask th

Re: how to integrate struts2 + convention plugin +spring

2009-05-13 Thread thomas
:0 > > F > > On Wed, May 13, 2009 at 11:21 PM, chen thomas > wrote: > > Hi > > > > I'm a Struts 2 newbie .I want to integrate struts2 ,convention plugin and > > spring. > > how to do? anyone give me some advice? > > > > thanks

Re: how to integrate struts2 + convention plugin +spring

2009-05-13 Thread Frans Thamura
i am still learning the REST implementation :0 still un familiar the class is less than the old one, but work :0 F On Wed, May 13, 2009 at 11:21 PM, chen thomas wrote: > Hi > > I'm a Struts 2 newbie .I want to integrate struts2 ,convention plugin and > spring. > how to do?

how to integrate struts2 + convention plugin +spring

2009-05-13 Thread chen thomas
Hi I'm a Struts 2 newbie .I want to integrate struts2 ,convention plugin and spring. how to do? anyone give me some advice? thanks a lot thomas

Re: IllegalArgumentException using struts2-convention-plugin-2.1.6.jar on JBoss

2009-05-07 Thread Rene Gielen
Filed https://issues.apache.org/struts/browse/WW-3121 Added better error message with hint to disable class reloading. Correct fix needs addtional XWork work, will check tomorrow. Musachy Barroso schrieb: > to add to what Lukasz said, don't rely too much on the reloading class > loader which is e

Re: IllegalArgumentException using struts2-convention-plugin-2.1.6.jar on JBoss

2009-05-07 Thread Musachy Barroso
to add to what Lukasz said, don't rely too much on the reloading class loader which is experimental, there is a flag to disable it, check the docs. musachy On Thu, May 7, 2009 at 8:42 AM, Lukasz Lenart wrote: > Could you try to use the latest snapshot build? > http://people.apache.org/builds/str

RE: IllegalArgumentException using struts2-convention-plugin-2.1.6.jar on JBoss

2009-05-07 Thread Martin Gainty
ement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Subject: IllegalArgumentException using struts2-convention-plugin-2.1.6.jar > on JBoss > Date: Thu, 7 May 2009 14:3

Re: IllegalArgumentException using struts2-convention-plugin-2.1.6.jar on JBoss

2009-05-07 Thread Lukasz Lenart
Could you try to use the latest snapshot build? http://people.apache.org/builds/struts/nightlies/2.x/ If that doesn't help, please register an issue with Jira, JBoss 5 introduced new virtual file system and that the origin of problems https://issues.apache.org/struts/browse/ Regards -- Lukasz h

IllegalArgumentException using struts2-convention-plugin-2.1.6.jar on JBoss

2009-05-07 Thread Tenzer, Alexander
symphony.xwork2.config.ConfigurationManager.getConfiguration(Con figurationManager.java:55) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispa tcher.java:360) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:403) I have embedded the struts2-convention-plugin-2.1.6.jar. Whil

Re: Struts mapping failing when using struts2-convention-plugin

2009-03-10 Thread wkbutler
is is the only logged output (to go >>>> along >>>> with the 404 response): >>>> [code] >>>> DEBUG [btpool0-2] ConfigurationManager.debug(57) | Checking >>>> ConfigurationProviders for reload. >

Re: struts2 convention plugin not scanning classpath

2009-03-10 Thread Musachy Barroso
Set the debugging level to DEBUG, and post it here. BTW, that's an awesome name for a jar file "morepork" :) musachy On Tue, Mar 10, 2009 at 12:36 AM, Timothy Pick wrote: > Hi, > > we're using struts2 2.1.6 convention plugin with annotations on the action > classes. > When running though eclips

struts2 convention plugin not scanning classpath

2009-03-10 Thread Timothy Pick
Hi, we're using struts2 2.1.6 convention plugin with annotations on the action classes. When running though eclipse everything works fine, but when deployed to a standalone tomcat 5 the convention plugin does not appear to scan our web app classpath. We normally package all our classes into a

Re: Struts mapping failing when using struts2-convention-plugin

2009-03-06 Thread Musachy Barroso
faulttextprovi...@3e48f2], >>> property=struts] >>> >>> WARN [btpool0-2] OgnlValueStack.warn(45) | Could not find property >>> [struts.actionMapping] >>> [/code] >>> >>> which seems totally irrelevant. >>> >>> I am spinning my w

Re: Struts mapping failing when using struts2-convention-plugin

2009-03-06 Thread wkbutler
have pared down the configuration to a >> bare >> minimum, to match the Showcase app, to no avail (yet): >> >> struts.xml >> [code] >>     >>     >>    > value="rest-default"/> >>     >&g

Re: Struts mapping failing when using struts2-convention-plugin

2009-03-06 Thread Musachy Barroso
ext*.xml >     > >         >     >        struts2 > > org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter >     >     >        struts2 >        /* >     > >     >     > > org.springframework.web.context

Struts mapping failing when using struts2-convention-plugin

2009-03-06 Thread wkbutler
ruts struts2-convention-plugin 2.1.6 org.apache.struts struts2-spring-plugin 2.1.6 org.apache.struts struts2-rest-plugin 2.1.6 org.hibernate hiber

Re: [Struts2] Convention Plugin

2008-06-07 Thread Musachy Barroso
gt;>> >>> >>> Musachy Barroso wrote: >>>> >>>> The Convention plugin has not been released yet, it is in the sandbox >>>> here: >>>> >>>> http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-convention-plug

Re: [Struts2] Convention Plugin

2008-06-07 Thread Musachy Barroso
No, that's the codebehind plugin. On Sat, Jun 7, 2008 at 5:15 AM, Lukasz Lenart <[EMAIL PROTECTED]> wrote: > Hi, > > You have to configure struts to tell where your actions are: > > >action2 > > org.apache.struts2.dispatcher.FilterDispatcher > >actionPackages >

Re: [Struts2] Convention Plugin

2008-06-07 Thread Lukasz Lenart
Hi, You have to configure struts to tell where your actions are: action2 org.apache.struts2.dispatcher.FilterDispatcher actionPackages your.package.actions Action class must pass such name convention ActionNameAction.class, eg. Employ

Re: [Struts2] Convention Plugin

2008-06-06 Thread vikofvan
gt;> >>>> Where can I get hold of the strust2 convention plugin? It seems to be >>>> missing >>>> from the 2.1.2 build. Thanks. >>>> >>>> Vikram >>>> -- >>>> View this message in context: >>>> http://www

Re: [Struts2] Convention Plugin

2008-06-04 Thread Musachy Barroso
der.* > is missing from xwork 2.1.1. Thanks. > > vikram > > > Musachy Barroso wrote: >> >> The Convention plugin has not been released yet, it is in the sandbox >> here: >> >> http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-convention-plugin/ &g

Re: [Struts2] Convention Plugin

2008-06-04 Thread vikofvan
> here: > > http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-convention-plugin/ > > musachy > > On Wed, Jun 4, 2008 at 4:13 PM, vikofvan <[EMAIL PROTECTED]> wrote: >> >> Where can I get hold of the strust2 convention plugin? It seems to be >> mi

Re: [Struts2] Convention Plugin

2008-06-04 Thread Musachy Barroso
The Convention plugin has not been released yet, it is in the sandbox here: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-convention-plugin/ musachy On Wed, Jun 4, 2008 at 4:13 PM, vikofvan <[EMAIL PROTECTED]> wrote: > > Where can I get hold of the strust2 conventio

[Struts2] Convention Plugin

2008-06-04 Thread vikofvan
Where can I get hold of the strust2 convention plugin? It seems to be missing from the 2.1.2 build. Thanks. Vikram -- View this message in context: http://www.nabble.com/-Struts2--Convention-Plugin-tp17655614p17655614.html Sent from the Struts - User mailing list archive at Nabble.com