I am using an ajax request that constructs a modal box on the server side. The content of the modal box will contain a "calculated" link, surrounded with a form :
StringBuffer htmlBuffer = new StringBuffer();
htmlBuffer.append(
...
"<td>"+
"<s:form action='goToLocationAction' id='formId'>" +
"<s:textfield class='form-control hidden' name='mybean.beanid' value='" + getStringContent(entity.getBeanId()) + "'/>" +
"<s:a href='#' onClick='document.getElementById('formId').submit();'>" + getStringContent(entity.getBeanId()) + "</s:a>" +
"</s:form>" +
"</td>"...
);
mapper.writeValue(ServletActionContext.getResponse().getOutputStream(), htmlBuffer.toString());
On the client-side result page, the struts tags are not translated to HTML.
Any ideas how to do this right ?
Thank you.