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;}}¤½¤ì¤³¤½ ¤è¤¯¤ï¤«¤Ã¤Æ¤¤¤ë¤Í£Þ£Þ¤¿¤¤¤·¤¿¤â¤Î¤Ç¤¹¤Í¤ª¤Þ¤¨¡«¡«¤Û¤Û¤Û¡«