You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Sekhar, Raja" <ra...@lehman.com> on 2007/10/16 05:41:39 UTC

S:property converts string to rounded int

Hi Group
	I am having a small issue with <s:property value="response.mtm"
/> .
	say 
		if mtm = "215667.20" then 
		from the JSP I get a value of 215667.2,

		similarly if 
			mtm = "0.00" I get a value of 0 from the
rendered jsp. 
		How do I disable this auto conversion from string to int
?

	I am using 2.0.8. Kindly help.

Thanks
Raja
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

This message is intended only for the personal and confidential use of the designated recipient(s) named above.  If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited.  This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such.  All information is subject to change without notice.




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: S:property converts string to rounded int

Posted by vamsi <va...@gmail.com>.
Use struts formatting tags
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>

----- Original Message ----- 
From: "Sekhar, Raja" <ra...@lehman.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Tuesday, October 16, 2007 9:11 AM
Subject: S:property converts string to rounded int



Hi Group
I am having a small issue with <s:property value="response.mtm"
/> .
say
if mtm = "215667.20" then
from the JSP I get a value of 215667.2,

similarly if
mtm = "0.00" I get a value of 0 from the
rendered jsp.
How do I disable this auto conversion from string to int
?

I am using 2.0.8. Kindly help.

Thanks
Raja
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - -

This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient 
of this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as 
an offer to sell or as a solicitation of an offer to buy any financial 
product, an official confirmation of any transaction, or as an official 
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be 
secure or error-free.  Therefore, we do not represent that this information 
is complete or accurate and it should not be relied upon as such.  All 
information is subject to change without notice.




---------------------------------------------------------------------
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: S:property converts string to rounded int

Posted by "Sekhar, Raja" <ra...@lehman.com>.
Its defined as String
Thanks
Raja 

-----Original Message-----
From: Dave Newton [mailto:newton.dave@yahoo.com] 
Sent: Tuesday, October 16, 2007 2:27 PM
To: Struts Users Mailing List
Subject: Re: S:property converts string to rounded int

What is the property defined as in your action or bean?

--- "Sekhar, Raja" <ra...@lehman.com> wrote:

> 
> Hi Group
> 	I am having a small issue with <s:property value="response.mtm"
> /> .
> 	say 
> 		if mtm = "215667.20" then 
> 		from the JSP I get a value of 215667.2,
> 
> 		similarly if 
> 			mtm = "0.00" I get a value of 0 from the
rendered jsp.
> 		How do I disable this auto conversion from string to int
?
> 
> 	I am using 2.0.8. Kindly help.
> 
> Thanks
> Raja
> - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - - - - - - - - - - - - - -
> 
> This message is intended only for the personal and confidential use of

> the designated recipient(s) named above.  If you are not the intended 
> recipient of this message you are hereby notified that any review, 
> dissemination, distribution or copying of this message is strictly 
> prohibited.  This communication is for information purposes only and 
> should not be regarded as an offer to sell or as a solicitation of an 
> offer to buy any financial product, an official confirmation of any 
> transaction, or as an official statement of Lehman Brothers.  Email 
> transmission cannot be guaranteed to be secure or error-free.  
> Therefore, we do not represent that this information is complete or 
> accurate and it should not be relied upon as such.
> All information is subject to change without notice.
> 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

This message is intended only for the personal and confidential use of the designated recipient(s) named above.  If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited.  This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such.  All information is subject to change without notice.




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: S:property converts string to rounded int

Posted by Dave Newton <ne...@yahoo.com>.
What is the property defined as in your action or
bean?

--- "Sekhar, Raja" <ra...@lehman.com> wrote:

> 
> Hi Group
> 	I am having a small issue with <s:property
> value="response.mtm"
> /> .
> 	say 
> 		if mtm = "215667.20" then 
> 		from the JSP I get a value of 215667.2,
> 
> 		similarly if 
> 			mtm = "0.00" I get a value of 0 from the
> rendered jsp. 
> 		How do I disable this auto conversion from string
> to int
> ?
> 
> 	I am using 2.0.8. Kindly help.
> 
> Thanks
> Raja
> - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - - - - - - - - - - - - - -
> 
> This message is intended only for the personal and
> confidential use of the designated recipient(s)
> named above.  If you are not the intended recipient
> of this message you are hereby notified that any
> review, dissemination, distribution or copying of
> this message is strictly prohibited.  This
> communication is for information purposes only and
> should not be regarded as an offer to sell or as a
> solicitation of an offer to buy any financial
> product, an official confirmation of any
> transaction, or as an official statement of Lehman
> Brothers.  Email transmission cannot be guaranteed
> to be secure or error-free.  Therefore, we do not
> represent that this information is complete or
> accurate and it should not be relied upon as such. 
> All information is subject to change without notice.
> 
> 
> 
> 
>
---------------------------------------------------------------------
> 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