<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>entroducing.com &#187; struts</title>
	<atom:link href="http://www.entroducing.com/view/tag/struts/feed" rel="self" type="application/rss+xml" />
	<link>http://www.entroducing.com</link>
	<description>to prove that i have too much time</description>
	<lastBuildDate>Sun, 15 May 2011 06:00:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Making a Struts Radio selected</title>
		<link>http://www.entroducing.com/view/making-a-struts-radio-selected</link>
		<comments>http://www.entroducing.com/view/making-a-struts-radio-selected#comments</comments>
		<pubDate>Sun, 17 Jan 2010 06:36:21 +0000</pubDate>
		<dc:creator>Benny</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[struts]]></category>

		<guid isPermaLink="false">http://www.entroducing.com/?p=147</guid>
		<description><![CDATA[By default, struts&#8217;s html radio tag do not allow you to make a radio to be selected as they have no &#8220;selected&#8221; property or something &#38;lt;html:radio property=&#38;quot;gender&#38;quot; value=&#38;quot;F&#38;quot; /&#38;gt;Male &#38;lt;html:radio property=&#38;quot;gender&#38;quot; value=&#38;quot;M&#38;quot;/&#38;gt;Female To make a radio button to be selected on load, set the value that you want to be selected in your action form [...]]]></description>
			<content:encoded><![CDATA[<p>By default, struts&#8217;s html radio tag do not allow you to make a radio to be selected as they have no &#8220;selected&#8221; property or something</p>
<pre class="brush: java">
&amp;lt;html:radio property=&amp;quot;gender&amp;quot; value=&amp;quot;F&amp;quot; /&amp;gt;Male
&amp;lt;html:radio property=&amp;quot;gender&amp;quot; value=&amp;quot;M&amp;quot;/&amp;gt;Female
</pre>
<p>To make a radio button to be selected on load, set the value that you want to be selected in your action form <strong>reset </strong>method</p>
<pre class="brush: java">

public void reset(ActionMapping mapping, HttpServletRequest request) {
            super.reset(mapping, request);
            gender= &amp;quot;F&amp;quot;;
      }
</pre>
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.entroducing.com%2Fview%2Fmaking-a-struts-radio-selected&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>]]></content:encoded>
			<wfw:commentRss>http://www.entroducing.com/view/making-a-struts-radio-selected/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

