Re: Struts 2, session, s:iterator s:if not working, please help (this is revised)

2013-11-19 Thread Antonios Gkogkakis
Hi John,

You have to use var instead of id in the s:iterator tag.

Antonios


On 19 November 2013 07:06, Lukasz Lenart  wrote:

> Have you tried to use  tag?
>
> 2013/11/19 john lee :
> >
> >
> > from the following output,
> >we can tell sell_price=36.97, display_price=1
> >
> > why
> >none of test statement works ?
> >
> >
> > please advise, thanks in advance
> >
> > john
> >
> >
> >
> > Class Part {
> > float sell_price;
> > int display_price;
> > ./*..get set here */
> >
> > Action.java
> >  ArrayList parts=new ArrayList();
> >  ./* doing some calculation for multiple part*/
> >  session.put("detailpart",parts);
> >
> > JSP file
> > 
> >  why-  value="display_price"/>why
> >
> >  
> >  99
> >  
> >
> > 
> > 88
> >   
> >
> >   
> >  77
> >   
> >
> >
> > 66
> >
> >
> >
> >  55
> >
> >   end
> > 
> >
> > OutPut
> >
> >
> > why 36.97- 1 why
>
>
>end
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>
>


Re: Struts 2, session, s:iterator s:if not working, please help (this is revised)

2013-11-18 Thread Lukasz Lenart
Have you tried to use  tag?

2013/11/19 john lee :
>
>
> from the following output,
>we can tell sell_price=36.97, display_price=1
>
> why
>none of test statement works ?
>
>
> please advise, thanks in advance
>
> john
>
>
>
> Class Part {
> float sell_price;
> int display_price;
> ./*..get set here */
>
> Action.java
>  ArrayList parts=new ArrayList();
>  ./* doing some calculation for multiple part*/
>  session.put("detailpart",parts);
>
> JSP file
> 
>  why-  value="display_price"/>why
>
>  
>  99
>  
>
> 
> 88
>   
>
>   
>  77
>   
>
>
> 66
>
>
>
>  55
>
>   end
> 
>
> OutPut
>
>
> why 36.97- 1 why  
>   
> end

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



Struts 2, session, s:iterator s:if not working, please help (this is revised)

2013-11-18 Thread john lee


from the following output,
   we can tell sell_price=36.97, display_price=1

why
   none of test statement works ? 


please advise, thanks in advance

john
  


Class Part {
float sell_price;
    int display_price;
    ./*..get set here */

Action.java 
 ArrayList parts=new ArrayList();
 ./* doing some calculation for multiple part*/
 session.put("detailpart",parts);

JSP file
    
     why- why

 
 99
 
 
    
    88
  
   
  
 77
  
  
   
    66
    
   
   
 55
   
  end
    

OutPut
   

why 36.97- 1 why

end