struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Hill" <andrew.david.h...@gridnode.com>
Subject RE: ActionErrors
Date Wed, 09 Oct 2002 02:53:33 GMT
1.) Alamak! Didnt you so much as glance at the docs for the html:errors tag?
Im sure you can find all the information you require at this link (Warning:
contains rude language):
http://altgeek.org/methuselah/rtfm/
;-)
hehe if that one is no help can also try the struts manual:
http://jakarta.apache.org/struts/doc-1.0.2/api/org/apache/struts/taglib/html
/package-summary.html#package_description
and
http://jakarta.apache.org/struts/doc-1.0.2/struts-html.html#errors
(look at the property attribute)

2.) Ah, now this is a real question!
I had a glance at the source for the errors tag and it is here that the key
of the error object is used to look up the i18n message from the bundle (ie:
its not done in the error object itself).
I presume your aim is to be able mix normal errors and your custom errors
together?
If this is the case, your best bet may well be (& there are probably better
ways) to create your own tag (based on errors tag) that displays both your
custom errors and normal ones, and create your own error objects that extend
ActionError (and that your error tag will recognise as a custom error).

-----Original Message-----
From: Maizatulakmam Ali [mailto:mai@mimos.my]
Sent: Wednesday, October 09, 2002 08:50
To: struts-user@jakarta.apache.org
Subject: ActionErrors


I want to know how :
1. To display errors at specific location . Not such the normal one
which we display the errors in a bundle.
2. To add custom errors instead of reading the errors from
ApplicationResource.properties

I need the answer as soon a possible.




--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message