got this working too.
bundle="${appbundle}"/>
Thanks a lot David and Niall.
From: "fea jabi" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: user@struts.apache.org
Subject: Re: errorStyleClass not workin
Thanks.
From: "Niall Pemberton" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: "Struts Users Mailing List"
Subject: Re: errorStyleClass not working
Date: Fri, 21 Jul 2006 23:29:47 +0100
On 7/21/06, David Friedman <[EMAIL PROTECT
(Unles Niall has any ideas).
Regards,
David
-Original Message-
From: fea jabi [mailto:[EMAIL PROTECTED]
Sent: Friday, July 21, 2006 9:13 AM
To: user@struts.apache.org
Subject: RE: errorStyleClass not working
I think the problem is on server side.
As in the dispatch aciton
Thanks a lot, David for your help.
From: "David Friedman" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: "Struts Users Mailing List"
Subject: RE: errorStyleClass not working
Date: Fri, 21 Jul 2006 13:16:21 -0400
You should find out what
works right with your indexed properties.
I'm out of ideas at this point so good luck (Unles Niall has any ideas).
Regards,
David
-Original Message-
From: fea jabi [mailto:[EMAIL PROTECTED]
Sent: Friday, July 21, 2006 9:13 AM
To: user@struts.apache.org
Subject: RE: errorStyleClass n
uts Users Mailing List"
To: "Struts Users Mailing List"
Subject: RE: errorStyleClass not working
Date: Thu, 20 Jul 2006 17:23:48 -0400
Is your problem server side or client side? If you problem is client side
then you should read the struts javadocs:
http://struts.apache.org/1.2.7/api/
Is your problem server side or client side? If you problem is client side
then you should read the struts javadocs:
http://struts.apache.org/1.2.7/api/org/apache/struts/validator/ValidatorPlug
In.html
Or the User Guides:
http://struts.apache.org/1.x/faqs/validator.html
Both of them mention a pl
index
properties? how can this be done?
Thanks.
From: "Niall Pemberton" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: "Struts Users Mailing List"
Subject: Re: errorStyleClass not working
Date: Thu, 20 Jul 2006 00:45:41 +0100
See "1. W
n errors instead of ActionMessages?
Thanks.
>From: "David Friedman" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List"
>To: "Struts Users Mailing List"
>Subject: RE: errorStyleClass not working
>Date: Wed, 19 Jul 2006 14:51:48 -0400
right.
When to use the ActionMessages and when to use ActionErrors.
Thanks a lot for your help.
From: "fea jabi" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: user@struts.apache.org
Subject: RE: errorStyleClass not working
Date: Wed, 19 Jul 2006 15
rrors instead of ActionMessages?
Thanks.
From: "David Friedman" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: "Struts Users Mailing List"
Subject: RE: errorStyleClass not working
Date: Wed, 19 Jul 2006 14:51:48 -0400
There is something odd going
ds,
David
-Original Message-
From: fea jabi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 19, 2006 1:57 PM
To: user@struts.apache.org
Subject: RE: errorStyleClass not working
yes, using 1.2.7 version of struts. This(errorStyleClass) does work in
another page though whose property is i
t;[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: "Struts Users Mailing List"
Subject: RE: errorStyleClass not working
Date: Wed, 19 Jul 2006 13:36:10 -0400
I see your final output does not list the class="..." attribute. What
version of struts are you
output of your html:text tag on a page which also shows the actual errors,
via the html:errors tag, right?
Regards,
David
-Original Message-
From: fea jabi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 19, 2006 1:28 PM
To: user@struts.apache.org
Subject: RE: errorStyleClass not workin
Users Mailing List"
To: "Struts Users Mailing List"
Subject: RE: errorStyleClass not working
Date: Wed, 19 Jul 2006 13:12:17 -0400
I was asking what your html:text tag outputs. Can you post what it puts
into your web page (when you view the source of the generated page?) You
know
xcept for this nested page.
.errormsg{
color: red;
background: inherit;
font-size: 11px;
border: 1px solid red;
padding: 3px;
}
Hoping to get an answer for this. Thanks.
>From: "David Friedman" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List"
>To: &
{
color: red;
background: inherit;
font-size: 11px;
border: 1px solid red;
padding: 3px;
}
Hoping to get an answer for this. Thanks.
From: "David Friedman" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: "Struts Users Mailing List"
Subject:
a) Have you checked your output to make sure the class is set in the html
when an error occurs?
b) What is the CSS you specify for that "errormsg" style definition?
c) Have you embedded your style definition in the web page to ensure it is
loaded properly? FireFox has a good plugin called "web d
can someone help me with this please.
Thanks.
From: "fea jabi" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: user@struts.apache.org
Subject: errorStyleClass not working
Date: Mon, 17 Jul 2006 11:44:49 -0400
struts-config
dynamic="true">
thankyou, for detail explanation.
From: "Frank W. Zammetti" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: "Struts Users Mailing List"
CC: user@struts.apache.org
Subject: Re: errorStyleClass
Date: Thu, 16 Mar 2006 11:03:51 -0500 (EST)
elements are a bit notorious in not allowing you all the CSS
flexibility the other controls do. This is, as I understand it, because a
is treated essentially as a separate window. For instance, note
that if you have a and you position it over a , regardless
of how you try and set the z-index,
Message -
From: "RathinaGanesh MeenakshiSundaram" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Wednesday, January 04, 2006 7:23 PM
Subject: Re: ErrorStyleClass
Thanks a lot Niall.
I does work..We were displaying our errors in the jsp with
Thanks a lot Niall.
I does work..We were displaying our errors in the jsp with
And assumed that, errors can only be displayed with GLOBAL_ERRORKEY.
Thanks,
Ganesh.
On 1/4/06, Niall Pemberton <[EMAIL PROTECTED]> wrote:
>
> OK, you need to associat
OK, you need to associate the message with the "lastName" property and not
ActionErrors.GLOBAL_ERROR, so something like...
if ((lastName == null) || (lastName.trim().length() == 0)) {
errors.add("lastName", new ActionMessage("
error.login.nolastname"));
}
Niall
- Original Messa
Niall,
I do the same thing you say, except that, Iam storing them as "
ActionErrors.GLOBAL_ERROR"
This is what, I have in the validate method
if ((lastName == null) || (lastName.trim().length() == 0)) {
errors.add("ActionErrors.GLOBAL_ERROR", new ActionMessage("
error.login.nola
For the errorStyleClass to be used there need to be a set of
"ActionMessages" stored under the appropriate key (i.e. Globals.ERROR_KEY)
and there needs to be a message for the field in error - i.e. in your case a
message associated with the "lastName" property.
If your returning an appropriate set
Thanks.
I figured out the issue. I had a different version of struts in another app,
and somehow that was classloader was picking up that older version..
But, still after I get them right, the text field is not picking up the
errorStyleClass and just has the styleClass, even incase of error..!
Her
OK but a "setter" does exist for that property in the tag in
Struts 1.2.7 and Struts 1.2.8 so somethings wrong in your app somewhere.
Niall
- Original Message -
From: "RathinaGanesh MeenakshiSundaram" <[EMAIL PROTECTED]>
Sent: Tuesday, January 03, 2006 5:23 PM
Niall,
I checked up the
Niall,
I checked up the struts version in the war file. And, Iam sure, Iam using
1.2.8 version. Although, I previously used 1.2.7
Thanks,
Ganesh.
On 1/3/06, Niall Pemberton <[EMAIL PROTECTED]> wrote:
>
> Ganesh,
>
> This is almost certainly a problem in your deployment/application rather
> than
Ganesh,
This is almost certainly a problem in your deployment/application rather
than a bug in struts - I use this feature with Struts 1.2.8 and it works
fine. Unless you can demonstrate that its a bug in struts rather than your
app then I am likely to close any bug you open for this as "WORKSFORM
Thanks Laurie
I was going thru' over the versions of struts all thru' my application. I
was previously using 1.2.7. But did'nt help.
Then, again, changed to 1.2.8 version..But, still it throws me the same
error message.
I'm sure, Iam using the errorStyleClass in only one html:text tag.
I'll t
Are you sure that html:text tag is the only place you have specified
errorStyleClass? The exception could be coming from another tag you've
used that attribute on.
Failing that, check what version of Struts you really have deployed (and
check of extra, out-of-date, copies of struts.jar in your
Thanks Laurie,
Sorry, was busy with some other work..
This is the jsp code, Iam using..
This was the stack trace, Iam getting...
15:55:48,137 ERROR [Engine] StandardWrapperValve[jsp]: Servlet.service() for
servlet jsp threw exception
org.apache.jasper.JasperException: /index.jsp(109,6) Unable t
RathinaGanesh MeenakshiSundaram wrote:
Hi All,
I was trying to style an text field, when an error occurs for that text
field.
I thought, errorStyleClass would help..But, It was just throwing me the
following error message..
"Unable to find setter method for attribute: errorStyleClass"
I was wo
It should be straight forward - there are only two things you need to do:
1) Sore you ActionMessages under the standard struts "error" key - which if
your using (or ) you probably are already doing
anyway. If you're doing your validation in the ActionForm's validate method
then this happens autom
At 3:26 PM +0100 10/17/05, [EMAIL PROTECTED] wrote:
Hi there,
I would like to make use of the errorStyleClass functionality with
validation errors that I create in my action class using
ActionMessages. I guess there must be a way of letting the
ActionMessage object know which UI field it is re
I've been looking into the BeanUtils isssue, and I've posted details on
that bug - see Bug 28358
http://issues.apache.org/bugzilla/show_bug.cgi?id=28358
To summarise, there is a problem in how different versions of the JDK work
with indexed properties when you use java.util.List for your ind
37 matches
Mail list logo