You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Franz-Josef Herpers <fj...@netscape.net> on 2004/04/13 20:48:59 UTC
toUpperCase() with format attribute of tag
Hi *,
is it possible to use the format attribute of the <bean:write> tag to do
something like the Java method String#toUpperCase() does with strings?
If yes, i would appreciate any hints how to force this behaviour.
Thanks in advance.
Regards
Franz
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Formatting date and time/solved
Posted by Marco Mistroni <mm...@waersystems.com>.
Hi,
Ok I found solution In struts apidoc..
I have to define the message like this
{0,time,HH:mm}
in application resources
regards
marco
-----Original Message-----
From: Marco Mistroni [mailto:mmistroni@waersystems.com]
Sent: 22 April 2004 12:48
To: 'Struts Users Mailing List'
Subject: Formatting date and time
Hi all,
2day in reading struts in action I came across section that was talking
about message formatting..
I have a date message that should be like 'time now is 11:00'
internationalized.
Following what book say, I should use something like
Mymsg=time now is {0,time,'style'}
Problem is that if I use style short, I got 'time now is 11:00 AM',
while I want to be able to define my own format for the time
Can anyone suggest me how to do that?
Regards
marco
-----Original Message-----
From: Marco Mistroni [mailto:mmistroni@waersystems.com]
Sent: 22 April 2004 10:38
To: fjhPost@netscape.net; struts-user@jakarta.apache.org
Subject: RE: toUpperCase() with format attribute of <bean:write> tag
HI,
Has been any replies to this message? I could have lost it,
But I m facing same problem.
Has anyone given any solutions?
Regards
marco
-----Original Message-----
From: Franz-Josef Herpers [mailto:fjhPost@netscape.net]
Sent: 13 April 2004 19:49
To: struts-user@jakarta.apache.org
Subject: toUpperCase() with format attribute of <bean:write> tag
Hi *,
is it possible to use the format attribute of the <bean:write> tag to do
something like the Java method String#toUpperCase() does with strings?
If yes, i would appreciate any hints how to force this behaviour.
Thanks in advance.
Regards
Franz
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Formatting date and time
Posted by Marco Mistroni <mm...@waersystems.com>.
Hi all,
2day in reading struts in action I came across section that was talking
about message formatting..
I have a date message that should be like 'time now is 11:00'
internationalized.
Following what book say, I should use something like
Mymsg=time now is {0,time,'style'}
Problem is that if I use style short, I got 'time now is 11:00 AM',
while I want to be able to define my own format for the time
Can anyone suggest me how to do that?
Regards
marco
-----Original Message-----
From: Marco Mistroni [mailto:mmistroni@waersystems.com]
Sent: 22 April 2004 10:38
To: fjhPost@netscape.net; struts-user@jakarta.apache.org
Subject: RE: toUpperCase() with format attribute of <bean:write> tag
HI,
Has been any replies to this message? I could have lost it,
But I m facing same problem.
Has anyone given any solutions?
Regards
marco
-----Original Message-----
From: Franz-Josef Herpers [mailto:fjhPost@netscape.net]
Sent: 13 April 2004 19:49
To: struts-user@jakarta.apache.org
Subject: toUpperCase() with format attribute of <bean:write> tag
Hi *,
is it possible to use the format attribute of the <bean:write> tag to do
something like the Java method String#toUpperCase() does with strings?
If yes, i would appreciate any hints how to force this behaviour.
Thanks in advance.
Regards
Franz
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: toUpperCase() with format attribute of tag
Posted by Robert Taylor <rt...@mulework.com>.
JSTL has fn:toLowerCase(), so I suppose you could do something like.
<c:out value="${fn:toLowerCase(property)}"/>
robert
> -----Original Message-----
> From: Marco Mistroni [mailto:mmistroni@waersystems.com]
> Sent: Thursday, April 22, 2004 5:38 AM
> To: fjhPost@netscape.net; struts-user@jakarta.apache.org
> Subject: RE: toUpperCase() with format attribute of <bean:write> tag
>
>
> HI,
> Has been any replies to this message? I could have lost it,
> But I m facing same problem.
> Has anyone given any solutions?
>
> Regards
> marco
>
> -----Original Message-----
> From: Franz-Josef Herpers [mailto:fjhPost@netscape.net]
> Sent: 13 April 2004 19:49
> To: struts-user@jakarta.apache.org
> Subject: toUpperCase() with format attribute of <bean:write> tag
>
> Hi *,
>
> is it possible to use the format attribute of the <bean:write> tag to do
>
> something like the Java method String#toUpperCase() does with strings?
> If yes, i would appreciate any hints how to force this behaviour.
>
> Thanks in advance.
>
> Regards
> Franz
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: toUpperCase() with format attribute of tag
Posted by Marco Mistroni <mm...@waersystems.com>.
HI,
Has been any replies to this message? I could have lost it,
But I m facing same problem.
Has anyone given any solutions?
Regards
marco
-----Original Message-----
From: Franz-Josef Herpers [mailto:fjhPost@netscape.net]
Sent: 13 April 2004 19:49
To: struts-user@jakarta.apache.org
Subject: toUpperCase() with format attribute of <bean:write> tag
Hi *,
is it possible to use the format attribute of the <bean:write> tag to do
something like the Java method String#toUpperCase() does with strings?
If yes, i would appreciate any hints how to force this behaviour.
Thanks in advance.
Regards
Franz
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org