aspose file tools*
The moose likes Struts and the fly likes not getting the value from database in jsp page at first time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "not getting the value from database in jsp page at first time" Watch "not getting the value from database in jsp page at first time" New topic
Author

not getting the value from database in jsp page at first time

kc pant
Greenhorn

Joined: May 10, 2011
Posts: 13
Dear All,


i am working with struts and in my application i have to fill a customer form when he is comming for laon andafter filling the form that data is going into database,
when we are going to varify the user information then we have that particular page in another stage in disable modewith all values which we entered in first stage,

my problem is that when i m entering the information in form the data is going into the databse but in next stage when i want to verify the user information that time the fields are coming in disable mode but the dorpdown texts value is not coming at first time and simple text value is coming ...as i refersh the page then all values are comming(text and dropdown),

i used another schema for the same application and in another schema the value is populating at first time .
so i am confuse what is happing and how to solve it..


thanks in advance
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19718
    
  20

Moving to our Struts forum.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
kc pant
Greenhorn

Joined: May 10, 2011
Posts: 13
can any one help???
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

As per my understanding you want to populate some data before action is triggered then your action class should implement preparable interface and override prepare method and in add prepare interceptor.


ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: not getting the value from database in jsp page at first time