hi thank you for reply
i am sending you my code
i tried public method named setHomecountry (with this exact capitalization)
but its giving the same result
i am sending you the form and actionForm
==========================================================
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<html:html>
<html:form action="/Submit" enctype="multipart/form-data" >
<TABLE id="Table1" width="550">
<TBODY>
<TR align="left" height="25">
<TD class="tableheader" colSpan="3"> <bean:message key="common.required"/></B></TD>
</TR>
<TR class="tableheader" align="center" height="25">
<TD width="5%" bgColor="#cccc99"><bean:message key="common.sno"/></TD>
<TD bgColor="#cccc99" colSpan="2"><bean:message key="resume.details"/></TD>
</TR>
<TR class="bodytext" vAlign="top" height="25">
<TD class="tableheader" align="center" width="5%" bgColor="#cccc99">1.</TD>
<TD width="45%" bgColor="#ebebe1" align="left"><bean:message key="resume.coordname"/><html:errors property="coordname"/></TD>
<TD width="50%" bgColor="#ebebe1"><html:text style="WIDTH: 240px; HEIGHT: 22px" property="coordname" /></TD>
</TR>
<TR class="bodytext" vAlign="top" height="25">
<TD class="tableheader" align="center" width="5%" bgColor="#cccc99">2.</TD>
<TD width="45%" bgColor="#ebebe1" align="left"><bean:message key="resume.email"/><html:errors property="email"/></TD>
<TD width="50%" bgColor="#ebebe1"><html:text style="WIDTH: 240px; HEIGHT: 22px" property="email" /></TD>
</TR>
<TR class="bodytext" height="25">
<TD class="tableheader" align="center" width="5%" bgColor="#cccc99">3.</TD>
<TD width="45%" bgColor="#ebebe1" align="left"><bean:message key="resume.tele"/></TD>
<TD width="50%" bgColor="#ebebe1"></TD>
<TR class="bodytext" height="25">
<TD class="tableheader" align="center" width="5%" bgColor="#cccc99" rowSpan="3"></TD>
<TD align="left" width="45%" bgColor="#ebebe1"><bean:message key="resume.home"/>
<html:errors property="home"/><html:errors property="homecountry"/><html:errors property="homestd"/></TD>
<TD align="center" width="50%" bgColor="#ebebe1">+<html:text style="width:32px" maxlength="5" property="homecountry" value="91"/>
<html:text style="width:32px" maxlength="5" property="homestd" />
<html:text style="width:141px" maxlength="15" property="home"/></TD>
</TR>
<TR class="bodytext" height="25">
<!--<TD class="tableheader" align="center" width="5%" bgColor="#cccc99" ></TD>-->
<TD align="left" width="45%" bgColor="#ebebe1"><bean:message key="resume.office"/><html:errors property="office"/><html:errors property="officecountry"/><html:errors property="officestd"/></TD>
<TD align="center" width="50%" bgColor="#ebebe1">+<html:text style="width:32px" maxlength="5" property="officecountry" value="91"/>
<html:text style="width:32px" maxlength="5" property="officestd" />
<html:text style="width:141px" maxlength="15" property="office"/></TD>
</TR>
<TR class="bodytext" height="25">
<TD align="left"width="45%" bgColor="#ebebe1"><bean:message key="resume.mobile"/><html:errors property="mobile"/><html:errors property="mobilecountry"/></TD>
<TD align="center" width="50%" bgColor="#ebebe1">+<html:text style="width:32px" maxlength="5" property="mobilecountry" value="91"/> <html:text style="width:188px" maxlength="15" property="mobile"/></TD>
</TR>
<TR class="bodytext" height="25">
<TD class="tableheader" align="center" width="5%" bgColor="#cccc99" ></TD>
<TD align="left" width="45%" bgColor="#ebebe1"><bean:message key="resume.fax"/><html:errors property="fax"/><html:errors property="faxcountry"/><html:errors property="faxstd"/></TD>
<TD align="center" width="50%" bgColor="#ebebe1">+<html:text style="width:32px" maxlength="5" property="faxcountry" value="91"/>
<html:text style="width:32px" maxlength="5" property="faxstd" />
<html:text style="width:141px" maxlength="15" property="fax"/></TD>
</TR>
<TR class="bodytext" vAlign="top" height="25">
<TD class="tableheader" align="left" width="25" bgColor="#cccc99">5.</TD>
<TD width="280" bgColor="#ebebe1" align="left"><bean:message key="resume.page"/><html:errors property="page"/></TD>
<TD align="center" width="280" bgColor="#ebebe1"><html:text style="WIDTH: 240px; HEIGHT: 22px" property="page" />
</TD>
</TR>
<TR class="bodytext" vAlign="top" height="25">
<TD class="tableheader" align="left" width="25" bgColor="#cccc99">6.</TD>
<TD width="280" bgColor="#ebebe1" align="left"><bean:message key="resume.brief"/><html:errors property="brief"/>
</TD>
<TD align="center" width="280" bgColor="#ebebe1"><html:textarea style="WIDTH: 240px; HEIGHT: 38px" rows="2" cols="27" property="brief" ></html:textarea> </TD>
</TR>
<TR class="bodytext" vAlign="top" height="25">
<TD class="tableheader" align="left" width="25" bgColor="#cccc99">7.</TD>
<TD width="280" bgColor="#ebebe1" align="left"><bean:message key="resume.noofphd"/><html:errors property="noofphd"/></TD>
<TD align="center" width="280" bgColor="#ebebe1"> <html:text style="WIDTH: 240px; HEIGHT: 22px" property="noofphd" />
</TD>
</TR>
<TR class="bodytext" vAlign="top" height="25">
<TD class="tableheader" align="left" width="25" bgColor="#cccc99">8.</TD>
<TD width="280" bgColor="#ebebe1" align="left"><bean:message key="resume.publication"/><html:errors property="publication"/></TD>
<TD align="center" width="280" bgColor="#ebebe1"> <html:textarea style="WIDTH: 240px; HEIGHT: 38px" rows="2" cols="27" property="publication" ></html:textarea>
</TD>
</TR>
<TR class="bodytext" vAlign="top" height="25">
<TD class="tableheader" align="left" width="25" bgColor="#cccc99">9.</TD>
<TD width="280" bgColor="#ebebe1" align="left"><bean:message key="resume.pic"/><html:errors property="pic"/></TD>
<TD align="center" width="280" bgColor="#ebebe1"><html:file style="WIDTH: 240px; HEIGHT: 22px"property="pic" />
</TD>
</TR>
<TR class="bodytext" vAlign="top" height="25">
<TD class="tableheader" align="left" width="25" bgColor="#cccc99">10.</TD>
<TD width="280" bgColor="#ebebe1" align="left"><bean:message key="resume.resume"/><html:errors property="resume"/></TD>
<TD align="center" width="280" bgColor="#ebebe1"><html:file style="WIDTH: 240px; HEIGHT: 22px" property="resume" /> </TD>
</TR>
<TR class="bodytext" vAlign="top" height="25">
<TD class="tableheader" align="left" width="25" bgColor="#cccc99">11.</TD>
<TD width="280" bgColor="#ebebe1" align="left"><bean:message key="resume.faculties"/><html:errors property="faculties"/></TD>
<TD align="center" width="280" bgColor="#ebebe1"><html:text style="WIDTH: 240px; HEIGHT: 22px" property="faculties" />
</TD>
</TR>
<TR align="center" height="25">
<TD class="tableheader" bgColor="#cccc99" colSpan="3"><html:submit styleClass="tableheader" /> <html:reset styleClass="tableheader"/>
</TD>
</TR>
</TABLE>
</html:form>
</html:html>
=================================================================
actionform
package submit.resume;
import javax.servlet.ServletRequest;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;
import org.apache.struts.upload.FormFile;
public class SubmitResumeActionForm extends org.apache.struts.validator.ValidatorForm {
private
String coordname;
private String email;
private String office;
private String officecountry;
private String officestd;
private String home;
private String homecountry="91";
private String homestd;
private String mobile;
private String mobilecountry;
private String fax;
private String faxcountry;
private String faxstd;
private String page;
private String brief;
private String noofphd;
private String publication;
private FormFile pic;
private FormFile resume;
private String faculties;
public SubmitResumeActionForm() {
super();
}
public String getcoordname() {
return coordname;
}
public String getemail() {
return email;
}
public String gethome() {
return home;
}
public String gethomecountry() {
return homecountry;
}
public String gethomestd() {
return homestd;
}
public String getoffice() {
return office;
}
public String getofficecountry() {
return officecountry;
}
public String getofficestd() {
return officestd;
}
public String getmobile() {
return mobile;
}
public String getmobilecountry() {
return mobilecountry;
}
public String getfax() {
return fax;
}
public String getfaxcountry() {
return faxcountry;
}
public String getfaxstd() {
return faxstd;
}
public String getpage() {
return page;
}
public String getbrief() {
return brief;
}
public String getfaculties() {
return faculties;
}
public String getnoofphd() {
return noofphd;
}
public FormFile getpic() {
return pic;
}
public String getpublication() {
return publication;
}
public FormFile getresume() {
return resume;
}
public void setbrief(String brief) {
this.brief = brief;
}
public void setcoordname(String coordname) {
this.coordname = coordname;
}
public void setemail(String email) {
this.email = email;
}
public void setfaculties(String faculties) {
this.faculties = faculties;
}
public void setfax(String fax) {
this.fax = fax;
}
public void setfaxstd(String fax) {
this.faxstd = fax;
}
public void setfaxcountry(String fax) {
this.faxcountry = fax;
}
public void sethome(String home) {
this.home = home;
}
public void sethomestd(String home) {
this.homestd = home;
}
public void sethomecountry(String home) {
this.homecountry = home;
}
public void setmobile(String mobile) {
this.mobile = mobile;
}
public void setmobilecountry(String mobile) {
this.mobilecountry = mobile;
}
public void setoffice(String office) {
this.office = office;
}
public void setofficestd(String office) {
this.officestd = office;
}
public void setofficecountry(String office) {
this.officecountry = office;
}
public void setnoofphd(String noofphd) {
this.noofphd = noofphd;
}
public void setpage(String page) {
this.page = page;
}
public void setpic(FormFile pic) {
this.pic = pic;
}
public void setpublication(String publication) {
this.publication = publication;
}
public void setresume(FormFile resume) {
this.resume = resume;
}
public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
ActionErrors errors = super.validate(mapping, request);
if (getpic() == null || getpic().getFileSize() <=200) {
System.out.println(getpic());
if(getpic().getFileSize()==0) {
errors.add("pic", new ActionMessage("errors.resume.emptyfile"));
}else {
errors.add("pic", new ActionMessage("errors.resume.filesize","200"));}
}else if(!(getpic().getFileName().endsWith(".jpeg")||getpic().getFileName().endsWith(".gif")||getpic().getFileName().endsWith(".png"))) {
errors.add("pic", new ActionMessage("errors.resume.picfiletype"));
}
if (getresume() == null || getresume().getFileSize() <= 1000) {
if(getresume().getFileSize()==0 ) {
errors.add("resume", new ActionMessage("errors.resume.emptyfile"));
}else {
errors.add("resume", new ActionMessage("errors.resume.filesize","1000"));
}
}else if(!(getresume().getFileName().endsWith(".doc")||getresume().getFileName().endsWith(".rtf")))
{ errors.add("resume", new ActionMessage("errors.resume.resumefiletype"));
}
System.out.println(getresume().getFileName().endsWith(".doc")+" "+getresume().getFileName().endsWith(".rtf"));
return errors;
}
public void reset(ActionMapping mapping,HttpServletRequest request) {
coordname="";
email="";
office="";
home="";
mobile="";
fax="";
page="";
brief="";
noofphd="";
publication="";
pic=null;
resume=null;
faculties="";
officecountry="";
officestd="";
homecountry="91";
homestd="";
mobilecountry="";
faxcountry="";
faxstd="";
}
}