Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Session Attribute from JSP to Servlet PDF Generating  RSS feed

 
Lester Carmelotes
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

I'm trying to create PDF Downloadable file through Servlet. I am trying to pass a user session attribute from JSP to Servlet but it gives me null value.

Here's my code:



I'm trying to get data from database of specific person through the user.

Any ideas guys?

need help please!

Thanks...
 
Paul Clapham
Sheriff
Posts: 22531
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lester Carmelotes wrote:I am trying to pass a user session attribute from JSP to Servlet but it gives me null value.


I don't quite understand this... how does your JSP put that attribute into the session? Without knowing that it's impossible to say much (except that apparently it isn't doing that).

Anyway your problem isn't likely to have anything to do with the fact that you plan to generate PDF output. It looks like an ordinary servlet problem to me, so let's move this thread to the Servlets forum.
 
Lalit Mehra
Ranch Hand
Posts: 384
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post the JSP too ...
 
James Boswell
Bartender
Posts: 1051
5
Chrome Eclipse IDE Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rather than saying you are getting a null value, does the exception you get tell you where? Might be useful to post the stack trace of any exception received.
 
Lester Carmelotes
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply guys...

Its working now....
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!