Hi,
I too having the same problem
My Jsp: <BODY>
<center>
<h1> Account Control </h1>
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
<html:form action="/AccountMod.do">
<bean:write name="accountFormBean" property="warning" filter="false" />
Email
<html:text property="email" />
Password
<html:text property="password" />
<table>
<tr>
<td><html:radio property="operation" value="createAccount" />Create Account</td>
<td><html:radio property="operation" value="modifyAccount" />Modify Account</td>
<td><html:radio property="operation" value="deleteAccount" />Delete Account</td>
</tr>
</table>
<html:submit value="Perform Selected Operation" />
</html:form>
</center>
</BODY>
ActionForm: package com.sunesh.struts;
import org.apache.struts.action.*;
public class AccountFormBean extends ActionForm
{
private
String email = "sample@xyz.com";
private String password = "null";
//for error messages
private String warning = "";
public String getEmail()
{
return this.email;
}
public void setEmail(String email)
{
this.email = email;
}
public String getPassword()
{
return this.password;
}
public void setPassword(String password)
{
this.password = password;
}
public String getWarning()
{
return this.warning;
}
public void setWarning(String warning)
{
this.warning = "<H2>Invalid or missing <FONT color=red>" + warning + "</FONT></H2>";
}
}
struts-comfig.xml : <?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd">
<struts-config>
<form-beans>
<form-bean name="accountFormBean"
type="com.sunesh.struts.AccountFormBean" />
</form-beans>
<action-mappings>
<action path="/AccountMod"
type="com.sunesh.struts.AccountAction"
name="accountFormBean"
parameter="operation"
scope="session">
<forward name="create-success" path="admin/create-confirm.jsp" />
<forward name="create-failure" path="accountMod.jsp" />
</action>
</action-mappings>
</struts-config>
can u please help me..
Bye