Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4618020
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:12:24+00:00 2026-05-22T02:12:24+00:00

Ho there, can someone explain how to make this code working?? <%@taglib uri=/struts-tags prefix=s%>

  • 0

Ho there, can someone explain how to make this code working??

<%@taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="/struts-jquery-tags" prefix="sj"%>

<s:iterator value="familiari" var="entry">
    <sj:accordion id="familiare<s:property value="#entry.index" />">
       <sj:accordionItem title="abc">
            content
    </sj:accordionItem>
   </sj:accordion>
</s:iterator>

this row does not work:

<sj:accordion id="familiare<s:property value="#entry.index" />">
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T02:12:26+00:00Added an answer on May 22, 2026 at 2:12 am

    See http://code.google.com/p/struts2-jquery/wiki/AccordionTag

    You need to provide a list for your accordion item. I don’t know what familiari is but if you are iterating through it, I assume it’s a list of some kind so you can try:

    <sj:accordion id="familiare list="familiari"/>
    

    If you are looking to iterate over a list and provide a form within each accordion. You can try something like the following:

    <sj:accordion id="someId">
        <s:iterator value="familiari" var="entry">
            <sj:accordionItem title="abc">
                <s:form action...>
                    <s:hidden name="somePropertyFromCurrentIterationElement" value="%{getIndex()}"/>
                    ...
                </s:form>
            </sj:accordionItem>
        </s:iterator>
    </sj:accordion>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can someone explain why this code doesn't work as expected? I would expect it
Can someone explain what this ajax code does? function ajaxProgress(){ //Math.random() is for bitchy
Can someone explain why there is the need to add an out or in
Can someone please explain me what's the difference between Swing and AWT? Are there
Can someone explain to me how to set up cookieless domain? There are many
I am working with someone else's code and trying to make some modifications. So
Can someone explain this one to me: http://jsperf.com/string-concatenation-1/2 If you're lazy, I tested A)
Can someone post any simple explanation of cache aware algorithms? There are lot of
Can someone explain to or link to an article that explains how the parameters
Apologies I can't post any code at this time cos I'm away from my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.