Hi,
        I don't think it's possible. I've been looking at issues with ActionErrors 
and ActionMessages and I could not find any constructors that wuld let you 
pass a message String rather than a key to use in a resource bundle. I have 
the problem where I an using more than one file with resources. To do this 
I've had to have multiple html:message tags in the web documents. 

I've been getting the impression over the last few months that there are a 
number of areas in struts that have only been coded with the minimal 
functionality as assumed by developers who wish to do things in a certain 
way. I.e. if you want to do things slightly differently you either can't or 
you will have to write your own JSP tags to do it.

I would suggest that if you really need to do this, then write your own JSP 
tag to replace html:errors. I would probably make it look for a LinkedList of 
text strings or something in a bean and display them. Then you could populate 
this list in any fashion you liked. If you haven't written a tag before it's 
not difficult to do once you understand the bits you need.

cio
Derek.


On Thursday 11 December 2003 01:19, Antony Paul wrote:
> Hi,
>     I want to display error messages saved in Action class using 
> saveErrors without looking at resource bundle. Instead of the key provide
> message. Possible ?
>     Our app does not need internatilisation support and putting all errors
> related to business logic in resource bundle is unnecessary. There will be
> lot of entries int it. One have to use searching tools to find the error
> message in bundle.
>
> rgds
> Antony Paul
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Regards,
Derek Clarkson

.O. Analyst/Programmer
..O Waterwerks Pty Ltd
OOO Melbourne, Australia


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

Reply via email to