How to retrieve value from a DAO to JSP

Hi,

I need to retrieve a single value from a DAO function which has result set into JSP. I am using the following code to do it:-

%String i=request.getParameter("StatusCd");

System.out.println(i); %>

<html:button property="button" value="Accept Project" onClick="alert()"/ ></html:button>

Problem is that in DAO StatusCd is int and in JSP I am forced to name it as String i=request.get...... How can I print the value of statusCd as int in the jsp?

[493 byte] By [PaviEluri20a] at [2007-11-27 10:25:34]
# 1

Use

<%@ page import="java.lang.Integer" %>

<%int i=Integer.parseInt(request.getParameter("StatusCd"));%>

George123a at 2007-7-28 17:34:22 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...