package com.test.action;
import com.opensymphony.xwork2.Action;
public class LoginAction implements Action
{
/ / on the form corresponding
private String username;
private String password;
/ / getter and setter methods is based on the method name here to match client information
public String getUsername () {
return username;
}
public void setUsername (String username) {
this.username = username;
}
public String getPassword () {
return password;
}
public void setPassword (String password) {
this.password = password;
}
public String execute () throws Exception
{
return "success";
}
}
And those packages are also introduced (commons-fileupload-1.2.2.jar commons-io-2.0.1.jar commons-lang3-3.1.jar commons-logging-1.1.1.jar freemarker-2.3.19.jar javassist-3.11.0.GA.jar ognl-3.0.6.jar struts2-core-2.3.8.jar xwork-core-2.3.8.jar), why ?
struts.xml:
"- / / Apache Software Foundation / / DTD Struts Configuration 2.0 / / EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
------ Solution ----------------------------- ---------------
look LoginAction the class file is current
------ Solution ------------ --------------------------------
Caused by: Action class [com.test. action.LoginAction] not found java files
not to say there is no problem , mainly to see the compiled class file exists
------ Solution ----------------- ---------------------------
may be your runtime jdkg and development is not the same when the jdk version .
------ For reference only -------------------------------------- -
is the latest ah.
------ For reference only -------------------------------------- -
looks like a class of problems , just like I do not know how to make it. . .
------ For reference only -------------------------------------- -
why sometimes I just finished something changed , and then run it, it does not change the content ?
how to avoid such a situation ?
------ For reference only -------------------------------------- -
I was the reason ..
------ For reference only ---------------------------- -----------
solved ! ! ! ! ! ! ! ! ! ! !
------ For reference only -------------------------------------- -
my problem categories Caused by: Action class [a] not found, is an exception in the ssh integration Times , solving ......
没有评论:
发表评论