81,091
社区成员
发帖
与我相关
我的任务
分享
public class Test extends BaseAction {
public String test()throws Exception{
String returnValue=SUCCESS;
System.out.println("11111111111111111111");
return returnValue;
}
public String test1()throws Exception{
String returnValue=SUCCESS;
System.out.println("22222222222222222222");
return returnValue;
}
}
<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>ttt</title>
<body>
This is my JSP page. <br>
<s:debug></s:debug>//去掉一切正常
</body>
</html>
<?xml version="1.0" encoding="GBK"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<include file="struts-default.xml" />
<constant name="struts.i18n.encoding" value="GBK" />
<package name="default" extends="struts-default">
<action name="test" class="com.test.Test" method="test">
<result name="success">/test.jsp</result>
</action>
</package>
<constant name="struts.i18n.encoding" value="UTF-8"></constant>
</struts>