我的jsp
<BODY>
<html:errors/>
<html:form action="LogonSubmit" method="post">
<TABLE border="0" width="100%">
<TR>
<TH align="right">Username:</TH>
<TD align="left"><html:text property="username"/></TD>
</TR>
<TR>
<TH align="right">Password:</TH>
<TD align="left"><html:password property="password"/></TD>
</TR>
<TR>
<TD align="right"><html:submit/></TD>
<TD align="left"><html:reset/></TD>
</TR>
</TABLE>
我的formAction
/**
* Return the password.
*/
public String getPassword() {
return (this.password);
}
public void setPassword(String password) {
this.password = password;
}
/**
* Return the username.
*/
public String getUsername() {
return (this.username);
}
/**
* Set the username.
*
* @param username The new username
*/
public void setUsername(String username) {
this.username = username;
}
// -------------------------------------------------- Public Methods
public void reset(ActionMapping mapping,
HttpServletRequest request) {
setPassword(null);
setUsername(null);
}
/**
* Ensure that both fields have been input.
*
* @param mapping The mapping used to select this instance
* @param request The servlet request we are processing
*/
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
ActionErrors errors = new ActionErrors();
if ((username == null) || (username.length() < 1))
errors.add("username",
new ActionError("error.username.required"));
errors.add("password",
return errors;
}
严重: Error creating form bean of class java.app.LogonForm
java.lang.ClassNotFoundException: java.app.LogonForm
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
at org.apache.struts.util
严重: Servlet.service() for servlet jsp threw exception
javax.servlet.jsp.JspException: Exception creating bean of class java.app.LogonForm: {1}
at org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:563)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:520)
帮我看看是什么地方错了
<BODY>
<html:errors/>
<html:form action="LogonSubmit" method="post">
<TABLE border="0" width="100%">
<TR>
<TH align="right">Username:</TH>
<TD align="left"><html:text property="username"/></TD>
</TR>
<TR>
<TH align="right">Password:</TH>
<TD align="left"><html:password property="password"/></TD>
</TR>
<TR>
<TD align="right"><html:submit/></TD>
<TD align="left"><html:reset/></TD>
</TR>
</TABLE>
我的formAction
/**
* Return the password.
*/
public String getPassword() {
return (this.password);
}
public void setPassword(String password) {
this.password = password;
}
/**
* Return the username.
*/
public String getUsername() {
return (this.username);
}
/**
* Set the username.
*
* @param username The new username
*/
public void setUsername(String username) {
this.username = username;
}
// -------------------------------------------------- Public Methods
public void reset(ActionMapping mapping,
HttpServletRequest request) {
setPassword(null);
setUsername(null);
}
/**
* Ensure that both fields have been input.
*
* @param mapping The mapping used to select this instance
* @param request The servlet request we are processing
*/
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
ActionErrors errors = new ActionErrors();
if ((username == null) || (username.length() < 1))
errors.add("username",
new ActionError("error.username.required"));
errors.add("password",
return errors;
}
严重: Error creating form bean of class java.app.LogonForm
java.lang.ClassNotFoundException: java.app.LogonForm
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
at org.apache.struts.util
严重: Servlet.service() for servlet jsp threw exception
javax.servlet.jsp.JspException: Exception creating bean of class java.app.LogonForm: {1}
at org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:563)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:520)
帮我看看是什么地方错了