File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

request.getAttribute() returns null in the JSP page

 
Uma Bandaru
Ranch Hand
Posts: 31
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64182
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please UseCodeTags when posting code, and why are you using scriptlets in the JSP? Is this legacy code from 10 years ago?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic