aspose file tools*
The moose likes JSP and the fly likes request.getAttribute() returns null in the JSP page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "request.getAttribute() returns null in the JSP page" Watch "request.getAttribute() returns null in the JSP page" New topic
Author

request.getAttribute() returns null in the JSP page

Uma Bandaru
Ranch Hand

Joined: Jul 30, 2009
Posts: 31
Hi All,

I have been developing a small application using MVC (Model view controller pattern) on Oracle JDeveloper.

In my servlet, I get an array of bean objects from the data access object and I am forwarding the request to a JSP page along with the length of the array. In the JSP page, the value of that attribute is displayed as "null". Can some one please help?

My Servlet code:


And my JSP page source code is:
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61627
    
  67

Please UseCodeTags when posting code, and why are you using scriptlets in the JSP? Is this legacy code from 10 years ago?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
wood burning stoves
 
subject: request.getAttribute() returns null in the JSP page