• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

request.getAttribute() returns null in the JSP page

 
Uma Bandaru
Ranch Hand
Posts: 31
  • 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: 64623
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic