<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>The Programming Blog</title>
	<atom:link href="http://nealvs.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://nealvs.wordpress.com</link>
	<description>Code Snippets, How to&#039;s, Fixes, Cool Software, Installs, and More</description>
	<lastBuildDate>Thu, 01 Dec 2011 05:20:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='nealvs.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>The Programming Blog</title>
		<link>http://nealvs.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://nealvs.wordpress.com/osd.xml" title="The Programming Blog" />
	<atom:link rel='hub' href='http://nealvs.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Java JavaScript and CSS combining and compressing</title>
		<link>http://nealvs.wordpress.com/2011/12/01/java-javascript-and-css-combining-and-compressing/</link>
		<comments>http://nealvs.wordpress.com/2011/12/01/java-javascript-and-css-combining-and-compressing/#comments</comments>
		<pubDate>Thu, 01 Dec 2011 02:54:31 +0000</pubDate>
		<dc:creator>nealvs</dc:creator>
				<category><![CDATA[Java Programming]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://nealvs.wordpress.com/?p=150</guid>
		<description><![CDATA[I tried a few JavaScript combining and compression servlets and settled on Granule: https://github.com/JonathanWalsh/Granule Though the documentation is sparse, I was easily able to set it up and get it working. I encountered one problem it had with not dealing with root paths in css so I changed all mine to relative paths and it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nealvs.wordpress.com&amp;blog=9302562&amp;post=150&amp;subd=nealvs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I tried a few JavaScript combining and compression servlets and settled on Granule: https://github.com/JonathanWalsh/Granule  Though the documentation is sparse, I was easily able to set it up and get it working.  I encountered one problem it had with not dealing with root paths in css so I changed all mine to relative paths and it worked fine.  I have yet to find out how to enable and disable debug modes with it, but sorting through the source code will hopefully reveal how to do that.  My page load times have improved dramatically and allows me to keep my scripts separate for development.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nealvs.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nealvs.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nealvs.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nealvs.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nealvs.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nealvs.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nealvs.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nealvs.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nealvs.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nealvs.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nealvs.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nealvs.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nealvs.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nealvs.wordpress.com/150/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nealvs.wordpress.com&amp;blog=9302562&amp;post=150&amp;subd=nealvs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nealvs.wordpress.com/2011/12/01/java-javascript-and-css-combining-and-compressing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8cd1a4c0c12c69d8f0068277f09dbbd4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nealvs</media:title>
		</media:content>
	</item>
		<item>
		<title>Java Web Application Performance Monitoring</title>
		<link>http://nealvs.wordpress.com/2011/12/01/java-web-application-performance-monitoring/</link>
		<comments>http://nealvs.wordpress.com/2011/12/01/java-web-application-performance-monitoring/#comments</comments>
		<pubDate>Thu, 01 Dec 2011 02:46:37 +0000</pubDate>
		<dc:creator>nealvs</dc:creator>
				<category><![CDATA[Java Programming]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://nealvs.wordpress.com/?p=148</guid>
		<description><![CDATA[I found the best free java web application monitoring package around, Java Melody. http://code.google.com/p/javamelody/ It monitors about everything you could ever want and has the simplest setup ever. It monitors your request times, jsp load times, sql query times, errors, system ram, system cpu and gives you nice charts and historical graphs of what is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nealvs.wordpress.com&amp;blog=9302562&amp;post=148&amp;subd=nealvs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I found the best free java web application monitoring package around, Java Melody.</p>
<p><a href="http://code.google.com/p/javamelody/" title="http://code.google.com/p/javamelody/" target="_blank">http://code.google.com/p/javamelody/</a></p>
<p>It monitors about everything you could ever want and has the simplest setup ever. It monitors your request times, jsp load times, sql query times, errors, system ram, system cpu and gives you nice charts and historical graphs of what is going on.  Truly amazing.  I&#8217;m loving it so far.  </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nealvs.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nealvs.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nealvs.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nealvs.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nealvs.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nealvs.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nealvs.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nealvs.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nealvs.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nealvs.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nealvs.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nealvs.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nealvs.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nealvs.wordpress.com/148/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nealvs.wordpress.com&amp;blog=9302562&amp;post=148&amp;subd=nealvs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nealvs.wordpress.com/2011/12/01/java-web-application-performance-monitoring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8cd1a4c0c12c69d8f0068277f09dbbd4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nealvs</media:title>
		</media:content>
	</item>
		<item>
		<title>Spring and Hibernate fun</title>
		<link>http://nealvs.wordpress.com/2011/10/14/spring-and-hibernate-fun/</link>
		<comments>http://nealvs.wordpress.com/2011/10/14/spring-and-hibernate-fun/#comments</comments>
		<pubDate>Fri, 14 Oct 2011 19:59:21 +0000</pubDate>
		<dc:creator>nealvs</dc:creator>
				<category><![CDATA[Hibernate]]></category>
		<category><![CDATA[Java Programming]]></category>
		<category><![CDATA[Spring]]></category>

		<guid isPermaLink="false">http://nealvs.wordpress.com/?p=138</guid>
		<description><![CDATA[Getting the application content anywhere in your application: import org.springframework.beans.BeansException; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextAware; public class ApplicationContextProvider implements ApplicationContextAware{ private static ApplicationContext ctx = null; public static ApplicationContext getApplicationContext() { return ctx; } @Override public void setApplicationContext(ApplicationContext ctx) throws BeansException { ApplicationContextProvider.ctx = ctx; } } Getting a session factory from the application context: SessionFactory [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nealvs.wordpress.com&amp;blog=9302562&amp;post=138&amp;subd=nealvs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2>Getting the application content anywhere in your application:</h2>
<p><code><br />
import org.springframework.beans.BeansException;<br />
import org.springframework.context.ApplicationContext;<br />
import org.springframework.context.ApplicationContextAware;</p>
<p>public class ApplicationContextProvider implements ApplicationContextAware{<br />
    private static ApplicationContext ctx = null;<br />
    public static ApplicationContext getApplicationContext() {<br />
        return ctx;<br />
    }<br />
    @Override<br />
    public void setApplicationContext(ApplicationContext ctx) throws BeansException {<br />
        ApplicationContextProvider.ctx = ctx;<br />
    }<br />
}<br />
</code></p>
<h2>Getting a session factory from the application context:</h2>
<p><code><br />
   SessionFactory sessionFactory = (SessionFactory) ApplicationContextProvider.getApplicationContext().getBean("mySessionFactory");<br />
</code></p>
<h2>HibernateTemplate</h2>
<p>http://static.springsource.org/spring/docs/2.5.5/api/org/springframework/orm/hibernate3/HibernateTemplate.html</p>
<h2>Generic Dao</h2>
<p><code><br />
@Repository("GenericDAO")<br />
@Transactional<br />
public class GenericDaoImpl implements GenericDao {</p>
<p>    private SessionFactory sessionFactory;  // Todo: use the HibernateTemplate because it's da bomb!<br />
    private HibernateTransactionManager txManager;</p>
<p>    private Class type;</p>
<p>    public GenericMagentoDaoImpl() { }</p>
<p>    public GenericMagentoDaoImpl(Class type) {<br />
        this.type = type;<br />
        sessionFactory = (SessionFactory) ApplicationContextProvider.getApplicationContext().getBean("magentoSessionFactory");<br />
    }</p>
<p>    @Override<br />
    public PK save(T o) {<br />
        Session session = sessionFactory.openSession();<br />
        try {<br />
            return (PK) session.save(o);<br />
        } finally {<br />
             session.close();<br />
        }<br />
    }</p>
<p>    @Override<br />
    public T get(PK id) {<br />
        Session session = sessionFactory.openSession();<br />
        try {<br />
            return (T) session.get(type, id);<br />
        } finally {<br />
             session.close();<br />
        }<br />
    }</p>
<p>    @Override<br />
    public void update(T o) {<br />
        Session session = sessionFactory.openSession();<br />
        try {<br />
            session.update(o);<br />
        } finally {<br />
             session.close();<br />
        }<br />
    }</p>
<p>    @Override<br />
    public void delete(T o) {<br />
        Session session = sessionFactory.openSession();<br />
        try {<br />
            session.delete(o);<br />
        } finally {<br />
             session.close();<br />
        }<br />
    }</p>
<p>    @Override<br />
    public List executeNamedQuery(String queryName, HashMap queryArgs) {<br />
         Session session = sessionFactory.openSession();<br />
         try {<br />
             final Query namedQuery = session.getNamedQuery(queryName);<br />
             //String[] namedParameters = namedQuery.getNamedParameters();<br />
             for(String key : queryArgs.keySet()) {<br />
                 namedQuery.setParameter(key, queryArgs.get(key));<br />
             }<br />
             return (List) namedQuery.list();<br />
         } finally {<br />
             session.close();<br />
         }<br />
    }</p>
<p>    @Override<br />
    public List executeNamedQueryWithLimit(String queryName, HashMap queryArgs, int limit) {<br />
        Session session = sessionFactory.openSession();<br />
        List list = new ArrayList();<br />
        try {<br />
            session.beginTransaction();<br />
            final Query namedQuery = session.getNamedQuery(queryName);<br />
             //String[] namedParameters = namedQuery.getNamedParameters();<br />
             for(String key : queryArgs.keySet()) {<br />
                 namedQuery.setParameter(key, queryArgs.get(key));<br />
             }<br />
             namedQuery.setMaxResults(limit);<br />
             list = namedQuery.list();<br />
             session.getTransaction().commit();<br />
         } finally {<br />
             session.close();<br />
         }<br />
         return list;<br />
    }<br />
}<br />
</code></p>
<p><code><br />
import java.io.Serializable;<br />
import java.util.*;</p>
<p>public interface GenericDao  {</p>
<p>    /** Persist the newInstance object into database */<br />
    PK save(T newInstance);</p>
<p>    /** Retrieve an object that was previously persisted to the database using the indicated id as primary key */<br />
    T get(PK id);</p>
<p>    /** Save changes made to a persistent object.  */<br />
    void update(T transientObject);</p>
<p>    /** Remove an object from persistent storage in the database */<br />
    void delete(T persistentObject);</p>
<p>    public List executeNamedQuery(String queryName, HashMap queryArgs);</p>
<p>    public List executeNamedQueryWithLimit(String queryName, HashMap queryArgs, int limit);<br />
}<br />
</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nealvs.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nealvs.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nealvs.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nealvs.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nealvs.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nealvs.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nealvs.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nealvs.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nealvs.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nealvs.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nealvs.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nealvs.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nealvs.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nealvs.wordpress.com/138/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nealvs.wordpress.com&amp;blog=9302562&amp;post=138&amp;subd=nealvs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nealvs.wordpress.com/2011/10/14/spring-and-hibernate-fun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8cd1a4c0c12c69d8f0068277f09dbbd4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nealvs</media:title>
		</media:content>
	</item>
		<item>
		<title>Cross domain add product to cart in Magento in IE</title>
		<link>http://nealvs.wordpress.com/2011/10/04/cross-domain-add-product-to-cart-in-magento-in-ie/</link>
		<comments>http://nealvs.wordpress.com/2011/10/04/cross-domain-add-product-to-cart-in-magento-in-ie/#comments</comments>
		<pubDate>Tue, 04 Oct 2011 01:25:54 +0000</pubDate>
		<dc:creator>nealvs</dc:creator>
				<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://nealvs.wordpress.com/?p=135</guid>
		<description><![CDATA[Recently we ran into an issue at work where Magento 1.3 would not hold a session in Internet Explorer when using the add to cart action in the checkout module.  We created our own action, in our own controller, in our own module and had the same problem.  Finally we realized that we need a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nealvs.wordpress.com&amp;blog=9302562&amp;post=135&amp;subd=nealvs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently we ran into an issue at work where Magento 1.3 would not hold a session in Internet Explorer when using the add to cart action in the checkout module.  We created our own action, in our own controller, in our own module and had the same problem.  Finally we realized that we need a trailing slash to stop Magento from redirecting in and losing the session in IE.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nealvs.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nealvs.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nealvs.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nealvs.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nealvs.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nealvs.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nealvs.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nealvs.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nealvs.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nealvs.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nealvs.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nealvs.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nealvs.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nealvs.wordpress.com/135/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nealvs.wordpress.com&amp;blog=9302562&amp;post=135&amp;subd=nealvs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nealvs.wordpress.com/2011/10/04/cross-domain-add-product-to-cart-in-magento-in-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8cd1a4c0c12c69d8f0068277f09dbbd4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nealvs</media:title>
		</media:content>
	</item>
		<item>
		<title>Spring MVC and Hibernate</title>
		<link>http://nealvs.wordpress.com/2011/09/22/spring-mvc-and-hibernate/</link>
		<comments>http://nealvs.wordpress.com/2011/09/22/spring-mvc-and-hibernate/#comments</comments>
		<pubDate>Thu, 22 Sep 2011 01:24:31 +0000</pubDate>
		<dc:creator>nealvs</dc:creator>
				<category><![CDATA[Java Programming]]></category>
		<category><![CDATA[JBoss]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[JBoss7]]></category>
		<category><![CDATA[Shelf Reliance Pro]]></category>
		<category><![CDATA[Spring MVC]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://nealvs.wordpress.com/?p=115</guid>
		<description><![CDATA[My current Spring MVC and Hibernate project is located at: http://shelfreliancepro.com Shelf Reliance Pro (SRPro) is a customer relationship management system for consultants of Shelf Reliance. The system not only helps consultants manage their contacts, but it helps them manage their time and auto-generates tasks to help be an effective consultant. The app includes and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nealvs.wordpress.com&amp;blog=9302562&amp;post=115&amp;subd=nealvs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>My current Spring MVC and Hibernate project is located at:<br />
<a href="http://shelfreliancepro.com" target="_blank"> http://shelfreliancepro.com</a></p>
<p>Shelf Reliance Pro (SRPro) is a customer relationship management system for consultants of Shelf Reliance. The system not only helps consultants manage their contacts, but it helps them manage their time and auto-generates tasks to help be an effective consultant. The app includes and address book, calendaring, task management and many more features. Communication features will also be made available in time. The introductory level is free until a consultant has a certain number of contacts. Higher levels will provide more features for the user as well.</p>
<p>It is currently hosted on a free Amazon EC2 cloud instance, so the performance isn&#8217;t what it could be at the moment, but it is on that server for development and beta testing. The server only consists of one CPU and 600 MB RAM, but Jboss 7 and Spring MVC can still run on it.</p>
<p>Expect the site to be up and down during development.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nealvs.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nealvs.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nealvs.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nealvs.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nealvs.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nealvs.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nealvs.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nealvs.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nealvs.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nealvs.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nealvs.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nealvs.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nealvs.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nealvs.wordpress.com/115/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nealvs.wordpress.com&amp;blog=9302562&amp;post=115&amp;subd=nealvs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nealvs.wordpress.com/2011/09/22/spring-mvc-and-hibernate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8cd1a4c0c12c69d8f0068277f09dbbd4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nealvs</media:title>
		</media:content>
	</item>
		<item>
		<title>JBoss 7</title>
		<link>http://nealvs.wordpress.com/2011/09/16/jboss-7/</link>
		<comments>http://nealvs.wordpress.com/2011/09/16/jboss-7/#comments</comments>
		<pubDate>Fri, 16 Sep 2011 14:29:02 +0000</pubDate>
		<dc:creator>nealvs</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[NetBeans]]></category>
		<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[JBoss]]></category>

		<guid isPermaLink="false">http://nealvs.wordpress.com/2011/09/16/jboss-7/</guid>
		<description><![CDATA[I&#8217;ve recently switch from using Glassfish to Jboss 7 as my go to Java Server. Jboss 7 releases have names like &#8216;Zap&#8217; and &#8216;Lightning&#8217; and it lives up to it&#8217;s name. It starts fast, and loads applications fast. A standalone mode and domain mode is available depending on what setup you want to use. I&#8217;ve [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nealvs.wordpress.com&amp;blog=9302562&amp;post=128&amp;subd=nealvs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently switch from using Glassfish to Jboss 7 as my go to Java Server.  Jboss 7 releases have names like &#8216;Zap&#8217; and &#8216;Lightning&#8217; and it lives up to it&#8217;s name.  It starts fast, and loads applications fast.  A standalone mode and domain mode is available depending on what setup you want to use.  I&#8217;ve been very impressed.  The last time I used Jboss was back in version 3 and they have made huge improvements with it.  </p>
<p>What is lacking:</p>
<p>Netbeans Integration for debugging (Still stuck with glassfish for this)<br />
I&#8217;m keeping a close eye on this Netbeans issue:</p>
<p>http://netbeans.org/bugzilla/show_bug.cgi?id=200132</p>
<p>Of course any Java server isn&#8217;t meant to sit out on the front lines, so I but Nginx out front to serve up all static content and handle SSL.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nealvs.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nealvs.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nealvs.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nealvs.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nealvs.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nealvs.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nealvs.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nealvs.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nealvs.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nealvs.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nealvs.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nealvs.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nealvs.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nealvs.wordpress.com/128/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nealvs.wordpress.com&amp;blog=9302562&amp;post=128&amp;subd=nealvs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nealvs.wordpress.com/2011/09/16/jboss-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8cd1a4c0c12c69d8f0068277f09dbbd4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nealvs</media:title>
		</media:content>
	</item>
		<item>
		<title>Java FX 2.0</title>
		<link>http://nealvs.wordpress.com/2011/09/16/java-fx-2-0/</link>
		<comments>http://nealvs.wordpress.com/2011/09/16/java-fx-2-0/#comments</comments>
		<pubDate>Fri, 16 Sep 2011 14:25:38 +0000</pubDate>
		<dc:creator>nealvs</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Java FX]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://nealvs.wordpress.com/2011/09/16/java-fx-2-0/</guid>
		<description><![CDATA[I&#8217;ve recently been able to try out Java FX 2.0 Beta. I&#8217;m happy to say that I like that the Java FX Script is gone and now native Java is used. Learning a new scripting language shouldn&#8217;t have to be necessary to pick up a new Java technology. They still have the Java FX XML [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nealvs.wordpress.com&amp;blog=9302562&amp;post=127&amp;subd=nealvs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently been able to try out Java FX 2.0 Beta.  I&#8217;m happy to say that I like that the Java FX Script is gone and now native Java is used.  Learning a new scripting language shouldn&#8217;t have to be necessary to pick up a new Java technology.  They still have the Java FX XML layouts so you can edit view layouts on the fly.  </p>
<p>A few things lacking right now:</p>
<p>Mobile support<br />
In browser support &#8211; the runtime links are broken on Oracle&#8217;s site<br />
Netbeans GUI Builder</p>
<p>I hope the official release comes out soon and supports these things so that Java FX 2.0 can be used in production. </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nealvs.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nealvs.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nealvs.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nealvs.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nealvs.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nealvs.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nealvs.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nealvs.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nealvs.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nealvs.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nealvs.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nealvs.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nealvs.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nealvs.wordpress.com/127/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nealvs.wordpress.com&amp;blog=9302562&amp;post=127&amp;subd=nealvs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nealvs.wordpress.com/2011/09/16/java-fx-2-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8cd1a4c0c12c69d8f0068277f09dbbd4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nealvs</media:title>
		</media:content>
	</item>
		<item>
		<title>Nginx Reverse Proxy Redirect</title>
		<link>http://nealvs.wordpress.com/2011/09/16/nginx-reverse-proxy-redirect/</link>
		<comments>http://nealvs.wordpress.com/2011/09/16/nginx-reverse-proxy-redirect/#comments</comments>
		<pubDate>Fri, 16 Sep 2011 14:19:20 +0000</pubDate>
		<dc:creator>nealvs</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[Web Server]]></category>

		<guid isPermaLink="false">http://nealvs.wordpress.com/2011/09/16/nginx-reverse-proxy-redirect/</guid>
		<description><![CDATA[Here&#8217;s an example conf file for Nginx doing a reverse proxy redirect and also a static content serving setup: user www-data www-data; worker_processes 2; events { worker_connections 1024; use epoll; } http { include mime.types; default_type application/octet-stream; sendfile on; #tcp_nopush on; keepalive_timeout 65; gzip on; server { listen 80; server_name somesite.com; # send all requests [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nealvs.wordpress.com&amp;blog=9302562&amp;post=125&amp;subd=nealvs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s an example conf file for Nginx doing a reverse proxy redirect and also a static content serving setup:</p>
<pre>
user  www-data www-data;
worker_processes  2;

events {
    worker_connections  1024;
    use epoll;
}

http {
    include       mime.types;
    default_type  application/octet-stream;

    sendfile        on;
    #tcp_nopush     on;

    keepalive_timeout  65;
    gzip  on;

    server {
        listen       80;
        server_name   somesite.com;
        # send all requests to https
	rewrite     ^(.*)   https://$server_name$1 permanent;

        location /resources {
            root   /var/www;
            index  index.html index.htm;
        }

	location / {
            proxy_pass http://127.0.0.1:881;
            proxy_set_header   X-Real-IP        $remote_addr;
            proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
            proxy_max_temp_file_size 0;

            client_max_body_size       10m;
            client_body_buffer_size    128k;

            proxy_connect_timeout      90;
            proxy_send_timeout         90;
            proxy_read_timeout         90;

            proxy_buffer_size           4k;
            proxy_buffers               4 32k;
            proxy_busy_buffers_size     64k;
            proxy_temp_file_write_size  64k;
        }

        error_page 403 404              /40x.html;

        # redirect server error pages to the static page /50x.html
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }

    }

    server {
        listen       443;
        server_name  somesite.com;

	gzip on;

        ssl                  on;
        ssl_certificate      /root/cert/certificate.crt;
        ssl_certificate_key  /root/cert/certkey.key;

        ssl_session_timeout  5m;

        ssl_protocols  SSLv2 SSLv3 TLSv1;
        ssl_ciphers  HIGH:!aNULL:!MD5;
        ssl_prefer_server_ciphers   on;

        location /resources {
 	    root   /var/www;
            index  index.html index.htm;
	}

	location / {
            proxy_pass http://127.0.0.1:881;
            proxy_set_header   X-Real-IP        $remote_addr;
            proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
            proxy_max_temp_file_size 0;

            client_max_body_size       10m;
            client_body_buffer_size    128k;

            proxy_connect_timeout      90;
            proxy_send_timeout         90;
            proxy_read_timeout         90;

            proxy_buffer_size           4k;
            proxy_buffers               4 32k;
            proxy_busy_buffers_size     64k;
            proxy_temp_file_write_size 64k;
        }

	error_page   403 404          /40x.html;
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
             root   html;
        }
	location = /40x.html {
             root   html;
	}
    }
}</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nealvs.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nealvs.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nealvs.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nealvs.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nealvs.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nealvs.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nealvs.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nealvs.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nealvs.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nealvs.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nealvs.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nealvs.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nealvs.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nealvs.wordpress.com/125/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nealvs.wordpress.com&amp;blog=9302562&amp;post=125&amp;subd=nealvs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nealvs.wordpress.com/2011/09/16/nginx-reverse-proxy-redirect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8cd1a4c0c12c69d8f0068277f09dbbd4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nealvs</media:title>
		</media:content>
	</item>
		<item>
		<title>Spring MVC Annotation Scheduled Tasks/Cron</title>
		<link>http://nealvs.wordpress.com/2011/09/16/spring-mvc-annotation-scheduled-taskscron/</link>
		<comments>http://nealvs.wordpress.com/2011/09/16/spring-mvc-annotation-scheduled-taskscron/#comments</comments>
		<pubDate>Fri, 16 Sep 2011 14:10:57 +0000</pubDate>
		<dc:creator>nealvs</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Spring MVC]]></category>
		<category><![CDATA[Web Programming]]></category>

		<guid isPermaLink="false">http://nealvs.wordpress.com/2011/09/16/spring-mvc-annotation-scheduled-taskscron/</guid>
		<description><![CDATA[Spring MVC makes it easy to execute cron jobs within your application. Step one: Add the following to your spring-servlet.xml file: &#60;!-- Configures the @Scheduled programming model --&#62; &#60;task:annotation-driven /&#62; Also make sure this is in your beans tag: xsi:schemaLocation=" http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.0.xsd Next create a component class with this annotation: @Component class Scheduler { Finally: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nealvs.wordpress.com&amp;blog=9302562&amp;post=120&amp;subd=nealvs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Spring MVC makes it easy to execute cron jobs within your application.</p>
<p>Step one:</p>
<p>Add the following to your spring-servlet.xml file:</p>
<pre>&lt;!-- Configures the @Scheduled programming model --&gt;
&lt;task:annotation-driven /&gt;</pre>
<p>Also make sure this is in your beans tag:</p>
<pre>
xsi:schemaLocation="

http://www.springframework.org/schema/task

http://www.springframework.org/schema/task/spring-task-3.0.xsd
</pre>
<p>Next create a component class with this annotation:</p>
<pre>@Component
class Scheduler {</pre>
<p>Finally:</p>
<p>Tag methods with one of these annotations to scheduled it&#8217;s run time:</p>
<pre>@Scheduled(cron="0 0 * * * *") // Every hour on the hour
public void runMe() { }

@Scheduled(fixedDelay = 3600000) // Hour increments from last stop
public void runRunRudolf() { }</pre>
<p>The cron is a little different from Linux crons in that it has a seconds field which gives you fine grain control of when these run. Be sure to catch all exceptions in the scheduled tasks or the task could restart and cause unwanted behavior.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nealvs.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nealvs.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nealvs.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nealvs.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nealvs.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nealvs.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nealvs.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nealvs.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nealvs.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nealvs.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nealvs.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nealvs.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nealvs.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nealvs.wordpress.com/120/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nealvs.wordpress.com&amp;blog=9302562&amp;post=120&amp;subd=nealvs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nealvs.wordpress.com/2011/09/16/spring-mvc-annotation-scheduled-taskscron/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8cd1a4c0c12c69d8f0068277f09dbbd4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nealvs</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Action inheritance to enhance Struts applications</title>
		<link>http://nealvs.wordpress.com/2010/07/30/using-action-inheritance-to-enhance-struts-applications/</link>
		<comments>http://nealvs.wordpress.com/2010/07/30/using-action-inheritance-to-enhance-struts-applications/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 16:48:19 +0000</pubDate>
		<dc:creator>nealvs</dc:creator>
				<category><![CDATA[Java Programming]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://nealvs.wordpress.com/?p=107</guid>
		<description><![CDATA[Previously, the web application I work with had all Action classes inherit from the Strut&#8217;s Action class.  We noticed that on each request, all our actions had to do some user authentication and error catching and EJB session facade creating.  Many new actions that were created neglected proper checking.  We decided to create our own [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nealvs.wordpress.com&amp;blog=9302562&amp;post=107&amp;subd=nealvs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Previously, the web application I work with had all Action classes inherit from the Strut&#8217;s Action class.  We noticed that on each request, all our actions had to do some user authentication and error catching and EJB session facade creating.  Many new actions that were created neglected proper checking.  We decided to create our own base abstract action classes for our action classes to inherit from.  The base abstract action classes inherit from the Strut&#8217;s Action class and implement the &#8216;execute&#8217; method.  Within the execute method we put the authentication checking code and set variables to hold the request, response, and frequently used session facades.  The execute method also declares an abstract method called either getJSON or getMapping to perform the action and return the forwarding location to the view/jsp or else a JSON object to be returned to an AJAX call.</p>
<p>We implemented the new abstract base classes and changed all our action classes to inherit from them.  Not only did we enhance the security and consistency of the system, but we reduced the code base by hundreds of lines of code.</p>
<p>Note: Only one instance of each Action class is generated by Struts, so you cannot use member variables in these classes.  All variables setup need to be local and passed to the getJSON and getMapping methods via parameters.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nealvs.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nealvs.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nealvs.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nealvs.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nealvs.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nealvs.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nealvs.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nealvs.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nealvs.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nealvs.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nealvs.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nealvs.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nealvs.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nealvs.wordpress.com/107/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nealvs.wordpress.com&amp;blog=9302562&amp;post=107&amp;subd=nealvs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nealvs.wordpress.com/2010/07/30/using-action-inheritance-to-enhance-struts-applications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8cd1a4c0c12c69d8f0068277f09dbbd4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nealvs</media:title>
		</media:content>
	</item>
	</channel>
</rss>
