wood burning stoves 2.0*
The moose likes Servlets and the fly likes how to get objects from an included Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to get objects from an included" Watch "how to get objects from an included" New topic

how to get objects from an included

Donna Reschke

Joined: Jun 20, 2001
Posts: 17
i have a jsp that needs objects wich are generated in a servlet.
i need to include this servlet in the jsp and need to be able to get objects from the
how can this be done?
Bhupinder Dhillon
Ranch Hand

Joined: Oct 12, 2000
Posts: 124
You set the objects as attributes in the HttpServletRequest object and access them in the JSP.
//servlet code
request.setAttribute("objectName", new Object());
//jsp code
Object obj = request.getAttribute("objectName");
I agree. Here's the link: http://aspose.com/file-tools
subject: how to get objects from an included
Similar Threads
servlet to jsp
Calling Servlets from a jsp
Servlet needs to pick up page name
How we handle differet objects from the jsp page in servlet
Pooling of Servlet