RE: html:errors

2002-07-16 Thread Jan Vervecken

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?







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: html:errors

2002-07-16 Thread wbchmura


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 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?







--
To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: html:errors

2002-07-16 Thread Rene Eigenheer

once I wished to have a possibility like this:



I wished struts could (based on the action errors set) which field has an
error and which not




> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> 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]]
> 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 Struts tags?
>
> tnx
> -Jan
>
> >>> [EMAIL PROTECTED] 11-07-02 16:37 >>>
>
> Like so?
>
> 
> 
> 
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: html:errors

2002-07-16 Thread wbchmura


So what you are looking to do is to display text with a different style 
if it is an error?












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


once I wished to have a possibility like this:



I wished struts could (based on the action errors set) which field has 
an
error and which not




> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> 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]]
> 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 Struts tags?
>
> tnx
> -Jan
>
> >>> [EMAIL PROTECTED] 11-07-02 16:37 >>>
>
> Like so?
>
> 
> 
> 
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: html:errors

2002-07-16 Thread Jan Vervecken

ah ... "Since : Struts 1.1" ... sorry, I checked some older documentation

tnx
-Jan

>>> [EMAIL PROTECTED] 16-07-02 15:39 >>>

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 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?







--
To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: html:errors

2002-07-16 Thread wbchmura


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 ... "Since : Struts 1.1" ... sorry, I checked some older 
documentation

tnx
-Jan

>>> [EMAIL PROTECTED] 16-07-02 15:39 >>>

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 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?







--
To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: html:errors

2001-03-27 Thread Martin Cooper

With the current implementation, the error key must have a value specified 
in a properties file. However, the actual message text can have up to four 
parameters. You specify the values for these in the ActionError 
constructor. This allows for parameterization of the resulting text, if not 
fully dynamic generation.

The  tag does indeed have applicable attributes. See the 
documentation for information on what they are and how to use them:

http://jakarta.apache.org/struts/struts-html.html#errors

Hope this helps.

--
Martin Cooper


At 02:35 PM 3/26/01, Suriyanarayanan, Senthil Kumar wrote:
>Hello,
> How do I generate error messages dynamically. Say for example if the
>error property is not
>predefined in the ApplicationResources.properties. Also does 
>takes any arguments?
>If it takes some arguments how can I use it? Also is it possible to have
>multiple  with
>in the same jsp file.
>
>
>Thanks in advance.
>Senthil Kumar.S
>
>**
>The Information transmitted herewith is sensitive information intended only
>for use to the individual or entity to which it is addressed. If the reader
>of this message is not the intended recipient, you are hereby notified that
>any review, retransmission, dissemination, distribution, copying or other
>use of, or taking of any action in reliance upon, this information is
>strictly prohibited. If you have received this communication in error,
>please contact the sender and delete the material from your computer.





Re: html:errors

2001-10-19 Thread Jonathan Asbell

