2014年5月18日星期日

struts add an exclamation point less than the request method , without a request to be able to solve ah !

As stated , for help, do not understand ah
added an exclamation point !

did not add an exclamation point !

struts.xml configuration

------ Solution ------- -------------------------------------
struts path you add an exclamation point is a new feature , I did not use this syntax ah. Under seek science .
------ Solution ---------------------------------------- after ----

exclamation point then is the method name. Help again  
If you are looking for a method name , then you do not add Method struts inside the property , you add a try .
------ Solution ---------------------------------------- after ----

exclamation point then is the method name. Help again                
If you are looking for a method name , then you do not add Method struts inside the property , you add a try .          
exclamation point is to get rid of method!  
This new feature is really not used to see your error , looks like ! Has not been resolved to a method , but directly Action to match the name of all , it is recommended to check under your version of Struts is determined to support this feature .
------ Solution ---------------------------------------- ----
this method is invoked is property of action inside the action inside the method , and the configuration file which is a function of
--- --- Solution --------------------------------------------
did not see your action class . Stickers out
------ Solution ------------------------------------ --------


open dynamic method .
------ Solution ---------------------------------------- ----
Struts2 dynamic method call in three ways , the dynamic method invocation is to solve a corresponding Action handle multiple requests in order to avoid too much Action
The first way : Specify the method attribute
The second way : the way the exclamation point (on the need ) , the official website does not recommend using this method , it is recommended you do not use.
In this way you need to turn on a switch

this constant is set to true, this way you can use
The third way : the wildcard mode ( official website recommended )
first have to turn off the switch

landlord you do not want to specify a method for the use of wildcards it. Very simple
------ Solution ------------------------------------- -------
+1
------ Solution ---------------------------- ----------------
exclamation point should be the approach followed by the name , method access path to the configuration file inside to write on : http://localhost:8080/ project name / Action name ! Method names such
------ For reference only ------------------------------- after --------

exclamation point connection is the method name. Help
------ For reference only again ------------------------------------ ---

exclamation point after the pick is the method name. Help again          
If you are looking for a method name , then you do not add Method struts inside the property , you add a try .  
exclamation point is to get rid of method!
------ For reference only -------------------------------------- -
exclamation point , it must be added this one

没有评论:

发表评论