<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Image buttons in Struts (using ImageButtonBean class)</title>
	<atom:link href="http://technology.amis.nl/2004/08/26/image-buttons-in-struts-using-codeimagebuttonbeancode-class/feed/" rel="self" type="application/rss+xml" />
	<link>http://technology.amis.nl/2004/08/26/image-buttons-in-struts-using-codeimagebuttonbeancode-class/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=image-buttons-in-struts-using-codeimagebuttonbeancode-class</link>
	<description></description>
	<lastBuildDate>Fri, 12 Apr 2013 10:04:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: gaurav</title>
		<link>http://technology.amis.nl/2004/08/26/image-buttons-in-struts-using-codeimagebuttonbeancode-class/#comment-682</link>
		<dc:creator>gaurav</dc:creator>
		<pubDate>Tue, 11 Dec 2007 12:55:10 +0000</pubDate>
		<guid isPermaLink="false">/?p=139#comment-682</guid>
		<description><![CDATA[i want simple solution for creating print button wid simple print image how can i do it can any one help me]]></description>
		<content:encoded><![CDATA[<p>i want simple solution for creating print button wid simple print image how can i do it can any one help me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AdSense Money Maker</title>
		<link>http://technology.amis.nl/2004/08/26/image-buttons-in-struts-using-codeimagebuttonbeancode-class/#comment-681</link>
		<dc:creator>AdSense Money Maker</dc:creator>
		<pubDate>Tue, 27 Mar 2007 07:54:25 +0000</pubDate>
		<guid isPermaLink="false">/?p=139#comment-681</guid>
		<description><![CDATA[&lt;strong&gt;AdSense Money Maker&lt;/strong&gt;

Do you know how to make money from AdSense automatically? You don&#039;t!? I&#039;ll teach you how!]]></description>
		<content:encoded><![CDATA[<p><strong>AdSense Money Maker</strong></p>
<p>Do you know how to make money from AdSense automatically? You don&#8217;t!? I&#8217;ll teach you how!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://technology.amis.nl/2004/08/26/image-buttons-in-struts-using-codeimagebuttonbeancode-class/#comment-680</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Wed, 26 Oct 2005 20:48:47 +0000</pubDate>
		<guid isPermaLink="false">/?p=139#comment-680</guid>
		<description><![CDATA[Re: Comment #10, we&#039;ve dealt with that here by the following:

	public ActionErrors validate(
		ActionMapping mapping,
		HttpServletRequest request)
	{

		String action = StringUtil.removeNull(request.getParameter(Constants.ACTION_PARAMETER));

		logger.debug(&quot;Action hit is &#039;&quot; + action + &quot;&#039;&quot;);

		logger.debug(&quot;Method is &#039;&quot; + request.getMethod() + &quot;&#039;&quot;);

		if ((Constants.POST_METHOD.equalsIgnoreCase(request.getMethod())
			&amp;&amp; (((Constants.ADD_ACTION.equals(action))
				&#124;&#124; ((Constants.UPDATE_ACTION.equals(action)))))))
		{
			logger.debug(&quot;validation is on for this call&quot;);
			return super.validate(mapping, request);
		}
		else
		{
			logger.debug(&quot;validation is off for this call&quot;);
			return null;
		}
	}

and if this is for many forms, place that logic in your own abstract form class that extends ValidatorForm.]]></description>
		<content:encoded><![CDATA[<p>Re: Comment #10, we&#8217;ve dealt with that here by the following:</p>
<p>	public ActionErrors validate(<br />
		ActionMapping mapping,<br />
		HttpServletRequest request)<br />
	{</p>
<p>		String action = StringUtil.removeNull(request.getParameter(Constants.ACTION_PARAMETER));</p>
<p>		logger.debug(&#8220;Action hit is &#8216;&#8221; + action + &#8220;&#8216;&#8221;);</p>
<p>		logger.debug(&#8220;Method is &#8216;&#8221; + request.getMethod() + &#8220;&#8216;&#8221;);</p>
<p>		if ((Constants.POST_METHOD.equalsIgnoreCase(request.getMethod())<br />
			&#038;&#038; (((Constants.ADD_ACTION.equals(action))<br />
				|| ((Constants.UPDATE_ACTION.equals(action)))))))<br />
		{<br />
			logger.debug(&#8220;validation is on for this call&#8221;);<br />
			return super.validate(mapping, request);<br />
		}<br />
		else<br />
		{<br />
			logger.debug(&#8220;validation is off for this call&#8221;);<br />
			return null;<br />
		}<br />
	}</p>
<p>and if this is for many forms, place that logic in your own abstract form class that extends ValidatorForm.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Natalia</title>
		<link>http://technology.amis.nl/2004/08/26/image-buttons-in-struts-using-codeimagebuttonbeancode-class/#comment-679</link>
		<dc:creator>Natalia</dc:creator>
		<pubDate>Fri, 12 Aug 2005 13:47:47 +0000</pubDate>
		<guid isPermaLink="false">/?p=139#comment-679</guid>
		<description><![CDATA[I have a problem with this solution because I&#039;m doing validation on the form. I have two buttons one to accept and another to cancel.
When I submit the application first validate and then go to the Action if I submit Cancel the validate not let me reach the
proper action because never go inside Action
Regards]]></description>
		<content:encoded><![CDATA[<p>I have a problem with this solution because I&#8217;m doing validation on the form. I have two buttons one to accept and another to cancel.<br />
When I submit the application first validate and then go to the Action if I submit Cancel the validate not let me reach the<br />
proper action because never go inside Action<br />
Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aino</title>
		<link>http://technology.amis.nl/2004/08/26/image-buttons-in-struts-using-codeimagebuttonbeancode-class/#comment-678</link>
		<dc:creator>Aino</dc:creator>
		<pubDate>Mon, 18 Jul 2005 21:04:14 +0000</pubDate>
		<guid isPermaLink="false">/?p=139#comment-678</guid>
		<description><![CDATA[rss feeds are available; but without a nice orange image :-(. Check the bottom of the left navigation &#039;frame&#039;. btw Both Opera and Firefox are also picking it up.]]></description>
		<content:encoded><![CDATA[<p>rss feeds are available; but without a nice orange image <img src='http://technology.amis.nl/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> . Check the bottom of the left navigation &#8216;frame&#8217;. btw Both Opera and Firefox are also picking it up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ionamin3</title>
		<link>http://technology.amis.nl/2004/08/26/image-buttons-in-struts-using-codeimagebuttonbeancode-class/#comment-677</link>
		<dc:creator>Ionamin3</dc:creator>
		<pubDate>Sun, 17 Jul 2005 14:59:52 +0000</pubDate>
		<guid isPermaLink="false">/?p=139#comment-677</guid>
		<description><![CDATA[Nice site but do you going to create RSS?]]></description>
		<content:encoded><![CDATA[<p>Nice site but do you going to create RSS?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zeger Hendrikse</title>
		<link>http://technology.amis.nl/2004/08/26/image-buttons-in-struts-using-codeimagebuttonbeancode-class/#comment-676</link>
		<dc:creator>Zeger Hendrikse</dc:creator>
		<pubDate>Tue, 05 Jul 2005 08:31:02 +0000</pubDate>
		<guid isPermaLink="false">/?p=139#comment-676</guid>
		<description><![CDATA[IMHO, way too many programmers use JavaScript way too easy. In situations like these, I really dislike use of JavaScript, hence I wrote this post. I&#039;m glad more people are enthousiastic about this. Moreover, this makes me feel more confident that I&#039;m right about the (over)use of JavaScript.]]></description>
		<content:encoded><![CDATA[<p>IMHO, way too many programmers use JavaScript way too easy. In situations like these, I really dislike use of JavaScript, hence I wrote this post. I&#8217;m glad more people are enthousiastic about this. Moreover, this makes me feel more confident that I&#8217;m right about the (over)use of JavaScript.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://technology.amis.nl/2004/08/26/image-buttons-in-struts-using-codeimagebuttonbeancode-class/#comment-675</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Fri, 01 Jul 2005 13:44:42 +0000</pubDate>
		<guid isPermaLink="false">/?p=139#comment-675</guid>
		<description><![CDATA[This article saved my life.  I am a Struts newb and trying to support a legacy app.  The previous guy over-engineered the crap out the application.  He used a complex piece of java script to create the buttons, and I still don&#039;t know how they work, really.  I need to add more buttons and It Just Won&#039;t Work. But this solution is what I like - simple, clean, lean, explicit, and _maintainable_.

Good catch by Olaf.]]></description>
		<content:encoded><![CDATA[<p>This article saved my life.  I am a Struts newb and trying to support a legacy app.  The previous guy over-engineered the crap out the application.  He used a complex piece of java script to create the buttons, and I still don&#8217;t know how they work, really.  I need to add more buttons and It Just Won&#8217;t Work. But this solution is what I like &#8211; simple, clean, lean, explicit, and _maintainable_.</p>
<p>Good catch by Olaf.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Umashankar</title>
		<link>http://technology.amis.nl/2004/08/26/image-buttons-in-struts-using-codeimagebuttonbeancode-class/#comment-674</link>
		<dc:creator>Umashankar</dc:creator>
		<pubDate>Fri, 24 Jun 2005 21:11:17 +0000</pubDate>
		<guid isPermaLink="false">/?p=139#comment-674</guid>
		<description><![CDATA[EXCELLENT ILLUSTRATION ( with good note from Olaf ) It helped !! We needed to put some buttons in the same form ( like submit, getting another page, refresh etc.. ).]]></description>
		<content:encoded><![CDATA[<p>EXCELLENT ILLUSTRATION ( with good note from Olaf ) It helped !! We needed to put some buttons in the same form ( like submit, getting another page, refresh etc.. ).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olaf Geibig</title>
		<link>http://technology.amis.nl/2004/08/26/image-buttons-in-struts-using-codeimagebuttonbeancode-class/#comment-673</link>
		<dc:creator>Olaf Geibig</dc:creator>
		<pubDate>Tue, 22 Feb 2005 12:35:58 +0000</pubDate>
		<guid isPermaLink="false">/?p=139#comment-673</guid>
		<description><![CDATA[You forgot to mention that the buttons have to be resetted. Otherwise it will stay selected. This is best to be done in the reset method of the form bean:
&lt;code&gt;
   public void reset(ActionMapping mapping, HttpServletRequest request)
   {
      authorSearchButton.setX(null);
      authorSearchButton.setY(null);
   }
&lt;/code&gt;]]></description>
		<content:encoded><![CDATA[<p>You forgot to mention that the buttons have to be resetted. Otherwise it will stay selected. This is best to be done in the reset method of the form bean:<br />
<code><br />
   public void reset(ActionMapping mapping, HttpServletRequest request)<br />
   {<br />
      authorSearchButton.setX(null);<br />
      authorSearchButton.setY(null);<br />
   }<br />
</code></p>
]]></content:encoded>
	</item>
</channel>
</rss>
