Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

for loop syntax help

Status
Not open for further replies.

abyinsydney

Programmer
Feb 17, 2004
99
AU
greetings people
Can any one please help me with the below mentioned code

i'm a getting error string type cast.

At run time i'm entering the value for first name (param.firstname).According to the for loop sysntax this has to be an int however param .first name returns a string .Can any one of u tell me how to handle this scenario
<html>
<head>
<%@ taglib uri=" prefix="c" %>
<title>login.jsp</title>
</head>
<body>
<table>
<c:forEach var="counter" begin="1" end="${param.firstname}"/>
<input type="text" name= "<c:eek:ut value="input_${counter}" />"> <br>
</c:forEach>
</table>
</body>
</html>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top