In my struts application action is not getting called instead of that page is getting refreshed . after changing my library jar files. Before changing it worked fine.
Below are the details of my LIB folder after changing
the changes I have made
struts2-core-2.3.16
struts2-jquery-plugin 3.7.0
struts2-jquery-grid-plugin 3.7.0
xwork-core-2.3.16
ognl-3.0.8
freemaker 2.3.20
You forgot to set the action attribute of the Struts form tag, by default it's a current action. Missing the action url in the form tag causes the effect of refresh. If you are used the developer mode which turns on by using a Struts configuration constant
<constant name="struts.devMode" value="true" />
or the corresponding property in the properties file whatever configuration you prefer, generally struts.xml
. Then you should be notified if the value is incorrect there or Struts can't find an appropriate action configuration.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.