This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Showing Server side Variables on JSP  RSS feed

 
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
Boost this thread!