Thanks, this works for my needs.
Paula
-Original Message-
From: Dave Newton [mailto:newton.d...@yahoo.com]
Sent: Friday, April 24, 2009 2:57 PM
To: Struts Users Mailing List
Subject: Re: HTML:errors
McDowell, Paula wrote:
> So is "Globals" a session bean with constant varia
McDowell, Paula wrote:
So is "Globals" a session bean with constant variable ERROR_KEY?
No, the value of Globals.ERROR_KEY names a session bean.
http://struts.apache.org/1.2.x/userGuide/struts-html.html#messages
Dave
-
To u
Thanks, for your response.
So is "Globals" a session bean with constant variable ERROR_KEY?
Thanks,
Paula
-Original Message-
From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com]
Sent: Thursday, April 23, 2009 12:51 PM
To: Struts Users Mailing List
Subject: Re: HTML:erro
2009/4/23 McDowell, Paula :
> Is there a way to check the field in the jsp for not empty? I
> only want to display an html group if the errors field is empty. I'm using
> Struts 1.1.
I've been using such structure:
Regards
--
Lukasz
http:/
All,
Is there a way to check the field in the jsp for not empty? I
only want to display an html group if the errors field is empty. I'm using
Struts 1.1.
Thanks,
Paula
Private and confidential as detailed here:
http://www.sug.com/disclaimers/default.htm#Mail . If you cannot access the
lin
On 11/3/06, robin bajaj <[EMAIL PROTECTED]> wrote:
Hi Adam,
Yes, I think html:errors is a pretty good validaiton mechanism.
Especially if you use the Struts validation framework (validation.xml,
validator-rules.xml) for
generating your errors.
Yes I am using validation.xml and val
Hi Adam,
Yes, I think html:errors is a pretty good validaiton mechanism.
Especially if you use the Struts validation framework (validation.xml,
validator-rules.xml) for
generating your errors.
For showing errors right beside each specific field that fails the
validation, you will need
to have
Hi all I am using struts 1.2.9 and starting to work on error validation. So
far I have my login page using:
etc etc etc.
I was wondering firstly Is this still the best manner in which to display
errors ?
The second question which has more to do with the title is
How does one use
t;
>
>
jubs
On 3/13/06, fea jabi <[EMAIL PROTECTED]> wrote:
>
> Using struts 1.2.7
>
> which one to use? html:messages or html:errors??
>
>
> I am using
ueue">
> name="msgQueue"/>
>
>
>
>
>
>
jubs
On 3/13/06, fea jabi <[EMAIL PROTECTED]> wrote:
>
> Using struts 1.2.
On 3/13/06, fea jabi <[EMAIL PROTECTED]> wrote:
> Using struts 1.2.7
>
> which one to use? html:messages or html:errors??
http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html
--
Wendy
-
To unsu
Using struts 1.2.7
which one to use? html:messages or html:errors??
I am using html:errors now and displaying errors for each property i.e using
Just wondering why html:messages is available? when this tag can be used?
Thanks
to do this?
From: "Kalcevich, Daniel" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: "Struts Users Mailing List"
Subject: RE: html:errors
Date: Fri, 10 Mar 2006 09:54:33 -0800
Try using the tag if you wish to check for the
existence of errors o
To: user@struts.apache.org
Subject: html:errors
is returning an
how to determine the length of the list? would like to check if it has
more
than one error for this property?
Thanks.
_
Don't just search. Find. Check out th
is returning an
how to determine the length of the list? would like to check if it has more
than one error for this property?
Thanks.
_
Dont just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/g
Kalra, Ashwani wrote:
I have a message defined like this in .properties file
2001={0} is required
I am passing for eg "status" for the {0}
Errors tag is printing it like this
[status] is required
Why its printing [] in the actual message ?
Because that's what you've told it to ;-) Check w
-Original Message-
From: Kalra, Ashwani [mailto:[EMAIL PROTECTED]
Sent: Monday, August 01, 2005 6:13 PM
To: user@struts.apache.org
Subject: html:errors tag
Hi,
I have a message defined like this in .properties file
2001={0} is required
I am passing for eg "status"
Hi,
I have a message defined like this in .properties file
2001={0} is required
I am passing for eg "status" for the {0}
Errors tag is printing it like this
[status] is required
Why its printing [] in the actual message ?
Thanks
Ashwani
This message contains information that may be pri
Hi,
Does simple with no property specified works for you ?
Cause I get a similar problem - using same Java code in JSP display the
fields with errors, but does nothing.
Thanks.
Vincent.
Song Wang wrote:
Hello everyone,
I cannot display , but if I add
<%
ActionErrors ae = ( ActionErrors)
Song,
I was having a similar problem using WSAD 5.0.0. Client side
validation using the Validator component worked, but server side
validation did not. Since WSAD included Struts 1.1(beta 2), I decided
to update struts to the newest version. This seemed to correct the
problem. If you need furt
Hello everyone,
I cannot display , but if I add
<%
ActionErrors ae = ( ActionErrors) request.getAttribute( Action.ERROR_KEY);
boolean err = false;
if( ae != null) {
Iterator iter = ae.properties();
while(iter.hasNext()){
System.out.println((String)iter.next());
Titus Barik wrote:
But when I type an invalid e-mail address, in html:errors I always get:
null is an invalid e-mail address.
Figured it out. arg0 key refers to the key in the Properties file.
--
Titus Barik ([EMAIL PROTECTED])
http://www.barik.net
quot;html" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
But when I type an invalid e-mail address, in ht
)974-0341
*Note new email changed from [EMAIL PROTECTED]
-Original Message-
From: Fogleson, Allen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 06, 2005 12:25 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Html:messages vs html:errors
Michael,
Are you capturing except
member the exact text) and sorry I cant see your entire text. Can you
forward the applicationResources file and the jsp mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 06, 2005 2:14 PM
To: 'Struts Users Mailing List'
Subject: RE: Html:messages vs html:errors
Thanks,
But ARG That w
ubject: Re: Html:messages vs html:errors
The problem is with how you've configured your messages resources.
Because
you've specified a key your message resources are not being stored under
the
"default" messages resources key. There being stored under the bundle
key
"Application
The problem is with how you've configured your messages resources. Because
you've specified a key your message resources are not being stored under the
"default" messages resources key. There being stored under the bundle key
"ApplicationResources". You just need to remove that (and the id, its
unn
at can I check next?
Michael Oliver
CTO
Alarius Systems LLC
3325 N. Nellis Blvd, #1
Las Vegas, NV 89115
Phone:(702)643-7425
Fax:(702)974-0341
*Note new email changed from [EMAIL PROTECTED]
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 05, 2005
One cause of this is if it can't find the message key in your application
resources and you have your message resources configured with null="true".
If you change your message resources config to null="false" in your
struts-config.xml
Then if it can't find the message for some reason, you s
-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 05, 2005 12:28 PM
To: Struts Users Mailing List
Subject: Re: Html:messages vs html:errors
>From this and other messages I think you've got the wrong end of the
stick
regarding the tag. You can use either or
with
89115
Phone:(702)643-7425
Fax:(702)974-0341
*Note new email changed from [EMAIL PROTECTED]
-Original Message-
From: Fergal O'Shea [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 05, 2005 9:22 AM
To: 'Riyaz Mansoor'; 'Struts Users Mailing List'
Subject: RE: Html:mes
ECTED]>; "'Struts Users Mailing List'"
Sent: Tuesday, April 05, 2005 5:21 PM
Subject: RE: Html:messages vs html:errors
>
> We don't seem to have struts-examples.war readily available here at work.
>
> Does anyone have an example of overriding an ActionForm&
instead of simple
old .
Specifically, how does one tie in the id parameter in html:messages with the
ActionErrors Collection returned by one's validate() method ?
> I'm a Struts newbie. A lot of the books and documentation I have on
> Struts is pre 1.2 and uses html:erro
wbie. A lot of the books and documentation I have on Struts
> is pre 1.2 and uses html:errors and ActionErrors. Given ActionErrors is
> deprecated, I'd like to use ActionMessages for some new JSPs I'm writing.
>
> Does anyone know of links to more up-to-date articles or docume
> I'm a Struts newbie. A lot of the books and documentation I have on Struts
> is pre 1.2 and uses html:errors and ActionErrors. Given ActionErrors is
> deprecated, I'd like to use ActionMessages for some new JSPs I'm writing.
the usage is the same.
actionerrors are d
Hi,
I'm a Struts newbie. A lot of the books and documentation I have on Struts
is pre 1.2 and uses html:errors and ActionErrors. Given ActionErrors is
deprecated, I'd like to use ActionMessages for some new JSPs I'm writing.
Does anyone know of links to more up-to-d
I've been using struts for a long time and feel like an idiot asking
this question. However, I'll ask it anyway. I decided to toy with
Struts declarative exception handling. I can see that it is working
because when i place a breakpoint on jsp and look into the request
scope i see the exception is
You might need to pass one more argument namely "message" to the
tag .
If you've saved a message in struts scode with your OWN key, you should
pass message='true'
if this message has been saved into struts scope using
ExceptionHandler.saveException() method, you can pass message = 'false'
r
essages to find out if the
message is empty or not in the JSP.
Thanks,
Leonard
- Original Message ----- From: "Laconia Data Systems"
<[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Saturday, December 11, 2004 5:37 AM
Subject: Re:
Saturday, December 11, 2004 5:37 AM
Subject: Re: html:errors and manual iterate
Leonard-
The Action class getErrors() method returns the contents of ActionErrors
or
creates new ActionMessages object
http://struts.apache.org/api/org/apache/struts/action/Action.html
Is this what you're lookin
AIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, December 11, 2004 8:19 AM
Subject: html:errors and manual iterate
I have a situation in which I have to add an ActionError without a message
(use it to indicate field in error on the page). If I use the generic
html:errors tag, it d
I have a situation in which I have to add an ActionError without a message (use
it to indicate field in error on the page). If I use the generic html:errors
tag, it displays lineitems without a message. Is there a way to iterate over
html:errors to check that a message should be displayed only
ng List <[EMAIL PROTECTED]>
|
| cc:
|
| Subject: Re: htm
instead of the scriptlet, I think you could use html-el and do the
following:
The el notation forces the ndx to evaluate
From: Bill Siggelkow <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: html:errors for i
Worked well. Thanks.
Used html:errors instead of the message for brevity. It would have
been nice if html:errors could have been set with indexed="true".
Would have prevented the scriplet and been more consistent.
Rega
Timing[i].closeHour. 'i' being the index of the collection
that fails validation.
What do I use for the "property" element of the "html:errors" tag? I
hardcoded a property of "regularTimingList[1].closeHour" to see if
the error shows up on the page if the cl
ion.
What do I use for the "property" element of the "html:errors" tag? I
hardcoded a property of "regularTimingList[1].closeHour" to see if
the error shows up on the page if the close hour of the 2nd item in
the collection is invalid. It does. But obviously, I
Much better, good one Rick.
Thanks everyone.
James.
Rick Reumann wrote:
Would this work for you with JSTL? You probably want to throw in a
test for not empty also.
..
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
James Neville wrote:
Well, I was using this tag earlier in the week. (We've been trying to
stay away from any Struts specific tags until recently too - we're
locked in now anyway, so we might as well).
Would this work for you with JSTL? You probably want to throw in a test
for not empty also.
iour, but to no avail.
I think i'll grab the logic tag source and work out what is *actually* happening here
;)
Cheers,
James.
-Original Message-
From: Riyad Kalla [mailto:[EMAIL PROTECTED]
Sent: Wed 6/9/2004 7:18 AM
To: Struts Users Mailing List
Cc:
Subject:Re: ho
James,
I can relate completely to the desire to not have scriplets..
However today is your lucky day, because logic:messagesPresent's
defintiion is to actually check for ActionMessages, ActionErrors and a
few other things, def:
"Evaluates the nested body content of this tag if an ActionMessages
o
Funny you bring this up, as our gfx guy here would like the same thing.
It did in fact confuse me for ages why on earth errors wern't being
displayed, until I realised that tag only
checked for messages (obvious I suppose).
It seems to me that the abscence of an accompanying
tag is an oversigh
Barnett, take a look at html:errors tag source to see
how it generates html, then you know what to do.
-D
- Original Message -
From: "Barnett, Brian W." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 07, 2004 6:05 PM
Subject: how to check if ht
ActionMessages.GLOBAL_MESSAGE messages in the ActionMessages object, but
I didn't find a quick way to check this.
However if you just want to check for any errors at all, this should do
the trick:
Barnett, Brian W. wrote:
How can I check if the html:errors tag will display anything down inside my
jsp page? I
How can I check if the html:errors tag will display anything down inside my
jsp page? I have the html:errors tag inside a table tag and I don't want the
table generated at all if there aren't any errors to display.
Thanks,
Brian Barnett
ganesh g <[EMAIL PROTECTED]> wrote on 05/07/2004 05:08:13 AM:
>
> Hi Friends!
>
> i'm using tiles where i want to get html:errors from properties file.
>
> But i'm not getting.
>
> i'm adding and saving errors in action class only.And errors are
Hi Friends!
i'm using tiles where i want to get html:errors from properties file.
But i'm not getting.
i'm adding and saving errors in action class only.And errors are not specific to any
property but those are global using GLOBAL_MESSAGE.
i'm sure that messages are ava
57 matches
Mail list logo