posted 24 years ago
Sharmila,
Here is a sample code. Assume "SampleBean" is your bean's name.
1.In your servlet code "import SampleBean;"
2.Make an instance
SampleBean sb = new SampleBean();
or any other bean's constructor you would like to call
3. Call the needed methods on this bean instance
sb.setData("somearg");
4. pass this bean to jsp
HttpSession httpSession = request.getSession(false);
httpSession.setAttribute("myBean",mb);
getServletContext().getRequestDispatcher(response.encodeURL("/login/welcome.jsp"));
regds
maha anna
[This message has been edited by maha anna (edited March 30, 2001).]