re: bean:message default value

2005-02-17 Thread lukas_oesterreicher
As noone has responded to my problem placing
a default value in case of a non-existent tag,
I found my own solution for it:

I created my own tld and corresponding class,
adding parameters like baseKey and defaultValue.

It was pretty easy: Just copy and past the existing
struts implementation and add the parameters to the
tld and their handling in the corresponding class.

I've spared you  the sources here, but I might
give them to you if you ask by sending a mail to me
(not the mailing list).

Lukas

bean:message default value comment

2005-02-16 Thread lukas_oesterreicher
A short comment:
"/>
doesnt work, even after adding the ) that I fogot.
I always have to save the expression to a seperate String variable before.
Do you know why this is an if there is a way to circumvent the external 
java expression?

Lukas


bean:message default value

2005-02-16 Thread lukas_oesterreicher
Hello

I've been using struts for a while now and more then once came over a 
inconvenience of the bean:message tag.

As documented, the jstl (which I prefer not to use) representation is 
something like
  

I am particularly interested in the replacement text which - if I 
understand correctly -
is displayed if no key my.msg.key is found.

Till now I have not found something like this for struts.

Can you tell me if something like this exists and if yes, show me in an 
example?
Note that I frequently use bean:message like this (example):
"/>

Cheers, Lukas

P.S: Did you notice that the list archive 
(http://mail-archives.apache.org/eyebrowse/SummarizeList?listId=241)
returns "VelocityServlet: Error processing the template" when trying to 
browse it?