] wrote:
Hi!
I have a custom validator which works fine, but when the html:errors/
tag is being executed, it throws a ClassCastException. My validator has
the following line for adding to error messages:
errors.add( field.getKey(), new ActionMessage(errors.dates, date1,
date2));
If validation
Hi!
I have a custom validator which works fine, but when the html:errors/
tag is being executed, it throws a ClassCastException. My validator has
the following line for adding to error messages:
errors.add( field.getKey(), new ActionMessage(errors.dates, date1,
date2));
If validation passes
Hi,
I saw this error but probably in a different, though related context.
For eg, in my case, it was occuring as I declared my form as bookForm in
struts-config.xml but in my book.jsp, it was html:for name = booksForm
So may be checking this stuff in struts-config.xml may help
Thanks.
If you're using 1.1, try passing ActionError objects instead of ActionMessage
objects. The syntax should be the same, you'll just use a different object.
Hubert
--- Max Kovalenkov [EMAIL PROTECTED] wrote:
Hi!
I have a custom validator which works fine, but when the html:errors/
tag
I'm using ActionMessages class and ActionMessage for manipulate my errors and show
it in the html:errors / at jsp file but the message don't show , I was using the
ActionErrors and ActionError and was ok, no problems. How can I make to solve it.
cheers
Daniel S.
hi daniel
use this:
struts-html:messages id=error property=foo
struts-bean:write name=error/
/struts-html:messages
cheers,
-Original Message-
From: Daniel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 17, 2004 3:30 PM
To: Struts Users Mailing List
Subject: html:errors /
I'm
Struts Xslt generator for Eclipse
(http://easystruts.sf.net).
title bean:message key=logon.efetuar.logon //title
/head
body
html:messages id=error property=foo
bean:write name=error /
/html:messages
html:form action=logon
senha : html:password property=senha/html:errors
property=senha//br
]
Sent: Tuesday, February 17, 2004 4:03 PM
To: Struts Users Mailing List
Subject: Re: html:errors /
Sorry, but still dosn't work can you help-me ???
my source code is:
in execute method:
ActionMessages messages = new ActionMessages();
HttpSession session = (HttpSession)request.getSession
Hi there! I have a page that renders all my erros, called
errors.jsp (duh!). What I'm trying to do is if the user's session has
expired, I'll forward him using a javascript, after an alert: Here's how my
code looks like:
SCRIPT
function sessionExpired(){
alert(html:errors property
:
SCRIPT
function sessionExpired(){
alert(html:errors property=sessionExpiredString/);
top.frames.location=index.jsp;
}
function refreshScreen() {
html:errors property=sessionExpiredFunction/
}
/SCRIPT
Now, let's suppose the session has expired: the code displays this:
SCRIPT
function
I read somewhere that the html:errors tag is going to be deprecated and that
html:messages should be used instead. What's the correct syntax for using it
to display errors? Any code examples appreciated.
Thanks,
John
It is explained well here
http://jakarta.apache.org/struts/userGuide/struts-html.html#messages
HTH
Manish Singla
John Topley wrote:
I read somewhere that the html:errors tag is going to be deprecated and that
html:messages should be used instead. What's the correct syntax for using it
to display
Hi,
I've got a JSP page with some elements which are drawn by iterating
through a collection. Each of these elements can be validated
individually. The problem is that html:errors doesn't handle the
indexed tag as the other controls (e.g. html:text) do.
How can I show specific error messages
Hi There,
I am using html:errors\ 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
Message -
DATE: Mon, 15 Sep 2003 10:22:27
From: Ritvik [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc:
Hi There,
I am using html:errors\ 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
On Monday, September 15, 2003 at 3:22:27 PM, Ritvik wrote:
R Hi There,
R I am using html:errors\ 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
Dear All,
I have a question about html:errors tag. There is an optional attribute,
bundle as in html:errors bundle=something/
My question is how do I use bundle attribute; is it a reference to a
properties file or reference to a line in the default properties file?
Thank you in advance,
Yakov
List
Subject: html:errors
Dear All,
I have a question about html:errors tag. There is an optional
attribute,
bundle as in html:errors bundle=something/
My question is how do I use bundle attribute; is it a reference to a
properties file or reference to a line in the default properties file?
Thank
Thanks Amin.
But I still have a query.
I use
in my ActionForm:
ActionErrors errors = new ActionErrors();
errors.add(persDet1, new ActionError(error.option.required));
and then in the jsp file:
html:errors property=persDet1 bundle=persDet/
where persDet.properties exists and has
Thanks Amin.
But I still have a query.
I use
in my ActionForm:
ActionErrors errors = new ActionErrors();
errors.add(persDet1, new ActionError(error.option.required));
and then in the jsp file:
html:errors property=persDet1 bundle=persDet/
where persDet.properties exists and has
[mailto:[EMAIL PROTECTED]
Sent: Monday, August 18, 2003 10:51 AM
To: '[EMAIL PROTECTED]'
Subject: html:errors/ throwing null servlet exception
Using the nightly build from 8/14, I'm now getting a null
servlet exception
on an html:errors/ statement. I've also had to change from using
. ActionMessage. I made some
changes this weekend to allow html:errors to use ActionMessage and
ActionError objects. So, you shouldn't be using ActionError anymore but
you still have to use ActionErrors because it's returned from the forms'
validate() method. Just add ActionMessage objects to ActionErrors
on the html:errors/ statement (gives me a 'null' servlet
exception.) Since you've been working on making all this play nice, do I
just need to pull down a more recent nightly (I'm using 8/14 currently...)
Thanks!
Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS 66219
(913) 577
)
ee.getErrorKey()));
my JSP blows up on the html:errors/ statement (gives me a 'null'
servlet
exception.) Since you've been working on making all this play nice, do
I
just need to pull down a more recent nightly (I'm using 8/14
currently...)
Try the latest nightly. The html:errors tag
-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Monday, August 18, 2003 1:24 PM
To: 'Struts Users Mailing List'
Subject: RE: html:errors/ throwing null servlet exception
--- Jerry Jalenak [EMAIL PROTECTED] wrote:
David,
That's basically what I thought. However, when I change
...
/html:messages
m
--- David Thielen [EMAIL PROTECTED] wrote:
Hi;
I have two forms on one page. In this case, how do I
handle html:errors/ for each form? I want to put
the errors from each form above that form.
thanks - dave
__
Do you Yahoo!?
Yahoo
Hi;
I have two forms on one page. In this case, how do I handle html:errors/ for each
form? I want to put the errors from each form above that form.
thanks - dave
Hi,
I have this tag html:errors/ in my jsp file. But when error occurs, this
fails to display the error messages on the jsp file. There is only single
copy of my ApplicationResources.properties file.
I am overriding the validate() method of the ActionForm class. Could anybody
tell me where am
is in request
scope. If such a bean is not found, nothing will be rendered.
You could also modify your message resource properties to display your
errors in a table and let Struts do all of the work for you. From the
description of the html:errors tag
(http://jakarta.apache.org/struts/userGuide
Hi
u need to paste ur actionform as well as action class to gave us some idea of what is
goin wrong??
Thanks
Prashanth
Samanth Athrey [EMAIL PROTECTED] wrote:
Hi,
I have this tag in my jsp file. But when error occurs, this
fails to display the error messages on the jsp file. There is only
Hello,
I'm using DynaValidatorForm to check certain form fields are entered as required. The
validation is done sucessfully but I've recently added somthing that seems to have
stopped html:errors/ from displaying the errors?
Does anyone have any suggestions why this might have happened
-
From: James Adams [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 9:51 AM
To: [EMAIL PROTECTED]
Subject: html:errors/ not displaying the errors?
Hello,
I'm using DynaValidatorForm to check certain form fields are entered as
required. The validation is done sucessfully but I've recently
rid of the custom bundle name in the module
the errors showed up.
-Original Message-
From: James Adams [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 9:51 AM
To: [EMAIL PROTECTED]
Subject: html:errors/ not displaying the errors?
Hello,
I'm using DynaValidatorForm to check
-config.xml file.
James
www.seventyforty.com
- Original Message -
From: Bailey, Shane C. [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 3:13 PM
Subject: RE: html:errors/ not displaying the errors?
I forgot to mention that the only
all the error messages from the resource bundle
etc.
In my jsp I have the following tag to try to output the ActionError
messages
html:errors/
What's happening is, my jsp is being validated, but the messages just
aren't
getting outputted. I'm getting white space where the messages should
:Wed, 02 Jul 2003 10:28:03
to: [EMAIL PROTECTED]
subject: Re: html:errors/ problems
Hi all,
I'm trying to display errors on a jsp to which my form returns if the
data submitted is invalid.
My form extends org.apache.struts.validator.ValidatorForm
some fields use
July 2003 10:40
To: [EMAIL PROTECTED]
Subject: Re: html:errors/ problems
Hi Brian,
I had a problem like that when I ommited the following values from my
ApplicationResources file:
errors.header = ul
errors.footer = /ul
errors.prefix = li
errors.suffix =
Once I added them it worked fine
stating that it does not exist. Returning blank sounds
strange to me. Do you have a stack trace saying that your message is not in this file?
Regards
IV
from:Brian McSweeney [EMAIL PROTECTED]
date:Wed, 02 Jul 2003 11:13:54
to: [EMAIL PROTECTED]
subject: RE: html:errors
fine.
I really appreciate your help!
Brian
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 02 July 2003 11:26
To: [EMAIL PROTECTED]
Subject: RE: html:errors/ problems
Brian,
You want to have the message key in your ActionError and struts will
resolve
the message in my
Resource bundle. Once I put it in, everything worked fine.
I really appreciate your help!
Brian
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 02 July 2003 11:26
To: [EMAIL PROTECTED]
Subject: RE: html:errors/ problems
Brian,
You
Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: 02 July 2003 12:38
To: Struts Users Mailing List
Subject: RE: html:errors/ problems
Brian,
Now that the messages are working, one other thing you might want to
check is
whether your validator-based validation errors are really being
: html:errors/ problems
Brian,
Now that the messages are working, one other thing you might want to
check is
whether your validator-based validation errors are really being
captured. The
first few lines of your validate method look like they just ignore the
result of
calling super.validate
Absolutely! Large open-source projects...unbeatable!!
Viva la revolucion!
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: 02 July 2003 14:23
To: Struts Users Mailing List
Subject: RE: html:errors/ problems
;-) Glad it helped. Nothing like having billions
When I use the html:errors / tag under OC4J, I get a 500 error. All
other html tags work fine. Has anyone had this type of problem before?
Thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
Nothing in any of the logs. I'm using the standard struts-html.tld.
Karr, David [EMAIL PROTECTED] wrote:If you're getting a 500 error, that means your
server had an error.
Check the server log to see what broke.
You aren't by any chance mapping html to the html-el tag library,
are you?
try this ...
errors.header =alert(
errors.prefix =
errors.suffix =+ \\n +
errors.footer =);\n
...
script
function load() {
html:errors /
}
/script
...
body onLoad=load
...
it should work but it won't because of
http://issues.apache.org/bugzilla/show_bug.cgi?id=17418
so
Hi,
I want to display the validation error message from ActionForm in javascript
alert box, ragther than displaying on my jsp page.
I am doing it in a javascript function at page load time like this,
alert(html:errors /)
But i am getting the java script error saying Object expected. Any
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 displayed.
I'm
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= values. If I
basically, those 2 nulls are errors.header and errors.footer (am i right,
guys?) attributes that should be in your application.resources file but
struts is unable to find them.
HTH
-navjot singh
you wrote:
I have used the tag html:errors/ for displaying error messages,
It is displaying
I have used the tag html:errors/ for displaying error messages,
It is displaying in the front end as null message null , why the message
is preceded and appended with null.
What could be the problem please advise.
Regards,
Jailani.S
This e-Mail may contain proprietary and confidential
html:errors/ - Conditionally display a set of accumulated error messages.
Displays a set of error messages prepared by a business logic component
and stored as an ActionErrors object, a String, or a String array in
request scope. If such a bean is not found, nothing will be rendered.
In order
[EMAIL PROTECTED]To: Struts Users Mailing List
[EMAIL PROTECTED]
td.com cc: (bcc: jailani.s/Polaris)
Subject: Re: html:errors
I currently have a Struts 1.1 application that I am currently moving to use
frames and tiles. I am still not sure if my html:errors/ is not working
because I am using frames, or because it is not reading the
application.properties. This is where I need your help! :-)
When I expect an error
application that I am currently moving
to
use
frames and tiles. I am still not sure if my html:errors/ is not
working
because I am using frames, or because it is not reading the
application.properties. This is where I need your help! :-)
When I expect an error, I was getting the expected
-
From: Karr, David [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 9:50 AM
To: Struts Users Mailing List
Subject: RE: html:errors/ not showing anything!
And in your deployed WAR file, a file named application.properties is
in the directory WEB-INF/classes/resources?
In times like this, if I
-
From: Karr, David [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 9:50 AM
To: Struts Users Mailing List
Subject: RE: html:errors/ not showing anything!
And in your deployed WAR file, a file named application.properties
is
in the directory WEB-INF/classes/resources?
In times
It was Struts 1.1 RC1.
-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 10:08 AM
To: Struts Users Mailing List
Subject: RE: html:errors/ not showing anything!
After you wrote this, I tried to get a new version of that utility
Where did application.properties come from?
-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 5:50 PM
And in your deployed WAR file, a file named application.properties is in
the directory WEB-INF/classes/resources?
was to also add it to my web.xml file, not just my
struts-config.xml file.
Thanks for the responses.
Damian.
-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 10:08 AM
To: Struts Users Mailing List
Subject: RE: html:errors/ not showing anything
It seems that html:errors/ is broken in Struts 1.1rc1. I have a
jsp with the following code:
%@ taglib uri=http://jakarta.apache.org/struts/tags-html; prefix=html %
div class=disableTextboldhtml:errors//div
This page works fine, but whenever I change the uri to use the
html-el taglib
Jose == Jose Gonzalez Gomez [EMAIL PROTECTED] writes:
Jose It seems that html:errors/ is broken in Struts 1.1rc1. I have a jsp
with
Jose the following code:
Jose %@ taglib uri=http://jakarta.apache.org/struts/tags-html; prefix=html %
Jose div class
More accurately, the Struts-EL version may be broken. The uri you supplied
is the same as the normal html taglib.
David
From: Jose Gonzalez Gomez [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: html:errors
i l l i a m b o y d [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 22, 2003 10:00 PM
To: Struts Users Mailing List
Subject: Help: ActionError - html:errors / does not expand the {0}
placeholder
hello all,
developing on w98 with tomcat 3.2.24, mysql 3.23.36, struts 1.0.2, jdk
1.3.1., servlet
clarified, is of no use to me and my setup.
SHEESH!!!
- Original Message -
From: Jeff Kyser [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, February 23, 2003 3:59 AM
Subject: Re: Help: ActionError - html:errors / does not expand
the{0}placeholder
Sorry, Will, I
Please stop sending emails with 'Return receipt requested'. Its rather
annoying.
robert
-Original Message-
From: w i l l i a m b o y d [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 23, 2003 2:36 AM
To: Struts Users Mailing List
Subject: Re: Help: ActionError - html:errors / does
hello all,
developing on w98 with tomcat 3.2.24, mysql 3.23.36, struts 1.0.2, jdk
1.3.1., servlet 2.2. will be deploying on basically similar setup; but
deployment os is xp.
i got a jsp page that has a choice box that allows multiple choices. i set a
validation rule in my action form's validate
So what does your validation.xml file look like w.r.t. the rule in
question?
-jeff
On Saturday, February 22, 2003, at 09:00 PM, w i l l i a m b o y d
wrote:
hello all,
developing on w98 with tomcat 3.2.24, mysql 3.23.36, struts 1.0.2, jdk
1.3.1., servlet 2.2. will be deploying on basically
For example, on my loginForm, where field userName depends on the
required rule:
form-validation
formset
form name=loginForm
field property=userName depends=required
arg0 key=loginForm.username.displayname/
/field
constructor isn't being included
in the error message that is being output.
- Original Message -
From: Jeff Kyser [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, February 23, 2003 3:06 AM
Subject: Re: Help: ActionError - html:errors / does not expand the
{0
passed into the ActionError constructor isn't being
included
in the error message that is being output.
- Original Message -
From: Jeff Kyser [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, February 23, 2003 3:06 AM
Subject: Re: Help: ActionError - html:errors
!!!
- Original Message -
From: Jeff Kyser [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, February 23, 2003 3:59 AM
Subject: Re: Help: ActionError - html:errors / does not expand
the{0}placeholder
Sorry, Will, I missed the 1.0.2 reference. Have only worked
am i the only one scratching my head at this? did i miss something?
- Original Message -
From: w i l l i a m b o y d [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Saturday, February 22, 2003 11:17 PM
Subject: Re: Help: ActionError - html:errors / does not expand
w == w i l l i a m b o y d w writes:
w Sorry! Youve selected too many choices for {0}. (what happened to my
w apostrophe in You've ?)
w here is the appropriate line from my resource bundle:
w error.prefs.limit=Sorry! You've selected too many choices for {0}.
w
thanks, david
i will give that a try. in the meantime, any more suggestions from others
would be sincerely appreciated.
- Original Message -
From: David M. Karr [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, February 23, 2003 4:56 AM
Subject: Re: Help: ActionError - html:errors
Your comment about the apostrophe is a clue - it's a special character
in the MessageFormat class that's used for quoting. Use two apostrophes
to display '. I think you'll find {0} will then be evaluated.
And relax - Jeff's response may have been no help to you, but he was
trying.
And please
PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, February 23, 2003 6:40 AM
Subject: Re: Help: ActionError - html:errors / does not expand the {0}
placeholder
Your comment about the apostrophe is a clue - it's a special character
in the MessageFormat class that's used
-
From: w i l l i a m b o y d [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, February 23, 2003 7:14 AM
Subject: Re: Help: ActionError - html:errors / does not expand the {0}
placeholder
thanks paul,
you are right. for what it's worth, i'd already solved my
Hi all,
I would like to get a javascript alert with the content of html:errors/,
so I tried this in the JSP:
...
script
alert('html:errors/');
/script
...
But the HTML code generatd is the following,
script
alert
Hi frenz,
Here goes my problem...
How can i display action errors at different different places in jsp. For
example
i have username and password fields in a jsp.If the username is null then
i want display the error right behind the username text box...n the same for
password..
how can i do
http://jakarta.apache.org/struts/userGuide/struts-html.html#errors
See the property attribute.
David
From: varma dvk [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: html:errors/
Date: Mon, 17 Feb 2003 18:09:03 +0530
Hi frenz,
Here goes
Does this work for nested:errors/ as well? Or do I have to do something
different?
Affan
- Original Message -
From: David Graham [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 18, 2003 8:31 AM
Subject: Re: html:errors/
http://jakarta.apache.org/struts/userGuide/struts
I don't use nested but I think it will work the same as html:errors.
David
From: Affan Qureshi [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: html:errors/
Date: Tue, 18 Feb 2003 09:16:00 +0500
Does
/table
html:errors /
/html:form
/center
/body
/html
My login form :
// Created by Xslt generator for Eclipse.
// XSL : not found (java.io.FileNotFoundException: (Le chemin d'accès
spécifié est introuvable))
// Default XSL used : easystruts.jar$org.easystruts.xslgen.JavaClass.xsl
(in fact when I run the app and enter bad datas I didn't get any
errors message displayed on my login page)
- Original Message -
From: alexj [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, February 10, 2003 6:42 PM
Subject: html:errors / trouble
Hi I
What forwards are defined for your action in struts-config.xml?
- Original Message -
From: alexj [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, February 10, 2003 10:56
Subject: Re: html:errors / trouble
(in fact when I run the app and enter bad datas
/
forward name=student path= /
forward name=prof path= /
/action
- Original Message -
From: Sean Dockery [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, February 11, 2003 12:16 AM
Subject: Re: html:errors / trouble
What forwards are defined for your action
I just saw my mapping definition was incomplete ... :))
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
have made an simple struts-application. I got one problem.
That is when my actionerrors are shown generated with html:errors /,
it shows null in start and in the end of the error-messages. Don't
understand why the null's occur ? It shows like this:
null Definition
To: [EMAIL PROTECTED]
Subject: Question about ActionErrors html:errors
Hi,
have made an simple struts-application. I got one problem.
That is when my actionerrors are shown generated with
html:errors /,
it shows null in start and in the end of the error-messages. Don't
understand why
* Ali Khan ([EMAIL PROTECTED]) wrote:
Hi,
have made an simple struts-application. I got one problem.
That is when my actionerrors are shown generated with html:errors /,
it shows null in start and in the end of the error-messages. Don't
understand why the null's occur ? It shows like
Thanx, that did it, cheers.
Anders Hermansen wrote:
* Ali Khan ([EMAIL PROTECTED]) wrote:
Hi,
have made an simple struts-application. I got one problem.
That is when my actionerrors are shown generated with html:errors /,
it shows null in start and in the end of the error-messages
html:errors
Date: Fri, 31 Jan 2003 23:18:03 +0100
Hi,
have made an simple struts-application. I got one problem.
That is when my actionerrors are shown generated with html:errors /, it
shows null in start and in the end of the error-messages. Don't understand
why the null's occur ? It shows like
Subject: Question about ActionErrors html:errors
Hi,
have made an simple struts-application. I got one problem.
That is when my actionerrors are shown generated with html:errors /,
it shows null in start and in the end of the error-messages. Don't
understand why the null's occur ? It shows
Hi!
I am a new bie with Struts trying to figure out a way to display form
errors along with the form elemtn which was the source of the error.
For example, if the form is for new user registration, and it had two
errors - a. User name already exists
b. passwords dont match
these would be
, Errors, Warnings,
Information.
2. html:errors/, shows all of them in the same window, how to
segragate them into different types.
Any help in this regard may help me in getting Struts used in our
project.
Also if any of the developers, who read this mail, think that
this features can be developed
You can use the property attribute of html:errors/
In your Action or in your FormBean you save your errors under an appropriate
key :
In an action :
ActionErrors errors = new ActionErrors();
errors.add(Constants.FATAL_LEVEL, new ActionError());
or
errors.add(Constants.ERROR_LEVEL, new
Dear,
Describe:
I have for example 10 form field (with validaton required). I see in the
jsp(html:errors/) 10 errors when I try to inut ntohing.
Question:
I want to see in the jsp only for example 3 errors.
Best regards,
Dmitry.
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED
Get the user to enter data into 7 of the fields before they submit the form.
;-
-Original Message-
From: Dmitry Vasilenko [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 20:52
To: Struts Users Mailing List
Subject: html:errors/ question
Dear,
Describe:
I have for example
:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 1:52 PM
To: struts-user
Cc: vasilenko
Subject: html:errors/ question
Dear,
Describe:
I have for example 10 form field (with validaton required). I see in the
jsp(html:errors/) 10 errors when I try to inut ntohing.
Question:
I want to see
1 - 100 of 317 matches
Mail list logo