passing array as paramter in URL using jquery/javascript? -
passing array as paramter in URL using jquery/javascript? -
i making url(for viewing specific customer) in customerlist.jsp below customer_message request attribute array. when inspect customer_message in customerlist see array containing 2 float values
var custurl="<s:url namespace="/customer action="view-customer" method="viewcustomer"/>?customer_message=<s:property value="#request['customer_message']"/>"; but when request in view-customer action , request.getparameter("customer_message"), see containing 1 value.
am doing error in passing customer_message array?
in struts2 utilize <s:param> tag within <s:url> tag add together parameters.
<s:url namespace="/customer" action="view-customer" method="viewcustomer"> <s:param name="customer_message" value="#request['customer_message']"/> </s:url> from <s:url> tag documentation:
you can utilize <param> tag within body provide additional request parameters. if value of param array or iterable values added url.
javascript jquery url struts2
Comments
Post a Comment