Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 | 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 » Portals and Portlets
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: 99
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
Portlet Configuration
Showing a list result in jsp view page from database
linking jsp pages in a liferay portlet
not opening a page in browser
Settings for portlet