It doesn't work that way, check once again Hernán's mail, he showed
you interceptor, annotation and how to define a stack. You just must
add annotation into your action.
2013/3/20 Omar Ngarigari ngarigar...@yahoo.com:
I annotated my action class as follow:
2013/3/20 Paul Benedict pbened...@apache.org:
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.
You mean an
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.
My real
2013/3/21 Eric Chatellier chatell...@codelutin.com:
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 you
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
Hello everyone,
I am following the Struts2 Getting Started tutorial at
http://struts.apache.org/development/2.x/docs/getting-started.html
I reached the Struts 2 Annotations. I downloaded the Maven version:
Struts2_Annotations_Mvn_2_2_1.zip
Then, I updated the pom.xml file to get the latest
2013/3/21 Álvaro López López allo...@gmv.com:
Hello everyone,
I am following the Struts2 Getting Started tutorial at
http://struts.apache.org/development/2.x/docs/getting-started.html
I reached the Struts 2 Annotations. I downloaded the Maven version:
Struts2_Annotations_Mvn_2_2_1.zip
I have tried to mimic that behavior in my version (struts2 - 2.312) but what
explained in this paragraph is not working:
The input method above returns input.
By the standards of the Convention plugin, the view page rendered will be
register-input.jsp (from WEB-INF/content).
On that view page
2013/3/21 Álvaro López López allo...@gmv.com:
I have tried to mimic that behavior in my version (struts2 - 2.312) but what
explained in this paragraph is not working:
The input method above returns input.
By the standards of the Convention plugin, the view page rendered will be
After reviewing the Convention Plugin documentation I found struts and
action are
keywords for the plugin to find packages.
As the classes were under org.apache.struts.struts2annotations.action, the
default
Namespace didn´t find the action classes. I simply changed struts to foo
and the
Hi when should we add an action error or action message. I understood field
error. It as to be added in validate method when there is any field error
in the form( I mean validation error) but when to use other?
--
Thanks And Regards,
*Muralidhar Yaragalla.
*
Same time, during validation. They are just non-field specific. So If you
have an error (or informational message) to deliver to the user you would
use these methods.
(*Chris*)
On Thu, Mar 21, 2013 at 12:16 PM, Muralidhar Yaragalla
java.yaraga...@gmail.com wrote:
Hi when should we add an
2013/3/21 Álvaro López López allo...@gmv.com:
After reviewing the Convention Plugin documentation I found struts and
action are
keywords for the plugin to find packages.
As the classes were under org.apache.struts.struts2annotations.action, the
default
Namespace didn´t find the action
So even if it has action errors or action messages the execute method of
action class will not be called is it?
On Fri, Mar 22, 2013 at 12:50 AM, Chris Pratt thechrispr...@gmail.comwrote:
Same time, during validation. They are just non-field specific. So If you
have an error (or
I inherited an internal web app today that has not been updated since
probably 2005 (not sure).
I have a few questions:
* There are about 100 Forms, The action classes extend Action and the
forms extend ActionForm
* I want to use Apache commons validator and move the form validations
If it has action messages, everything proceeds as usual. If it has action
errors, the validation system exits with the return code input.
(*Chris*)
On Thu, Mar 21, 2013 at 1:06 PM, Muralidhar Yaragalla
java.yaraga...@gmail.com wrote:
So even if it has action errors or action messages the
I have the following struts-config.xml below (a sample from the file).
I am well versed in well formatted XML and DTD's ( I have checked the
DTD agains my struts-config.xml file) and I still get an exception on
jboss startup (an older version of jboss 4.3GA - legacy app but I cannot
upgrade).
What exception?
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
What is the exception? And if you're on Struts 1.3, you should fix your 1.2
version in the DOCTYPE.
On Thu, Mar 21, 2013 at 3:27 PM, J.V. jvsr...@gmail.com wrote:
I have the following struts-config.xml below (a sample from the file). I
am well versed in well formatted XML and DTD's ( I have
Is DynaValidatorActionForm.java intended for use in extending Action
classes or for use in extending Form classes?
Does anyone have a working example where YourAction.java extends Action
and this action uses YourForm.java where DynaValidatorActionForm is used?
I have an app (Struts 1.3),
DynaValidatorActionForm validates by looking for the matching URI in the
Struts Config.
Paul
On Thu, Mar 21, 2013 at 3:57 PM, J.V. jvsr...@gmail.com wrote:
Is DynaValidatorActionForm.java intended for use in extending Action
classes or for use in extending Form classes?
Does anyone have a
Thank you so much.
On Fri, Mar 22, 2013 at 1:47 AM, Chris Pratt thechrispr...@gmail.comwrote:
If it has action messages, everything proceeds as usual. If it has action
errors, the validation system exits with the return code input.
(*Chris*)
On Thu, Mar 21, 2013 at 1:06 PM, Muralidhar
I must be doing something wrong. Any ideas?
When I hit submit on the form (and leave the fields empty), it continues
with the lines in the Action method and never validates.
Is there anything wrong with this configuration at all?
---
My struts-config.xml entry looks like this:
form-bean
As I said, DynaValidatorActionForm validates by looking for the matching
URI in the Struts Config. If you want to continue using that superclass,
your Validator XML contents must change to this:
form name=/your_context/your_executing_action
Otherwise, switch your base class to DynaValidatorForm
Ooops. You shouldn't need your_context -- just the URI after the context.
On Thu, Mar 21, 2013 at 4:32 PM, Paul Benedict pbened...@apache.org wrote:
As I said, DynaValidatorActionForm validates by looking for the matching
URI in the Struts Config. If you want to continue using that superclass,
I am not sure I understand.
--
View this message in context:
http://struts.1045723.n5.nabble.com/DynaValidatorActionForm-using-Apache-Commons-Validator-project-tp5712255p5712261.html
Sent from the Struts - User mailing list archive at Nabble.com.
Given my struts-config.xml entry in the previous post: what is the
validator-users.xml entry supposed to look like? In other words what is
wrong with my validator-users.xml file such that what is needed to be
changed to get this to work?
thanks for all the help.
--
View this message in
Struts looks for the Validator configuration based on a key. The key is
selected by the form. The key can either be the URI
(DynaValidatorActionForm) or the Form Name (DynaValidatorForm).
Your config file is obviously using bean names:
form name=loginFormBean
So you need the correct Form
28 matches
Mail list logo