M 从jsp页面发送参数,代码为
<s:url id="url" action="searchAction"> <s:param name="id">"${cgConsultant.id}"</s:param> </s:ur_Stack Overflow中文网
Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
<s:url id="url" action="searchAction"> <s:param name="id">"${cgConsultant.id}"</s:param> </s:ur 问问题
<s:url id="url" action="searchAction"> <s:param name="id">"${cgConsultant.id}"</s:param> </s:url>
我在网址中得到它作为..
http://localhost:8080/search/searchAction.html?id="1"
我需要在行动课上得到它我如何得到它..请为此提出任何建议..
只需声明一个
public void setId(String id) { }
方法并给它一个实现。