File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 60053
    
  65

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: request.getAttribute() returns null in the JSP page
 
Similar Threads
Retrieve data from other server using JavaScript
Insert appropriate data against right question
Login Module for Online Test Application
'The requested resource is not available' error
JSP two pages