This week's book giveaway is in the Agile forum.
We're giving away four copies of Head First Agile and have Andrew Stellman & Jennifer Greene on-line!
See this thread for details.
Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Get data from servelt to jsp, jsp being the home page  RSS feed

 
Madhuri Abhi
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have some data in my servlet. And a jsp page which acts as home page. When i run the home page, it should get data from servlet. Is it possible? If so, how can it be done? Please help.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66208
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have the servlet place the data as scoped variables in request scope. Then forward to the JSP.

In the JSP use the JSTL and EL to display the data.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!