IN YOUR ACTION
ActionErrors errors = new ActionErrors();
if (myBoolean){errors.add(ActionErrors.GLOBAL_ERROR, new
ActionError("error.password.mismatch"));

IN YOUR RESULTING JSP PAGE



- Original Message -
From: "storck" <[EMAIL PROTECTED]>
To: "User Struts (E-Mail)" <[EMAIL PROTECTED]>
Sent: Friday, October 19, 2001 7:10 AM
Subject: html:errors


> Hi,
>
> COULD you help me!
> Is there a possibility to write the ONLY the error for a CERTAIN property
of
> a FormBean out at a possition where I want it?
> I have something in mind where I have a form with different inputfields
and
> if a field has a wrong value than I have a message under that field wich
> tells me what is wrong!
> Does someone has a (complete) example how I can mannage that? I think I
saw
> that some time ago but I dont know where anymore and for what I should
> search for!
>
> MANY thanks!
>




Re: html:errors

2001-10-19 Thread David Winterfeldt

I thought I would send this modified from what
Jonathan sent so it was clear how to add an error. 
The first parameter adding an error to ActionErrors is
the key it is filed under.  So typically you use the
property name of the field so it can be retrieved next
to the field if you need to.

ActionErrors errors = new ActionErrors();
errors.add(ActionErrors.GLOBAL_ERROR,
   new
ActionError("error.password.mismatch"));
errors.add("username",
   new ActionError("error.username"));

IN YOUR RESULTING JSP PAGE


Or if you are using a recent nightly build you can
iterate through your error messages helping to keep
html out of your message resources.


   
  
 
  
   


David

--- Jonathan Asbell <[EMAIL PROTECTED]> wrote:
> IN YOUR ACTION
> ActionErrors errors = new ActionErrors();
> if (myBoolean){errors.add(ActionErrors.GLOBAL_ERROR,
> new
> ActionError("error.password.mismatch"));
> 
> IN YOUR RESULTING JSP PAGE
> 
> 
> 
> - Original Message -
> From: "storck" <[EMAIL PROTECTED]>
> To: "User Struts (E-Mail)"
> <[EMAIL PROTECTED]>
> Sent: Friday, October 19, 2001 7:10 AM
> Subject: html:errors
> 
> 
> > Hi,
> >
> > COULD you help me!
> > Is there a possibility to write the ONLY the error
> for a CERTAIN property
> of
> > a FormBean out at a possition where I want it?
> > I have something in mind where I have a form with
> different inputfields
> and
> > if a field has a wrong value than I have a message
> under that field wich
> > tells me what is wrong!
> > Does someone has a (complete) example how I can
> mannage that? I think I
> saw
> > that some time ago but I dont know where anymore
> and for what I should
> > search for!
> >
> > MANY thanks!
> >
> 


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



RE: html:errors

2002-07-11 Thread Kamholz, Keith (corp-staff) USX

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 user to
the input page defined in struts-config.  On that page, just use an
 tag.  If there were no errors, nothing will be displayed.  If
there were errors, they are displayed there.  It's pretty simple, another
one of those things that struts handles automatically.

~ Keith
http://www.buffalo.edu/~kkamholz



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 8:17 AM
To: [EMAIL PROTECTED]
Subject: html:errors


How do I check on the jsp if some error occured?

If an error occured I wanna display a Dialog with the errormessages inside
when the page gets reloaded.



Hanel Matthias
Fachinformatiker (Anwendungsentwicklung) in Ausbildung
Logistik World GmbH Fon:+49-841-9014-300
Marie-Curie-Strasse 6   Fax:+49-841-9014-302 
D- 85055 Ingolstadt mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: html:errors

2002-07-11 Thread Kamholz, Keith (corp-staff) USX

Hmmm
I haven't done it myself, but I don't see why you couldn't.  It seems like
it would work fine.  However, I have had problems with the
 and  tags when trying to
display something if a collection is empty.  It made me lose faith in the
tag, so now I use the  tag for these types of
situations (with a preceding  tag for collections).  Did you try
your idea yet?  Like I said, it seems like it should work just fine.
However, I am new to all this, so if I'm wrong, somebody correct me.

~ Keith
http://www.buffalo.edu/~kkamholz


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 8:50 AM
To: [EMAIL PROTECTED]
Subject: AW: html:errors


Yes I know. Probably my question was wrong.
Can I use the  tag with some 
 tags?
like


Do Some stuff for errors.



-Ursprüngliche Nachricht-
Von: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 11. Juli 2002 14:31
An: 'Struts Users Mailing List'
Betreff: RE: html:errors


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 user to
the input page defined in struts-config.  On that page, just use an
 tag.  If there were no errors, nothing will be displayed.  If
there were errors, they are displayed there.  It's pretty simple, another
one of those things that struts handles automatically.

~ Keith
http://www.buffalo.edu/~kkamholz



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 8:17 AM
To: [EMAIL PROTECTED]
Subject: html:errors


How do I check on the jsp if some error occured?

If an error occured I wanna display a Dialog with the errormessages inside
when the page gets reloaded.



Hanel Matthias
Fachinformatiker (Anwendungsentwicklung) in Ausbildung
Logistik World GmbH Fon:+49-841-9014-300
Marie-Curie-Strasse 6   Fax:+49-841-9014-302 
D- 85055 Ingolstadt mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: html:errors

2002-07-11 Thread wbchmura


Like so?





-Original Message-
From: mhanel [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 8:50 AM
To: struts-user
Subject: AW: html:errors


Yes I know. Probably my question was wrong.
Can I use the  tag with some 
 tags?
like


Do Some stuff for errors.



-Ursprüngliche Nachricht-
Von: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 11. Juli 2002 14:31
An: 'Struts Users Mailing List'
Betreff: RE: html:errors


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 user 
to
the input page defined in struts-config.  On that page, just use an
 tag.  If there were no errors, nothing will be displayed. 
 If
there were errors, they are displayed there.  It's pretty simple, 
another
one of those things that struts handles automatically.

~ Keith
http://www.buffalo.edu/~kkamholz



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 8:17 AM
To: [EMAIL PROTECTED]
Subject: html:errors


How do I check on the jsp if some error occured?

If an error occured I wanna display a Dialog with the errormessages 
inside
when the page gets reloaded.




Hanel Matthias
Fachinformatiker (Anwendungsentwicklung) in Ausbildung
Logistik World GmbH Fon:+49-841-9014-300
Marie-Curie-Strasse 6   Fax:+49-841-9014-302 
D- 85055 Ingolstadt mailto:[EMAIL PROTECTED]





--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: html:errors

2002-07-11 Thread @Basebeans.com

Subject: Re: html:errors
From: Eric Rizzo <[EMAIL PROTECTED]>
 ===
[EMAIL PROTECTED] wrote:
> Like so?
> 
> 
> 
> 

For that why not just put the  and  elements as the 
value of errors.header and errors.footer in your ApplicationResources file?

Eric
-- 
Eric Rizzo
Software Developer
Jibe, Inc.
http://www.jibeinc.com


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: html:errors

2002-07-11 Thread Kamholz, Keith (corp-staff) USX

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 a very nice display.  Some consider it bad practice to use html in
your properties file, but others such as myself don't have a problem 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] wrote:
> Like so?
> 
> 
> 
> 

For that why not just put the  and  elements as the 
value of errors.header and errors.footer in your ApplicationResources file?

Eric
-- 
Eric Rizzo
Software Developer
Jibe, Inc.
http://www.jibeinc.com


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: html:errors

2002-07-11 Thread wbchmura

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 
not bad because you are only going to use that error in one place.  But 
with general errors or messages, you may want the information to be 
displayed differently depending what page its being displayed on.

of course after reading and trying to implement best practices for the 
past two months in struts, I am starting to wonder if a "Just do it / 
damn the torpedos" approach is not a bad idea!  Do it the quickest, 
fastest way.

-Original 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 a very nice display.  Some consider it bad practice to use html 
in
your properties file, but others such as myself don't have a problem 
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] wrote:
> Like so?
> 
> 
> 
> 

For that why not just put the  and  elements as the 
value of errors.header and errors.footer in your ApplicationResources 
file?

Eric
-- 
Eric Rizzo
Software Developer
Jibe, Inc.
http://www.jibeinc.com


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: html:errors

2002-07-11 Thread Kamholz, Keith (corp-staff) USX

True, putting the html in the resources file does cut down a little bit on
customization, but sometimes it's nice.  I'm doing an entire application on
my own, so I don't really have to worry about what other programmers will
need to do.  I know it fulfills my needs just fine, so I have no
reservations about putting the html in the resources file.

I know exactly what you mean about the "best practices".  Sometimes they are
much more trouble than they are worth.  If what I do gets the job done well,
it doesn't have to be elegant.

~ Keith
http://www.buffalo.edu/~kkamholz



-Original 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 
not bad because you are only going to use that error in one place.  But 
with general errors or messages, you may want the information to be 
displayed differently depending what page its being displayed on.

of course after reading and trying to implement best practices for the 
past two months in struts, I am starting to wonder if a "Just do it / 
damn the torpedos" approach is not a bad idea!  Do it the quickest, 
fastest way.

-Original 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 a very nice display.  Some consider it bad practice to use html 
in
your properties file, but others such as myself don't have a problem 
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] wrote:
> Like so?
> 
> 
> 
> 

For that why not just put the  and  elements as the 
value of errors.header and errors.footer in your ApplicationResources 
file?

Eric
-- 
Eric Rizzo
Software Developer
Jibe, Inc.
http://www.jibeinc.com


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: html:errors

2002-07-11 Thread wbchmura


I've been struggling lately with one of the "methodologies" practice of 
not progamming for the future, but coming back and refactoring when you 
need to do that.

Much self beating going on...

-Original Message-
From: kkamholz [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 4:09 PM
To: struts-user
Subject: RE: html:errors


True, putting the html in the resources file does cut down a little bit 
on
customization, but sometimes it's nice.  I'm doing an entire application 
on
my own, so I don't really have to worry about what other programmers 
will
need to do.  I know it fulfills my needs just fine, so I have no
reservations about putting the html in the resources file.

I know exactly what you mean about the "best practices".  Sometimes they 
are
much more trouble than they are worth.  If what I do gets the job done 
well,
it doesn't have to be elegant.

~ Keith
http://www.buffalo.edu/~kkamholz



-Original 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 

not bad because you are only going to use that error in one place.  But 
with general errors or messages, you may want the information to be 
displayed differently depending what page its being displayed on.

of course after reading and trying to implement best practices for the 
past two months in struts, I am starting to wonder if a "Just do it / 
damn the torpedos" approach is not a bad idea!  Do it the quickest, 
fastest way.

-Original 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 a very nice display.  Some consider it bad practice to use html 
in
your properties file, but others such as myself don't have a problem 
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] wrote:
> Like so?
> 
> 
> 
> 

For that why not just put the  and  elements as the 
value of errors.header and errors.footer in your ApplicationResources 
file?

Eric
-- 
Eric Rizzo
Software Developer
Jibe, Inc.
http://www.jibeinc.com


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: html:errors tag..

2003-09-15 Thread koen boutsen
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 errors;
}

