读书人

Struts2-struts.xml-Wildcard

发布时间: 2012-10-24 14:15:58 作者: rapoo

Struts2----struts.xml----Wildcard

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE struts PUBLIC    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"    "http://struts.apache.org/dtds/struts-2.0.dtd"><struts><constant name="struts.devMode" value="true"></constant><package name="actions" extends="struts-default" namespace="/actions"><action name="Student*" method="{2}"><result>/{1}_{2}_success.jsp</result></action></package></struts>

?

?

package com.pegasus.web;import com.opensymphony.xwork2.ActionSupport;public class StudentAction extends ActionSupport {public String add() {return SUCCESS;}public String delete() {return SUCCESS;}}

?

package com.pegasus.web;import com.opensymphony.xwork2.ActionSupport;public class TeacherAction extends ActionSupport {public String add() {return SUCCESS;}public String delete() {return SUCCESS;}}
それこそ よくわかっているね^^たいしたものですねおまえ~~ほほほ~

读书人网 >XML SOAP

热点推荐