struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alireza Fattahi <>
Subject RE: Pre Population Problem with FormBean - Urgent
Date Mon, 03 Feb 2003 10:32:52 GMT
Little guide line: try to minimize the scope of the error, hope use full.

Try this could on you second page, to see what values are actually in
Enumeration enmAttributeNames;
String strAttributeName;
Object objAttributeValue;


enmAttributeNames = session.getAttributeNames();
while (enmAttributeNames.hasMoreElements())
  strAttributeName = (String) enmAttributeNames.nextElement();
  out.print("<TD><B>" + strAttributeName + ":</B></TD>" );
  objAttributeValue =  session.getAttribute(strAttributeName);
  out.println("<TD><PRE>" + objAttributeValue + "&nbsp;</PRE></TD>");


If the values are in session then it is tag problems, don't do any thing
with action.
Else the value is not actually in session so the tags ca not show them (fix
the action). Try to read the session without using struts tags.

-----Original Message-----
From: ashokd [] 
Sent: Monday, January 28, 2002 9:23 PM
To: Struts Users Mailing List
Subject: Pre Population Problem with FormBean - Urgent


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

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

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 =
     if(unitForm == null){
      unitForm = new TestForm( );

 Thanks in Advance,

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message