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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:45:13+00:00 2026-06-17T16:45:13+00:00

I am using Struts 1.2 for my application. I need to iterarte through a

  • 0

I am using Struts 1.2 for my application. I need to iterarte through a List and create <html:radio> based on the number of items present in the list. For iterating through the List, I am using <logic:iterator>. The list is set as an attribute to the request.

This is the code I am using:

<logic:iterate name="mediaTypes" id="type">                             
<html:radio name="rentMediaForm" property="mediaType" value="type"></html:radio>
<bean:write name="type"/>
</logic:iterate>

But every time the values of the radio is getting assigned to “type”. I want the value to be dynamic based on the iteration value.

I am getting the value properly in the below line:

<bean:write name="type"/>

Please let me know how to achieve this.

Regards,

  • 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-06-17T16:45:14+00:00Added an answer on June 17, 2026 at 4:45 pm

    Use the EL (expression language) to get the value of type, e.g.:

    <html:radio name="rentMediaForm" property="mediaType" value="${type}"></html:radio>
    

    Also note, that your application should be at least of Servlet 2.4/JSP 2.0 level in order to be able seamlessly process EL expressions. Otherwise, you might need to switch to EL-aware version of struts-html tags.

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

Sidebar

Related Questions

I´m developing a Java EE application and I'm using Struts. When I use html
I have developed a web based application using STRUTS 2.0 and I want to
We have J2EE application built using Hibernate and struts. We have RMI registry based
I am using Struts application while running welcome page is run successfully after that
I am using hibernate, spring, struts framework for my application. In my application, each
I needed to create an application using Struts2 as MVC,Hibernate for data access and
I have one legacy web application based on struts2 (primarily using annotation). While debugging
I'm building a simple web application that handles a simple database using struts and
I am developing a web application using Struts 1.2.7 I want to print a
I am writing a Java EE application using Struts and Spring. In one of

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.