Ê×Ò³ Ê«´Ê ×Öµä °å±¨ ¾ä×Ó ÃûÑÔ ÓÑ´ð ÀøÖ¾ ѧУ ÍøÕ¾µØͼ
µ±Ç°Î»ÖÃ: Ê×Ò³ > ½Ì³ÌƵµÀ > ÍøÕ¾¿ª·¢ > XML SOAP >

Struts2-struts.xml-Wildcard

2012-10-24 
Struts2----struts.xml----Wildcard?xml version1.0 encodingUTF-8?!DOCTYPE struts PUBLIC-//A

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

ÈȵãÅÅÐÐ