Hi There,
I am using tag at top of my page to display any
validation errors when a form is submitted, but for some reason, I
couldn't see any errors message even I have left some mandatory fields
blank. I am not getting any errors in server log as well.
I have added the validation logic in valid
Hi,
is it possible to do something like this with struts:
I have a form with labels for the input fields.
These labels have the font color blue.
The Form is validated by the FormBean.
When one or more fields of the form are invalid
and the control is forwarded back to the input form,
the labels
Memo from Nic Hobbs of PricewaterhouseCoopers
Start of message text
I am using the nightly build from about Wednesday last week so let me know if I
should just get the latest one (which I intend to do tomorrow anyway) but...
Using the seems to be ex
This is some code that I used in an actionForm.
public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
ActionErrors errors = new ActionErrors();
if ((userId == null) || (userId.length() < 1)) {
errors.add("noUser", new ActionError
("adresses.insertUser.noUser"));
}
retur
On Monday, September 15, 2003 at 3:22:27 PM, Ritvik wrote:
R> Hi There,
R> I am using tag at top of my page to display any
R> validation errors when a form is submitted, but for some reason, I
R> couldn't see any errors message even I have left some mandatory fields
R> blank. I am not getting a
While playing with Kevin's action input= suggestion, I found I needed
to mess with the redirect= values. If I set redirect=true, my
relative paths work fine.
However, I am using the html:errors tag and it seems that it has
gotten "lost", i.e. I do not get my validation errors
cell is colored red.
Pratima
-Original Message-
From: Matthias Brahm [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 9:25 AM
To: '[EMAIL PROTECTED]'
Subject: html:errors tag?
Hi,
is it possible to do something like this with struts:
I have a form with labels for
You can check if there is an errors object in scope
using the logic tags to change the color of a label.
red label1
blue lable2
If you want to display the error message next to a
field, you can do this. This will display all error
messages that have
what i do is check if the error object exists and if
> the row and column
> indices match one of the fields being displayed -
> the cell is colored red.
>
> Pratima
>
>
>
> -Original Message-
> From: Matthias Brahm [mailto:[EMAIL PROTECTED]]
> Sent: Wednesd
The property attribute was only implemented recently. You need the 20010128
build or later for it to work.
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 29 January 2001 18:59
> To: [EMAIL PROTECTED]
> Subject: html:errors tag
>
&g
[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc:
Subject: RE: html:errors tag
The property attribute was only implemented recently. You need the 20010128
build or later for it to work.
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 29
butes
intact.
-Josh
-Original Message-
From: Gregory F. March [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 3:08 PM
To: Struts Users Mailing List
Subject: html:errors tag lost?
While playing with Kevin's action input= suggestion, I found I needed
to mess with the redirect= val
hi people
using struts1.1beta
i want to display my errors such that i get any major errors at the
top of the page and then any form specific validation errors down
with my form. doing this simply was in fact my main motivation for
migrating to struts.
so i have set up my page and it all wor
Hi. I'm trying to do this on a JSP page:
And my form's validate method adds to the ActionErrors using:
errors.add("foo"+i, new ActionError("errors.badFoo"));
The problem is, I can get all the error messages back with a simple
tag, but the above construct doesn't show the error
messa
Hi,
I'm using the tag to display errors after
the form validation fails. The problem is that when the error is
displayed it contains a "null" string at the begining and at the end on
the actual error message. Ex.: "null Password is required null".
What's going on ? Is this fix-able ?
Jf
-
On Fri, Mar 08, 2002 at 06:05:42PM -0500, Jonathan Fuerth wrote:
>
I figured it out. I changed the above line to:
And now it works just as I wanted it to!
Does anyone know why this is? Something to do with the way RTExpr
attributes are supposed to work in JSP? Or maybe it's a quirk with
To: Struts Users Mailing List
Subject: html:errors tag funny null strings
Hi,
I'm using the tag to display errors after
the form validation fails. The problem is that when the error is
displayed it contains a "null" string at the begining and at the end on
the actual error mes
before proceeding:
> errors.footer=
>
>
> -Original Message-
> From: Jan Fetyko [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 20, 2002 1:51 PM
> To: Struts Users Mailing List
> Subject: html:errors tag funny null strings
>
>
> Hi,
>
> I'm using
List"
Subject: Re: html
are missing entries for
> "errors" as in...
> >
> > errors.header=Validation
> ErrorYou must
> > correct the following error(s) before proceeding:
> > errors.footer=
> >
> >
> > -Original Message-
> > From: Jan Fetyko [mailto:[EMA
>
> List"
>
Hi,
I am a newbie to struts. Right now, I am able to display server side
errors using the html:errors tag. But, I want to extend the
functionality of this to display some dynamic text.
I want to pass a parameter to the tag in Application.properties file
which adds the parameter to the text
22 matches
Mail list logo