<?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>ALLU</title>
	<atom:link href="http://allu.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://allu.wordpress.com</link>
	<description>Just another JAVA resource</description>
	<lastBuildDate>Thu, 26 Jan 2012 16:45:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='allu.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>ALLU</title>
		<link>http://allu.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://allu.wordpress.com/osd.xml" title="ALLU" />
	<atom:link rel='hub' href='http://allu.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Difference between Struts 1 &amp; Struts 2</title>
		<link>http://allu.wordpress.com/2009/10/30/difference-between-struts-1-struts-2/</link>
		<comments>http://allu.wordpress.com/2009/10/30/difference-between-struts-1-struts-2/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 19:30:46 +0000</pubDate>
		<dc:creator>Allu</dc:creator>
				<category><![CDATA[Struts]]></category>
		<category><![CDATA[Struts2]]></category>

		<guid isPermaLink="false">http://allu.wordpress.com/?p=92</guid>
		<description><![CDATA[Struts 1 Struts 2 Action classes Struts 1 requires Action classes to extend an abstract base class. A common problem in Struts 1 is programming to abstract classes instead of interfaces. An Struts 2 Action may implement an Action interface, along with other interfaces to enable optional and custom services. Struts 2 provide a base [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=allu.wordpress.com&amp;blog=239083&amp;post=92&amp;subd=allu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><strong></strong></td>
<td><strong>Struts 1</strong></td>
<td><strong>Struts 2</strong></td>
</tr>
<tr>
<td><strong>Action classes</strong></td>
<td>Struts 1 requires Action classes to extend an abstract base class. A common problem in Struts 1 is programming to abstract classes instead of interfaces.</td>
<td>An Struts 2 Action <em>may</em> implement an Action interface, along with other interfaces to enable optional and custom services. Struts 2 provide a base ActionSupport class to implement commonly used interfaces. Albeit, the Action interface is <strong>not</strong> required. Any POJO object with a execute signature can be used as an Struts 2 Action object.</td>
</tr>
<tr>
<td><strong>Threading Model</strong></td>
<td>Struts 1 Actions are singletons and must be thread-safe since there will only be one instance of a class to handle all requests for that Action. The singleton strategy places restrictions on what can be done with Struts 1 Actions and requires extra care to develop. Action resources must be thread-safe or synchronized.</td>
<td>Struts 2 Action objects are instantiated for each request, so there are no thread-safety issues. (In practice, servlet containers generate many throw-away objects per request, and one more object does not impose a performance penalty or impact garbage collection.)</td>
</tr>
<tr>
<td><strong>Servlet</strong><strong> Dependency</strong></td>
<td>Struts 1 Actions have dependencies on the servlet API since the HttpServletRequest and HttpServletResponse is passed to the execute method when an Action is invoked.</td>
<td>Struts 2 Actions are not coupled to a container. Most often the servlet contexts are represented as simple Maps, allowing Actions to be tested in isolation. Struts 2 Actions can still access the original request and response, if required. However, other architectural elements reduce or eliminate the need to access the HttpServetRequest or HttpServletResponse directly.</td>
</tr>
<tr>
<td><strong>Testability</strong></td>
<td>A major hurdle to testing Struts 1 Actions is that the execute method exposes the Servlet API. A third-party extension, Struts TestCase, offers a set of mock object for Struts 1.</td>
<td>Struts 2 Actions can be tested by instantiating the Action, setting properties, and invoking methods. Dependency Injection support also makes testing simpler.</td>
</tr>
<tr>
<td><strong>Harvesting Input</strong></td>
<td>Struts 1 uses an ActionForm object to capture input. Like Actions, all ActionForms must extend a base class. Since  other JavaBeans cannot be used as ActionForms, developers often create redundant classes to capture input. DynaBeans can used as an alternative to creating conventional ActionForm classes, but, here too, developers may be redescribing existing JavaBeans.</td>
<td>Struts 2 uses Action properties as input properties, eliminating the need for a second input object. Input properties may be rich object types which may have their own properties. The Action properties can be accessed from the web page via the taglibs. Struts 2 also support the ActionForm pattern, as well as POJO form objects and POJO Actions. Rich object types, including business or domain objects, can be used as input/output objects. The ModelDriven feature simplifies taglb references to POJO input objects.</td>
</tr>
<tr>
<td><strong>Expression Language</strong></td>
<td>Struts 1 integrates with JSTL, so it uses the JSTL EL. The EL has basic object graph traversal, but relatively weak collection and indexed property support.</td>
<td>Struts 2 can use JSTL, but the framework also supports a more powerful and flexible expression language called &#8220;Object Graph Notation Language&#8221; (OGNL).</td>
</tr>
<tr>
<td><strong>Binding values into views</strong></td>
<td>Struts 1 uses the standard JSP mechanism for binding objects into the page context for access.</td>
<td>Struts 2 uses a &#8220;ValueStack&#8221; technology so that the taglibs can access values without coupling your view to the object type it is rendering. The ValueStack strategy allows reuse of views across a range of types which may have the same property name but different property types.</td>
</tr>
<tr>
<td><strong>Type Conversion</strong></td>
<td>Struts 1 ActionForm properties are usually all Strings. Struts 1 uses Commons-Beanutils for type conversion. Converters are per-class, and not configurable per instance.</td>
<td>Struts 2 uses OGNL for type conversion. The framework includes converters for basic and common object types and primitives.</td>
</tr>
<tr>
<td><strong>Validation</strong></td>
<td>Struts 1 supports manual validation via a validate method on the ActionForm, or through an extension to the Commons Validator. Classes can have different validation contexts for the same class, but cannot chain to validations on sub-objects.</td>
<td>Struts 2 supports manual validation via the validate method and the XWork Validation framework. The Xwork Validation Framework supports chaining validation into sub-properties using the validations defined for the properties class type and the validation context.</td>
</tr>
<tr>
<td><strong>Control Of Action Execution</strong></td>
<td>Struts 1 supports separate Request Processors (lifecycles) for each module, but all the Actions in the module must share the same lifecycle.</td>
<td>Struts 2 supports creating different lifecycles on a per Action basis via Interceptor Stacks. Custom stacks can be created and used with different Actions, as needed.</td>
</tr>
</tbody>
</table>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/allu.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/allu.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/allu.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/allu.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/allu.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/allu.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/allu.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/allu.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/allu.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/allu.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/allu.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/allu.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/allu.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/allu.wordpress.com/92/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=allu.wordpress.com&amp;blog=239083&amp;post=92&amp;subd=allu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://allu.wordpress.com/2009/10/30/difference-between-struts-1-struts-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fd1b6e5eed55fe3b3f7c70fde1e8ac8b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">:)</media:title>
		</media:content>
	</item>
		<item>
		<title>J2EE 3-tier or n-tier architecture</title>
		<link>http://allu.wordpress.com/2007/08/18/j2ee-3-tier-or-n-tier-architecture/</link>
		<comments>http://allu.wordpress.com/2007/08/18/j2ee-3-tier-or-n-tier-architecture/#comments</comments>
		<pubDate>Sat, 18 Aug 2007 13:06:08 +0000</pubDate>
		<dc:creator>Allu</dc:creator>
				<category><![CDATA[J2EE]]></category>

		<guid isPermaLink="false">http://allu.wordpress.com/2007/08/18/j2ee-3-tier-or-n-tier-architecture/</guid>
		<description><![CDATA[The J2EE platform is a multi-tiered system. A tier is a logical or functional partitioning of a system. When the developers are not disciplined, the display logic, business logic and database logic are muddled up and/or duplicated in a 2- tier client server system. The advantages of the multi-tier architecture are: ·         Forced separation of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=allu.wordpress.com&amp;blog=239083&amp;post=86&amp;subd=allu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="margin-bottom:0;line-height:normal;" class="MsoNormal"><span style="font-size:12pt;font-family:'Times New Roman','serif';">The J2EE platform is a multi-tiered system. A tier is a logical or functional partitioning of a system. When the developers are not disciplined, the display logic, business logic and database logic are muddled up and/or duplicated in a 2- tier client server system. </span></p>
<p style="margin-bottom:0;line-height:normal;" class="MsoNormal"><span style="font-size:12pt;font-family:'Times New Roman','serif';">The advantages of the multi-tier architecture are:</span></p>
<p style="margin-bottom:0;text-indent:-0.25in;line-height:normal;" class="MsoListParagraphCxSpFirst"><span style="font-size:12pt;font-family:Symbol;">·<span style="font:7pt 'Times New Roman';">         </span></span><span style="font-size:12pt;font-family:'Times New Roman','serif';">Forced separation of user interface logic and business logic.</span></p>
<p style="margin-bottom:0;text-indent:-0.25in;line-height:normal;" class="MsoListParagraphCxSpMiddle"><span style="font-size:12pt;font-family:Symbol;">·<span style="font:7pt 'Times New Roman';">         </span></span><span style="font-size:12pt;font-family:'Times New Roman','serif';">Business logic sits on small number of centralized machines (may be just one).</span></p>
<p style="margin-bottom:0;text-indent:-0.25in;line-height:normal;" class="MsoListParagraphCxSpLast"><span style="font-size:12pt;font-family:Symbol;">·<span style="font:7pt 'Times New Roman';">         </span></span><span style="font-size:12pt;font-family:'Times New Roman','serif';">Easy to maintain, to manage, to scale, loosely coupled etc.</span></p>
<p style="margin-bottom:0;line-height:normal;" class="MsoNormal"><span style="font-size:12pt;font-family:'Times New Roman','serif';">Each tier is assigned a unique responsibility in a 3-tier system. Each tier is logically separated and loosely coupled from each other, and may be distributed.</span></p>
<p style="margin-bottom:0;line-height:normal;text-align:justify;" class="MsoNormal"><strong><span style="font-size:12pt;font-family:'Times New Roman','serif';">Client tier</span></strong><span style="font-size:12pt;font-family:'Times New Roman','serif';"> represents Web browser, a Java or other application, Applet, WAP phone etc. The client tier makes requests to the Web server who will be serving the request by either returning static content if it is present in the Web server or forwards the request to either Servlet or JSP in the application server for either static or dynamic content.</span></p>
<p style="margin-bottom:0;line-height:normal;text-align:justify;" class="MsoNormal"><strong><span style="font-size:12pt;font-family:'Times New Roman','serif';">Presentation tier</span></strong><span style="font-size:12pt;font-family:'Times New Roman','serif';"> encapsulates the presentation logic required to serve clients. A Servlet or JSP in the presentation tier intercepts client requests, manages logons, sessions, accesses the business services, and finally constructs a response, which gets delivered to client.</span></p>
<p style="margin-bottom:0;line-height:normal;text-align:justify;" class="MsoNormal"><strong><span style="font-size:12pt;font-family:'Times New Roman','serif';">Business tier</span></strong><span style="font-size:12pt;font-family:'Times New Roman','serif';"> provides the business services. This tier contains the business logic and the business data. All the business logic is centralized into this tier as opposed to 2-tier systems where the business logic is scattered between the front end and the backend. The benefit of having a centralized business tier is that same business logic can support different types of clients like browser, WAP, other stand-alone applications etc. </span></p>
<p style="margin-bottom:0;line-height:normal;text-align:justify;" class="MsoNormal"><strong><span style="font-size:12pt;font-family:'Times New Roman','serif';">Integration tier</span></strong><span style="font-size:12pt;font-family:'Times New Roman','serif';"> is responsible for communicating with external resources such as databases, legacy systems, ERP systems, messaging systems like MQSeries etc. The components in this tier use JDBC, JMS, J2EE Connector Architecture (JCA) and some proprietary middleware to access the resource tier.</span></p>
<p style="margin-bottom:0;line-height:normal;text-align:justify;" class="MsoNormal"><strong><span style="font-size:12pt;font-family:'Times New Roman','serif';">Resource tier</span></strong><span style="font-size:12pt;font-family:'Times New Roman','serif';"> is the external resource such as a database, ERP system, Mainframe system etc responsible for storing the data. This tier is also known as Data Tier or EIS (Enterprise Information System) Tier.</span></p>
<p style="margin-bottom:0;line-height:normal;text-align:justify;" class="MsoNormal"><span style="font-size:12pt;font-family:'Times New Roman','serif';"><img src="http://allu.files.wordpress.com/2007/08/j2eetiers.gif?w=460" alt="j2eetiers.gif" /></span></p>
<p><span style="font-size:12pt;font-family:'Times New Roman','serif';"></p>
<p style="margin-bottom:0;line-height:normal;text-align:justify;" class="MsoNormal"><strong><span style="font-size:12pt;font-family:'Times New Roman',serif;">The advantages of a 3-tiered or n-tiered application: </span></strong><span style="font-size:12pt;font-family:'Times New Roman',serif;">3-tier or multi-tier architectures force separation among presentation logic, business logic and database logic. Let us look at some of the key benefits:</span></p>
<p style="margin-bottom:0;text-indent:-0.25in;line-height:normal;text-align:justify;" class="MsoListParagraphCxSpFirst"><span style="font-size:12pt;font-family:Symbol;">·<span style="font:7pt 'Times New Roman';">         </span></span><strong><span style="font-size:12pt;font-family:'Times New Roman',serif;">Manageability: </span></strong><span style="font-size:12pt;font-family:'Times New Roman',serif;">Each tier can be monitored, tuned and upgraded independently and different people can have clearly defined responsibilities.</span></p>
<p style="margin-bottom:0;text-indent:-0.25in;line-height:normal;text-align:justify;" class="MsoListParagraphCxSpMiddle"><span style="font-size:12pt;font-family:Symbol;">·<span style="font:7pt 'Times New Roman';">         </span></span><strong><span style="font-size:12pt;font-family:'Times New Roman','serif';">Scalability</span></strong><span style="font-size:12pt;font-family:'Times New Roman','serif';">: More hardware can be added and allows clustering (i.e. horizontal scaling).</span></p>
<p style="margin-bottom:0;text-indent:-0.25in;line-height:normal;text-align:justify;" class="MsoListParagraphCxSpMiddle"><span style="font-size:12pt;font-family:Symbol;">·<span style="font:7pt 'Times New Roman';">         </span></span><strong><span style="font-size:12pt;font-family:'Times New Roman','serif';">Maintainability</span></strong><span style="font-size:12pt;font-family:'Times New Roman','serif';">: Changes and upgrades can be performed without affecting other components.</span></p>
<p style="margin-bottom:0;text-indent:-0.25in;line-height:normal;text-align:justify;" class="MsoListParagraphCxSpMiddle"><span style="font-size:12pt;font-family:Symbol;">·<span style="font:7pt 'Times New Roman';">         </span></span><strong><span style="font-size:12pt;font-family:'Times New Roman','serif';">Availability</span></strong><span style="font-size:12pt;font-family:'Times New Roman','serif';">: Clustering and load balancing can provide availability.</span></p>
<p style="margin-bottom:0;text-indent:-0.25in;line-height:normal;text-align:justify;" class="MsoListParagraphCxSpLast"><span style="font-size:12pt;font-family:Symbol;">·<span style="font:7pt 'Times New Roman';">         </span></span><strong><span style="font-size:12pt;font-family:'Times New Roman','serif';">Extensibility</span></strong><span style="font-size:12pt;font-family:'Times New Roman','serif';">: Additional features can be easily added.</span></p>
<p></span></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/allu.wordpress.com/86/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/allu.wordpress.com/86/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/allu.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/allu.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/allu.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/allu.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/allu.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/allu.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/allu.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/allu.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/allu.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/allu.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/allu.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/allu.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/allu.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/allu.wordpress.com/86/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=allu.wordpress.com&amp;blog=239083&amp;post=86&amp;subd=allu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://allu.wordpress.com/2007/08/18/j2ee-3-tier-or-n-tier-architecture/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fd1b6e5eed55fe3b3f7c70fde1e8ac8b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">:)</media:title>
		</media:content>

		<media:content url="http://allu.files.wordpress.com/2007/08/j2eetiers.gif" medium="image">
			<media:title type="html">j2eetiers.gif</media:title>
		</media:content>
	</item>
		<item>
		<title>Constructor</title>
		<link>http://allu.wordpress.com/2007/06/18/constructor/</link>
		<comments>http://allu.wordpress.com/2007/06/18/constructor/#comments</comments>
		<pubDate>Mon, 18 Jun 2007 15:58:42 +0000</pubDate>
		<dc:creator>Allu</dc:creator>
				<category><![CDATA[JAVA]]></category>

		<guid isPermaLink="false">http://allu.wordpress.com/2007/06/18/constructor/</guid>
		<description><![CDATA[The automatic initialization is performed through the constructor, constructor has same name has class name. Constructor has no return type not even void. We can pass the parameters to the constructor. this() is used to invoke a constructor of the same class. Super() is used to invoke a super class constructor. Constructor is called immediately [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=allu.wordpress.com&amp;blog=239083&amp;post=80&amp;subd=allu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><font size="2" face="Arial"></p>
<p align="left">The automatic initialization is performed through the constructor, constructor has same name has class name. Constructor has no return type not even void. We can pass the parameters to the constructor. this() is used to invoke a constructor of the same class. Super() is used to invoke a super class constructor. Constructor is called immediately after the object is created before the new operator completes.</p>
<p></font><font size="2" face="Wingdings"></p>
<p align="left"> <font size="2" face="Arial">Constructor </font><strong><font size="2" face="Arial">can use </font></strong><font size="2" face="Arial">the access modifiers </font><strong><font size="2" face="Arial">public, protected, private </font></strong><font size="2" face="Arial">or </font><strong><font size="2" face="Arial">have no access modifier</font></strong></p>
<p></font><font size="2" face="Wingdings"></p>
<p align="left"> <font size="2" face="Arial">Constructor </font><strong><font size="2" face="Arial">can not </font></strong><font size="2" face="Arial">use the modifiers </font><strong><font size="2" face="Arial">abstract, static, final, native, synchronized </font></strong><font size="2" face="Arial">or </font><strong><font size="2" face="Arial">strictfp</font></strong></p>
<p></font><font size="2" face="Wingdings"></p>
<p align="left"> <font size="2" face="Arial">Constructor </font><strong><font size="2" face="Arial">can be overloaded</font></strong><font size="2" face="Arial">, we </font><strong><font size="2" face="Arial">cannot override</font></strong><font size="2" face="Arial">.</font></p>
<p></font><font size="2" face="Wingdings"> <font size="2" face="Arial">You cannot use </font><strong><font size="2" face="Arial">this() </font></strong><font size="2" face="Arial">and </font><strong><font size="2" face="Arial">Super() </font></strong><font size="2" face="Arial">in the same constructor.</font></p>
<p></font></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/allu.wordpress.com/80/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/allu.wordpress.com/80/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/allu.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/allu.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/allu.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/allu.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/allu.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/allu.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/allu.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/allu.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/allu.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/allu.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/allu.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/allu.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/allu.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/allu.wordpress.com/80/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=allu.wordpress.com&amp;blog=239083&amp;post=80&amp;subd=allu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://allu.wordpress.com/2007/06/18/constructor/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fd1b6e5eed55fe3b3f7c70fde1e8ac8b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">:)</media:title>
		</media:content>
	</item>
		<item>
		<title>What is the Max amount of information that can be saved in a Session Object?</title>
		<link>http://allu.wordpress.com/2007/02/07/what-is-the-max-amount-of-information-that-can-be-saved-in-a-session-object/</link>
		<comments>http://allu.wordpress.com/2007/02/07/what-is-the-max-amount-of-information-that-can-be-saved-in-a-session-object/#comments</comments>
		<pubDate>Wed, 07 Feb 2007 17:58:50 +0000</pubDate>
		<dc:creator>Allu</dc:creator>
				<category><![CDATA[J2EE]]></category>

		<guid isPermaLink="false">http://allu.wordpress.com/2007/02/07/what-is-the-max-amount-of-information-that-can-be-saved-in-a-session-object/</guid>
		<description><![CDATA[As such there is no limit on the amount of information that can be saved in a Session Object. Only the RAM available on the server machine is the limitation. The only limit is the Session ID length(Identifier), which should not exceed more than 4K. If the data to be store is very huge, then [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=allu.wordpress.com&amp;blog=239083&amp;post=78&amp;subd=allu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:10pt;font-family:Verdana;">As such there is no limit on the amount of information that can be saved in a Session Object. Only the RAM available on the server machine is the limitation. The only limit is the Session ID length(Identifier), which should not exceed more than 4K. If the data to be store is very huge, then it&#8217;s preferred to save it to a temporary file onto hard disk, rather than saving it in session. Internally if the amount of data being saved in Session exceeds the predefined limit, most of the servers write it to a temporary cache on Hard disk. </span></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/allu.wordpress.com/78/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/allu.wordpress.com/78/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/allu.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/allu.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/allu.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/allu.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/allu.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/allu.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/allu.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/allu.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/allu.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/allu.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/allu.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/allu.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/allu.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/allu.wordpress.com/78/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=allu.wordpress.com&amp;blog=239083&amp;post=78&amp;subd=allu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://allu.wordpress.com/2007/02/07/what-is-the-max-amount-of-information-that-can-be-saved-in-a-session-object/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fd1b6e5eed55fe3b3f7c70fde1e8ac8b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">:)</media:title>
		</media:content>
	</item>
		<item>
		<title>Difference between session and cookie?</title>
		<link>http://allu.wordpress.com/2007/02/07/difference-between-session-and-cookie/</link>
		<comments>http://allu.wordpress.com/2007/02/07/difference-between-session-and-cookie/#comments</comments>
		<pubDate>Wed, 07 Feb 2007 17:55:19 +0000</pubDate>
		<dc:creator>Allu</dc:creator>
				<category><![CDATA[J2EE]]></category>

		<guid isPermaLink="false">http://allu.wordpress.com/2007/02/07/difference-between-session-and-cookie/</guid>
		<description><![CDATA[1) session should work regardless of the settings on the client browser. even if users decide to forbid the cookie (through browser settings) session still works. there is no way to disable sessions from the client browser. 2) session and cookies differ in type and amount of information they are capable of storing. Javax.servlet.http.Cookie class [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=allu.wordpress.com&amp;blog=239083&amp;post=77&amp;subd=allu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:10pt;font-family:Verdana;">1) session should work regardless of the settings on the client browser. even if users decide to forbid the cookie (through browser settings) session still works. there is no way to disable sessions from the client browser.<br />
2) session and cookies differ in type and amount of information they are capable of storing.<br />
Javax.servlet.http.Cookie class has a setValue() method that accepts Strings. javax.servlet.http.HttpSession has a setAttribute() method which takes a String to denote the name and java.lang.Object which means that HttpSession is capable of storing any java object. Cookie can only store String objects. </span></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/allu.wordpress.com/77/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/allu.wordpress.com/77/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/allu.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/allu.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/allu.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/allu.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/allu.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/allu.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/allu.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/allu.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/allu.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/allu.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/allu.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/allu.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/allu.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/allu.wordpress.com/77/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=allu.wordpress.com&amp;blog=239083&amp;post=77&amp;subd=allu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://allu.wordpress.com/2007/02/07/difference-between-session-and-cookie/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fd1b6e5eed55fe3b3f7c70fde1e8ac8b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">:)</media:title>
		</media:content>
	</item>
		<item>
		<title>Difference between ArrayList and Vector?</title>
		<link>http://allu.wordpress.com/2007/02/07/difference-between-arraylist-and-vector/</link>
		<comments>http://allu.wordpress.com/2007/02/07/difference-between-arraylist-and-vector/#comments</comments>
		<pubDate>Wed, 07 Feb 2007 17:39:08 +0000</pubDate>
		<dc:creator>Allu</dc:creator>
				<category><![CDATA[JAVA]]></category>

		<guid isPermaLink="false">http://allu.wordpress.com/2007/02/07/difference-between-arraylist-and-vector/</guid>
		<description><![CDATA[Internally, both the ArrayList and Vector hold onto their contents using an Array. A Vector defaults to doubling the size of its array, while the ArrayList increases its array size by 50 percent. ArrayList doesn&#8217;t have a constructor for specifying the incremental capacity, where as Vector has a constructor to specify the initial capacity and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=allu.wordpress.com&amp;blog=239083&amp;post=76&amp;subd=allu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<ul>
<li><span style="font-size:10pt;font-family:Verdana;">Internally, both the ArrayList and Vector hold onto their contents using an Array. A Vector defaults to doubling the size of its array, while the ArrayList increases its array size by 50 percent. </span></li>
<li><span style="font-size:10pt;font-family:Verdana;">ArrayList doesn&#8217;t have a constructor for specifying the incremental capacity, where as Vector has a constructor to specify the initial capacity and incremental capacity. </span></li>
<li><span style="font-size:10pt;font-family:Verdana;">Vector is synchronized where as ArrayList is not synchronized </span></li>
</ul>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/allu.wordpress.com/76/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/allu.wordpress.com/76/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/allu.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/allu.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/allu.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/allu.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/allu.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/allu.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/allu.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/allu.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/allu.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/allu.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/allu.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/allu.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/allu.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/allu.wordpress.com/76/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=allu.wordpress.com&amp;blog=239083&amp;post=76&amp;subd=allu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://allu.wordpress.com/2007/02/07/difference-between-arraylist-and-vector/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fd1b6e5eed55fe3b3f7c70fde1e8ac8b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">:)</media:title>
		</media:content>
	</item>
		<item>
		<title>Types of Servlets</title>
		<link>http://allu.wordpress.com/2007/01/23/types-of-servlets/</link>
		<comments>http://allu.wordpress.com/2007/01/23/types-of-servlets/#comments</comments>
		<pubDate>Tue, 23 Jan 2007 18:31:23 +0000</pubDate>
		<dc:creator>Allu</dc:creator>
				<category><![CDATA[Servlets]]></category>

		<guid isPermaLink="false">http://allu.wordpress.com/2007/01/23/types-of-servlets/</guid>
		<description><![CDATA[Servlets must implement the interface javax.servlet.Servlet. There are two main types of servlets: Generic servlets extend javax.servlet.GenericServlet. Generic servlets are protocol independent, meaning that they contain no inherent support for HTTP or any other transport protocol.  HTTP servlets extend javax.servlet.HttpServlet. These servlets have built-in support for the HTTP protocol and are much more useful in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=allu.wordpress.com&amp;blog=239083&amp;post=72&amp;subd=allu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-family:Times New Roman;">Servlets must implement the interface javax.servlet.Servlet. There are two main types of servlets:</span></p>
<ul>
<li><font face="Times New Roman"><strong>Generic servlets</strong> extend javax.servlet.GenericServlet. Generic servlets are protocol independent, meaning that they contain no inherent support for HTTP or any other transport protocol.  </font></li>
<li><font face="Times New Roman"><strong>HTTP servlets</strong> extend javax.servlet.HttpServlet. These servlets have built-in support for the HTTP protocol and are much more useful in an Browser environment </font></li>
</ul>
<p class="MsoNormal">Servlets that extend <em>HttpServlet</em> are much more useful in an HTTP environment, since that is what they were designed for. We recommend that all  Servlets extend from <em>HttpServlet</em> rather than from <em>GenericServlet </em>in order to take advantage of this built-in HTTP support.</p>
<p><span style="font-family:Times New Roman;">For both types of Servlets, you can implement the constructor method init() and/or the destructor method destroy() if you need to initialize or deallocate resources. </span></p>
<p><span style="font-family:Times New Roman;">All Servlets must implement a service() method. This method is responsible for handling requests made to the Servlet. For generic Servlets, you simply override the service() method to provide routines for handling requests. HTTP Servlets provide a service method that automatically routes the request to another method in the servlet based on which HTTP transfer method is used, so for HTTP Servlets you would override doPost() to process POST requests, doGet() to process GET requests, and so on.</span></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/allu.wordpress.com/72/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/allu.wordpress.com/72/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/allu.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/allu.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/allu.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/allu.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/allu.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/allu.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/allu.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/allu.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/allu.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/allu.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/allu.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/allu.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/allu.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/allu.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=allu.wordpress.com&amp;blog=239083&amp;post=72&amp;subd=allu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://allu.wordpress.com/2007/01/23/types-of-servlets/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fd1b6e5eed55fe3b3f7c70fde1e8ac8b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">:)</media:title>
		</media:content>
	</item>
		<item>
		<title>Difference between preemptive scheduling and time slicing</title>
		<link>http://allu.wordpress.com/2007/01/23/difference-between-preemptive-scheduling-and-time-slicing/</link>
		<comments>http://allu.wordpress.com/2007/01/23/difference-between-preemptive-scheduling-and-time-slicing/#comments</comments>
		<pubDate>Tue, 23 Jan 2007 18:16:15 +0000</pubDate>
		<dc:creator>Allu</dc:creator>
				<category><![CDATA[JAVA]]></category>

		<guid isPermaLink="false">http://allu.wordpress.com/2007/01/23/difference-between-preemptive-scheduling-and-time-slicing/</guid>
		<description><![CDATA[Under preemptive scheduling, the highest priority task executes until it enters the waiting or dead states or a higher priority task comes into existence. Under time slicing, a task executes for a predefined slice of time and then reenters the pool of ready tasks. The scheduler then determines which task should execute next, based on [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=allu.wordpress.com&amp;blog=239083&amp;post=69&amp;subd=allu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="margin:0;" class="MsoNormal"><font face="Times New Roman">Under preemptive scheduling, the highest priority task executes until it enters the waiting or dead states or a higher priority task comes into existence. Under time slicing, a task executes for a predefined slice of time and then reenters the pool of ready tasks. The scheduler then determines which task should execute next, based on priority and other factors. </font></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/allu.wordpress.com/69/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/allu.wordpress.com/69/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/allu.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/allu.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/allu.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/allu.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/allu.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/allu.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/allu.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/allu.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/allu.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/allu.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/allu.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/allu.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/allu.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/allu.wordpress.com/69/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=allu.wordpress.com&amp;blog=239083&amp;post=69&amp;subd=allu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://allu.wordpress.com/2007/01/23/difference-between-preemptive-scheduling-and-time-slicing/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fd1b6e5eed55fe3b3f7c70fde1e8ac8b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">:)</media:title>
		</media:content>
	</item>
		<item>
		<title>Difference between the getRequestDispatcher(String path) method of javax.servlet.ServletRequest interface and javax.servlet.ServletContext interface?</title>
		<link>http://allu.wordpress.com/2007/01/03/difference-between-the-getrequestdispatcherstring-path-method-of-javaxservletservletrequest-interface-and-javaxservletservletcontext-interface/</link>
		<comments>http://allu.wordpress.com/2007/01/03/difference-between-the-getrequestdispatcherstring-path-method-of-javaxservletservletrequest-interface-and-javaxservletservletcontext-interface/#comments</comments>
		<pubDate>Wed, 03 Jan 2007 18:36:24 +0000</pubDate>
		<dc:creator>Allu</dc:creator>
				<category><![CDATA[Servlets]]></category>

		<guid isPermaLink="false">http://allu.wordpress.com/2007/01/03/difference-between-the-getrequestdispatcherstring-path-method-of-javaxservletservletrequest-interface-and-javaxservletservletcontext-interface/</guid>
		<description><![CDATA[The getRequestDispatcher(String path) method of javax.servlet.ServletRequest interface accepts parameter the path to the resource to be included or forwarded to, which can be relative to the request of the calling servlet. If the path begins with a &#8220;/&#8221; it is interpreted as relative to the current context root. The getRequestDispatcher(String path) method of javax.servlet.ServletContext interface [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=allu.wordpress.com&amp;blog=239083&amp;post=66&amp;subd=allu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana;">The <strong>getRequestDispatcher(String path)</strong> method of <strong>javax.servlet.ServletRequest interface</strong> accepts parameter the path to the resource to be included or forwarded to, which can be relative to the request of the calling servlet. If the path begins with a &#8220;/&#8221; it is interpreted as relative to the current context root.<br />
The <strong>getRequestDispatcher(String path)</strong> method of <strong>javax.servlet.ServletContext interface</strong> cannot accepts relative paths.</span></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/allu.wordpress.com/66/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/allu.wordpress.com/66/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/allu.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/allu.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/allu.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/allu.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/allu.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/allu.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/allu.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/allu.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/allu.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/allu.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/allu.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/allu.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/allu.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/allu.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=allu.wordpress.com&amp;blog=239083&amp;post=66&amp;subd=allu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://allu.wordpress.com/2007/01/03/difference-between-the-getrequestdispatcherstring-path-method-of-javaxservletservletrequest-interface-and-javaxservletservletcontext-interface/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fd1b6e5eed55fe3b3f7c70fde1e8ac8b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">:)</media:title>
		</media:content>
	</item>
		<item>
		<title>Difference between SAX and DOM parsers?</title>
		<link>http://allu.wordpress.com/2006/12/28/difference-between-sax-and-dom-parsers/</link>
		<comments>http://allu.wordpress.com/2006/12/28/difference-between-sax-and-dom-parsers/#comments</comments>
		<pubDate>Thu, 28 Dec 2006 16:02:43 +0000</pubDate>
		<dc:creator>Allu</dc:creator>
				<category><![CDATA[JAVA]]></category>

		<guid isPermaLink="false">http://allu.wordpress.com/2006/12/28/difference-between-sax-and-dom-parsers/</guid>
		<description><![CDATA[SAX Parser: ·        A SAX (Simple API for XML) parser does not create any internal structure. Instead, it takes the occurrences of components of an input document as events, and tells the client what it reads as it reads through the input document. ·        A SAX parser serves the client application always only with pieces [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=allu.wordpress.com&amp;blog=239083&amp;post=65&amp;subd=allu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal"><strong>SAX Parser: </strong></p>
<p style="margin-left:0.25in;text-indent:-0.25in;" class="MsoNormal"><span style="font-family:Symbol;">·<span style="font:7pt 'Times New Roman';">        </span></span>A SAX (<strong>S</strong>imple <strong>A</strong>PI for <strong>X</strong>ML) parser does not create any internal structure. Instead, it takes the occurrences of components of an input document <strong>as events</strong>, and tells the client what it reads as it reads through the input document.</p>
<p style="margin-left:0.25in;text-indent:-0.25in;" class="MsoNormal"><span style="font-family:Symbol;">·<span style="font:7pt 'Times New Roman';">        </span></span>A SAX parser serves the client application always only with pieces of the document at any given time.</p>
<p style="margin-left:0.25in;text-indent:-0.25in;" class="MsoNormal"><span style="font-family:Symbol;">·<span style="font:7pt 'Times New Roman';">        </span></span>A SAX parser, however, is much more space efficient in case of a big input document (because it creates no internal structure). What&#8217;s more, it runs faster and is easier to learn than DOM parser because its API is really simple. But from the functionality point of view, it provides a fewer functions, which means that the users themselves have to take care of more, such as creating their own data structures.</p>
<p class="MsoNormal"><strong><span style="font-size:10pt;color:black;font-family:Arial,Bold;">DOM Parser: </span></strong></p>
<p style="margin-left:0.25in;text-indent:-0.25in;" class="MsoNormal"><span style="font-family:Symbol;">·<span style="font:7pt 'Times New Roman';">        </span></span>A DOM (Document Object Model) parser creates a tree structure in memory from an input document and then waits for requests from client.</p>
<p style="margin-left:0.25in;text-indent:-0.25in;" class="MsoNormal"><span style="font-family:Symbol;">·<span style="font:7pt 'Times New Roman';">        </span></span>A DOM parser always serves the client application with the entire document no matter how much is actually needed by the client.</p>
<p style="margin-left:0.25in;text-indent:-0.25in;" class="MsoNormal"><span style="font-family:Symbol;">·<span style="font:7pt 'Times New Roman';">        </span></span>A DOM parser is rich in functionality. It creates a DOM tree in memory and allows you to access any part of the document repeatedly and allows you to modify the DOM tree. But it is space inefficient when the document is huge, and it takes a little bit longer to learn how to work with it.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/allu.wordpress.com/65/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/allu.wordpress.com/65/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/allu.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/allu.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/allu.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/allu.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/allu.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/allu.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/allu.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/allu.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/allu.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/allu.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/allu.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/allu.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/allu.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/allu.wordpress.com/65/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=allu.wordpress.com&amp;blog=239083&amp;post=65&amp;subd=allu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://allu.wordpress.com/2006/12/28/difference-between-sax-and-dom-parsers/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fd1b6e5eed55fe3b3f7c70fde1e8ac8b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">:)</media:title>
		</media:content>
	</item>
	</channel>
</rss>
