Formatted HTML as output from method invocation from JMX HTTP page
Posted
by Dutch
on Stack Overflow
See other posts from Stack Overflow
or by Dutch
Published on 2010-03-08T08:12:12Z
Indexed on
2010/03/08
8:21 UTC
Read the original article
Hit count: 351
Hi, Is there a way to return HTML from a method which gets called from the JMX HTTP page. I have a huge set of data and want to display the data with some formatting.
The following code does not work:
@ManagedOperation(description = "return html")
@ManagedOperationParameters({@ManagedOperationParameter(name = "someVal", description = "text")})
public List returnAsHtml(String someVal)
{
return ""+someValblah";
}
Looks like JMX escapes the returned script before throwing it to the browser.
© Stack Overflow or respective owner