<%@ taglib uri="/hawtags" prefix="haw" %>
<!-- 
  HAWHAW example for usage of radio buttons
  Norbert Huffschmid
  $Date: 2007/12/05 22:10:57 $
-->
<haw:haw>
  <haw:deck>

  <% if (request.getParameter("dest") == null) { %>

    <haw:form action="<%= request.getRequestURL().toString() %>">
      <haw:text>Please select your flight destination:</haw:text>
      <haw:radio name="dest">
        <haw:button label="Helsinki" value="Helsinki"/>
        <haw:button label="Munich" value="Munich" checked="yes"/>
        <haw:button label="Paris" value="Paris"/>
        <haw:button label="Stockholm" value="Stockholm"/>
      </haw:radio>
      <haw:submit label="Submit"/>
    </haw:form>

  <% }
     else { %>

    <haw:text big="yes" bold="yes" italic="yes">Sorry,</haw:text>
    <haw:text italic="yes">All flights to <%= request.getParameter("dest") %> are totally booked out!</haw:text>
 
  <% } %>

  </haw:deck>
</haw:haw>