Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • 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: 25682
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....
 
There’s no place like 127.0.0.1. But I'll always remember this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic