<?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>Appus's Weblog</title>
	<atom:link href="http://appus.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://appus.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Fri, 25 Nov 2011 04:51:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='appus.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Appus's Weblog</title>
		<link>http://appus.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://appus.wordpress.com/osd.xml" title="Appus&#039;s Weblog" />
	<atom:link rel='hub' href='http://appus.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Core Tag Simple Examples</title>
		<link>http://appus.wordpress.com/2009/12/03/core-tag-simple-examples/</link>
		<comments>http://appus.wordpress.com/2009/12/03/core-tag-simple-examples/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 05:48:29 +0000</pubDate>
		<dc:creator>appus</dc:creator>
				<category><![CDATA[JSP]]></category>

		<guid isPermaLink="false">http://appus.wordpress.com/?p=34</guid>
		<description><![CDATA[For using core tags in JSP, first put “jstl.jar” and “standard.jar” in the WEB-INF/lib directory of the web application. Then you have to include the taglib directive in JSP as  &#60;%@ taglib uri =&#8221;http://java.sun.com/jstl/core&#8221; prefix =&#8221;c&#8221; %&#62; Here the uri is nothing but the uri specified in the c.tld file (c.tld is there in standard.jar). [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=appus.wordpress.com&amp;blog=3828122&amp;post=34&amp;subd=appus&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For using core tags in JSP, first put “jstl.jar” and “standard.jar” in the WEB-INF/lib directory of the web application. Then you have to include the taglib directive in JSP as</p>
<p> &lt;%@ <strong>taglib uri =&#8221;http://java.sun.com/jstl/core&#8221; prefix =&#8221;c&#8221;</strong> %&gt;</p>
<p>Here the uri is nothing but the uri specified in the c.tld file (c.tld is there in standard.jar). You can give any value as prefix other than the reserved words <strong>jsp, jspx, java, javax, servlet, sun, sunw</strong>. Whatever we are giving as prefix, it should come before the tag. Like if you are giving a prefix ‘s’ then the tag ‘out’ will be written as ‘s:out’ rather than ‘c:out’. </p>
<p>Below are some core tags and their simple usage. Though it is not required to see the tld file for using simple tags, it is good idea to do so to have a better understanding.</p>
<p><strong>1) out tag. See the tag description in c.tld</strong></p>
<p> &lt;tag&gt;<br />
    &lt;name&gt;out&lt;/name&gt;<br />
    &lt;tag-class&gt;org.apache.taglibs.standard.tag.el.core.OutTag&lt;/tag-class&gt;<br />
    &lt;body-content&gt;JSP&lt;/body-content&gt;<br />
    &lt;description&gt;<br />
 Like &amp;lt;%= &#8230; &amp;gt;, but for expressions.<br />
    &lt;/description&gt;<br />
    &lt;attribute&gt;<br />
        &lt;name&gt;value&lt;/name&gt;<br />
        &lt;required&gt;true&lt;/required&gt;<br />
        &lt;rtexprvalue&gt;true&lt;/rtexprvalue&gt;<br />
    &lt;/attribute&gt;<br />
    &lt;attribute&gt;<br />
        &lt;name&gt;default&lt;/name&gt;<br />
        &lt;required&gt;false&lt;/required&gt;<br />
        &lt;rtexprvalue&gt;true&lt;/rtexprvalue&gt;<br />
    &lt;/attribute&gt;<br />
    &lt;attribute&gt;<br />
        &lt;name&gt;escapeXml&lt;/name&gt;<br />
        &lt;required&gt;false&lt;/required&gt;<br />
        &lt;rtexprvalue&gt;false&lt;/rtexprvalue&gt;<br />
    &lt;/attribute&gt;<br />
  &lt;/tag&gt;</p>
<p>Here the &lt;name&gt; is nothing but name of the tag<br />
&lt;tag-class&gt; specifies the name of the tag handler class.<br />
&lt;body-content&gt; specifies whether the tag can have a body or not. Here the value ‘JSP’ tells that the tag ‘out’ can have a JSP body.<br />
&lt;attribute&gt; element specifies the attributes that a tag can have.<br />
&lt;name&gt; is the name of the attribute<br />
&lt;required&gt; specifies whether the attribute is mandatory or not. If it is true, we have to provide a value for that attribute.<br />
&lt;rtexprvalue&gt; specifies whether the attribute can take request time expressions or not.</p>
<p>The attribute <strong>default</strong> is being used for passing a default value to the tag. In case the value attribute is null the tag will display the default value.</p>
<p><strong>escapeXml</strong> tells whether the xml has to be rendered or not while displaying the value.</p>
<p>From the above description it is clear that the &#8216;out&#8217; tag can have a JSP body and it has a mandatory attribute value. The tag is used for display values in JSP.  The value to be displayed should be passed as the attribute <strong>value</strong> to the tag.</p>
<p>&lt;%@ taglib uri =&#8221;<a href="http://java.sun.com/jstl/core">http://java.sun.com/jstl/core</a>&#8221; prefix =&#8221;c&#8221; %&gt;<br />
&lt;html&gt;<br />
&lt;body&gt;<br />
&lt;c:out value =&#8221;Welcome to Core Tags&#8221; /&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p>Usage of escapeXml.</p>
<p>Try this &lt;c:out value =&#8221;&lt;b&gt;Welcome to Core Tags&lt;/b&gt;&#8221; /&gt;. On running the same you can see the &lt;b&gt; tags being displayed on screen. The XML is displayed as a text.</p>
<p>Try this &lt;c:out value =&#8221;&lt;b&gt;Welcome to Core Tags&lt;/b&gt;&#8221; escapeXml = &#8220;false&#8221;/&gt;. On running the same you can see the &lt;b&gt; tags are gone and the text is displayed in bold. Here the XML is being rendered. By default escapeXml is set to  true.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/appus.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/appus.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/appus.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/appus.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/appus.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/appus.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/appus.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/appus.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/appus.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/appus.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/appus.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/appus.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/appus.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/appus.wordpress.com/34/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=appus.wordpress.com&amp;blog=3828122&amp;post=34&amp;subd=appus&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://appus.wordpress.com/2009/12/03/core-tag-simple-examples/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f093c2799d128127dcf39b60e1a25bc3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">appus</media:title>
		</media:content>
	</item>
		<item>
		<title>Technical</title>
		<link>http://appus.wordpress.com/2008/05/30/22/</link>
		<comments>http://appus.wordpress.com/2008/05/30/22/#comments</comments>
		<pubDate>Fri, 30 May 2008 11:41:47 +0000</pubDate>
		<dc:creator>appus</dc:creator>
				<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://appus.wordpress.com/?p=22</guid>
		<description><![CDATA[Writing BLOB value to table from java Struts action is being called twice, Why? Getting an Error &#8217;403 forbidden&#8217; from Web Logic Server after Deployment<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=appus.wordpress.com&amp;blog=3828122&amp;post=22&amp;subd=appus&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:left;"><span style="font-size:medium;color:#660033;"><em><strong></strong></em></span></p>
<ol>
<li><span style="font-size:small;color:#000000;"><a href="http://appus.wordpress.com/2008/05/27/writing-blob-value-to-table-from-java-code/">Writing BLOB value to table from java</a></span></li>
<li><span style="font-size:small;color:#000000;"><a href="http://appus.wordpress.com/2008/05/27/why-struts-action-is-being-called-twice-while-submitting-the-form-data/">Struts action is being called twice, Why?</a></span></li>
<li><span style="font-size:small;"><a href="http://appus.wordpress.com/2008/05/27/getting-error-403-forbidden-from-weblogic-server-after-deployment/">Getting an Error &#8217;403 forbidden&#8217; from Web Logic Server after Deployment</a></span></li>
</ol>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/appus.wordpress.com/22/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/appus.wordpress.com/22/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/appus.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/appus.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/appus.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/appus.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/appus.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/appus.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/appus.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/appus.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/appus.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/appus.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/appus.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/appus.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/appus.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/appus.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=appus.wordpress.com&amp;blog=3828122&amp;post=22&amp;subd=appus&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://appus.wordpress.com/2008/05/30/22/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f093c2799d128127dcf39b60e1a25bc3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">appus</media:title>
		</media:content>
	</item>
		<item>
		<title>Life Cycle of JSP</title>
		<link>http://appus.wordpress.com/2008/05/29/life-cycle-of-jsp/</link>
		<comments>http://appus.wordpress.com/2008/05/29/life-cycle-of-jsp/#comments</comments>
		<pubDate>Thu, 29 May 2008 08:26:44 +0000</pubDate>
		<dc:creator>appus</dc:creator>
				<category><![CDATA[JSP]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://appus.wordpress.com/?p=23</guid>
		<description><![CDATA[There are seven main phases in JSP&#8217;s Life Cycle. Page Translation :-Here the jsp page is parsed and converted to a java file that contains the corresponding servlet. Page Compilation :- Here the servlet page that is created after translation is compiled to a class file. Load class :- The compiled class is loaded. Instance [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=appus.wordpress.com&amp;blog=3828122&amp;post=23&amp;subd=appus&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There are seven main phases in JSP&#8217;s Life Cycle.</p>
<ol>
<li>Page Translation :-Here the jsp page is parsed and converted to a java file that contains the corresponding servlet.</li>
<li>Page Compilation :- Here the servlet page that is created after translation is compiled to a class file.</li>
<li>Load class :- The compiled class is loaded.</li>
<li>Instance Creation :- An instance of the loaded class is created.</li>
<li>jspInit Method :- The initialization method gets called before any other methods.</li>
<li>_jspService :- The method gets called for each request.</li>
<li>jspDestroy :- The method gets called when the ServletContainer decided to take the servlet out of service.</li>
</ol>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/appus.wordpress.com/23/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/appus.wordpress.com/23/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/appus.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/appus.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/appus.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/appus.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/appus.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/appus.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/appus.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/appus.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/appus.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/appus.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/appus.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/appus.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/appus.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/appus.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=appus.wordpress.com&amp;blog=3828122&amp;post=23&amp;subd=appus&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://appus.wordpress.com/2008/05/29/life-cycle-of-jsp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f093c2799d128127dcf39b60e1a25bc3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">appus</media:title>
		</media:content>
	</item>
		<item>
		<title>Implicit Objects in JSP</title>
		<link>http://appus.wordpress.com/2008/05/29/implicit-objects-in-jsp/</link>
		<comments>http://appus.wordpress.com/2008/05/29/implicit-objects-in-jsp/#comments</comments>
		<pubDate>Thu, 29 May 2008 08:20:34 +0000</pubDate>
		<dc:creator>appus</dc:creator>
				<category><![CDATA[JSP]]></category>

		<guid isPermaLink="false">http://appus.wordpress.com/?p=28</guid>
		<description><![CDATA[There are nine implicit objects in JSP application :- web application(javax.servlet.ServletContext) session :- user&#8217;s session(javax.servlet.http.HttpSession) request :- request to the page(javax.Servlet.http.HttpServletRequest) response :- sending response(javax.Servlet.http.HttpServletResponse) out :- outputstream(javax.servlet.jsp.JspWriter) page :- this(java.lang.Object) pageContext :- page(javax.servlet.jsp.PageContext) config :- configuration(javax.servlet.ServletConfig) exception :- exception(java.lang.Throwable)<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=appus.wordpress.com&amp;blog=3828122&amp;post=28&amp;subd=appus&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There are nine implicit objects in JSP</p>
<ol>
<li>application :- web application(javax.servlet.ServletContext)</li>
<li>session :- user&#8217;s session(javax.servlet.http.HttpSession)</li>
<li>request :- request to the page(javax.Servlet.http.HttpServletRequest)</li>
<li>response :- sending response(javax.Servlet.http.HttpServletResponse)</li>
<li>out :- outputstream(javax.servlet.jsp.JspWriter)</li>
<li>page :- this(java.lang.Object)</li>
<li>pageContext :- page(javax.servlet.jsp.PageContext)</li>
<li>config :- configuration(javax.servlet.ServletConfig)</li>
<li>exception :- exception(java.lang.Throwable)</li>
</ol>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/appus.wordpress.com/28/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/appus.wordpress.com/28/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/appus.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/appus.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/appus.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/appus.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/appus.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/appus.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/appus.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/appus.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/appus.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/appus.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/appus.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/appus.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/appus.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/appus.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=appus.wordpress.com&amp;blog=3828122&amp;post=28&amp;subd=appus&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://appus.wordpress.com/2008/05/29/implicit-objects-in-jsp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f093c2799d128127dcf39b60e1a25bc3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">appus</media:title>
		</media:content>
	</item>
		<item>
		<title>MVC Architecture-Difference between Model 1 and Model 2</title>
		<link>http://appus.wordpress.com/2008/05/29/difference-between-model1-and-model2-mvc-architecture/</link>
		<comments>http://appus.wordpress.com/2008/05/29/difference-between-model1-and-model2-mvc-architecture/#comments</comments>
		<pubDate>Thu, 29 May 2008 08:15:40 +0000</pubDate>
		<dc:creator>appus</dc:creator>
				<category><![CDATA[J2EE]]></category>

		<guid isPermaLink="false">http://appus.wordpress.com/?p=30</guid>
		<description><![CDATA[Model View Controller Architecture Model 1 Architecture: - Here JSP page will be responsible for all tasks and will be the target of all requests. The tasks may include authentication, data access, data manipulation etc. The architecture is suitable for simple applications.   Disadvantages: &#8211; Since the entire business logic is embedded in JSP chunks [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=appus.wordpress.com&amp;blog=3828122&amp;post=30&amp;subd=appus&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="text-align:center;margin:0;"><strong><span style="font-size:9pt;font-family:Verdana;">Model View Controller Architecture</span></strong></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:9pt;font-family:Verdana;">Model 1 Architecture: -</span></strong><span style="font-size:9pt;font-family:Verdana;"> Here JSP page will be responsible for all tasks and will be the target of all requests. The tasks may include authentication, data access, data manipulation etc. The architecture is suitable for simple applications.</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:9pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:9pt;font-family:Verdana;">Disadvantages: &#8211; </span></strong><span style="font-size:9pt;font-family:Verdana;">Since the entire business logic is embedded in JSP chunks of java code had to be added to the JSP page.</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:9pt;font-family:Verdana;">For a web designer, the work will be difficult as they mite face problems with business logic.</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:9pt;font-family:Verdana;">The code is not reusable.</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:9pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:9pt;font-family:Verdana;">Model 2 Architecture : &#8211; </span></strong><span style="font-size:9pt;font-family:Verdana;">The servlet act as the controller of the application and will be target of every request. They analyze the request and collect data required to generate response to JavaBeans object that act as model of the application. The JSP page forms the view of the application.</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:9pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:9pt;font-family:Verdana;">Advantages: &#8211; </span></strong><span style="font-size:9pt;font-family:Verdana;">Reusability</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:9pt;font-family:Verdana;">Ease of maintenance.</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:9pt;font-family:Verdana;">Designer’s need to work only with presentation of the data.</span></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/appus.wordpress.com/30/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/appus.wordpress.com/30/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/appus.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/appus.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/appus.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/appus.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/appus.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/appus.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/appus.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/appus.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/appus.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/appus.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/appus.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/appus.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/appus.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/appus.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=appus.wordpress.com&amp;blog=3828122&amp;post=30&amp;subd=appus&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://appus.wordpress.com/2008/05/29/difference-between-model1-and-model2-mvc-architecture/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f093c2799d128127dcf39b60e1a25bc3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">appus</media:title>
		</media:content>
	</item>
		<item>
		<title>Difference between Scriptlet and Declaration</title>
		<link>http://appus.wordpress.com/2008/05/29/diffrence-between-scriptlet-and-declaration/</link>
		<comments>http://appus.wordpress.com/2008/05/29/diffrence-between-scriptlet-and-declaration/#comments</comments>
		<pubDate>Thu, 29 May 2008 07:50:23 +0000</pubDate>
		<dc:creator>appus</dc:creator>
				<category><![CDATA[JSP]]></category>

		<guid isPermaLink="false">http://appus.wordpress.com/?p=26</guid>
		<description><![CDATA[Declaration :- Used for declaring variables and methods. example : &#60;%!  int num =0;  %&#62; During translation and compilation phase of JSP life cycle all variables declared in jsp declaration become instance variables of servlet class and all methods become instance methods. Since instance variables are automatically initialized, all variables declared in jsp declaration section [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=appus.wordpress.com&amp;blog=3828122&amp;post=26&amp;subd=appus&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Declaration :-</strong> Used for declaring variables and methods.</p>
<p><strong>example</strong> : &lt;%!  int num =0;  %&gt;</p>
<p>During translation and compilation phase of JSP life cycle all variables declared in jsp declaration become instance variables of servlet class and all methods become instance methods. Since instance variables are automatically initialized,<strong> all variables declared in jsp declaration section gets their default values.</strong></p>
<p><strong>Scriptlet:-</strong> Used for embedding java code fragments in JSP page.</p>
<p><strong>example</strong> : &lt;%  num++; %&gt;</p>
<p>During translation phase of JSP Life cycle all scriptlet become part of _jspService() method. So <strong>we cannot declare methods in scriptlet</strong> since we cannot have methods inside other methods. As the variables declared inside scriptlet will get translated to local variables<strong> they must be initialized before use.</strong></p>
<p> </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/appus.wordpress.com/26/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/appus.wordpress.com/26/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/appus.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/appus.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/appus.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/appus.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/appus.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/appus.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/appus.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/appus.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/appus.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/appus.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/appus.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/appus.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/appus.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/appus.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=appus.wordpress.com&amp;blog=3828122&amp;post=26&amp;subd=appus&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://appus.wordpress.com/2008/05/29/diffrence-between-scriptlet-and-declaration/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f093c2799d128127dcf39b60e1a25bc3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">appus</media:title>
		</media:content>
	</item>
		<item>
		<title>Writing BLOB value to table from java code</title>
		<link>http://appus.wordpress.com/2008/05/27/writing-blob-value-to-table-from-java-code/</link>
		<comments>http://appus.wordpress.com/2008/05/27/writing-blob-value-to-table-from-java-code/#comments</comments>
		<pubDate>Tue, 27 May 2008 12:30:08 +0000</pubDate>
		<dc:creator>appus</dc:creator>
				<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://appus.wordpress.com/?p=3</guid>
		<description><![CDATA[Set the connection with database Create a sample table which has two column one is of type number(Sno) and the other one is of type BLOB(value) If u have a long string that you want to store in the table as BLOB, first convert the string to a byte array.                                                                                                                         byte[] bytes = new byte[content.length()]; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=appus.wordpress.com&amp;blog=3828122&amp;post=3&amp;subd=appus&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<ol>
<li>Set the connection with database</li>
<li>Create a sample table which has two column one is of type number(Sno) and the other one is of type BLOB(value)</li>
<li>If u have a long string that you want to store in the table as BLOB, first convert the string to a byte array.                                                                                                                        </li>
<li>byte[] bytes = new byte[content.length()]; //content is the string </li>
<li>bytes = content.getBytes();</li>
<li>For storing a BLOB, insert a row into the sample table with an empty BLOB first.</li>
<li>BLOB empty_BLOB= oracle.sql.BLOB.empty_lob();</li>
<li>INSERT INTO sample_table(Sno,value) VALUES ( 1,?);</li>
<li>stmt1.setBlob(1,empty_BLOB);<br />
stmt1.executeQuery();<br />
connection.commit();</li>
<li>Now the table has one row with an empty BLOB.</li>
<li>Now select the new row from table for updation</li>
<li>select value AS ATTACHMENT from sample_table where Sno=1 <strong>for update</strong>; </li>
<li>Blob text = null;<br />
     if(rs1.next())<br />
     {</li>
<li>      text = rs1.getBlob(&#8220;ATTACHMENT&#8221;);</li>
<li>     }</li>
<li>  DataOutputStream outStream = new DataOutputStream(((BLOB)text).getBinaryOutputStream());<br />
   outStream.flush(); <br />
   outStream.write(bytes,0,bytes.length);//bytes is teh byte array that has the value to be stored.<br />
   outStream.close();<br />
   PreparedStatement stmt3=connection.prepareStatement(&#8220;update sample_table set value=? where Sno=1&#8243;);<br />
   stmt3.setBlob(1,text);<br />
   int update=stmt3.executeUpdate();</li>
<li>The value is stored into the table as a BLOB<br />
    </li>
</ol>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/appus.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/appus.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/appus.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/appus.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/appus.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/appus.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/appus.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/appus.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/appus.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/appus.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/appus.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/appus.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/appus.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/appus.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/appus.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/appus.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=appus.wordpress.com&amp;blog=3828122&amp;post=3&amp;subd=appus&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://appus.wordpress.com/2008/05/27/writing-blob-value-to-table-from-java-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f093c2799d128127dcf39b60e1a25bc3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">appus</media:title>
		</media:content>
	</item>
		<item>
		<title>Why struts action is being called twice while submitting the form data</title>
		<link>http://appus.wordpress.com/2008/05/27/why-struts-action-is-being-called-twice-while-submitting-the-form-data/</link>
		<comments>http://appus.wordpress.com/2008/05/27/why-struts-action-is-being-called-twice-while-submitting-the-form-data/#comments</comments>
		<pubDate>Tue, 27 May 2008 08:50:09 +0000</pubDate>
		<dc:creator>appus</dc:creator>
				<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://appus.wordpress.com/?p=6</guid>
		<description><![CDATA[Recently I have come across an issue where the struts action class is being called twice whenever the form is submitted. Even after trying with lots of debug messages we did not get any idea about this mystery. Then We Found it! See our submit , try If u get any clue&#8230; &#60;html:submit onclick=&#8221;submitMe(&#8216;F&#8217;)&#8221; value=&#8221;Submit&#8221; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=appus.wordpress.com&amp;blog=3828122&amp;post=6&amp;subd=appus&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently I have come across an issue where the struts action class is being called twice whenever the form is submitted. Even after trying with lots of debug messages we did not get any idea about this mystery.</p>
<p>Then We Found it!</p>
<p>See our submit , try If u get any clue&#8230;</p>
<p>&lt;html:submit onclick=&#8221;submitMe(&#8216;F&#8217;)&#8221; value=&#8221;Submit&#8221; /&gt;</p>
<p>Here is the javascript function.</p>
<p>function submitMe(act)<br />
{<br />
document.forms[0].action.value=act;<br />
<strong>document.forms[0].submit();<br />
</strong>}</p>
<p>Got it???</p>
<p>just see the bold statement. We are using html:submit tag which will submit the form. But in the javascript function we have given an explicit submit too. No wonder the form is getting submitted twice!!!!!!!!!!!!!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/appus.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/appus.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/appus.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/appus.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/appus.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/appus.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/appus.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/appus.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/appus.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/appus.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/appus.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/appus.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/appus.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/appus.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/appus.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/appus.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=appus.wordpress.com&amp;blog=3828122&amp;post=6&amp;subd=appus&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://appus.wordpress.com/2008/05/27/why-struts-action-is-being-called-twice-while-submitting-the-form-data/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f093c2799d128127dcf39b60e1a25bc3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">appus</media:title>
		</media:content>
	</item>
		<item>
		<title>Getting Error &#8216; 403 Forbidden&#8217; from WebLogic server after Deployment</title>
		<link>http://appus.wordpress.com/2008/05/27/getting-error-403-forbidden-from-weblogic-server-after-deployment/</link>
		<comments>http://appus.wordpress.com/2008/05/27/getting-error-403-forbidden-from-weblogic-server-after-deployment/#comments</comments>
		<pubDate>Tue, 27 May 2008 06:30:58 +0000</pubDate>
		<dc:creator>appus</dc:creator>
				<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://appus.wordpress.com/?p=18</guid>
		<description><![CDATA[My application was running fine in Web Logic server. After doing some modification in the project in some other PC, I copied the code to my PC, built it and deployed it in the server. Deployment was successful. But when I tried to access the application through explorer I got the following message ‘403 Forbidden [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=appus.wordpress.com&amp;blog=3828122&amp;post=18&amp;subd=appus&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span lang="EN"><span style="font-size:small;"><span style="font-family:Times New Roman;">My application was running fine in Web Logic server. After doing some modification in the project in some other PC, I copied the code to my PC, built it and deployed it in the server. Deployment was successful. But when I tried to access the application through explorer I got the following message</span></span></span></p>
<p><span lang="EN"><span style="font-size:small;"><span style="font-family:Times New Roman;"><strong>‘403 Forbidden<br />
The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated. If the request method was not HEAD and the server wishes to make public why the request has not been fulfilled, it SHOULD describe the reason for the refusal in the entity. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.’</strong></span></span></span></p>
<p><span lang="EN"><span style="font-size:small;"><span style="font-family:Times New Roman;">After spending quite a lot time going through the files that I newly updated and compared it with those that were running fine earlier, I was not able to rectify it. Later I found that my web.xml was not written properly. It doesn’t have any content other than the default ones.</span></span></span></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/appus.wordpress.com/18/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/appus.wordpress.com/18/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/appus.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/appus.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/appus.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/appus.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/appus.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/appus.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/appus.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/appus.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/appus.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/appus.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/appus.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/appus.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/appus.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/appus.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=appus.wordpress.com&amp;blog=3828122&amp;post=18&amp;subd=appus&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://appus.wordpress.com/2008/05/27/getting-error-403-forbidden-from-weblogic-server-after-deployment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f093c2799d128127dcf39b60e1a25bc3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">appus</media:title>
		</media:content>
	</item>
	</channel>
</rss>
