Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Passing params from EJB to JSP  RSS feed

 
sony gam
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I need to pass parameters from an EJB (stateless) to a JSP.
I was wondering if anyone could help me here.
Thanks,
Sony Gam
 
Marcos Maia
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don�t understand exaclty what you mean but just make the return type of some method from your stateless ejb return an array(or not) serializable object or some collection of such.
hope this helps.
 
sony gam
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Marcos,
Sorry for being unclear.
Actually I would want to invoke the JSP from my EJB(by using HTTPUrlConnection API), and in the process I need to pass some parameters to the JSP.
Thanks,
Sony Gam
 
BJ Grau
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could append URL parameters to the end of the URL that you use to create the HttpURLConnection.
Hope this helps.
 
sony gam
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Grau,
I have tried doing that, but the JSP could not read the parameter.
I have used the request built-in object to access the attribute set.
Thanks,
Sony Gam
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!