File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Portals and Portlets and the fly likes How to pass instance variable to the JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Reply Bookmark "How to pass instance variable to the JSP" Watch "How to pass instance variable to the JSP" New topic
Author

How to pass instance variable to the JSP

Zandis Murāns
Ranch Hand

Joined: Aug 18, 2009
Posts: 174

How can I access passed variable (for example, an instance of List) to the JSP?
Here's how I'm trying to accomplish this:


view.jsp:


So how comes request.getAttribute("List") is null at this point?
Philip Thamaravelil
Ranch Hand

Joined: Feb 09, 2006
Posts: 92
Move you request.setAttribute("List", aList); to the doView and it will work.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to pass instance variable to the JSP
 
Similar Threads
not opening a page in browser
Showing a list result in jsp view page from database
Portlet Configuration
Settings for portlet
linking jsp pages in a liferay portlet