the following sample is from Struts2/Jquery plugin sample, and works perfect

in JSP, 
<sj:accordion id="accordionlist" list="accordion"/> 
in Action

private Map<String, String> accordion; public String execute() throws Exception 
{ accordion = new HashMap<String, String>(); accordion.put("Section 1", "sample 
1"); accordion.put("Section 2", "sample 2"); accordion.put("Section 3", "sample 
3"); return SUCCESS; } public Map<String, String> getAccordion() { return 
accordion; }
The above sample for Struts2/Jquery works great.
************************************************************************
but, 

how to escape the contents of 'Section 1" ?
i just try to use string "Section 1, <a href='http://www.google.com'> 
google</a>" to replace "Section 1", but render result only display text, but 
not link.
please advise
thanks in advance

john 

Reply via email to