Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: Pls help me out in this : regarding JSP


Message #1 by "Preeti" <preetisikri@h...> on Mon, 19 Feb 2001 17:35:44 -0500
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

  Return to Index