You might try taking the type, name, and method attributes out of the html:form 
tag.  In particular, the name and type attributes are meant to specify the 
request ( or maybe session ) scoped object with which this form should work.  
If you mean to work with the action form that is defined in your struts config 
file, then there's no purpose to these attributes; the html:form tag gets this 
information from the info it can lookup based upon its action attribute.  If 
you take these out, you eliminate a fair bit of troubleshooting at the least.  
And you haven't cut out any functionality  




 --- On Sat 01/28, Karthik Manimaran < [EMAIL PROTECTED] > wrote:
From: Karthik Manimaran [mailto: [EMAIL PROTECTED]
To: user@struts.apache.org
Date: Sat, 28 Jan 2006 02:01:39 -0500
Subject: Form pre-fill issue

Hi,Form data is not getting pre-filled on submission. Can anyone tell me 
thereason?JSP - included from def.jsp-----<%@ page language="java" %><%@ taglib 
uri="/WEB-INF/struts-html.tld" prefix="html" %><%@ taglib 
uri="/WEB-INF/struts-bean.tld" prefix="bean" %><html:form 
action="/Control.do?body=privacysecur_set_privacy_pref"method="post"name="privacyPrefForm"
 type="PrivacyPreferencesBean"><html:text 
property="strFirstName"/><html:submit>submit</html:submit></html:form>PrivacyPreferencesBean.java--------------------------------------------*public*
 *class* PrivacyPreferencesBean *extends* ActionForm {***private* String 
strFirstName;***public String getStrFirstName() {return strFirstName;}**public 
void setStrFirstName(String string) {strFirstName = string;}**}**Entries in 
Struts-config.xml*  <form-bean name="privacyPrefForm" 
type="com.bofa.ecomm.snf.web.privacy.PrivacyPreferencesBean">  </form-bean>  
<action path="/Control" 
type="com.bofa.ecomm.snf.web.global.Control"name="privacyPrefForm" 
scope="request" validate="true">   <forward name="success" 
path="/jsp/global/def.jsp"/>  </action>Thanks and regards,Karthik.******

_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to