• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Showing Server side Variables on JSP

 
Fawad Ali
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,
I am new to Struts. I need to know how can the server variables be shown on a JSP page. For Example I have a list in an action class and I want to iterate it on a JSP page using Struts' <logic:iterate>. Then in action class's execute method I ll have to put the list in session. Is there any other method like in Spring we put everything into a HashMap and it is available to JSP page. Does anyone know of the session alternative. An Example will be better.
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To make that "list" accessible on JSP page, you have to put that "list" in any one of the scope.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic