Struts :: Checking a radio button by default

Posted on 2006-06-01
Last Modified: 2011-09-20
how to cheack a default radio button in struts?. for example i have 2 radio buttons
whose values are A and B, and A should be checked by default?. How can we do in Struts?
I couldn't find appropriate attribute in <html:radio> tag?

Question by:ramsin112400
    LVL 16

    Accepted Solution

    Use ActionForm to solve this.

    So instead of directly hitting the JSP, call the Struts Action first which will redirect you to the page. Within this Action, set the value of the check box with the value that you want through ActionForm

    LVL 3

    Assisted Solution

    Have a look at this page

    this might help you


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Great sound, comfort and fit, excellent build quality, versatility, compatibility. These are just some of the many reasons for choosing a headset from Sennheiser.
    Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now