-----------以下是反编译的内容-------------
//LoginForm文件再次编译通过!
package mypack;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.*;
public class LoginForm extends ActionForm
{
public LoginForm()
{
password = null;
username = null;
}
public String getPassword()
{
return password;
}
public void setPassword(String password)
{
this.password = password;
}
public String getUsername()
{
return username;
}
public void setUsername(String username)
{
this.username = username;
}
public void reset(ActionMapping mapping, HttpServletRequest request)
{
password = null;
username = null;
}
public ActionErrors validate(ActionMapping arg0, HttpServletRequest arg1)
{
ActionErrors errors = new ActionErrors();
if(username == null || username.equals( " "))
errors.add( "username ", new ActionError( "error.username "));
return errors;
}
private String password;
private String username;
}
//LoginAction文件编译时出错,错误提示:找不到符号(LoginForm)
package mypack;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.*;
// Referenced classes of package mypack:
// LoginForm
public class LoginAction extends Action
{
public LoginAction()
{
}