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 433883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T20:13:06+00:00 2026-05-12T20:13:06+00:00

I have a complicated problem and I hope to explain it clearly possible… I

  • 0

I have a complicated problem and I hope to explain it clearly possible…

I have 2 list. On my jsp I have a nested iteration with this 2 lists, inside this there is a tag.

This is the code:

<s:iterator value="listSurveyToRender" var="s" status="counterS">
                 <s:iterator value="listSurveyValuesToRender" var="sv" status="counterSv" >
                          <s:if  test="%{#s.idsurvey==#sv.survey.idsurvey}">
                             <td><s:radio list="sv"  listValue="valoreTesto" name="provaRadio1" />
                          </s:if>
                 </s:iterator>

This is the result of this jsp:

Question 1: (first iterator)
   resp 1:          (second iterator)
   resp 2:
   resp 3:
Question 2: (first iterator)
   resp 1:          (second iterator)     
   resp 2:

The problem is that, when I select the radio, because the list is unique for all, the selection exclude the others…

I need to restrict this exclusion on the second iterator.

Thanks!

  • 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-12T20:13:07+00:00Added an answer on May 12, 2026 at 8:13 pm

    To the point: to separate radio button groups, you need to give them each a different name.

    I don’t do Struts, but in theory, replacing

    name="provaRadio1"
    

    by

    name="provaRadio1${counterS.index}"
    

    should do.

    Reading/interpreting the generated HTML source (open page in browser, rightclick, view source) should also give a lot of new insights.

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

Sidebar

Related Questions

I have run into this problem: Custom Methods & Extension Methods cannot be translated
Ok so this is a really complicated problem, I will try my best to
I have quite a complicated ListView . Each item looks something like this: >
I have found this example on StackOverflow: var people = new List<Person> { new
I have a fairly complicated problem. The usual markup (no problems here): <div class=wrapper>
I have a very complicated problem that occurs only for non-admin windows user. I
I have a pretty complicated Linq query that I can't seem to get into
I have some really complicated legacy code I've been working on that crashes when
I have a somewhat complicated branching structure at work (at least for me). It
We have a fairly complicated GUI in windows forms using C# and .Net 2.0.

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.