Hello, does anyone have an example of radio buttons working with a java bean. It would help out allot. Thank you

Answer:
JavaBean

public void setNotify(String n) {
    notify=n;
  }
 public String getNotify() {
    return notify;
  }

HtmlForm

jsp:useBean id="formHandler" class="Concord.FormBean" scope="request"/>
 
<form action="process.jsp" method=post>
....
Yes <input type="radio" name="notify" value="Yes" <jsp:getProperty name="formHandler" property="notify" /> >   <br>      
No <input type="radio" name="notify" value="No"  <jsp:getProperty name="formHandler" property="notify" /> >
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.