views:

65

answers:

0

Hi I've just started playing with struts2-jquery-plugin-2.1.0 and was trying the 'accordion from list' from Struts2 jQuery Plugin Showcase, version 2.1.0. Strangely enough, I am getting the data retrived but not the accordion look and feel. Here is the image showing what I am trying to say here, image. I am not on comission for that add, I just needed to host the image somewhere to upload it here to make my query more understood. Here is the code that I am using:

In struts.xml

  <action name="accordion-list" class="action.Accordion">

/view/uiWidgets/accordion-list.jsp

In Accordion.java

public class Accordion extends BaseAction {

private Map accordion;

public String execute() throws Exception {
    accordion = new HashMap<String, String>();

accordion.put("Section 1", "Content one"); accordion.put("Section 2", "Content two"); accordion.put("Section 3", "Content three"); accordion.put("Section 4", "Content four"); return SUCCESS; }

public Map getAccordion() { return accordion; }

}

In accordion-list.jsp

<sj:accordion id="accordionlist" list="accordion" />

Could someone tell me why am I not getting the accordion look and feel?

Thanks.