If it's null, it's null. If there's a value, it will display.

On Mon, Jul 29, 2013 at 10:46 PM, john lee <sh_thorn_b...@yahoo.com> wrote:

>
> I have class Part
>
>   class Part {
>       String pid,
>       Integer  qty;
> }
>
> how can I display object/convert inside JSP?
>
> /* if define/set (Part detailpart)  before return */
>
> <s:property value="detailpart.pid"/>    /* this is no problem */
>
> how about qty?
>
> I tried the following, but show null
>    <s:property value="detailpart.qty"/>
>
> I tried the following, but nothing either
>     <s:property value="getText('{0,number,#,##0.00}',{detailpart.qty})"/>
>
> so, how to display/convert  object inside value ?
>
> thanks in advance
>
> john




-- 
e: davelnew...@gmail.com
m: 908-380-8699
s: davelnewton_skype
t: @dave_newton <https://twitter.com/dave_newton>
b: Bucky Bits <http://buckybits.blogspot.com/>
g: davelnewton <https://github.com/davelnewton>
so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>

Reply via email to