I would guess that "type" is a reserved word. Try changing it to "myType"?
Kind regards mc On 29 Sep 2005 at 11:40, Elaine Sit wrote: > My webapp using tomcat5.5 + struts > > I create a new form bean in the struts-config.xml as following: > > <form-bean name="surveyForm" > type="org.apache.struts.validator.DynaValidatorForm"> > <form-property name="emailAddr" type="java.lang.String"/> > <form-property name="senderName" type="java.lang.String"/> > <form-property name="content" type="java.lang.String"/> > </form-bean> > ... > <action path="/SendSurvey" > type="test.struts.action.SurveyAction" > input="/jsp/survey.jsp" > name="surveyForm"> > <forward name="ok" path="/jsp/doneSurvey.jsp"/> > </action> > > and do the deployment to the tomcat by > 1. remove the war package > 2. and put the new war package. > > It works fine .. but then when I add another form variable to surveyForm as > following: > > <form-bean name="surveyForm" > type="org.apache.struts.validator.DynaValidatorForm"> > <form-property name="emailAddr" type="java.lang.String"/> > <form-property name="senderName" type="java.lang.String"/> > <form-property name="content" type="java.lang.String"/> > <form-property name="type" type="java.lang.String"/> > </form-bean> > > and do the deployment again by restarting tomcat. I got an error that said > "type" is not a form variable. > > I don't know why the tomcat still reading the old struts-config.xml . > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.344 / Virus Database: 267.11.8/114 - Release Date: 28/09/2005 > FOCUS Computing Mob: 0415 24 26 24 [EMAIL PROTECTED] http://www.focus-computing.com.au -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.8/114 - Release Date: 28/09/2005 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]