<!-- 得到 caseinfo 的 字段值 -->
<package name="sele1" extends="MyInterceptor" namespace="/main">
<action name="CaseinfoSyscolumns" class="com.baishiji.action.caseinfo.CaseinfoSyscolumns" method="getColumns">
<result type="redirect" name="loginFail">/login/login.jsp</result>
<!-- 采用拦截器拦截部分 -->
<interceptor-ref name="PrivilegeInterceptor"></interceptor-ref>
<interceptor-ref name="defaultStack"></interceptor-ref>
</action>
</package>
public class CaseinfoSyscolumns extends ActionSupport {
/*
* 得到他的 所有字段
* (non-Javadoc)
* @see com.opensymphony.xwork2.ActionSupport#execute()
*/
public void getColumns() throws IOException {
HttpServletResponse response = ServletActionContext.getResponse();
PrintWriter writer = response.getWriter();
writer.print("hello,hello,hellohellohello");
writer.flush();
writer.close();
}
}