How to get parameters passed by <s: url .. struts tag in action class

M sending parameters from jsp page, code

  <s:url id="url" action="searchAction">
    <s:param name="id">"${cgConsultant.id}"</s:param>
     </s:url>

and m get it in the url like ..

http://localhost:8080/search/searchAction.html?id="1"

I need to get it in the action class, as I get it. Please make any suggestion for this.

+3
source share
1 answer

Just announce

public void setId(String id) {
}

and give it an implementation.

+2
source

All Articles