Re: messages into struts 1.1

2003-04-02 Thread Kirby Vandivort
I was just running across this in something i was working on..

In the html tag, try



and see if that helps.

On Wed, Apr 02, 2003 at 12:25:52PM +0100, [EMAIL PROTECTED] wrote:
> Hi everyone,
> 
> Is anybody knows how to use messages system of struts. I just 
> want to print some information on the user screen, so I use an 
> ActionMessages object, then i fill it with ActionMessage, I 
> save it, and in my jsp, I use the tag  id="messages"> in which messages is the name of my svaed 
> object, but nothing is printed out? So perhaps I do not use 
> correctly this?
> 
> Cheers
> Pierre
> 
> Accédez au courrier électronique de La Poste : www.laposte.net ; 
> 3615 LAPOSTENET (0,34€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)"
> 
> 
> 

-- 

Kirby Vandivort  Theoretical and Computational Biophysics 
Email: [EMAIL PROTECTED]  3051 Beckman Institute
http://www.ks.uiuc.edu/~kvandivo/University of Illinois
Phone: (217) 244-5711405 N. Mathews Ave
Fax  : (217) 244-6078Urbana, IL  61801, USA

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



Re: messages into struts 1.1

2003-04-02 Thread Gareth Andrew
I've just had a similar problem, recently. The docs seem to be a bit 
misleading (or perhaps the docs are right and theres a bug somewhere?).
 doesn't seem to do any actual writing, its just a form 
of iterator that loops through the specified messages and puts them in a 
page-scope attribute. To actually display them you need to use 
eg.




Note you may also need to set the message paramater of the html:message 
tag to "true" if you have created your messages using the 
ActionMessages.GLOBAL_MESSAGE key as the tag (confusingly) defaults to 
using ActionErrors.GLOBAL_ERROR

Hope this helps,

Gareth

[EMAIL PROTECTED] wrote:

Hi everyone,

Is anybody knows how to use messages system of struts. I just 
want to print some information on the user screen, so I use an 
ActionMessages object, then i fill it with ActionMessage, I 
save it, and in my jsp, I use the tag  in which messages is the name of my svaed 
object, but nothing is printed out? So perhaps I do not use 
correctly this?

Cheers
Pierre
Accédez au courrier électronique de La Poste : www.laposte.net ; 
3615 LAPOSTENET (0,34€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)"



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



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


messages into struts 1.1

2003-04-02 Thread [EMAIL PROTECTED]
Hi everyone,

Is anybody knows how to use messages system of struts. I just 
want to print some information on the user screen, so I use an 
ActionMessages object, then i fill it with ActionMessage, I 
save it, and in my jsp, I use the tag  in which messages is the name of my svaed 
object, but nothing is printed out? So perhaps I do not use 
correctly this?

Cheers
Pierre

Accédez au courrier électronique de La Poste : www.laposte.net ; 
3615 LAPOSTENET (0,34€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)"




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