Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
kc pant
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20495
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to our Struts forum.
 
kc pant
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can any one help???
 
Mohana Rao Sv
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic