日期:2014-05-17 浏览次数:20784 次
var pars = 'errorid=' + value;
new Ajax.Request('/test/static/studentstaticgeterrors.action', { method:'post', parameters: pars,onComplete:cuFunction } );
<bean name="/static/studentstaticgeterrors" class="test.StudentStaticGetErrorsAction" scope="request">
<property name="errorDao" ref="errorDao"></property>
</bean>
<package name="static" namespace="/static" extends="default jfreechart-default">
<action name="studentstaticgeterrors" class="/static/studentstaticgeterrors" method="execute">
</action>
public class StudentStaticGetErrorsAction extends ActionSupport{
private ErrorDao errorDao;
private String errorid;
public void setErrorDao(ErrorDao errorDao){
this.errorDao = errorDao;
}
public ErrorDao getErrorDao(){
return errorDao;
}
public void setErrorid(String errorid){
this.errorid = errorid;
}
public String getErrorid(){
return errorid;
}
public String execute() throws Exception{
System.out.println("成功运行到此处!");
return null;
}
}