Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

passing object to included page through jsp:param  RSS feed

 
Ankit Garg
Sheriff
Posts: 9608
36
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am creating a JSP page. I want to pass an object to an included JSP page so that it can retrieve it. Currently I have made a dirty way of doing it. I add the object to the request.setAttribute and retrieve it in the JSP as request.getAttribute. It is working fine but it is less understandable and might create problems while maintenance. So how can I use jsp:param inside jsp:include to pass the object to the included JSP page and how can I retrieve the object in the included JSP page?

Any help is more than welcome...

Ankit Garg
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!