• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem getting arraylist values from request

 
Justin Howard
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am trying to display the results of a search request.
In the jsp page when I add a scriplet and display the code I get the values but param.ResearchResults does not.Any help is appreciated.

 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is becuase 'param' picks up request parameters, which is equivalent to 'request.getParameter(paramName)'

What you want is ${requestScope.ResearchResults } or simply ${ResearchResults } if ResearchResults does not exist in PAGE_SCOPE already.
 
Justin Howard
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
works perfectly. Thank you !
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aside: mixing scriptlets and the JSTL is not recommended.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!