In the applicationResources.properties, you have to add the message : 
adresses.insertUser.noUser=You have to give a userId

This should work.

Why don't you try the validator framework. You don't have to create an ActionForm for 
each jsp you create.

Koen Boutsen

- Original Message -

DATE: Mon, 15 Sep 2003 10:22:27
From: Ritvik <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: 

>Hi There,
>
>I am using  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 logic in validate() method of ActionForm
>subclass. I think Struts adds ActionErrors object in the request\session
>scope with a know key, can anyone let me know the exaclt key name?
>
>What would be the best way test errors using Struts?
>
>thanks,
>Ritvik
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>




Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: html:errors tag..

2003-09-15 Thread Louise Pryor

On Monday, September 15, 2003 at 3:22:27 PM, Ritvik wrote:

R> Hi There,

R> I am using  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 getting any errors in server log as well.

R> I have added the validation logic in validate() method of ActionForm
R> subclass. I think Struts adds ActionErrors object in the request\session
R> scope with a know key, can anyone let me know the exaclt key name?

Are you sure you are actually calling the validate() method?  Either
validate="true"  in the action definition or call the validate()
method explicitly in the execute() method of the action as follows:

errors = myForm.validate(mapping, request);
// see if we found any validation errors
if ( ! errors.isEmpty()) {
saveErrors(request, errors);
return (new ActionForward(mapping.getInput()));
} // end of if ()


-- 
Louise Pryor
http://www.louisepryor.com



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: html:errors location

2002-12-13 Thread Scott Reisdorf
To place the error beside the text field, you explicitly call it next to 
each field.
In your case, simply do this:

 

 

Hope this helps,

-scott


At 06:52 PM 12/13/2002 -0500, you wrote:

Hi,

According to the TIP " Don't settle for  " at 
http://husted.com/struts/tips/index.html,
from Ted Husted I can add  an error  by the side of the property 
that caused it.

something like this:
To specify that this message is for the "username" 
property, we would code this instead:

errors.add(
  "username", new ActionError("error.username.required"));

If we specify a property, we can use the  
tag (or any of the alternatives) like this:

Username: 
Password: 

I Did exactly this. Unfortunately, the error does not appear by 
the side of the input. But,
It appears at page top when I use the   tag.

What should I do to put it by the side of an input ()?


Thanks in advance.
Joao,


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: html:errors location

