Resolved! I figured out that the reason why it cannot reach the servlet
is beacuse the FilterMapping for struts2 catches all the url
that's why servlet-mapping
became useless. In order to prevent the process of entering in default struts2 filter, i have defined this piece of code on my struts.xml
<constant name="struts.action.excludePattern" value="/getMediaListByMediaType/.*"/>
Now it can successfully get the JSON
from my servlet class.