struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ashokd" <ash...@visualsoft-tech.com>
Subject Pre Population Problem with FormBean - Urgent
Date Mon, 28 Jan 2002 17:53:11 GMT
Hi,

 In my application in Action Class we are setting FormBean values for  next
screen.

 In this scenario first time the values are not pre populating in next
screen.

If we refreshed the page i.e: the action invoking once again then  the
values are prepopulating.


 Scope of the Next FormBean : Session

 Code in Action class:

     TestForm unitForm =
 (TestForm)aRequest.getSession().getAttribute("unitselForm");
     if(unitForm == null){
      unitForm = new TestForm( );
     }
           unitForm.setUnit("2");
            unitForm.setUserId("Ashok");



 Thanks in Advance,
 Ashok.D



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message