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

  • SEARCH
  • Home
  • 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 5947801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:00:59+00:00 2026-05-22T17:00:59+00:00

I have a Struts 2 application that is utilizing the accordion feature of the

  • 0

I have a Struts 2 application that is utilizing the accordion feature of the Struts2 jQuery plugin (http://code.google.com/p/struts2-jquery/wiki/AccordionTag) and I’m trying to programmatically traverse through the accordion items. What I mean is that I basically want to have a button in each accordion content area that opens up the next accordion item below it. Using plain jQuery outside of my Struts application, I seem to be able to do this: $("#accordion").accordion('activate', x);, as described here: jQuery UI Accordion activate

When i try to do this with my struts jquery implementation, however, it screws up the rendering of my accordion altogether. Unfortunately, using plain jQuery UI doesn’t seem to be an option for me. Is there any other possible way to do this with what I’m currently working with? Is it even possible to use jQuery to manipulate the accordion object that struts created?

Any help would be greatly appreciated. I really want to continue using the accordion in this fashion because it’s very easy to use, but I’m not sure that it’s flexible enough to suit my purposes.

Thanks in advance for any advice you can provide.

  • 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-22T17:01:00+00:00Added an answer on May 22, 2026 at 5:01 pm

    this is so awesome, i figured i would share with the world 🙂

    All i had to do was add this code $("#accordion").accordion('activate', 0); to an area below my sj:accordion object. My problem was that i was putting this code in the head of my document, but I’m assuming there is a difference in when the elements are rendered, therefore I can only reference this object after it’s actually been created. Now I can bind the click event of buttons to open different accordion items. It’s working like a charm!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a JSP struts application that uses Spring to integrate with the services/dao/database.
We have a Struts 2 web application that's used by pretty much every employee
I have a struts application that has a form to edit user details. I
I have a Struts 1 application that uses a little bit a Ajax to
I have a Struts based web application that has a structure similar to the
in a struts application, I have a filter that forces certain pages to be
I have a web application that is made with Java+Struts. There is a form
I have an application that uses PostgreSQL, JSP and the STRUTS Framework I want
I have a Struts application that at some point offers the possibility to download
I have a web application that using Struts + Spring + Hibernate . In

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.