• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Struts2 +Hibernate session not get stored

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

RECONCILATIONBEAN reconcilationBean=here some method which takes bean from database using hibernate
request.getSession().setAttribute("reconcilationBean",reconcilationBean );

in above code i have put bean in session
and in folling code

RECONCILATIONBEAN rep = (RECONCILATIONBEAN) request.getSession().getAttribute("reconcilationBean");
System.out.println("Bank Code for ........................." + rep.getBANK_CODE());

i got bank code always null
it should display perticuler bank code
 
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator



1. Check whether you are getting the "reconcilationBean.getBANK_CODE()" ...... value from the database during the retrieval process...

If your getting the value...

then...

2. Check whether the session attribute has been removed in any where in the code... between these two process

 
Prakash Aradwad
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks

the second solution is useful.
 
Catch Ernie! Catch the egg! And catch this tiny ad too:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
    Bookmark Topic Watch Topic
  • New Topic