<?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>blog</title>
	<atom:link href="http://blog.pariyani.com/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.pariyani.com</link>
	<description>Pariyani&#039;s Blog</description>
	<lastBuildDate>Tue, 01 Nov 2016 09:39:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Dividend Investing</title>
		<link>http://blog.pariyani.com/archives/54</link>
		<comments>http://blog.pariyani.com/archives/54#comments</comments>
		<pubDate>Fri, 28 Oct 2016 09:15:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.pariyani.com/?p=54</guid>
		<description><![CDATA[Below are some useful link for my reference.
Chowder Rule &#8211; http://seekingalpha.com/instablog/728729-chowder/2360292-the-chowder-rule
&#8220;Buy stocks that meet the Total Dividend Return (TDR) rule a/k/a the &#8220;chowder rule,&#8221;  requiring a yield plus Five year Dividend Growth Rate (DGR) total of  12% or more. In the case of utilities, MLPs and REITs, the total is 8%  or [...]]]></description>
			<content:encoded><![CDATA[<p>Below are some useful link for my reference.</p>
<p>Chowder Rule &#8211; <a title="Chowder rule" href="http://seekingalpha.com/instablog/728729-chowder/2360292-the-chowder-rule" target="_blank">http://seekingalpha.com/instablog/728729-chowder/2360292-the-chowder-rule</a></p>
<p>&#8220;Buy stocks that meet the Total Dividend Return (TDR) rule a/k/a the &#8220;<strong>chowder rule</strong>,&#8221;  requiring a yield plus Five year Dividend Growth Rate (DGR) total of  12% or more. In the case of utilities, MLPs and REITs, the total is 8%  or more.&#8221;</p>
<p>Stock Analysis &#8211; <a href="http://seekingalpha.com/article/4015814-new-southern-company?app=1&amp;uprof=45&amp;isDirectRoadblock=true" target="_blank">http://seekingalpha.com/article/4015814-new-southern-company?app=1&amp;uprof=45&amp;isDirectRoadblock=true</a></p>
<h2>Calculation Example</h2>
<p>The dividend growth rate can be  calculated linearly by taking an average or geometrically for more  precision. As an example of the linear method, consider the following.</p>
<p>A company&#8217;s dividend payments to its shareholders over the last five years were:</p>
<p>Year 1 = $1.00</p>
<p>Year 2 = $1.05</p>
<p>Year 3 = $1.07</p>
<p>Year 4 = $1.11</p>
<p>Year 5 = $1.15</p>
<p>To calculate the growth from one year to the next, the following formula is used:</p>
<p>Dividend Growth = Year X Dividend / (Year X &#8211; 1 Dividend) &#8211; 1</p>
<p>In the above example, the growth rates are:</p>
<p>Year 1 Growth Rate = N/A</p>
<p>Year 2 Growth Rate = $1.05 / $1.00 &#8211; 1 = 5%</p>
<p>Year 3 Growth Rate = $1.07 / $1.05 &#8211; 1 = 1.9%</p>
<p>Year 4 Growth Rate = $1.11 / $1.07 &#8211; 1 = 3.74%</p>
<p>Year 5 Growth Rate = $1.15 / $1.11 &#8211; 1 = 3.6%</p>
<p>The average of these four annual growth rates is 3.56%. To confirm this is correct, the following calculation can be used:</p>
<p>$1 x (1 + 3.56%) ^ 4 = $1.15</p>
<h2>Growth Rate Used in Dividend Discount Model</h2>
<p>The  dividend discount model is used to value a company&#8217;s stock based on the  idea a stock is worth the sum of its future payments to shareholders,  discounted back to the present day. The formula takes into account three  variable to arrive at a current price, P. They are:</p>
<p>D1 = the value of next year&#8217;s dividend</p>
<p>r = the cost of equity capital</p>
<p>g = the dividend growth rate</p>
<p>The dividend discount model&#8217;s formula is:</p>
<p>P = D1 / (r &#8211; g)</p>
<p>In  the above example, if it is assumed next year&#8217;s dividend will be $1.18  and the cost of equity capital is 8%, the stock&#8217;s current price per  share is:</p>
<p>P = $1.18 / (8% &#8211; 3.56%) = $26.58</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pariyani.com/archives/54/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android App for usedGaadi.in</title>
		<link>http://blog.pariyani.com/archives/40</link>
		<comments>http://blog.pariyani.com/archives/40#comments</comments>
		<pubDate>Sat, 08 Dec 2012 18:56:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[car]]></category>
		<category><![CDATA[cars]]></category>
		<category><![CDATA[delhi]]></category>
		<category><![CDATA[gaadi]]></category>
		<category><![CDATA[gujarat]]></category>
		<category><![CDATA[india]]></category>
		<category><![CDATA[mumbai]]></category>
		<category><![CDATA[play]]></category>
		<category><![CDATA[play store]]></category>
		<category><![CDATA[pune]]></category>
		<category><![CDATA[store]]></category>
		<category><![CDATA[used]]></category>
		<category><![CDATA[usedgaadi]]></category>

		<guid isPermaLink="false">http://blog.pariyani.com/archives/40</guid>
		<description><![CDATA[Finally released the new adroid app ..
UsedGaadi.in &#8211; used car market &#8211; Android Apps on Google Play 
UsedGaadi.in &#8211; India&#8217;s newest used car market.Let us help you find your next car Search for a new or used car with your Android. UsedGaadi.in is india&#8217;s newest online&#8230;

]]></description>
			<content:encoded><![CDATA[<p>Finally released the new adroid app ..</p>
<p><a href="https://play.google.com/store/apps/details?id=in.pariyani.usedgaadi"><strong>UsedGaadi.in &#8211; used car market &#8211; Android Apps on Google Play</strong> </a><br />
UsedGaadi.in &#8211; India&#8217;s newest used car market.Let us help you find your next car Search for a new or used car with your Android. UsedGaadi.in is india&#8217;s newest online&#8230;<br />
<img src="https://lh5.ggpht.com/IX2u9VcyaH0fLFYowM9a7vu9kCqHbDCnItChnViicTX-Mn0n7UHaVX-GRMrZBvsPmUgE=w615" border="0" alt="" width="617" height="300" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pariyani.com/archives/40/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JSF application with SEO friendly links</title>
		<link>http://blog.pariyani.com/archives/27</link>
		<comments>http://blog.pariyani.com/archives/27#comments</comments>
		<pubDate>Mon, 17 May 2010 11:39:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bookmarks]]></category>
		<category><![CDATA[JSF]]></category>
		<category><![CDATA[parameter]]></category>
		<category><![CDATA[SEO friendly links]]></category>
		<category><![CDATA[simplified navigation]]></category>
		<category><![CDATA[urlrewrite]]></category>

		<guid isPermaLink="false">http://blog.pariyani.com/?p=27</guid>
		<description><![CDATA[Having SEO friendly or bookmark links with your JSF application. To have a look at the converted links have a look at my application which is running on jsf <a href="http://www.usedgaadi.in/cars/">www.usedgaadi.in</a>]]></description>
			<content:encoded><![CDATA[<p>Nowadays having SEO friedly links is very important if you want to list higher on the search engines. And with JSF this can be a big pain in the a**. There is an extension available called prettyfaces. For my applicaiton i thought of first using prettyfaces rather then developing my own enhancement to save me some time. But then i ended up developing my own prettyfaces:) as i wanted some extra functionality specific to my application which wasn&#8217;t possible using prettyfaces.</p>
<p>So i have my own custom tag called  this tag along with some other params takes in the href paramter and rewrites it to a SEO friendly link and outputs it.</p>
<p>Then when this link is clicked you need to convert it back to the normal link for example with parameters. For that you need to have a servlet defined in your web.xml which gets the SEO friendly URL rewrites it to a normal url and then dispatches it to your faces servlet.</p>
<p>If you want to have a look at my application using this enhancement to convert the links to SEO friendly links visit <a href="http://www.usedgaadi.in/cars/">www.usedgaadi.in</a>, its running on JSF!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pariyani.com/archives/27/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Improving performance of a jsf App using page caching</title>
		<link>http://blog.pariyani.com/archives/24</link>
		<comments>http://blog.pariyani.com/archives/24#comments</comments>
		<pubDate>Mon, 17 May 2010 11:20:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ehcache]]></category>
		<category><![CDATA[exclude post request]]></category>
		<category><![CDATA[fragment caching]]></category>
		<category><![CDATA[jsf performance improvemnt]]></category>
		<category><![CDATA[page caching]]></category>
		<category><![CDATA[post request]]></category>

		<guid isPermaLink="false">http://blog.pariyani.com/?p=24</guid>
		<description><![CDATA[Improving performance of your jsf Application by caching your pages or some fragments using ehcache. ]]></description>
			<content:encoded><![CDATA[<p>If you are using hibernate or ejb, am sure you cache your entities using either ehcahce or JTreeCache or some other cache available. But to boost the performance you could also cache your pages or some fragments like some includes.</p>
<p>For my application i have used ehcache .. and for that everything is explained in detail <a href="http://ehcache.org/documentation/web_caching.html">here</a> </p>
<p>The only problem i encountered was that it also cached my post request .. in order to exclude all my post request from being cached i overrode the methode caclulatekey to return null for post requests .. Am sure there is some configuration variable which one could set in the web.xml or ehcache.xml but i was to lazy to search <img src='http://blog.pariyani.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  .. </p>
<pre class="brush: java;">
protected String calculateKey(HttpServletRequest httpRequest) {
        if (httpRequest.getMethod().equals(&quot;POST&quot;))
            return null; ...
</pre>
<p>You could then use some custom tag for caching some parts of your page. for e.g seam has a tag <s:cache>  you could also have a tag similar to that and cache your page fragments. </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pariyani.com/archives/24/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JSF 2.0,Spring 3.0.0 and Hibernate 3.3.2GA Putting them all togeather with minimal xml configuration!</title>
		<link>http://blog.pariyani.com/archives/7</link>
		<comments>http://blog.pariyani.com/archives/7#comments</comments>
		<pubDate>Fri, 05 Feb 2010 16:32:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JSF 2.0]]></category>
		<category><![CDATA[@Inject]]></category>
		<category><![CDATA[@ManagedBean]]></category>
		<category><![CDATA[@Repository]]></category>
		<category><![CDATA[@Scope]]></category>
		<category><![CDATA[Annotations]]></category>
		<category><![CDATA[Hibernate3.3.2]]></category>
		<category><![CDATA[JSF]]></category>
		<category><![CDATA[Spring 3.0.0]]></category>

		<guid isPermaLink="false">http://blog.pariyani.com/?p=7</guid>
		<description><![CDATA[Sample Application Which uses JSF 2.0, Spring 3.0.0 and Hibernate 3.3.2GA and also spring security. Everything is wired together just using the annotations.   ]]></description>
			<content:encoded><![CDATA[<p>I spent almost 2 days putting these three together to generate a test application. The beauty about this app is it dose not have any xml configuration file except of course the applicationcontext.xml for spring. And in that file also there is just the datasource defined. I thought of putting it down here in order to save somebody stumbling with the same some time.</p>
<p><strong>What Does the app do?</strong></p>
<p>well its just a test application. It shows how to wire everything together just using the annotations. and it also shows the Ajax functionality and the templating functionality of JSF 2.0. and it also inserts some test entity into the Database</p>
<p>Lets get directly dirty with the code</p>
<p>Lets start with the applicationContext.xml file ..</p>
<pre class="brush: xml;">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;
    xmlns:aop=&quot;http://www.springframework.org/schema/aop&quot;
    xmlns:context=&quot;http://www.springframework.org/schema/context&quot;
    xmlns:p=&quot;http://www.springframework.org/schema/p&quot;
    xmlns:tx=&quot;http://www.springframework.org/schema/tx&quot;
    xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
    xsi:schemaLocation=&quot;
       http://www.springframework.org/schema/beans
       http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
       http://www.springframework.org/schema/tx
       http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
       http://www.springframework.org/schema/aop
       http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
       http://www.springframework.org/schema/context
       http://www.springframework.org/schema/context/spring-context-3.0.xsd&quot;&gt;

    &lt;bean class=&quot;org.springframework.jdbc.datasource.DriverManagerDataSource&quot; id=&quot;dataSource&quot;
        p:driverClassName=&quot;${jdbc.driverClass}&quot; p:password=&quot;${jdbc.password}&quot; p:url=&quot;${jdbc.url}&quot;
        p:username=&quot;${jdbc.username}&quot;&gt; &lt;/bean&gt;
    &lt;bean class=&quot;org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean&quot;
        id=&quot;sessionFactory&quot; p:dataSource-ref=&quot;dataSource&quot;&gt;

        &lt;property name=&quot;annotatedClasses&quot;&gt;
            &lt;list&gt;
                &lt;value&gt;com.test.car.Car&lt;/value&gt;
            &lt;/list&gt;
        &lt;/property&gt;
        &lt;property name=&quot;hibernateProperties&quot;&gt;
            &lt;value&gt; hibernate.dialect=org.hibernate.dialect.MySQLDialect
                hibernate.show_sql=${jdbc.showSql} &lt;/value&gt;
        &lt;/property&gt;
    &lt;/bean&gt;

    &lt;bean class=&quot;org.springframework.orm.hibernate3.HibernateTransactionManager&quot;
        id=&quot;transactionManager&quot; p:sessionFactory-ref=&quot;sessionFactory&quot;/&gt;
    &lt;bean class=&quot;org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean&quot;
        id=&quot;entityManagerFactory&quot; lazy-init=&quot;false&quot; p:dataSource-ref=&quot;dataSource&quot;&gt;
        &lt;property name=&quot;persistenceUnitName&quot; value=&quot;testsource&quot;/&gt;
    &lt;/bean&gt;

    &lt;!-- Activates annotation-based bean configuration --&gt;
    &lt;context:annotation-config/&gt;

    &lt;!-- needed is for @Configurable --&gt;
    &lt;context:component-scan base-package=&quot;com.test&quot;/&gt;
    &lt;tx:annotation-driven/&gt;

    &lt;bean class=&quot;org.springframework.beans.factory.config.PropertyPlaceholderConfigurer&quot;&gt;
        &lt;property name=&quot;location&quot; value=&quot;classpath:jdbc.properties&quot;/&gt;
    &lt;/bean&gt;
&lt;/beans&gt;
</pre>
<p>As you see all you have done is defined your datasource and wired it with entityManagerFactory which will be used by hibernate. All the connection properties are comming from the file jdbc.properties which is looked up from the classpath so it has to be placed inside the classes directory within WEB-INF.  The next thing to do is to add the persistance.xml in META-INF folder which looks like this</p>
<pre class="brush: xml;">
&lt;persistence version=&quot;1.0&quot; xmlns=&quot;http://java.sun.com/xml/ns/persistence&quot;
    xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
    xsi:schemaLocation=&quot;http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd&quot;&gt;
    &lt;persistence-unit name=&quot;testsource&quot; transaction-type=&quot;RESOURCE_LOCAL&quot;&gt;
    	&lt;provider&gt;org.hibernate.ejb.HibernatePersistence&lt;/provider&gt;
        &lt;properties&gt;
            &lt;!--
             | The SQL dialect to use for this data source, use MySQL InnoDB as
             | we only use InnoDB tables for the entity beans.
             +--&gt;
            &lt;property name=&quot;hibernate.dialect&quot; value=&quot;org.hibernate.dialect.MySQLInnoDBDialect&quot;/&gt;
            &lt;!--
             | Specify the second level query cache for hibernate.
             +--&gt;
            &lt;!--
             | Enable query caching availability.
             +--&gt;
            &lt;!-- &lt;property name=&quot;hibernate.cache.use_query_cache&quot; value=&quot;true&quot;/&gt; --&gt;

        &lt;/properties&gt;
    &lt;/persistence-unit&gt;
&lt;/persistence&gt;
</pre>
<p>As you must have noticed here we only declare the persistence-unit name which is used by spring.<br />
And the last xml file is the faces-config.xml. i know i said just one configuration <img src='http://blog.pariyani.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> . here we dont define any beans or navaigation rules here we just have our resource bundle and the reslover for faces beans.</p>
<pre class="brush: xml;">
&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;faces-config xmlns=&quot;http://java.sun.com/xml/ns/javaee&quot;
              xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
              xsi:schemaLocation=&quot;http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd&quot;
              version=&quot;2.0&quot;&gt;
  &lt;application&gt;
  	&lt;el-resolver&gt;org.springframework.web.jsf.el.SpringBeanFacesELResolver&lt;/el-resolver&gt;
    &lt;resource-bundle&gt;
      &lt;base-name&gt;com.test.messages&lt;/base-name&gt;
      &lt;var&gt;msgs&lt;/var&gt;
    &lt;/resource-bundle&gt;
  &lt;/application&gt;
&lt;/faces-config&gt;
</pre>
<p>so now its all configured. Lets start with the entity class. It looks like this</p>
<pre class="brush: java;">
@Entity
@Table(name=&quot;user&quot;)
public class Car implements Serializable{

@Id
 @GeneratedValue(strategy = GenerationType.AUTO)
 private Long id;
@NotEmpty
 @Length(min=1,max=30)
 private String carName;
</pre>
<p>next is the DAOimpl class</p>
<pre class="brush: java;">
@Repository
public class CarDaoImpl implements CarDao{

 private EntityManager entityManagerFactory;

 @PersistenceContext
 void setEntityManager(EntityManager entityManager) {
 this.entityManagerFactory = entityManager;
 }

 public void addCar(Car car){

 this.entityManagerFactory.persist(car);

}
</pre>
<p>The @Repository annotation is yet another stereotype that was introduced in Spring 2.0 itself.   This annotation is used to indicate that a class functions as a repository.</p>
<p>then we have the spring service classes</p>
<pre class="brush: java;">
@Service
public class CarServiceImpl implements CarService{

 private final CarDao carDao;

 @Inject
 CarServiceImpl(CarDao carDao) {
 this.carDao = carDao;
 } ...
</pre>
<p>and finally the backing bean</p>
<pre class="brush: css;">
@ManagedBean(&quot;car&quot;)
@Scope(&quot;session&quot;)
public class CarSession {
 private Car car;

 public Car getCar() {
 return car;
 } ..
</pre>
<p>we use annotations for defining managed beans which otherwise would have been declared in ur config file so this significantly reduces your XML, but you can get rid of virtually all of it with JSF 2 through either annotations, as I&#8217;m doing for managed beans, or with convention, as is the case for JSF 2&#8217;s simplified navigation handling.<br />
so now we have everything in palce .. the only files left are the xhtml files </p>
<pre class="brush: xml;">
&lt;ui:composition xmlns=&quot;http://www.w3.org/1999/xhtml&quot;
   xmlns:ui=&quot;http://java.sun.com/jsf/facelets&quot;
   template=&quot;/template/masterLayout.xhtml&quot;&gt;

  &lt;ui:define name=&quot;menuLeft&quot;&gt;
    &lt;!-- &lt;ui:include src=&quot;/sections/login/menuLeft.xhtml&quot;/&gt;--&gt;
  &lt;/ui:define&gt;

  &lt;ui:define name=&quot;content&quot;&gt;
     &lt;ui:include src=&quot;/sections/welcome.xhtml&quot;/&gt;
  &lt;/ui:define&gt;

&lt;/ui:composition&gt;
</pre>
<p>and the file sections/welcome.xhtml looks like this.</p>
<pre class="brush: xml;">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
        &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;

&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;
	xmlns:f=&quot;http://java.sun.com/jsf/core&quot;
    xmlns:h=&quot;http://java.sun.com/jsf/html&quot;
    xmlns:ui=&quot;http://java.sun.com/jsf/facelets&quot;
    xmlns:util=&quot;http://java.sun.com/jsf/composite/components/util&quot;&gt;

	&lt;h:form id=&quot;form&quot; prependId=&quot;false&quot; &gt;
    &lt;h:panelGrid&gt;
    &lt;h:outputText value=&quot;#{i18n.prefs_country}&quot;/&gt;
            &lt;h:selectOneListbox id=&quot;company&quot; value=&quot;#{car.company}&quot; size=&quot;1&quot;&gt;
              &lt;f:selectItems value=&quot;#{facesSupport.carModels}&quot;/&gt;
              &lt;f:ajax render=&quot;model&quot;/&gt;
            &lt;/h:selectOneListbox&gt;
            &lt;h:outputText value=&quot;#{i18n.prefs_region}&quot;/&gt;
            &lt;h:selectOneListbox id=&quot;model&quot; value=&quot;#{car.model}&quot; style=&quot;width: 180px;&quot; size=&quot;1&quot;&gt;
              &lt;f:selectItems value=&quot;#{car.modelOptions}&quot;/&gt;
            &lt;/h:selectOneListbox&gt;
     &lt;/h:panelGrid&gt;
     &lt;h:commandButton id=&quot;loginButton&quot; value=&quot;save&quot; action=&quot;#{car.saveCar}&quot;/&gt;
&lt;/h:form&gt;&lt;/html&gt;
</pre>
<p>as you see how ajax is used to render the model drop box when ever the company box is changed.</p>
<p>the last thing left is the web.xml file </p>
<pre class="brush: xml;">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;web-app xmlns=&quot;http://java.sun.com/xml/ns/javaee&quot;
  xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
  version=&quot;2.5&quot;
  xsi:schemaLocation=&quot;http://java.sun.com/xml/ns/javaee
                      http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd&quot;&gt;

  &lt;context-param&gt;
    &lt;param-name&gt;javax.faces.PROJECT_STAGE&lt;/param-name&gt;
    &lt;param-value&gt;Development&lt;/param-value&gt;
  &lt;/context-param&gt;

	&lt;context-param&gt;
      &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
      &lt;param-value&gt;/WEB-INF/web-application-config.xml &lt;/param-value&gt;
  &lt;/context-param&gt;

  &lt;listener&gt;
      &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;
  &lt;/listener&gt;

  &lt;servlet&gt;
    &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
    &lt;servlet-class&gt;javax.faces.webapp.FacesServlet&lt;/servlet-class&gt;
    &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;

  &lt;servlet-mapping&gt;
    &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
    &lt;url-pattern&gt;/faces/*&lt;/url-pattern&gt;
    &lt;url-pattern&gt;*.faces&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;

  &lt;session-config&gt;
    &lt;session-timeout&gt;500000&lt;/session-timeout&gt;
  &lt;/session-config&gt;

  &lt;welcome-file-list&gt;
    &lt;welcome-file&gt;index.html&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;

&lt;/web-app&gt;
</pre>
<p>Thats it .. everything is in place. soon i will zip my test application and upload it so that its easier to go through the code.. </p>
<p>Well if there are any questions or suggestions feel free to leave a comment
</pre>
<p>Finally got some time to create a sample application .. you can download it from <a href="http://blog.pariyani.com/wp-content/uploads/sample.zip">here</a> have also included spring security 3.0 into it .. so enjoy <img src='http://blog.pariyani.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ..u can just change from .zip to .war and deploy the application ..but before that dont forget to change the properties file inside /WEB-INF/config add your database connection details there...  if there are any questions just write a comment  ... and ya .. the source is included inside the war file ... the war file has been tested with tomcat 6 just place it on webapps .. and point ur browser to http://localhost:8080/sample/index.html .. </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pariyani.com/archives/7/feed</wfw:commentRss>
		<slash:comments>71</slash:comments>
		</item>
		<item>
		<title>JavaScript Page Flip</title>
		<link>http://blog.pariyani.com/archives/1</link>
		<comments>http://blog.pariyani.com/archives/1#comments</comments>
		<pubDate>Thu, 16 Jul 2009 13:51:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[flip]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[page]]></category>
		<category><![CDATA[pageflip]]></category>

		<guid isPermaLink="false">http://blog.pariyani.com/?p=1</guid>
		<description><![CDATA[Came across these two javascript based page flipping effect tutorial .. so thought of posting it ..
this one has some nice effects and its totally flash free
http://www.jquerymagic.com/wp-content/uploads/jflip/
and this one
http://clickheredammit.com/pageflip/
]]></description>
			<content:encoded><![CDATA[<p>Came across these two javascript based page flipping effect tutorial .. so thought of posting it ..</p>
<p>this one has some nice effects and its totally flash free</p>
<p>http://www.jquerymagic.com/wp-content/uploads/jflip/</p>
<p>and this one</p>
<p>http://clickheredammit.com/pageflip/</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pariyani.com/archives/1/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
