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
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
>>> DEBUG [btpool0-2] InstantiatingNullHandler.debug(57) | Entering
> >>>>> nullPropertyValue
> >>>>> [target=[com.opensymphony.xwork2.DefaultTextProvider@3e48f2],
> >>>>> property=struts]
>
;> 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
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
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"
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"
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
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"
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
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
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
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:
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?
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
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
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
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
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
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
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
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
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
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
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,
&
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
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
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
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
.
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
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
> 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)
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
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
...@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
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
> 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
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
> 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
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,
: 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
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
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
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
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
: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
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?
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
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
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
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
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
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
is is the only logged output (to go
>>>> along
>>>> with the 404 response):
>>>> [code]
>>>> DEBUG [btpool0-2] ConfigurationManager.debug(57) | Checking
>>>> ConfigurationProviders for reload.
>
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
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
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
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
ext*.xml
>
>
>
>
> struts2
>
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
>
>
> struts2
> /*
>
>
>
>
>
> org.springframework.web.context
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
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
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
>
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
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
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
> 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
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
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
68 matches
Mail list logo