Deploy the codes and the css and js contained in the attachment to the project to run.
<% @ Page contentType = "text/html; charset = UTF-8" language = "java" import = "java. SQL. *" errorPage = "" %>
<Html>
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8">
<Title> untitled document </title>
<Script src = "SpryAssets/SpryAccordion. js" type = "text/javascript"> </script>
<Link href = "SpryAssets/SpryAccordion.css" rel = "stylesheet" type = "text/css">
</Head>
<Body>
<Div id = "Accordion1" class = "Accordion" tabindex = "0">
<Div class = "AccordionPanel">
<Div class = "AccordionPanelTab"> label 1 </div>
<Div class = "AccordionPanelContent"> content 1 </div>
</Div>
<Div class = "AccordionPanel">
<Div class = "AccordionPanelTab"> label 2 </div>
<Div class = "AccordionPanelContent"> content 2 </div>
</Div>
</Div>
<Script type = "text/javascript">
Var Accordion1 = new Spry. Widget. Accordion ("Accordion1 ");
</Script>
</Body>
</Html>
Decompress the attachment and put it under webroot ..