Re: Question s:if and java variables in jsp scriplets

2007-12-04 Thread Dave Newton
Just use the status variable; that's more or less one of the reasons it's
there :)

d.

--- Marc Eckart <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I have another Problem connected to the iterator problem :-)
> 
> I have some java variables in my jsp side which do some counting for
> navigation purposes.
> I need these to decide if I want to render a tableheader (in case of the
> first element of the collection) or not.
> 
> We can't put all entries in one table, because we fold some entries, so a
> single entry has to be hidden if necessary.
> 
> I tried  and  but both did not work.
> Can I use scriptlet variables in s:if or is there another way to realize
> this?
> 
> Thanks in advance and best regards,
> Marc
> 
> __
> 
> 
> <%
> int personCount = 1;
> int accountCount = 0;
> int attorneyCount = 0;
> int top=43;
> %>
>  status="rowstatus"
> id="account">
> 
> <% trclass = "odd"; %>
> 
> 
> <% trclass = "even"; %>
>   
> 
> <%
> count++;
> accountCount++;
> info =
> showHeader+"|"+personCount+"|"+accountCount+"|"+attorneyCount+"|v";
> top += 22;
> %>
> 
> 
style="width:920px;margin-bottom:0px;position:absolute;visibility:visible;left:64px;top:<%=
> top %>px;">
>  value="n|1|2|0|v" />
>  style="width:920px;">
> 
> 
> 
>  style="color:#444;width:130px;">Konto
> BLZ
> Konto Nr
> Konto Typ
> 
> 
> 
> 
> 
>  onclick="setRowColor(5)">
> 
>  id="customer5" style="padding:0px;margin-left:17px;" />
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Question s:if and java variables in jsp scriplets

2007-12-04 Thread Marc Eckart
Hi,

I have another Problem connected to the iterator problem :-)

I have some java variables in my jsp side which do some counting for
navigation purposes.
I need these to decide if I want to render a tableheader (in case of the
first element of the collection) or not.

We can't put all entries in one table, because we fold some entries, so a
single entry has to be hidden if necessary.

I tried  and  but both did not work.
Can I use scriptlet variables in s:if or is there another way to realize
this?

Thanks in advance and best regards,
Marc

__


<%
int personCount = 1;
int accountCount = 0;
int attorneyCount = 0;
int top=43;
%>


<% trclass = "odd"; %>


<% trclass = "even"; %>
  

<%
count++;
accountCount++;
info =
showHeader+"|"+personCount+"|"+accountCount+"|"+attorneyCount+"|v";
top += 22;
%>







Konto
BLZ
Konto Nr
Konto Typ