Problem with Index

2001-12-04 Thread Strichartz, Beth

In an iterate,
if I do this 

<%=Index%>

the index prints out to the screen for me.


But, how do I do this??

<% if (String.valueOf(Index)) > 0) {%>

<% } %>
To check the value of the index??
Thanks,
Beth.


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Problem with Index

2001-12-04 Thread Sobkowski, Andrej

Beth,

I haven't compiled the following but I guess you should use either
Integer.valueOf(String).intValue() OR
Integer.parseInt(String)
that return an int instead of String.valueOf(int) that returns a String.

A second suggestion would be to use the logic JSP tags "greaterThan" or
similar.

Ex:

  

  


HTH

Andrej
-Original Message-
From: Strichartz, Beth [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 11:56 AM
To: 'Struts Users Mailing List'
Subject: Problem with Index


In an iterate,
if I do this 

<%=Index%>

the index prints out to the screen for me.


But, how do I do this??

<% if (String.valueOf(Index)) > 0) {%>

<% } %>
To check the value of the index??
Thanks,
Beth.


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


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



RE: Problem with Index

2001-12-04 Thread Strichartz, Beth

Thanks,
Works awesome!

-Original Message-
From: Sobkowski, Andrej [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 12:21 PM
To: 'Struts Users Mailing List'
Subject: RE: Problem with Index


Beth,

I haven't compiled the following but I guess you should use either
Integer.valueOf(String).intValue() OR
Integer.parseInt(String)
that return an int instead of String.valueOf(int) that returns a String.

A second suggestion would be to use the logic JSP tags "greaterThan" or
similar.

Ex:

  

  


HTH

Andrej
-Original Message-
From: Strichartz, Beth [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 11:56 AM
To: 'Struts Users Mailing List'
Subject: Problem with Index


In an iterate,
if I do this 

<%=Index%>

the index prints out to the screen for me.


But, how do I do this??

<% if (String.valueOf(Index)) > 0) {%>

<% } %>
To check the value of the index??
Thanks,
Beth.


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


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


This message contains information which may be confidential and privileged.
Unless you are the addressee  (or authorized to receive for the addressee),
you may not use, copy or disclose to anyone the message or any information
contained in the message.  If you have received the message in error, please
advise the sender by reply e-mail, and delete or destroy the message. 

Thank you.


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