Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Session Attribute from JSP to Servlet PDF Generating

 
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...
 
Marshal
Posts: 25815
69
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.
 
Ranch Hand
Posts: 384
Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post the JSP too ...
 
Bartender
Posts: 1051
5
Hibernate Eclipse IDE Chrome
  • 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....
    Bookmark Topic Watch Topic
  • New Topic