pro_jsp thread: Pls help me out in this : regarding JSP
Preeti,
in your bean have private class variables to store the results
of your query in & then have public get methods for these so that you can
call them from your JSP.
<%
submitBean.getEmail();
%>
Alternatively have a public method that returns a result set and refer to
this in your JSP.
<%
ResultSet rs = submitBean.getResultSet();
//your logic
while (rs.next())
{
%>
<%=rs.getString("email")%>
<%
}
>%
Personally I would go for the first approach.
Regards,
Simon
|





