In case anyone is curious this has been solved by removing @Transactional
annotations from all action class methods and moving them on to the methods
on the DAOs.
The presence of the annotation on the action class was resulting in a
JDKDynamicProxy object being passed to the AnnotationValidationIn
Chris,
Thanks for the reply. I think this is the ValidationInterceptor rather than the
workflow interceptor. The stack trace is as follows:
ava.lang.NullPointerException
com.devcentre.yubi.application.action.NewSupplierAction.validate(NewSupplierAction.java:49)
sun.reflect.NativeMethodA
I don't use the those annotations, but from what I can tell, it only affects
the XML validation (validation interceptor) not the programmatic validation
(workflow interceptor). You can switch from execute to one of the
unvalidated method names (I think input, cancel, and two others I can't
think o
Hi all,
I am having a few issues with some code which worked a few days ago but has
stopped working for some reason. I have no idea what has changed to cause this
but here are the symptoms.
I have an action class called NewSupplierAction which extends ActionSupport and
overrides the validate m
at 3:25 PM, boraldo wrote:
>
> I need output special info in JSP if validation failed. How can I do it?
> ActionSupport has method hasActionErrors. I need smth like that for JSP.
> --
> View this message in context:
> http://www.nabble.com/Form-validation%3A-how-can-khow-in-
I need output special info in JSP if validation failed. How can I do it?
ActionSupport has method hasActionErrors. I need smth like that for JSP.
--
View this message in context:
http://www.nabble.com/Form-validation%3A-how-can-khow-in-jsp-that-my-action-validation-failed--tp22250234p22250234
We have been unit testing our actions using a ActionValidatorManager. But in
2.1.6 the ActionValidatorManagerFactory has been removed. According to the
docs this is still the way to test the action validation, but I guess they
are just outdated:
http://struts.apache.org/2.1.6/docs/how-do-i-unit
Yellek wrote:
should I be raising a Jira issue for this?
Hi Peter, yes, it's would be helpful to raise an issue for it.
In this case the ActionMapper knows about the allowSlashesInActionName
setting but the XWork Validation doesn't know.
--
_SUFFIX;
and
String fileName = aClass.getName().replace('.', '/') +
VALIDATION_CONFIG_SUFFIX;
should I be raising a Jira issue for this?
Peter Kelley
Fujitsu Australia Limited
--
View this message in context:
http://www.nabble.com/Action-Validation-with-Slashes-tp17245638p1724
I didn't really make use of maven, instead, I imported the struts-blank war
file into Eclipse which would create a project for me automatically. That
way I can see where to place the XML files.
On Jan 13, 2008 7:53 PM, Gaurav Arora <[EMAIL PROTECTED]> wrote:
> Hi list,
> I am new to Struts an
Thanks for the reply Max. I decided to go with Maven to start Struts
apps since that seemed to be the most widely practiced way. Didn't
realise that Maven was excluding the XML files from the build. Works
perfectly after the resource is included in the build.
Thanks once again.
On Jan 13, 2008 6:
Gaurav Arora wrote:
I have an action named GuestBookAction and it's validation
file named GuestBookAction-validation.xml, where should the validation
xml be placed in the application hierarchy?
It's fine if you put it exactly besides the java source file of your
action; for example
src
Hi list,
I am new to Struts and started off with a few examples I found on
the web. However, I just can't figure out how to validate input in the
jsp pages. I have an action named GuestBookAction and it's validation
file named GuestBookAction-validation.xml, where should the validation
xml be
Yup :-)
James Mitchell wrote:
IIRC, 'Laurie' is short for Lawrence (not a girl) :D
--
James Mitchell
On Apr 12, 2007, at 5:07 PM, [EMAIL PROTECTED] wrote:
Laurie --
Thanks girl. I guess I'm just going to have to bite the bullet and
consider
the theme modifications another step. I gue
--- [EMAIL PROTECTED] wrote:
> Laurie --
> Thanks girl.
Ouch.
> I guess I'm just going to have to bite the bullet
and
> consider the theme modifications another step. I
> guess it's not a problem with new releases
overlaying
> these modified files?
What do you mean by that? The distro files ar
IIRC, 'Laurie' is short for Lawrence (not a girl) :D
--
James Mitchell
On Apr 12, 2007, at 5:07 PM, [EMAIL PROTECTED] wrote:
Laurie --
Thanks girl. I guess I'm just going to have to bite the bullet and
consider
the theme modifications another step. I guess it's not a problem
with ne
Laurie --
Thanks girl. I guess I'm just going to have to bite the bullet and consider
the theme modifications another step. I guess it's not a problem with new
releases overlaying these modified files?
Scott
On 4/11/07, Laurie Harper <[EMAIL PROTECTED]> wrote:
I think labelPosition will onl
--- Laurie Harper <[EMAIL PROTECTED]> wrote:
> I think labelPosition will only affect the field
> label, not the error message placement.
D'oh, yeah, that's right; my bad.
d.
Bored stiff? Loosen up...
I think labelPosition will only affect the field label, not the error
message placement. You'll probably have to go with customizing the theme
for that.
L.
[EMAIL PROTECTED] wrote:
I can't get labelposition or requiredposition to do anything!
top/bottom/right/left/*random* -- I tried them all
I can't get labelposition or requiredposition to do anything!
top/bottom/right/left/*random* -- I tried them all.
On 4/10/07, Dave Newton <[EMAIL PROTECTED]> wrote:
--- [EMAIL PROTECTED] wrote:
> addFieldError("course.text"...
> I really do not like placing a jsp field
> name name in Java sourc
--- [EMAIL PROTECTED] wrote:
> addFieldError("course.text"...
> I really do not like placing a jsp field
> name name in Java source code, but I could
> not find another way to correlate the
> message to the field.
No, I think that's how it works. Technically
you already have the field name in th
How will S2 know which field the message is associated with? I was able to
get this to work last night, but I would like to get your feedback as to
whether or not it was an end around solution:
addFieldError("course.text", getText("label.duplicate"));
I really do not like placing a j
--
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/S2-Action-Validation-tf3549366.html#a9917015
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--- [EMAIL PROTECTED] wrote:
> Beyond this, how do I get an S2 action class to
> display a message on the web page?
See
http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/ActionSupport.html#addActionMessage(java.lang.String)
It takes a String, I18N provided by ActionSupp
Hi Scott:
All you have to do is:
YouAction{
public String your_execute_method() {
If(some error){
/ * Chose what is appropriate for you - Field errors display the message
on top of the field on HTML page*/
this.addActionError();
this.addActionMessage()
this.addFieldError();
retu
I have a situation where an attempt could be made to enter a description for
an item that already exists in the database. I am using Hibernate and
suspect the easiest way to prevent this is to use HQL prior to my save.
Beyond this, how do I get an S2 action class to display a message on the web
p
AIL PROTECTED]
> Sent: Monday, November 08, 2004 9:26 PM
> To: Struts Users Mailing List
> Subject: Action validation settings with dispatch actions
>
>
> In my project I group the CRUD actions for a table into a single
> dispatch action class.
>
> I've found that som
In my project I group the CRUD actions for a table into a single
dispatch action class.
I've found that sometimes I want the form validate to occur, sometimes
I don't. To accomodate this, I always have to have two instances of
my action mappings, one with validate set to true, the other to false.
: Struts Users Mailing List
Subject: RE: dispatch action / validation
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 01, 2004 10:29 AM
> To: [EMAIL PROTECTED]
> Subject: dispatch action / validation
>
>
> Is
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 01, 2004 10:29 AM
> To: [EMAIL PROTECTED]
> Subject: dispatch action / validation
>
>
> Is there a way for dispatch actions to have unique validation
>
[EMAIL PROTECTED] wrote:
Is there a way for dispatch actions to have unique validation requirements
based on the parameter?
It's easiest to just provide different action mapping names (which could
still refer to the same DispatchAction class) and then use one of the
ValidatorActionForms which wil
Is there a way for dispatch actions to have unique validation requirements
based on the parameter?
So for instance I could have the action.do?method=view dispatch skip
validation, but the action.do?method=edit do the validation?
Do dispatch actions and validation allow for this degree of gran
32 matches
Mail list logo