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
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:
So you need the correct Form superclass to select by bean na
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 context
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.
---
Ooops. You shouldn't need "your_context" -- just the URI after the context.
On Thu, Mar 21, 2013 at 4:32 PM, Paul Benedict wrote:
> 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
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:
Otherwise, switch your base class to DynaValidatorForm and keep your
Validator XML contents as-is.
P
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:
Thank you so much.
On Fri, Mar 22, 2013 at 1:47 AM, Chris Pratt wrote:
> 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 <
> ja
DynaValidatorActionForm validates by looking for the matching URI in the
Struts Config.
Paul
On Thu, Mar 21, 2013 at 3:57 PM, J.V. wrote:
>
> Is DynaValidatorActionForm.java intended for use in extending Action
> classes or for use in extending Form classes?
>
> Does anyone have a working examp
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), th
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. 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 checked the DTD
>
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
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).
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 t
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
fr
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 wrote:
> Same time, during validation. They are just non-field specific. So If you
> have an error (or informational message) to deliver
2013/3/21 Álvaro López López :
> 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 clas
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 a
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.
*
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
2013/3/21 Álvaro López López :
> 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
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 :
> 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 up
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 pac
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
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 you prepare a small dem
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 prob
27 matches
Mail list logo