2002-12-13 Thread Yee, Richard K,,DMDCWEST
Joao,
Did you do this?
Username: 
Password:  -Original Message-
> From: Joao Araujo [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, December 13, 2002 10:45 AM
> To:   [EMAIL PROTECTED]
> Subject:  html:errors location
> 
> Hi,
> 
>   According to the TIP " Don't settle for  " at 
> http://husted.com/struts/tips/index.html,
>   from Ted Husted I can add  an error  by the side of the property
> that 
> caused it.
> 
>   something like this:
>   To specify that this message is for the "username" property,
> we would 
> code this instead:
> 
>   errors.add(
> "username", new ActionError("error.username.required"));
> 
>   If we specify a property, we can use the  tag
> (or any of 
> the alternatives) like this:
> 
>   Username: 
>   Password: 
> 
>   I Did exactly this. Unfortunately, the error does not appear by the
> side 
> of the input. But,
>   It appears at page top when I use the   tag.
> 
>   What should I do to put it by the side of an input ( property/>)?
> 
> 
>   Thanks in advance.
> Joao,
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: html:errors location

2002-12-13 Thread Joao Araujo
thank you guys.

Joao,

Joao,
Did you do this?
Username: 
Password:  -Original Message-
> From: Joao Araujo [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, December 13, 2002 10:45 AM
> To:   [EMAIL PROTECTED]
> Subject:  html:errors location
>
> Hi,
>
>   According to the TIP " Don't settle for  " at
> http://husted.com/struts/tips/index.html,
>   from Ted Husted I can add  an error  by the side of the property
> that
> caused it.
>
>   something like this:
>   To specify that this message is for the "username" property,
> we would
> code this instead:
>
>   errors.add(
> "username", new ActionError("error.username.required"));
>
>   If we specify a property, we can use the  tag
> (or any of
> the alternatives) like this:
>
>   Username: 
>   Password: 
>
>   I Did exactly this. Unfortunately, the error does not appear by the
> side
> of the input. But,
>   It appears at page top when I use the   tag.
>
>   What should I do to put it by the side of an input ( property/>)?
>
>
>   Thanks in advance.
> Joao,
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: html:errors & ActionErrors.GLOBAL_ERROR

2002-12-17 Thread Sri Sankaran
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 following in the first Action:
ActionErrors errors = new ActionErrors();
   errors.add(ActionErrors.GLOBAL_ERROR,new
ActionError("individual.backbutton.error")); 
   return forward; 

I am forwarding to another Action which in turn forwards to another Action.This last 
Action then forwards to a jsp page.I am displaying a  in the final jsp 
page and want to display the error message set in the first action. 

Right now,the jsp page doesn't show the error message.How can i get the message 
displayed ? 

Thanx,
Vijay


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: html:errors & ActionErrors.GLOBAL_ERROR

2002-12-17 Thread Vijay Balakrishnan
Hi,

I tried using saveErrors(request,errors) in the 1st action.But the 2nd
action to which it is forwarded doesn't seem to get the error.

Here is my code in the 2nd action:

while (enum.hasMoreElements()){
Object obj = enum.nextElement();
count++;
log.debug("obj is:"+obj+" count:"+count);
 
log.debug("request.getAttribute:"+request.getAttribute(obj.toString()));
//this returns 3 objects-ApplicationConfig,ActionConfig and
PropertyMessageResources
}

ActionErrors errors = (ActionErrors)request.getAttribute(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 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 following in the first Action:
ActionErrors errors = new ActionErrors();
   errors.add(ActionErrors.GLOBAL_ERROR,new
ActionError("individual.backbutton.error")); 
   return forward; 

I am forwarding to another Action which in turn forwards to another
Action.This last Action then forwards to a jsp page.I am displaying a
 in the final jsp page and want to display the error message
set in the first action. 

Right now,the jsp page doesn't show the error message.How can i get the
message displayed ? 

Thanx,
Vijay


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: html:errors & ActionErrors.GLOBAL_ERROR

2002-12-18 Thread Sri Sankaran
I don't understand the code snippet you have sent.  What is the enumeration?

Are you *forwarding* to the second action or are you *redirecting*?  The latter, as 
you know, will result in a new request being issued by the browser effectively 
throwing away your errors.

As an aside, chaining of actions is not a good idea.  Extracting your business logic 
out of the action classes should obviate the need for this technique.

Sri

-Original Message-
From: Vijay Balakrishnan [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 17, 2002 6:03 PM
To: 'Struts Users Mailing List'
Subject: RE: html:errors & ActionErrors.GLOBAL_ERROR


Hi,

I tried using saveErrors(request,errors) in the 1st action.But the 2nd action to which 
it is forwarded doesn't seem to get the error.

Here is my code in the 2nd action:

while (enum.hasMoreElements()){
Object obj = enum.nextElement();
count++;
log.debug("obj is:"+obj+" count:"+count);
 
log.debug("request.getAttribute:"+request.getAttribute(obj.toString()));
//this returns 3 objects-ApplicationConfig,ActionConfig and PropertyMessageResources
}

ActionErrors errors = (ActionErrors)request.getAttribute(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 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 following in the first Action:
ActionErrors errors = new ActionErrors();
   errors.add(ActionErrors.GLOBAL_ERROR,new
ActionError("individual.backbutton.error")); 
   return forward; 

I am forwarding to another Action which in turn forwards to another Action.This last 
Action then forwards to a jsp page.I am displaying a  in the final jsp 
page and want to display the error message set in the first action. 

Right now,the jsp page doesn't show the error message.How can i get the message 
displayed ? 

Thanx,
Vijay


--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: html:errors tag?

2001-07-18 Thread Gogineni, Pratima

Hi - I just did this in my form.

html:errors itself doesnt do this. My actionform holds the   row and column
index of my error field which are set at the of validation.

what i do is check if the error object exists and if the row and column
indices match one of the fields being displayed - the cell is colored red.

Pratima



-Original Message-
From: Matthias Brahm [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 9:25 AM
To: '[EMAIL PROTECTED]'
Subject: html:errors tag?


Hi,

is it possible to do something like this with struts:

I have a form with labels for the input fields.
These labels have the font color blue.

The Form is validated by the FormBean.
When one or more fields of the form are invalid
and the control is forwarded back to the input form,
the labels of the invalid input fields should have the font color red.

In general, is it possible to output one text and in case of an error 
another one?

Can I do this with the struts-tag-libs (html:errors)?

Thanls



Re: html:errors tag?

2001-07-18 Thread David Winterfeldt

You can check if there is an errors object in scope
using the logic tags to change the color of a label.

  
red label1
  
  
blue lable2
  

If you want to display the error message next to a 
field, you can do this.  This will display all error
messages that have been set for the 'name' property.



David

--- Matthias Brahm <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> is it possible to do something like this with
> struts:
> 
> I have a form with labels for the input fields.
> These labels have the font color blue.
> 
> The Form is validated by the FormBean.
> When one or more fields of the form are invalid
> and the control is forwarded back to the input form,
> the labels of the invalid input fields should have
> the font color red.
> 
> In general, is it possible to output one text and in
> case of an error 
> another one?
> 
> Can I do this with the struts-tag-libs
> (html:errors)?
> 
> Thanls
> 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



RE: html:errors tag?

2001-07-18 Thread David Winterfeldt

Ignore what I said about the logic tags since that
doesn't tell you whether a specific field has an
error.  You could use the errorsExists tag from my
Validator package if you want to though.  And you
could make errorsNotExist version of the tag.


   red label


David
http://home.earthlink.net/~dwinterfeldt

--- "Gogineni, Pratima" <[EMAIL PROTECTED]>
wrote:
> Hi - I just did this in my form.
> 
> html:errors itself doesnt do this. My actionform
> holds the   row and column
> index of my error field which are set at the of
> validation.
> 
> what i do is check if the error object exists and if
> the row and column
> indices match one of the fields being displayed -
> the cell is colored red.
> 
> Pratima
> 
> 
> 
> -Original Message-
> From: Matthias Brahm [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 18, 2001 9:25 AM
> To: '[EMAIL PROTECTED]'
> Subject: html:errors tag?
> 
> 
> Hi,
> 
> is it possible to do something like this with
> struts:
> 
> I have a form with labels for the input fields.
> These labels have the font color blue.
> 
> The Form is validated by the FormBean.
> When one or more fields of the form are invalid
> and the control is forwarded back to the input form,
> the labels of the invalid input fields should have
> the font color red.
> 
> In general, is it possible to output one text and in
> case of an error 
> another one?
> 
> Can I do this with the struts-tag-libs
> (html:errors)?
> 
> Thanls


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



RE: html:errors tag

2001-01-30 Thread Howard Moore

The property attribute was only implemented recently. You need the 20010128
build or later for it to work.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 29 January 2001 18:59
> To: [EMAIL PROTECTED]
> Subject: html:errors tag
> 
> 
> 
> 
> Memo from Nic Hobbs of PricewaterhouseCoopers
> 
>  Start of message text 
> 
> I am using the nightly build from about Wednesday last week 
> so let me know if I
> should just get the latest one (which I intend to do tomorrow 
> anyway) but...
> 
> 
> Using the  seems to be exactly 
> the same as doing
>  as I get all the errors printed out rather 
> than just the error
> printed for the particular property. Can anyone explain what 
> I am doing wrong?
> 
> Many thanks,
> 
> Nic
> 
> - End of message text 
> 
> The principal place of business of PricewaterhouseCoopers and 
> its associate
> partnerships is 1 Embankment Place, London WC2N 6NN where lists of the
> partners' names are available for inspection. All partners in 
> the associate
> partnerships are authorised to conduct business as agents of, and all
> contracts for services to clients are with, 
> PricewaterhouseCoopers. The UK
> firm of PricewaterhouseCoopers is authorised by the Institute 
> of Chartered
> Accountants in England and Wales to carry on investment business.
> PricewaterhouseCoopers is a member of the world-wide
> PricewaterhouseCoopers organisation.
> 
> The information transmitted is intended only for the person 
> or entity to which
> it is addressed and may contain confidential and/or 
> privileged material.  Any
> review, retransmission, dissemination or other use of, or 
> taking of any action
> in reliance upon, this information by persons or entities 
> other than the
> intended recipient is prohibited.   If you received this in 
> error, please
> contact the sender and delete the material from any computer.
> 
> 



RE: html:errors tag

2001-01-30 Thread nic.hobbs



Memo from Nic Hobbs of PricewaterhouseCoopers

 Start of message text 

Thought this might be the case!

Many thanks,

Nic





Howard Moore <[EMAIL PROTECTED]> on 30/01/2001 08:59:18

Please respond to [EMAIL PROTECTED]
To:   "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc:


Subject:  RE: html:errors tag



The property attribute was only implemented recently. You need the 20010128
build or later for it to work.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 29 January 2001 18:59
> To: [EMAIL PROTECTED]
> Subject: html:errors tag
>
>
>
>
> Memo from Nic Hobbs of PricewaterhouseCoopers
>
>  Start of message text 
>
> I am using the nightly build from about Wednesday last week
> so let me know if I
> should just get the latest one (which I intend to do tomorrow
> anyway) but...
>
>
> Using the  seems to be exactly
> the same as doing
>  as I get all the errors printed out rather
> than just the error
> printed for the particular property. Can anyone explain what
> I am doing wrong?
>
> Many thanks,
>
> Nic
>
> - End of message text 
>
> The principal place of business of PricewaterhouseCoopers and
> its associate
> partnerships is 1 Embankment Place, London WC2N 6NN where lists of the
> partners' names are available for inspection. All partners in
> the associate
> partnerships are authorised to conduct business as agents of, and all
> contracts for services to clients are with,
> PricewaterhouseCoopers. The UK
> firm of PricewaterhouseCoopers is authorised by the Institute
> of Chartered
> Accountants in England and Wales to carry on investment business.
> PricewaterhouseCoopers is a member of the world-wide
> PricewaterhouseCoopers organisation.
> 
> The information transmitted is intended only for the person
> or entity to which
> it is addressed and may contain confidential and/or
> privileged material.  Any
> review, retransmission, dissemination or other use of, or
> taking of any action
> in reliance upon, this information by persons or entities
> other than the
> intended recipient is prohibited.   If you received this in
> error, please
> contact the sender and delete the material from any computer.
>
>


- End of message text 

The principal place of business of PricewaterhouseCoopers and its associate
partnerships is 1 Embankment Place, London WC2N 6NN where lists of the
partners' names are available for inspection. All partners in the associate
partnerships are authorised to conduct business as agents of, and all
contracts for services to clients are with, PricewaterhouseCoopers. The UK
firm of PricewaterhouseCoopers is authorised by the Institute of Chartered
Accountants in England and Wales to carry on investment business.
PricewaterhouseCoopers is a member of the world-wide
PricewaterhouseCoopers organisation.

The information transmitted is intended only for the person or entity to which
it is addressed and may contain confidential and/or privileged material.  Any
review, retransmission, dissemination or other use of, or taking of any action
in reliance upon, this information by persons or entities other than the
intended recipient is prohibited.   If you received this in error, please
contact the sender and delete the material from any computer.





RE: html:errors handling

2001-12-17 Thread Barry Jia

did you set your error text in your application resource file ?

-Original Message-
From: Frédéric Houbie - ABSIS-GROUP [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 17, 2001 11:22 AM
To: Struts-User
Subject: html:errors handling


Hi,

I have a strange behaviour in my application. in my logonaction, I do some
check, when error occurs, I use errors.add(xxx, "yyy") to set some errors.
But when I use  tag to display it, I get "null My_Error null",
so my error message is preceded by null text et followed by null text. I
don't understand where it comes from. I display errors.size() and it returns
my 1, so there is only one record in it.

any idea ?

Frederic



--
To unsubscribe, e-mail:

For additional commands, e-mail:




RE: html:errors handling

2001-12-17 Thread Jesse Alexander (KABS 11)

Hi,

have you defined the errors.header and .footer texts in the application resource file?

hope this helps
Alexander Jesse

-Original Message-
From: Frédéric Houbie - ABSIS-GROUP [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 17, 2001 5:22 PM
To: Struts-User
Subject: html:errors handling


Hi,

I have a strange behaviour in my application. in my logonaction, I do some
check, when error occurs, I use errors.add(xxx, "yyy") to set some errors.
But when I use  tag to display it, I get "null My_Error null",
so my error message is preceded by null text et followed by null text. I
don't understand where it comes from. I display errors.size() and it returns
my 1, so there is only one record in it.

any idea ?

Frederic



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: html:errors handling

2001-12-17 Thread Keith Bacon

Frédéric,
I think you need these 2 lines in your
ApplicationResources.properties file. (obviously the
html can be different (maybe just  )

errors.header=
errors.footer=

Struts assumes you will always have them (it should
default to a null string if you don't - I think it
maybe does in later versions).
Keith. 




--- Barry Jia <[EMAIL PROTECTED]> wrote:
> did you set your error text in your application
> resource file ?
> 
> -Original Message-
> From: Frédéric Houbie - ABSIS-GROUP
> [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 17, 2001 11:22 AM
> To: Struts-User
> Subject: html:errors handling
> 
> 
> Hi,
> 
> I have a strange behaviour in my application. in my
> logonaction, I do some
> check, when error occurs, I use errors.add(xxx,
> "yyy") to set some errors.
> But when I use  tag to display it, I
> get "null My_Error null",
> so my error message is preceded by null text et
> followed by null text. I
> don't understand where it comes from. I display
> errors.size() and it returns
> my 1, so there is only one record in it.
> 
> any idea ?
> 
> Frederic
> 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: html:errors handling

2001-12-17 Thread Frederic Houbie - ABSIS-GROUP

Great helps,


thanks

-Original Message-
From: Keith Bacon [mailto:[EMAIL PROTECTED]]
Sent: lundi 17 decembre 2001 17:44
To: Struts Users Mailing List
Subject: RE: html:errors handling


Fridiric,
I think you need these 2 lines in your
ApplicationResources.properties file. (obviously the
html can be different (maybe just  )

errors.header=
errors.footer=

Struts assumes you will always have them (it should
default to a null string if you don't - I think it
maybe does in later versions).
Keith.




--- Barry Jia <[EMAIL PROTECTED]> wrote:
> did you set your error text in your application
> resource file ?
>
> -Original Message-
> From: Fridiric Houbie - ABSIS-GROUP
> [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 17, 2001 11:22 AM
> To: Struts-User
> Subject: html:errors handling
>
>
> Hi,
>
> I have a strange behaviour in my application. in my
> logonaction, I do some
> check, when error occurs, I use errors.add(xxx,
> "yyy") to set some errors.
> But when I use  tag to display it, I
> get "null My_Error null",
> so my error message is preceded by null text et
> followed by null text. I
> don't understand where it comes from. I display
> errors.size() and it returns
> my 1, so there is only one record in it.
>
> any idea ?
>
> Frederic
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>


__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: html:errors error?

2002-01-20 Thread Ted Husted

Did you switch over to the messages tag? 

The orignal errors tag requires a errors.header and errors.footer in the
properties files, to provide markup, but these are optional with the
messages tag. 

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Building Java web applications with Struts.
-- Tel +1 585 737-3463.
-- Web http://www.husted.com/struts/


Frank Lawlor wrote:
> 
> I just noticed that my error messages are acting strange.
> I recently changed to a nightly build (approx 1/2).
> For example, instead of getting the text:
>   You must specify a Contact Name.
> I am now getting:
>   null You must specify a Contact Name. null
> There are no substitution parms in the properties spec:
>   error.no_contact_name=You must specify a Contact Name.
> The html generated almost looks like there are two
> null error entries:
> 
> null
> You must specify a Contact Name.
> null
> 
> but when I add my message the error array is empty.
> 
> Anyone else on a nightly build noticed any funny error messages?
> 
> Thanks,
> 
> Frank Lawlor
> Athens Group, Inc.
> (512) 345-0600 x151
> Athens Group, an employee-owned consulting firm integrating technology
> strategy and software solutions.
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: html:errors tag lost?

2003-06-10 Thread Josh Rayls
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
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 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 still not entirely clear on how the html:errors tag works, but I
have this in my tile jsp:





And when I have redirect=false, I get things like "Password is
required" in the html, but the url is my .do and my relative paths
don't work and I can't see my images.  When it is true, I don't get
the error text (but the url is what I want and the paths are just fine
- I can see my images).

Sorry for all the questions... Hopefully I'll be able to answer a few
myself some day...

Thanks,

/greg

--
Gregory F. March-=-http://www.gfm.net:81/~march-=-AIM:GfmNet

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: html:errors and redirection

2001-10-22 Thread Matt Raible

This is a similar problem with iPlanet Application Server - where it doesn't
allow forwarding from one action to another.  The "workaround" for us was to
add redirect="true" to the forward.

We have the same solution as you - adding messages to the session, and grabbing
them from the session.

Matt

--- "Heijink, Dick" <[EMAIL PROTECTED]> wrote:
> Hi there,
>  
> We've been using struts for our projects and we've run into some problems
> with error reporting. We have the following action:
>  
> public ActionForward perform(ActionMapping mapping,ActionForm
> form,HttpServletRequest request,HttpServletResponse response) {
>   ActionErrors errors=new ActionErrors();
>   ...
>   saveErrors(request,errors);
>   return mapping.findForward("success")
> }
>  
> The problem is that the "success" forward uses redirection. We have to do
> this, because Navigator doesn't allow you to view the source or to print a
> page that resulted from a POST whose data expires immediately. However, when
> the request is redirected, we loose the detected errors that were added to
> the POSTed request. The page for the redirected GET request will therefore
> not display any detected errors.
>  
> Any ideas? Are we doing something fundamentally wrong?
>  
> We've got a workaround with an alternative errors tag that fetches the
> errors from the session and not from the request, but this solution is not
> robust enough. We assume that the request that follows the POST request is
> the redirected request, but there is no way of knownig this for sure.
>  
> Thanks,
>  
> Dick Heijink
> 


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



Re: html:errors and property attribute

2001-01-31 Thread Incze Lajos

On Thu, Feb 01, 2001 at 09:30:52AM +1100, [EMAIL PROTECTED] wrote:
> In the code I have (2000-01-19) neither of the ErrorsTag classes in
> org.apache.struts.taglib.html or org.apache.struts.taglib.form have methods
> to support the property attribute. Am I missing somthing on this one?
   a newer version.
 incze



RE: html:errors - highlight affected text field

2002-07-17 Thread Galbreath, Mark

You can use HTML syntax in your ApplicationResources.properties file for any
error key like:

default.global.error.key=Validation errors were
encountered while processing your request.Please review your entries and
resubmit the form.

But be sure to keep it all on a single line.

Mark

-Original Message-
From: Adrian Theuma [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 4:38 AM

I am using the  tag to display accumulated errors that were
encountered on the form after the user submits the form. I would like to be
able to highlight the text field that has the error.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: html:errors tag funny null strings

2002-06-20 Thread Celestino Pena

In your properties file you are missing entries for "errors" as in...

errors.header=Validation ErrorYou must
correct the following error(s) before proceeding:
errors.footer=


-Original Message-
From: Jan Fetyko [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 1:51 PM
To: Struts Users Mailing List
Subject: html:errors tag funny null strings


Hi,

I'm using the  tag to display errors after 
the form validation fails. The problem is that when the error is 
displayed it contains a "null" string at the begining and at the end on 
the actual error message. Ex.: "null Password is required null".

What's going on ? Is this fix-able ?

Jf


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: html:errors tag funny null strings

2002-06-20 Thread Jan Fetyko

Actualy I'm not missing the entry for the error, since it gets writen to 
the page, but there are aditional "null" strings.

I have this in properties file:

text.login.password.error=Password is required

on the jsp page I have



but the output on the page is not just: "Password is required"
but : "null Password is required null".

Does that make sense ?

Jf

Celestino Pena wrote:
> In your properties file you are missing entries for "errors" as in...
> 
> errors.header=Validation ErrorYou must
> correct the following error(s) before proceeding:
> errors.footer=
> 
> 
> -Original Message-
> From: Jan Fetyko [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 20, 2002 1:51 PM
> To: Struts Users Mailing List
> Subject: html:errors tag funny null strings
> 
> 
> Hi,
> 
> I'm using the  tag to display errors after 
> the form validation fails. The problem is that when the error is 
> displayed it contains a "null" string at the begining and at the end on 
> the actual error message. Ex.: "null Password is required null".
> 
> What's going on ? Is this fix-able ?
> 
> Jf
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: html:errors tag funny null strings

2002-06-20 Thread Tim T. Young


Are you using Websphere?  If you are, when null String objects get written
to a jsp
they produce a "null".  Early versions of Websphere did not do this but we
had problems
starting with version 3.5.3.

I just put a errors.header= and errors.footer= in the properties file and
it takes care of it,
since I didn't have anything I wanted to display like in the example below.

Tim



   

Jan Fetyko 

 

   

06/20/2002 

02:48 PM   To: Struts Users Mailing List 
<[EMAIL PROTECTED]>  
Please respond cc: 

to "Struts 

Users Mailing  

List"  

          Subject: Re: html:errors tag funny null 
strings  
   




Caterpillar: Confidential Green  Retain Until: 07/20/2002
 Retention Category:  G90 -
 Information and Reports




Actualy I'm not missing the entry for the error, since it gets writen to
the page, but there are aditional "null" strings.

I have this in properties file:

text.login.password.error=Password is required

on the jsp page I have



but the output on the page is not just: "Password is required"
but : "null Password is required null".

Does that make sense ?

Jf

Celestino Pena wrote:
> In your properties file you are missing entries for "errors" as in...
>
> errors.header=Validation ErrorYou must
> correct the following error(s) before proceeding:
> errors.footer=
>
>
> -Original Message-
> From: Jan Fetyko [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 20, 2002 1:51 PM
> To: Struts Users Mailing List
> Subject: html:errors tag funny null strings
>
>
> Hi,
>
> I'm using the  tag to display errors after
> the form validation fails. The problem is that when the error is
> displayed it contains a "null" string at the begining and at the end on
> the actual error message. Ex.: "null Password is required null".
>
> What's going on ? Is this fix-able ?
>
> Jf
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>
>
>



--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>






--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: html:errors ActionErrors accessible as scripting variable?

2002-07-15 Thread Galbreath, Mark

<%
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, 2002 4:46 PM
To: 'Struts Users Mailing List'
Subject: html:errors ActionErrors accessible as scripting variable?


I have JSP page that should determine whether there are errors or not in
order to display certain parts of the page.
So, is there a way to access the ActionErrors object in a JSP as a scripting
variable, or even better, a tag lib structure so that I can check for the
existence of the ActionErrors instance in the JSP page?

Thanks,
Henrique

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: html:errors ActionErrors accessible as scripting variable?

2002-07-15 Thread Chang, Henrique

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 = ( 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, 2002 4:46 PM
To: 'Struts Users Mailing List'
Subject: html:errors ActionErrors accessible as scripting variable?


I have JSP page that should determine whether there are errors or not in
order to display certain parts of the page.
So, is there a way to access the ActionErrors object in a JSP as a scripting
variable, or even better, a tag lib structure so that I can check for the
existence of the ActionErrors instance in the JSP page?

Thanks,
Henrique

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: html:errors ActionErrors accessible as scripting variable?

2002-07-15 Thread Ajay Chitre

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 for this so you may want to create it.


-Original Message-
From: Chang, Henrique [mailto:[EMAIL PROTECTED]] 
Sent: Monday, July 15, 2002 1:46 PM
To: 'Struts Users Mailing List'
Subject: html:errors ActionErrors accessible as scripting variable?

I have JSP page that should determine whether there are errors or not in
order to display certain parts of the page.
So, is there a way to access the ActionErrors object in a JSP as a
scripting
variable, or even better, a tag lib structure so that I can check for
the
existence of the ActionErrors instance in the JSP page?

Thanks,
Henrique

--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: html:errors ActionErrors accessible as scripting variable?

2002-07-15 Thread Martin Cooper

Or, without scriptlets:


// Display your errors here


--
Martin Cooper


> -Original Message-
> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 15, 2002 2:06 PM
> To: 'Struts Users Mailing List'
> 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 Message-
> From: Chang, Henrique [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 15, 2002 4:46 PM
> To: 'Struts Users Mailing List'
> Subject: html:errors ActionErrors accessible as scripting variable?
> 
> 
> I have JSP page that should determine whether there are 
> errors or not in
> order to display certain parts of the page.
> So, is there a way to access the ActionErrors object in a JSP 
> as a scripting
> variable, or even better, a tag lib structure so that I can 
> check for the
> existence of the ActionErrors instance in the JSP page?
> 
> Thanks,
> Henrique
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: html:errors tag funny null strings -SOLVED

2002-06-21 Thread Jan Fetyko

I'm not using Websphere, but Tomcat, however putting those entries into 
my properties file HELPED !

THANK YOU.

Jf

Tim T. Young wrote:
> Are you using Websphere?  If you are, when null String objects get written
> to a jsp
> they produce a "null".  Early versions of Websphere did not do this but we
> had problems
> starting with version 3.5.3.
> 
> I just put a errors.header= and errors.footer= in the properties file and
> it takes care of it,
> since I didn't have anything I wanted to display like in the example below.
> 
> Tim
> 
> 
> 
>  
>  
> Jan Fetyko   
>  
>   
> nline.com>   
>  
>  
>  
> 06/20/2002   
>  
> 02:48 PM   To: Struts Users Mailing List 
><[EMAIL PROTECTED]>  
> Please respond cc:   
>  
> to "Struts   
>  
> Users Mailing
>  
> List"        
>  
>   Subject: Re: html:errors tag funny 
>null strings  
>  
>  
> 
> 
> 
> Caterpillar: Confidential Green  Retain Until: 07/20/2002
>  Retention Category:  G90 -
>  Information and Reports
> 
> 
> 
> 
> Actualy I'm not missing the entry for the error, since it gets writen to
> the page, but there are aditional "null" strings.
> 
> I have this in properties file:
> 
> text.login.password.error=Password is required
> 
> on the jsp page I have
> 
> 
> 
> but the output on the page is not just: "Password is required"
> but : "null Password is required null".
> 
> Does that make sense ?
> 
> Jf
> 
> Celestino Pena wrote:
> 
>>In your properties file you are missing entries for "errors" as in...
>>
>>errors.header=Validation ErrorYou must
>>correct the following error(s) before proceeding:
>>errors.footer=
>>
>>
>>-Original Message-
>>From: Jan Fetyko [mailto:[EMAIL PROTECTED]]
>>Sent: Thursday, June 20, 2002 1:51 PM
>>To: Struts Users Mailing List
>>Subject: html:errors tag funny null strings
>>
>>
>>Hi,
>>
>>I'm using the  tag to display errors after
>>the form validation fails. The problem is that when the error is
>>displayed it contains a "null" string at the begining and at the end on
>>the actual error message. Ex.: "null Password is required null".
>>
>>What's going on ? Is this fix-able ?
>>
>>Jf
>>
>>
>>--
>>To unsubscribe, e-mail:
>><mailto:[EMAIL PROTECTED]>
>>For additional commands, e-mail:
>><mailto:[EMAIL PROTECTED]>
>>
>>--
>>To unsubscribe, e-mail:   <
> 
> mailto:[EMAIL PROTECTED]>
> 
>>For additional commands, e-mail: <
> 
> mailto:[EMAIL PROTECTED]>
> 
>>
> 
> 
> 
> --
> To unsubscribe, e-mail:   <
> mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
> mailto:[EMAIL PROTECTED]>
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: [html:errors] Separation of Global Errors from Specific Errors

2002-11-11 Thread Kris Schneider
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:



Quoting Jerry Jalenak <[EMAIL PROTECTED]>:

> Any help on this at all?
> 
> 
> 
> I know I've this answer before, but I cannot seem to find it in the
> archives.  I am setting ActionErrors for both specific properties as well
> as
> global errors.  In other words, in my action I have 
> 
>   errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("myError"));
> 
> and
> 
>   errors.add("myProperty", new ActionError("myPropertyError"));
> 
> In my JSP I am using  to get my global errors, and
>  to get my specific error.  The
> problem
> is that the  is also returning the specific errors.  I
> remember seeing an e-mail on this a few weeks ago, but can't find it in the
> archives.  Is there a way to limit the  to only display the
> errors that are NOT associated with a specific property?
> 
> 
> TIA!
> 
> Jerry Jalenak
> Web Publishing
> LabOne, Inc.
> 10101 Renner Blvd.
> Lenexa, KS  66219
> (913) 577-1496
> [EMAIL PROTECTED]
> 
> 
> 
> This transmission (and any information attached to it) may be confidential
> and is intended solely for the use of the individual or entity to which it is
> addressed. If you are not the intended recipient or the person responsible
> for delivering the transmission to the intended recipient, be advised that
> you have received this transmission in error and that any use, dissemination,
> forwarding, printing, or copying of this information is strictly prohibited.
> If you have received this transmission in error, please immediately notify
> LabOne at (800)388-4675.
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


-- 
Kris Schneider 
D.O.Tech   

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: html:errors, how to keep html out of messages?

2001-03-28 Thread Maya Muchnik

In struts-example resource file errors.header has "" tag, and
errors.footer has "" tag. This reason why each error message must to
have these pair tags.
Hope this help.
Maya

Phillip Rhodes wrote:

> I am using the html:errors tag to display my messages, but I find that I
> have to wrap each of my message key values with a  for them to
> display properly.
>
> Is there a way that as I iterator through my errors, that I could output
> the error message with the  tag?
>
> Thanks!




Re: html:errors, how to keep html out of messages?

2001-03-28 Thread Martin Cooper

The  tag generates output like this:

(errors.header)CR-LF
(message1)CR-LF
(message2)CR-LF
...
(messageN)CR-LF
(errors.footer)CR-LF

where the values in parentheses are keys into the application's properties
file, and message1 through messageN are your error message keys. Since CR-LF
is just whitespace in HTML, you have to either use  (or , etc) in
the messages themselves, or put your  tag in a fixed-format
block (e.g. ).

Theoretically, you could grab the ActionErrors object from the request
attribute in which it's stored, and iterate over the errors yourself, but
then you have to get into looking the keys up in the right resource bundle,
etc.

If you really want to do something different, then I'm afraid all I can
suggest is taking a look at ErrorsTag.java and perhaps writing your own tag
based on that.

--
Martin Cooper


- Original Message -
From: "Phillip Rhodes" <[EMAIL PROTECTED]>
To: "struts-user-jakarta.apache.org" <[EMAIL PROTECTED]>
Sent: Wednesday, March 28, 2001 12:35 PM
Subject: html:errors, how to keep html out of messages?


> I am using the html:errors tag to display my messages, but I find that I
> have to wrap each of my message key values with a  for them to
> display properly.
>
> Is there a way that as I iterator through my errors, that I could output
> the error message with the  tag?
>
> Thanks!
>





Re: html:errors, how to keep html out of messages?

2001-03-28 Thread David Winterfeldt

I made the equivalent of the errors tag, but it
iterates through the error messages.

  
 
 
 

 
 
  

or 

  
 
 

 
 
  

The header and footer are optional.

http://home.earthlink.net/~dwinterfeldt

David

--- Maya Muchnik <[EMAIL PROTECTED]> wrote:
> In struts-example resource file errors.header has
> "" tag, and
> errors.footer has "" tag. This reason why each
> error message must to
> have these pair tags.
> Hope this help.
> Maya
> 
> Phillip Rhodes wrote:
> 
> > I am using the html:errors tag to display my
> messages, but I find that I
> > have to wrap each of my message key values with a
>  for them to
> > display properly.
> >
> > Is there a way that as I iterator through my
> errors, that I could output
> > the error message with the  tag?
> >
> > Thanks!
> 


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/?.refer=text



Re: html:errors and logic:greaterThan w/out having to use scriptlets

2002-12-03 Thread Dennis Muhlestein
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:

Some Logic
Here


Any Suggestions?

Thanks
Dennis


On Tue, 2002-12-03 at 14:22, Dennis Muhlestein wrote:
> In addition to displaying errors by a specific field, i'd like to
> display some additional information.
> 
> ie:
> 
> 
> <% if errors.size( "someField" ) > 0 { %>
>   Some Additional Info ..
> <% } %>
> 
> Problem is, I can't see a way to do that with any of the logic tags
> because there is no property that represents the number of errors for a
> specific field
> 
> I'd like to do something like this:
> 
>  value="0">
>   Some Additional Info...
> 
> 
> 
> That way I don't have to have the scriptlets in the jsp.
> 
> Anyone have a way to do this without the scriptlets??
> 
> TIA
> -Dennis
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: html:errors - how do you make a bulleted error list

2002-10-09 Thread David Graham

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 - how do you make a bulleted error list
>Date: 09 Oct 2002 17:14:14 -0400
>
>Hello,
>
>We are trying to display a list of errors at the top of a page.  We are
>trying to make each error bulleted, but are running into difficulty.
>
>I looked through the 1.1b2 examples and saw that there were a couple of
>examples using "errors.prefix" and "errors.suffix" to wrap errors in
>bullet points.  However, it's not displaying what I defined there.
>
>Does this feature work?  What am I doing wrong?  Below is what I have
>defined in my application.properties.  The errors.header and
>errors.footer show up properly.   We are using 1.1 beta 2 struts
>release.
>
>Thanks for any help.
>
>Doug
>
>errors.header=
>errors.footer=
>
>errors.prefix=
>errors.suffix=
>
>
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>




_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: html:errors - how do you make a bulleted error list

2002-10-10 Thread Doug Bryant

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  tags around the
messages themselves.  

thanks, Doug

On Wed, 2002-10-09 at 17:37, David Graham wrote:
> 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 - how do you make a bulleted error list
> >Date: 09 Oct 2002 17:14:14 -0400
> >
> >Hello,
> >
> >We are trying to display a list of errors at the top of a page.  We are
> >trying to make each error bulleted, but are running into difficulty.
> >
> >I looked through the 1.1b2 examples and saw that there were a couple of
> >examples using "errors.prefix" and "errors.suffix" to wrap errors in
> >bullet points.  However, it's not displaying what I defined there.
> >
> >Does this feature work?  What am I doing wrong?  Below is what I have
> >defined in my application.properties.  The errors.header and
> >errors.footer show up properly.   We are using 1.1 beta 2 struts
> >release.
> >
> >Thanks for any help.
> >
> >Doug
> >
> >errors.header=
> >errors.footer=
> >
> >errors.prefix=
> >errors.suffix=
> >
> >
> >
> >
> >--
> >To unsubscribe, e-mail:   
> >
> >For additional commands, e-mail: 
> >
> 
> 
> 
> 
> _
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: html:errors - how do you make a bulleted error list

2002-10-10 Thread Morycz, Felicia V

The only way I could get the prefix and suffix to work was by explicitly
asking for them in the jsp, like:


   
   
   
   
  
   
   
   


I'd rather keep the html in the jsp rather than in a property file, like:


   
   
   
   
  
   
   
   



Here are my properties:
errors.prefix=
errors.suffix=
errors.footer=
errors.header=Validation ErrorYou
must correct the following error(s) before proceeding:


We must be missing something.  Anyone else find another way to get prefix
and suffix to work?

-Original Message-
From: 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 of error2. Text
of error3"

I would like to get this resolved without putting  tags around the
messages themselves.  

thanks, Doug

On Wed, 2002-10-09 at 17:37, David Graham wrote:
> 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 - how do you make a bulleted error list
> >Date: 09 Oct 2002 17:14:14 -0400
> >
> >Hello,
> >
> >We are trying to display a list of errors at the top of a page.  We are
> >trying to make each error bulleted, but are running into difficulty.
> >
> >I looked through the 1.1b2 examples and saw that there were a couple of
> >examples using "errors.prefix" and "errors.suffix" to wrap errors in
> >bullet points.  However, it's not displaying what I defined there.
> >
> >Does this feature work?  What am I doing wrong?  Below is what I have
> >defined in my application.properties.  The errors.header and
> >errors.footer show up properly.   We are using 1.1 beta 2 struts
> >release.
> >
> >Thanks for any help.
> >
> >Doug
> >
> >errors.header=
> >errors.footer=
> >
> >errors.prefix=
> >errors.suffix=
> >
> >
> >
> >
> >--
> >To unsubscribe, e-mail:   
> ><mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail: 
> ><mailto:[EMAIL PROTECTED]>
> 
> 
> 
> 
> _
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
> 
> 
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>