I am trying to call an action class by AJAX
with a parameter, but I can't find the right way.
I am using the following syntax from struts 2, without AJAX
:
<s:url action="painel.visualizarErro.action" namespace="/errosView.jsp" var="id" />
window.location = '<s:property value="id" />?jobId=' + jobId;
The problem is I cannot pass <s:property value="id" />?jobId=' + jobId
by AJAX