struts2 入门(一)

1 普通POJO配置
<package name="deanPackage" extends="struts-default">
		<action name="aa" class="com.snda.struts2.TestOneAction">
			<result>/jsp/aa.jsp</result>
			<result name="gao">/jsp/gao.jsp</result>
		</action>
</package>

public class TestOneAction {

	public String execute() throws Exception {
		return "success";
	}

	public String gao() throws Exception {
		return "gao";
	}
}


你可能感兴趣的:(java,jsp)