You're absolutely correct.
Thank you! And thanks to as as for answering!
Max
Hubert Rabago wrote:
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]
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 is
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
:28 AM
Subject: RE: html:errors /
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
]
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
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
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));
}
return
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 not
Refers to the properties file. Since errors message key is a constant,
therefore it does not need to refer to a specific line in the properties
file.
Amin
-Original Message-
From: Yakov Belov [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 10:54 AM
To: Struts Users Mailing
' [EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 1:24 PM
Subject: RE: html:errors
Refers to the properties file. Since errors message key is a constant,
therefore it does not need to refer to a specific line in the properties
file.
Amin
-Original Message-
From: Yakov Belov
' [EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 1:24 PM
Subject: RE: html:errors
Refers to the properties file. Since errors message key is a constant,
therefore it does not need to refer to a specific line in the properties
file.
Amin
-Original Message-
From: Yakov Belov
Partially answering my own question -
Changing back to use ActionError (and ignoring the deprecation messages that
Eclipse spits out), I can get my messages to work. Obviously the problem is
that I am mixing ActionErrors and ActionMessage. What is the preferred
method? It looks like
--- Jerry Jalenak [EMAIL PROTECTED] wrote:
Partially answering my own question -
Changing back to use ActionError (and ignoring the deprecation messages
that
Eclipse spits out), I can get my messages to work. Obviously the
problem is
that I am mixing ActionErrors and ActionMessage. What
-1496
[EMAIL PROTECTED]
-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Monday, August 18, 2003 11:28 AM
To: Struts Users Mailing List
Subject: RE: html:errors/ throwing null servlet exception
--- Jerry Jalenak [EMAIL PROTECTED] wrote:
Partially answering
Blvd.
Lenexa, KS 66219
(913) 577-1496
[EMAIL PROTECTED]
-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Monday, August 18, 2003 11:28 AM
To: Struts Users Mailing List
Subject: RE: html:errors/ throwing null servlet exception
--- Jerry
-
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
Look at the logic:messagesPresent tag. From the description of the
messagesPresent tag
(http://jakarta.apache.org/struts/userGuide/struts-logic.html#messagesPresent):
Evaluates the nested body content of this tag if an |ActionMessages|
object, |ActionErrors| object, a String, or a String array
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
The errors tag consults a pageContext attribute (I believe in the request)
which has a key of Globals.ERROR_KEY (unless you are in a module then I
think the key is [Globals.ERROR_KEY + /modulename]) I guess you could
start by seeing if the key exists in your JSP.
-Original Message-
I forgot to mention that the only time I can remember that happening is when
I first when to modules and I tried making my own custom bundle for messages
in my module's struts config.
Error messages weren't showing up because of the custom resource bundle name
in my modules. As soon as I got
-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
: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
PROTECTED]
Subject: RE: html:errors/ problems
Brian,
You want to have the message key in your ActionError and struts will
resolve it from the ApplicationResources file for you. It is not
something you manually need to do.
However last time I tried to return a value which
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
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
I believe the answer to your question is that a redirect causes a new
request to be made. Because of this, the errors object in your request is
gone. It was a part of the old request. When redirect is set to false,
it's merely forwarding a request and therefore keeping all of the attributes
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 in
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 to
[EMAIL PROTECTED]To: Struts Users Mailing List
[EMAIL PROTECTED]
td.com cc: (bcc: jailani.s/Polaris)
Subject: Re: html:errors
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 can't figure out why something isn't finding a
file I think it should find, I like to set up a file I/O monitor, that
basically tracks all system calls, and
-
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
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
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/
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
(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]
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
do some thing like...
public static void logErrorOnce(ActionErrors errors, String errorKey) {
if (errors.get(errorKey).hasNext() == false) {
logError(errors, errorKey);
}
}
-Original Message-
From: vasilenko
In my sample space for error information is limited. I want to outut only
first 3 errors. :(
- Original Message -
From: Andrew Hill [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, December 18, 2002 3:05 PM
Subject: RE: html:errors/ question
Get
Message-
From: Dmitry Vasilenko [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 21:08
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: html:errors/ question
In my sample space for error information is limited. I want to outut only
first 3 errors. :(
- Original
(ERROR_KEY);
log.debug(errors is:+errors);//this is null
Thanx,
Vijay
-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 5:47 AM
To: Struts Users Mailing List
Subject: RE: html:errors ActionErrors.GLOBAL_ERROR
Are you invoking
-
From: Dmitry Vasilenko [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 21:08
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: html:errors/ question
In my sample space for error information is limited. I want to outut only
first 3 errors. :(
- Original Message
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 22:12
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: html:errors/ question
How 'bout using a dummy form with a select element whose size attribute is
3?
Each error message would be rendered as an option element. Of course
As I understand this is for Action class.
In my sample i use DynaValidatorForm and
I must cath error in the jsp page.
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 18, 2002 3:04 PM
Subject: RE: html:errors/ question
do some thing like
Are you invoking saveErrors() in the action that generates the ActionErrors?
Sri
-Original Message-
From: Vijay Balakrishnan [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 4:48 PM
To: '[EMAIL PROTECTED]'
Subject: html:errors ActionErrors.GLOBAL_ERROR
Hi,
I am doing the
is:+errors);//this is null
Thanx,
Vijay
-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 5:47 AM
To: Struts Users Mailing List
Subject: RE: html:errors ActionErrors.GLOBAL_ERROR
Are you invoking saveErrors() in the action that generates
To place the error beside the text field, you explicitly call it next to
each field.
In your case, simply do this:
html:text property=username /nbsp;html:errors property=username /
br
html:password property=password /nbsp;html:errors property=password /
Hope this helps,
-scott
At 06:52 PM
Joao,
Did you do this?
PUsername: html:text property=username/html:errors
property=username//P
PPassword: html:password property=password/html:errors
property=password//P
Regards,
Richard
-Original Message-
From: Joao Araujo [SMTP:[EMAIL PROTECTED]]
Sent: Friday,
thank you guys.
Joao,
Joao,
Did you do this?
PUsername: html:text property=username/html:errors
property=username//P
PPassword: html:password property=password/html:errors
property=password//P
Regards,
Richard
-Original Message-
From: Joao Araujo [SMTP:[EMAIL
ok, I found the messagesPresent tag in the logic tags. I still have a
problem though:
What if I need the logic to display for two specific properties:
It would be nice if I could do something like this:
logic:messagesPresent property=field1,field2Some Logic
Here/logic:messagesPresent
Any
It's been a few weeks since I've reviewed this, but I don't believe there's an easy
way to get what you want.
There is a bug on Bugzilla, #13565, where we've been hashing out some thoughts on
this. If this is really an issue for you, please write a comment on the bug report
with details of
Jerry,
I really can't see a way to get at everything *except* the global errors. You
should be able to get at *just* the global errors with:
html:errors
property=%= org.apache.struts.action.ActionErrors.GLOBAL_ERROR %/
Quoting Jerry Jalenak [EMAIL PROTECTED]:
Any help on this at all?
My error messages do show up. They show up as one long string. For
instance, they would show up like Text of error1. Text of error2. Text
of error3
I would like to get this resolved without putting li tags around the
messages themselves.
thanks, Doug
On Wed, 2002-10-09 at 17:37, David
: Doug Bryant [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 8:47 AM
To: Struts Users Mailing List
Subject: Re: html:errors - how do you make a bulleted error list
My error messages do show up. They show up as one long string. For
instance, they would show up like Text of error1. Text
Do any of your error messages show up, or just the header and footer?
It will only print the prefix if there are errors to display.
Dave
From: Doug Bryant [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: html:errors
-
From: Jerry.Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 5:17 PM
To: Chmura, William B.
Subject: RE: html:errors/ not displaying message?
Should've read the rest of your message, the part where you changed the
message-resources
I made the same change, and lo
For your html:errors/ tag, don't specify the name attribute. Specify the
property attribute instead. It would look like:
html:errors property=userID /
I hope this helps ya out.
~ Keith
http://www.buffalo.edu/~kkamholz
-Original Message-
From: Jerry Jalenak [mailto:[EMAIL
with localization? Ideas?
Jerry
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 1:44 PM
To: 'Struts Users Mailing List'
Subject: RE: html:errors/ not displaying message?
For your html:errors/ tag, don't specify the name
Could just not be finding your properties file...
Should be in:
/classes/com/labone/Messages/ApplicationResources.properties
-Original Message-
From: Jerry.Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 3:02 PM
To: struts-user
Subject: RE: html:errors
Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 2:28 PM
To: [EMAIL PROTECTED]
Subject: RE: html:errors/ not displaying message?
Could just not be finding your properties file...
Should be in:
/classes/com/labone/Messages
You mean html:html locale=true ?
-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 3:23 PM
To: 'Struts Users Mailing List'
Subject: RE: html:errors/ not displaying message?
Checked. it's there. I seem to remember a post sometime ago
To: 'Struts Users Mailing List'
Subject: RE: html:errors/ not displaying message?
Checked. it's there. I seem to remember a post sometime ago about
having to specify locale= , but can't seem to remember where it needs to be
coded. I went to check the archives about an hour ago and couldn't get
To: 'Struts Users Mailing List'
Subject: RE: html:errors/ not displaying message?
Would it go in the message-resources tag in your struts-config.xml? I
haven't done it, but i think i remember seeing that on this list.
~ Keith
http://www.buffalo.edu/~kkamholz
-Original Message-
From
http://www.buffalo.edu/~kkamholz
-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 3:36 PM
To: 'Struts Users Mailing List'
Subject: RE: html:errors/ not displaying message?
Well, that's just it. I don't remember either, and can't see to find
I've never specified locale...
I did get the ?en_US**? When it could not find my entry or my entire
properties file...
-Original Message-
From: Jerry.Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 3:36 PM
To: struts-user
Subject: RE: html:errors/ not displaying
The ?? Show that its not being found - within the ?? is the kjey its
looking for...
-Original Message-
From: kkamholz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 3:44 PM
To: struts-user
Subject: RE: html:errors/ not displaying message?
The question marks MIGHT
In fact, I think I'll try to add an
'english' version of the file and see what happens.
jerry
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 2:54 PM
To: [EMAIL PROTECTED]
Subject: RE: html:errors/ not displaying message
other
things).
-Original Message-
From: Jerry.Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 3:52 PM
To: struts-user
Subject: RE: html:errors/ not displaying message?
I agree, it appears that the key is not being found. The ActionForm
adds
the message like
Are the following properties in your properties file?
errors.header=
errors.footer=
robert
-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 3:23 PM
To: 'Struts Users Mailing List'
Subject: RE: html:errors/ not displaying message
You can use HTML syntax in your ApplicationResources.properties file for any
error key like:
default.global.error.key=table border=0 cellpadding='4' cellspacing='4'
bgcolor='#FF'trtdspan class=errorValidation errors were
encountered while processing your request.brPlease review your entries
Something like this would make Struts more MVC-like I think, more flexible toward
graphical design.
Has anyone implemented tags that allow for this approach, or is it possible with
existing Struts tags?
tnx
-Jan
[EMAIL PROTECTED] 11-07-02 16:37
Like so?
logic:messagesPresent
font
Maybe I am misunderstanding you, but the tags I put in below exist
already (the sample is right out of a working jsp page)
-Original Message-
From: Jan.Vervecken [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 9:27 AM
To: struts-user
Subject: RE: html:errors
Something like
]]
Sent: Dienstag, 16. Juli 2002 15:40
To: [EMAIL PROTECTED]
Subject: RE: html:errors
Maybe I am misunderstanding you, but the tags I put in below exist
already (the sample is right out of a working jsp page)
-Original Message-
From: Jan.Vervecken [mailto:[EMAIL PROTECTED
/
/html:messages
/logic:messagesPresent
I am too familiar with setting an error to a specific field though...
maybe thats what you are looking for?
-Original Message-
From: reigenheer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 9:45 AM
To: struts-user
Subject: RE: html:errors
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 9:27 AM
To: struts-user
Subject: RE: html:errors
Something like this would make Struts more MVC-like I think, more
flexible toward graphical design.
Has anyone implemented tags that allow for this approach, or is it
possible with existing
Sorry about that... I started with the older struts, but did not really
start working with it alot until recently under the 1.1 regime
-Original Message-
From: Jan.Vervecken [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 10:17 AM
To: struts-user
Subject: RE: html:errors
ah
%
ActionErrors ae = ( ActionErrors) request.getAttribute( Action.ERROR_KEY);
boolean err = false;
if( ae != null) { err = true; }
%
%
if( err) { do_something }
%
Mark (back from Amsterdam)
-Original Message-
From: Chang, Henrique [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15,
Thanks, this is what I was looking for!
Henrique.
-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15, 2002 5:06 PM
To: 'Struts Users Mailing List'
Subject: RE: html:errors ActionErrors accessible as scripting variable?
%
ActionErrors ae
I have no idea if this is the best way to do this but I *believe* this
will work;
Object value = pageContext.getAttribute
(Action.ERROR_KEY, PageContext.REQUEST_SCOPE);
if (value == null) {
//No errors found
} else {
//Errors encountered
}
I don't think there's any tag
'
Subject: RE: html:errors ActionErrors accessible as scripting
variable?
%
ActionErrors ae = ( ActionErrors) request.getAttribute(
Action.ERROR_KEY);
boolean err = false;
if( ae != null) { err = true; }
%
%
if( err) { do_something }
%
Mark (back from Amsterdam)
-Original
Hey,
This kinda depends on what errors you are looking for. If you are using
automatic form validation, then make the validate() method simply return an
ActionErrors object with any error messages. If there are no errors, return
null or an empty ActionErrors. Struts will automatically take the
Subject: Re: html:errors
From: Eric Rizzo [EMAIL PROTECTED]
===
[EMAIL PROTECTED] wrote:
Like so?
logic:messagesPresent
font color=Redhtml:errors//font
/logic:messagesPresent
For that why not just put the font... and /font elements as the
value of errors.header and errors.footer in your
with
it.
~ Keith
http://www.buffalo.edu/~kkamholz
-Original Message-
From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 12:40 PM
To: [EMAIL PROTECTED]
Subject: Re: html:errors
Subject: Re: html:errors
From: Eric Rizzo [EMAIL PROTECTED]
===
[EMAIL PROTECTED
Message-
From: kkamholz [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 2:10 PM
To: struts-user
Subject: RE: html:errors
Yeah, that's what I do. I make the font part of the header/footer, as
well
as tags for a list. Then the individual error messages are list items.
It
creates
Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 3:39 PM
To: [EMAIL PROTECTED]
Subject: RE: html:errors
If you have the HTML in the resources file, you are stuck with that font
across the whole application I would think. For a form or something its
1 - 100 of 146 matches
Mail list logo