java - Pass values from html to Action Class Struts -


i new struts , facing issues.

here html code :-

<div id = "processingmode">    <div id = "appbutton">       <input type="hidden" value="cancel" name="flagvalue" />       <a href="**action class path**">cancel</a>    </div> </div> 

and want retrieve hidden field values in action class (or please let me know how pass values html action class).

can me achieve this.

in order pass hidden parameter value using struts first need add struts library , import struts tag library try below code

<s:url action="actionclass">     <s:param name="id" value="parametervalue" /> </s:url> 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -