<?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: Java Servlet Filter tutorial example using Eclipse &amp; Tomcat</title>
	<atom:link href="http://viralpatel.net/blogs/2009/01/tutorial-java-servlet-filter-example-using-eclipse-apache-tomcat.html/feed" rel="self" type="application/rss+xml" />
	<link>http://viralpatel.net/blogs/2009/01/tutorial-java-servlet-filter-example-using-eclipse-apache-tomcat.html</link>
	<description>Tutorials, Java, J2EE, Struts, AJAX, JavaScript, CSS, Web 2.0, MySQL, Articles</description>
	<lastBuildDate>Sun, 14 Mar 2010 11:27:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Paras Jotangiya</title>
		<link>http://viralpatel.net/blogs/2009/01/tutorial-java-servlet-filter-example-using-eclipse-apache-tomcat.html/comment-page-1#comment-12274</link>
		<dc:creator>Paras Jotangiya</dc:creator>
		<pubDate>Thu, 11 Mar 2010 13:42:10 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=606#comment-12274</guid>
		<description>Hi Viral ,
First of  i am thanking you to give nice example. And I want to ask one questions .
where r u from?? Gujarat??</description>
		<content:encoded><![CDATA[<p>Hi Viral ,<br />
First of  i am thanking you to give nice example. And I want to ask one questions .<br />
where r u from?? Gujarat??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hao Nhien</title>
		<link>http://viralpatel.net/blogs/2009/01/tutorial-java-servlet-filter-example-using-eclipse-apache-tomcat.html/comment-page-1#comment-12270</link>
		<dc:creator>Hao Nhien</dc:creator>
		<pubDate>Thu, 11 Mar 2010 04:38:56 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=606#comment-12270</guid>
		<description>Hi Viral, 
What a good job u&#039;ve done. I have something to ask you. This example is ok when I run the first time, but when I run the second time, I didn&#039;t get the IP as well as the time. I guess the problem because of there&#039;s nothing in destroy method, and we need to put something there to run example again, is that right? (when I close my eclipse and open again and run the example again, then it&#039;s ok). Thank you very much for your article and look forward to hearing from your answer. Thanks a lot</description>
		<content:encoded><![CDATA[<p>Hi Viral,<br />
What a good job u&#8217;ve done. I have something to ask you. This example is ok when I run the first time, but when I run the second time, I didn&#8217;t get the IP as well as the time. I guess the problem because of there&#8217;s nothing in destroy method, and we need to put something there to run example again, is that right? (when I close my eclipse and open again and run the example again, then it&#8217;s ok). Thank you very much for your article and look forward to hearing from your answer. Thanks a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ghada</title>
		<link>http://viralpatel.net/blogs/2009/01/tutorial-java-servlet-filter-example-using-eclipse-apache-tomcat.html/comment-page-1#comment-12037</link>
		<dc:creator>Ghada</dc:creator>
		<pubDate>Sun, 07 Feb 2010 09:24:51 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=606#comment-12037</guid>
		<description>Nice article.Thanks</description>
		<content:encoded><![CDATA[<p>Nice article.Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: George</title>
		<link>http://viralpatel.net/blogs/2009/01/tutorial-java-servlet-filter-example-using-eclipse-apache-tomcat.html/comment-page-1#comment-11970</link>
		<dc:creator>George</dc:creator>
		<pubDate>Fri, 22 Jan 2010 13:44:46 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=606#comment-11970</guid>
		<description>Hi Viral,
Yes! Silly of me that I was doing Cut n Paste the code. If I was to type I would have noticed the small typo (Missing s in filter(s)). 
Amazing but always true - the devil is in the details...LOL

Then as Brian wrote on 19 December, 2009, 10:43:
&quot;Remember that a Filter is an interface component, and not a Servlet, so in order for it to render output to the browser, you will want to map it to a Servlet.&quot; it still has a reason to tgrow a 404. 
But as it prints in the console it&#039;s OK for now.

I will try writting some code now to build some experience as I am new to Http Sessions and have to learn, so I later come up with more constructive questions..

Thanks for the quick reply (and the correction to the listing..) 
George</description>
		<content:encoded><![CDATA[<p>Hi Viral,<br />
Yes! Silly of me that I was doing Cut n Paste the code. If I was to type I would have noticed the small typo (Missing s in filter(s)).<br />
Amazing but always true &#8211; the devil is in the details&#8230;LOL</p>
<p>Then as Brian wrote on 19 December, 2009, 10:43:<br />
&#8220;Remember that a Filter is an interface component, and not a Servlet, so in order for it to render output to the browser, you will want to map it to a Servlet.&#8221; it still has a reason to tgrow a 404.<br />
But as it prints in the console it&#8217;s OK for now.</p>
<p>I will try writting some code now to build some experience as I am new to Http Sessions and have to learn, so I later come up with more constructive questions..</p>
<p>Thanks for the quick reply (and the correction to the listing..)<br />
George</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Viral Patel</title>
		<link>http://viralpatel.net/blogs/2009/01/tutorial-java-servlet-filter-example-using-eclipse-apache-tomcat.html/comment-page-1#comment-11968</link>
		<dc:creator>Viral Patel</dc:creator>
		<pubDate>Fri, 22 Jan 2010 11:29:11 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=606#comment-11968</guid>
		<description>Hi George, There was a type error in my web.xml. I have updated the code. Here is the change.
&lt;pre class=&quot;brush: xml;&quot;&gt;
&lt;filter-class&gt;
	        net.viralpatel.servlet.filters.LogFilter
&lt;/filter-class&gt;
&lt;/pre&gt;
I have changed net.viralpatel.servlet.&lt;b&gt;filter&lt;/b&gt;.LogFilter to net.viralpatel.servlet.&lt;b&gt;filters&lt;/b&gt;.LogFilter.</description>
		<content:encoded><![CDATA[<p>Hi George, There was a type error in my web.xml. I have updated the code. Here is the change.</p>
<pre class="brush: xml;">
<filter -class>
	        net.viralpatel.servlet.filters.LogFilter
</filter>
</pre>
<p>I have changed net.viralpatel.servlet.<b>filter</b>.LogFilter to net.viralpatel.servlet.<b>filters</b>.LogFilter.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: George</title>
		<link>http://viralpatel.net/blogs/2009/01/tutorial-java-servlet-filter-example-using-eclipse-apache-tomcat.html/comment-page-1#comment-11967</link>
		<dc:creator>George</dc:creator>
		<pubDate>Fri, 22 Jan 2010 10:33:21 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=606#comment-11967</guid>
		<description>Hi Viral,
Similar to what Russell Bateman wrote on 27 April, 2009, 21:28, I get the following along with HTTP Status 404 from Eclipse console:

Jan 22, 2010 12:27:20 PM org.apache.tomcat.util.digester.Digester endElement
WARNING:   No rules found matching &#039;Server/Service/Engine/Host/Content&#039;.
Jan 22, 2010 12:27:20 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property &#039;source&#039; to &#039;org.eclipse.jst.j2ee.server:ADCDemo&#039; did not find a matching property.
Jan 22, 2010 12:27:20 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property &#039;source&#039; to &#039;org.eclipse.jst.jee.server:ServletFilterProject&#039; did not find a matching property.
Jan 22, 2010 12:27:20 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Apache Software Foundation\Tomcat 6.0;C:\Program Files\Java\jre6;C:\Program Files\Java\jdk1.6.0_16
Jan 22, 2010 12:27:20 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jan 22, 2010 12:27:20 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 270 ms
Jan 22, 2010 12:27:20 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jan 22, 2010 12:27:20 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Jan 22, 2010 12:27:21 PM org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter LogFilter
java.lang.ClassNotFoundException: net.viralpatel.servlet.filter.LogFilter
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:249)
	at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
	at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4363)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
	at org.apache.catalina.core.StandardService.start(StandardService.java:516)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Jan 22, 2010 12:27:21 PM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Jan 22, 2010 12:27:21 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/ServletFilterProject] startup failed due to previous errors
Jan 22, 2010 12:27:21 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jan 22, 2010 12:27:21 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jan 22, 2010 12:27:21 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/16  config=null
Jan 22, 2010 12:27:21 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 213 ms

Any help?
Thanks</description>
		<content:encoded><![CDATA[<p>Hi Viral,<br />
Similar to what Russell Bateman wrote on 27 April, 2009, 21:28, I get the following along with HTTP Status 404 from Eclipse console:</p>
<p>Jan 22, 2010 12:27:20 PM org.apache.tomcat.util.digester.Digester endElement<br />
WARNING:   No rules found matching &#8216;Server/Service/Engine/Host/Content&#8217;.<br />
Jan 22, 2010 12:27:20 PM org.apache.tomcat.util.digester.SetPropertiesRule begin<br />
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property &#8217;source&#8217; to &#8216;org.eclipse.jst.j2ee.server:ADCDemo&#8217; did not find a matching property.<br />
Jan 22, 2010 12:27:20 PM org.apache.tomcat.util.digester.SetPropertiesRule begin<br />
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property &#8217;source&#8217; to &#8216;org.eclipse.jst.jee.server:ServletFilterProject&#8217; did not find a matching property.<br />
Jan 22, 2010 12:27:20 PM org.apache.catalina.core.AprLifecycleListener init<br />
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Apache Software Foundation\Tomcat 6.0;C:\Program Files\Java\jre6;C:\Program Files\Java\jdk1.6.0_16<br />
Jan 22, 2010 12:27:20 PM org.apache.coyote.http11.Http11Protocol init<br />
INFO: Initializing Coyote HTTP/1.1 on http-8080<br />
Jan 22, 2010 12:27:20 PM org.apache.catalina.startup.Catalina load<br />
INFO: Initialization processed in 270 ms<br />
Jan 22, 2010 12:27:20 PM org.apache.catalina.core.StandardService start<br />
INFO: Starting service Catalina<br />
Jan 22, 2010 12:27:20 PM org.apache.catalina.core.StandardEngine start<br />
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18<br />
Jan 22, 2010 12:27:21 PM org.apache.catalina.core.StandardContext filterStart<br />
SEVERE: Exception starting filter LogFilter<br />
java.lang.ClassNotFoundException: net.viralpatel.servlet.filter.LogFilter<br />
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)<br />
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)<br />
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:249)<br />
	at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)<br />
	at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)<br />
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)<br />
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4363)<br />
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)<br />
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)<br />
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)<br />
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)<br />
	at org.apache.catalina.core.StandardService.start(StandardService.java:516)<br />
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)<br />
	at org.apache.catalina.startup.Catalina.start(Catalina.java:578)<br />
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)<br />
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)<br />
	at java.lang.reflect.Method.invoke(Unknown Source)<br />
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)<br />
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)<br />
Jan 22, 2010 12:27:21 PM org.apache.catalina.core.StandardContext start<br />
SEVERE: Error filterStart<br />
Jan 22, 2010 12:27:21 PM org.apache.catalina.core.StandardContext start<br />
SEVERE: Context [/ServletFilterProject] startup failed due to previous errors<br />
Jan 22, 2010 12:27:21 PM org.apache.coyote.http11.Http11Protocol start<br />
INFO: Starting Coyote HTTP/1.1 on http-8080<br />
Jan 22, 2010 12:27:21 PM org.apache.jk.common.ChannelSocket init<br />
INFO: JK: ajp13 listening on /0.0.0.0:8009<br />
Jan 22, 2010 12:27:21 PM org.apache.jk.server.JkMain start<br />
INFO: Jk running ID=0 time=0/16  config=null<br />
Jan 22, 2010 12:27:21 PM org.apache.catalina.startup.Catalina start<br />
INFO: Server startup in 213 ms</p>
<p>Any help?<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://viralpatel.net/blogs/2009/01/tutorial-java-servlet-filter-example-using-eclipse-apache-tomcat.html/comment-page-1#comment-11812</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Sat, 19 Dec 2009 05:43:33 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=606#comment-11812</guid>
		<description>Remember that a Filter is an interface component, and not a Servlet, so in order for it to render output to the browser, you will want to map it to a Servlet. The reason you will get a requested resource is not available 404, is because there is either no welcome-file-list setup, or you don&#039;t have a servlet mapped to the filter. Viral, this is a great example, but I&#039;m pretty sure you did not post your web.xml in its entirety.</description>
		<content:encoded><![CDATA[<p>Remember that a Filter is an interface component, and not a Servlet, so in order for it to render output to the browser, you will want to map it to a Servlet. The reason you will get a requested resource is not available 404, is because there is either no welcome-file-list setup, or you don&#8217;t have a servlet mapped to the filter. Viral, this is a great example, but I&#8217;m pretty sure you did not post your web.xml in its entirety.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Viral Patel</title>
		<link>http://viralpatel.net/blogs/2009/01/tutorial-java-servlet-filter-example-using-eclipse-apache-tomcat.html/comment-page-1#comment-11744</link>
		<dc:creator>Viral Patel</dc:creator>
		<pubDate>Thu, 03 Dec 2009 11:07:50 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=606#comment-11744</guid>
		<description>@Shyamshara - Thanks for the comment</description>
		<content:encoded><![CDATA[<p>@Shyamshara &#8211; Thanks for the comment</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shyamshara prajapati</title>
		<link>http://viralpatel.net/blogs/2009/01/tutorial-java-servlet-filter-example-using-eclipse-apache-tomcat.html/comment-page-1#comment-11738</link>
		<dc:creator>shyamshara prajapati</dc:creator>
		<pubDate>Thu, 03 Dec 2009 08:36:08 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=606#comment-11738</guid>
		<description>Thanks Viral, I know you are a Pro.</description>
		<content:encoded><![CDATA[<p>Thanks Viral, I know you are a Pro.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sandeep</title>
		<link>http://viralpatel.net/blogs/2009/01/tutorial-java-servlet-filter-example-using-eclipse-apache-tomcat.html/comment-page-1#comment-11714</link>
		<dc:creator>Sandeep</dc:creator>
		<pubDate>Sat, 28 Nov 2009 22:06:50 +0000</pubDate>
		<guid isPermaLink="false">http://viralpatel.net/blogs/?p=606#comment-11714</guid>
		<description>Very Useful Example...............................</description>
		<content:encoded><![CDATA[<p>Very Useful Example&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic page generated in 0.144 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2010-03-15 15:02:15 -->
