Hello,

Look at existing Struts 2 package, after using the blank app war file, I cannot 
figure out how the actions url has been controlled. 

>From web.xml, the url-pattern specify as following, and it seems that any url 
>patten /* will work, but the framework doesn't behave that way. Why only 
>*.action will take effect (such as 
>http://localhost/example/HelloWorld.action)? Can user control the a patten to 
>make url working in their own way? (such as --> 
>http://localhost:9081/struts/example/HelloWorld.wss?) 

------------------------------------------------
   <filter>
        <filter-name>struts2</filter-name>
        
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>struts2</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

Any helps will be greatly appreciated.

Best regards


       
____________________________________________________________________________________
Building a website is a piece of cake. Yahoo! Small Business gives you all the 
tools to get online.
http://smallbusiness.yahoo.com/webhosting 

Reply via email to