RE: HTML:errors

2009-04-27 Thread McDowell, Paula
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

Re: HTML:errors

2009-04-24 Thread Dave Newton
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

RE: HTML:errors

2009-04-24 Thread McDowell, Paula
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

Re: HTML:errors

2009-04-23 Thread Lukasz Lenart
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:/

HTML:errors

2009-04-23 Thread McDowell, Paula
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

Re: Using html:errors with a field that is iterated.

2006-11-03 Thread Adam K
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

Re: Using html:errors with a field that is iterated.

2006-11-03 Thread robin bajaj
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

Using html:errors with a field that is iterated.

2006-11-03 Thread Adam K
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

Re: html:messages or html:errors???

2006-03-14 Thread Niall Pemberton
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

Re: html:messages or html:errors???

2006-03-13 Thread Jubin Kuriakose
ueue"> > name="msgQueue"/> > > > > > > jubs On 3/13/06, fea jabi <[EMAIL PROTECTED]> wrote: > > Using struts 1.2.

Re: html:messages or html:errors???

2006-03-13 Thread Wendy Smoak
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

html:messages or html:errors???

2006-03-13 Thread fea jabi
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

RE: html:errors

2006-03-10 Thread fea jabi
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

RE: html:errors

2006-03-10 Thread Kalcevich, Daniel
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

html:errors

2006-03-10 Thread fea jabi
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 the new MSN Search! http://search.msn.click-url.com/g

Re: html:errors tag

2005-08-01 Thread Laurie Harper
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

html:errors tag : Please ignore, found the problem

2005-08-01 Thread Kalra, Ashwani
-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"

html:errors tag

2005-08-01 Thread Kalra, Ashwani
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

Re: html:errors does not display

2005-06-13 Thread Vincent
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)

Re: html:errors does not display

2005-06-13 Thread Andrew Tomaka
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

html:errors does not display

2005-06-13 Thread Song Wang
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());

Re: Validator html:errors returns null for {0}

2005-06-05 Thread Titus Barik
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

Validator html:errors returns null for {0}

2005-06-05 Thread Titus Barik
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

RE: Html:messages vs html:errors

2005-04-06 Thread Michael Oliver
)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

RE: Html:messages vs html:errors

2005-04-06 Thread Fogleson, Allen
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

RE: Html:messages vs html:errors

2005-04-06 Thread Michael Oliver
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

Re: Html:messages vs html:errors

2005-04-06 Thread Niall Pemberton
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

RE: Html:messages vs html:errors

2005-04-06 Thread Michael Oliver
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

Re: Html:messages vs html:errors

2005-04-05 Thread Niall Pemberton
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

RE: Html:messages vs html:errors

2005-04-05 Thread Michael Oliver
- 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

RE: Html:messages vs html:errors

2005-04-05 Thread Michael Oliver
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

Re: Html:messages vs html:errors

2005-04-05 Thread Niall Pemberton
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&

RE: Html:messages vs html:errors

2005-04-05 Thread Fergal O'Shea
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

Re: Html:messages vs html:errors

2005-04-05 Thread Hubert Rabago
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

Re: Html:messages vs html:errors

2005-04-05 Thread Riyaz Mansoor
> 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

Html:messages vs html:errors

2005-04-05 Thread Fergal O'Shea
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

displaying declarative exception with html:errors tag

2004-12-26 Thread Brandon Goodin
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

Re: html:errors and manual iterate

2004-12-12 Thread Sunny
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

Re: html:errors and manual iterate

2004-12-11 Thread Erik Weber
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:

Re: html:errors and manual iterate

2004-12-11 Thread StrutsUser
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

Re: html:errors and manual iterate

2004-12-11 Thread Laconia Data Systems
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

html:errors and manual iterate

2004-12-11 Thread StrutsUser
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

Re: html:errors for indexed properties

2004-08-31 Thread dhay
ng List <[EMAIL PROTECTED]> | | cc: | | Subject: Re: htm

Re: html:errors for indexed properties

2004-08-31 Thread Lynn Stevens
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

Re: html:errors for indexed properties

2004-08-31 Thread Milind Rao
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

Re: html:errors for indexed properties

2004-08-31 Thread Bill Siggelkow
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

html:errors for indexed properties

2004-08-31 Thread Milind Rao
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

Re: how to check if html:errors will display anything

2004-06-10 Thread James Neville
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

Re: how to check if html:errors will display anything

2004-06-09 Thread Rick Reumann
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.

RE: how to check if html:errors will display anything

2004-06-09 Thread James Neville
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

Re: how to check if html:errors will display anything

2004-06-08 Thread Riyad Kalla
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

Re: how to check if html:errors will display anything

2004-06-08 Thread James Neville
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

Re: how to check if html:errors will display anything

2004-06-07 Thread Dan Tran
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

Re: how to check if html:errors will display anything

2004-06-07 Thread Riyad Kalla
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 to check if html:errors will display anything

2004-06-07 Thread Barnett, Brian W.
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

Re: how to get html:errors in tiles.urgent pls

2004-05-07 Thread Susan Bradeen
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

how to get html:errors in tiles.urgent pls

2004-05-07 Thread ganesh g
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