I have a .jsp page in which i have four buttons named submit,add,update and delete as:
<%@ page language=\"java\" contentType=\"text/html; charset=ISO-885
you can also specify this in the properties file : struts.properties
struts.mapper.action.prefix.enabled=true
For more info : http://struts.apache.org/development/2.x/docs/constant-configuration.html
Assuming you are using Struts2 version 2.3.15.3
or above you need to set struts.mapper.action.prefix.enabled
constant to true in order to enable support for action:
prefix.
Put that in your struts.xml
file:
<constant name="struts.mapper.action.prefix.enabled" value="true" />