Narayana Tutorial

Online Java Tutorial Blog

After upgrading struts2 to latest version s:submit not working

Due to security vulnerabilities, struts2 needs to be upgraded to latest versions i.e vulnerable free (2.3.32 or 2.5.10.1) which is vulnerabilities free.

After upgrading s:submit action button will not work because it is disabled by default due to security vulnerabilities.

Example

<s:submit align="center" action='Login_loginUser' value="Login"/>

 

So that to make it as working, we need to add the following constant parameter in struts.xml

 

<constant name="struts.mapper.action.prefix.enabled" value="true"/>

 

Then build the application and redeploy the application and check. We will assist you, if you need any help.

 

 

 

Narayanaswamy

Hello! I am Narayanaswamy founder and admin of narayanatutorial.com. I have been working in IT industry more than 7 years. NarayanaTutorial is my web technologies blog. My specialties are Java / J2EE, Spring, Hibernate, Struts, Webservices, PHP, Oracle, MySQL, SQLServer, Web Hosting and Website Development.

I am a self learner and passionate about training and writing. I am always trying my best to share my knowledge through my blog.

Leave a Reply

Narayana Tutorial © 2018 Frontier Theme
Show Button
Hide Button