<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>blog.watashii &#187; jsp</title>
	<atom:link href="http://blog.watashii.com/tag/jsp/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.watashii.com</link>
	<description></description>
	<lastBuildDate>Wed, 02 Nov 2011 02:23:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Reading Portlet Preferences in Weblogic Portal</title>
		<link>http://blog.watashii.com/2010/06/reading-portlet-preferences-in-weblogic-portal/</link>
		<comments>http://blog.watashii.com/2010/06/reading-portlet-preferences-in-weblogic-portal/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 07:22:28 +0000</pubDate>
		<dc:creator>watashii</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[portal]]></category>
		<category><![CDATA[portlets]]></category>
		<category><![CDATA[preferences]]></category>
		<category><![CDATA[weblogic]]></category>

		<guid isPermaLink="false">http://blog.watashii.com/?p=352</guid>
		<description><![CDATA[Portlet preferences enables portlets to be associated with external application data.  This data should generally be used to store (or update) configuration data in a portlet.  For example, to store/update dynamic stock codes in a stock quotes portlet.  A portlet preference is basically a name-value pair data structure. Portlet preferences can be added/updated in the [...]


Related Posts:<ol><li><a href='http://blog.watashii.com/2010/08/weblogic-portal-create-streaming-desktop-page-definition-error/' rel='bookmark' title='Permanent Link: Weblogic Portal &#8211; Create Streaming Desktop Page Definition Error'>Weblogic Portal &#8211; Create Streaming Desktop Page Definition Error</a></li>
<li><a href='http://blog.watashii.com/2010/03/using-jsf-1-2-on-oracle-workshop-for-weblogic-portal-10-3/' rel='bookmark' title='Permanent Link: Using JSF 1.2 on Oracle Workshop for Weblogic (Portal 10.3)'>Using JSF 1.2 on Oracle Workshop for Weblogic (Portal 10.3)</a></li>
<li><a href='http://blog.watashii.com/2010/06/weblogic-portal-authorization-get-and-check-users-roles/' rel='bookmark' title='Permanent Link: Weblogic Portal Authorization &#8211; Get and Check User&#8217;s Roles'>Weblogic Portal Authorization &#8211; Get and Check User&#8217;s Roles</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.watashii.com/wp-content/uploads/2010/06/portletprefs.png"><img class="alignnone size-full wp-image-353" title="portletprefs" src="http://blog.watashii.com/wp-content/uploads/2010/06/portletprefs.png" alt="" width="351" height="360" /></a></p>
<p>Portlet preferences enables portlets to be associated with external application data.  This data should generally be used to store (or update) configuration data in a portlet.  For example, to store/update dynamic stock codes in a stock quotes portlet.  A portlet preference is basically a name-value pair data structure.</p>
<p>Portlet preferences can be <strong>added/updated </strong>in the following ways:</p>
<ol>
<li>During design-time on Workshop for Weblogic Portal (screenshot above)</li>
<li>Invoked programmatically at request-time using javax.portlet.* API</li>
<li>Manually during run-time of a portal (via Portal Administration Console when a portal desktop is created)</li>
</ol>
<p>When we have added our preferences, we can <strong>read </strong>them using using the Weblogic Portal API&#8217;s.  The following sample code fragments are for JSP Portlets, and JSF Portlets:</p>
<p><span id="more-352"></span><span style="text-decoration: underline;">JSP Portlets using JSP tag library:</span></p>
<pre><code>&lt;%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %&gt;
&lt;%@ taglib uri="http://www.bea.com/servers/portal/tags/netuix/preferences" prefix="preferences" %&gt;
&lt;preferences:getPreference name="stockcode" var="mycode"/&gt;
&lt;c:out value="${mycode}"/&gt;
</code></pre>
<p><span style="text-decoration: underline;">JSF Portlets using Preferences API (in backing bean):</span></p>
<pre><code>FacesContext fc = FacesContext.getCurrentInstance();
PortletRequest portletRequest = (PortletRequest)fc.getExternalContext().getRequest();
PortletPreferences prefs = portletRequest.getPreferences();
System.out.println(prefs.getValue("stockcode", "default_value_if_pref_not_found"));</code></pre>


<p>Related Posts:<ol><li><a href='http://blog.watashii.com/2010/08/weblogic-portal-create-streaming-desktop-page-definition-error/' rel='bookmark' title='Permanent Link: Weblogic Portal &#8211; Create Streaming Desktop Page Definition Error'>Weblogic Portal &#8211; Create Streaming Desktop Page Definition Error</a></li>
<li><a href='http://blog.watashii.com/2010/03/using-jsf-1-2-on-oracle-workshop-for-weblogic-portal-10-3/' rel='bookmark' title='Permanent Link: Using JSF 1.2 on Oracle Workshop for Weblogic (Portal 10.3)'>Using JSF 1.2 on Oracle Workshop for Weblogic (Portal 10.3)</a></li>
<li><a href='http://blog.watashii.com/2010/06/weblogic-portal-authorization-get-and-check-users-roles/' rel='bookmark' title='Permanent Link: Weblogic Portal Authorization &#8211; Get and Check User&#8217;s Roles'>Weblogic Portal Authorization &#8211; Get and Check User&#8217;s Roles</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.watashii.com/2010/06/reading-portlet-preferences-in-weblogic-portal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BusinessObjects Enterprise &#8211; Changing Tomcat Session Timeout</title>
		<link>http://blog.watashii.com/2009/06/businessobjects-changing-tomcat-session-timeout/</link>
		<comments>http://blog.watashii.com/2009/06/businessobjects-changing-tomcat-session-timeout/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 10:34:13 +0000</pubDate>
		<dc:creator>watashii</dc:creator>
				<category><![CDATA[BusinessObjects]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[timeoute]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://blog.watashii.com/?p=202</guid>
		<description><![CDATA[To change the timeout limit of a BusinessObjects Enterprise XIR2 (Solaris) logged-in session (with Tomcat), the following files needs to be modified: $BOBJE_HOME/tomcat/webapps/businessobjects/WEB-INF/web.xml $BOBJE_HOME/tomcat/webapps/businessobjects/enterprise115/desktoplaunch/WEB-INF/web.xml $BOBJE_HOME/tomcat/webapps/businessobjects/enterprise115/adminlaunch/WEB-INF/web.xml $BOBJE_HOME/tomcat/webapps/businessobjects/enterprise115/adhoc/WEB-INF/web.xml Find the following setting within the web.xml file to change the timeout value in minutes. &#60;!-- Define the default session timeout for your application,       in minutes.  From a [...]


Related Posts:<ol><li><a href='http://blog.watashii.com/2008/10/how-to-change-default-homepage-in-tomcat/' rel='bookmark' title='Permanent Link: How to Change Default Homepage in Tomcat'>How to Change Default Homepage in Tomcat</a></li>
<li><a href='http://blog.watashii.com/2008/10/businessobjects-insert-webi-report-images/' rel='bookmark' title='Permanent Link: BusinessObjects &#8211; Insert Webi Report Images'>BusinessObjects &#8211; Insert Webi Report Images</a></li>
<li><a href='http://blog.watashii.com/2008/09/businessobjects-internal-error-when-connecting-windows-clients/' rel='bookmark' title='Permanent Link: BusinessObjects &#8211; Internal Error when connecting Windows clients'>BusinessObjects &#8211; Internal Error when connecting Windows clients</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>To change the timeout limit of a BusinessObjects Enterprise XIR2 (Solaris) logged-in session (with Tomcat), the following files needs to be modified:</p>
<pre><code>$BOBJE_HOME/tomcat/webapps/businessobjects/WEB-INF/web.xml
$BOBJE_HOME/tomcat/webapps/businessobjects/enterprise115/desktoplaunch/WEB-INF/web.xml
$BOBJE_HOME/tomcat/webapps/businessobjects/enterprise115/adminlaunch/WEB-INF/web.xml
$BOBJE_HOME/tomcat/webapps/businessobjects/enterprise115/adhoc/WEB-INF/web.xml</code></pre>
<p>Find the following setting within the web.xml file to change the timeout value in minutes.</p>
<pre><code>&lt;!-- Define the default session timeout for your application,
      in minutes.  From a servlet or JSP page, you can modify
      the timeout for a particular session dynamically by using
      HttpSession.getMaxInactiveInterval(). --&gt;
&lt;session-config&gt;
      &lt;session-timeout&gt;<span style="color: #ff0000;"><strong>20</strong></span>&lt;/session-timeout&gt; &lt;!-- 20 minutes for session objects --&gt;
&lt;/session-config&gt;</code></pre>
<p>Then just restart the Apache Tomcat webserver to take effect.</p>


<p>Related Posts:<ol><li><a href='http://blog.watashii.com/2008/10/how-to-change-default-homepage-in-tomcat/' rel='bookmark' title='Permanent Link: How to Change Default Homepage in Tomcat'>How to Change Default Homepage in Tomcat</a></li>
<li><a href='http://blog.watashii.com/2008/10/businessobjects-insert-webi-report-images/' rel='bookmark' title='Permanent Link: BusinessObjects &#8211; Insert Webi Report Images'>BusinessObjects &#8211; Insert Webi Report Images</a></li>
<li><a href='http://blog.watashii.com/2008/09/businessobjects-internal-error-when-connecting-windows-clients/' rel='bookmark' title='Permanent Link: BusinessObjects &#8211; Internal Error when connecting Windows clients'>BusinessObjects &#8211; Internal Error when connecting Windows clients</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.watashii.com/2009/06/businessobjects-changing-tomcat-session-timeout/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Change Default Homepage in Tomcat</title>
		<link>http://blog.watashii.com/2008/10/how-to-change-default-homepage-in-tomcat/</link>
		<comments>http://blog.watashii.com/2008/10/how-to-change-default-homepage-in-tomcat/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 09:04:51 +0000</pubDate>
		<dc:creator>watashii</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[tomcat]]></category>
		<category><![CDATA[webapp]]></category>

		<guid isPermaLink="false">http://blog.watashii.com/?p=77</guid>
		<description><![CDATA[When browsing to a Tomcat&#8217;s webserver, at the root URL over the default port 8080, it usually shows the default jsp homepage as pictured above. http://localhost:8080 So how can I update / modify, or remove this page? You might think changing the jsp page at [$CATALINA_HOME/webapps/ROOT/index.jsp] is all you need to do. This is where [...]


Related Posts:<ol><li><a href='http://blog.watashii.com/2009/06/businessobjects-changing-tomcat-session-timeout/' rel='bookmark' title='Permanent Link: BusinessObjects Enterprise &#8211; Changing Tomcat Session Timeout'>BusinessObjects Enterprise &#8211; Changing Tomcat Session Timeout</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.watashii.com/wp-content/uploads/2008/10/apache_tomcat_homepage.png"><img class="alignnone size-medium wp-image-78" title="apache_tomcat_homepage" src="http://blog.watashii.com/wp-content/uploads/2008/10/apache_tomcat_homepage-300x226.png" alt="" width="300" height="226" /></a></p>
<p>When browsing to a Tomcat&#8217;s webserver, at the root URL over the default port 8080, it usually shows the default jsp homepage as pictured above.</p>
<p><code>http://localhost:8080</code></p>
<p>So how can I update / modify, or remove this page?</p>
<p>You might think changing the jsp page at [<em>$CATALINA_HOME/webapps/ROOT/index.jsp</em>] is all you need to do.  This is where i found out its <strong>not</strong> the case!  The page contents are compiled within the ROOT web application servlet.  To make Tomcat reference the jsp page instead, we need to remove this servlet from being compiled.</p>
<p>Locate the ROOT web application&#8217;s config file at [<em>$CATALINA_HOME/webapps/ROOT/WEB-INF/web.xml</em>], and simply comment out the following code fragment:</p>
<pre><code>&lt;!-- Comment this section so I can change the default index.jsp homepage
&lt;servlet&gt;
  &lt;servlet-name&gt;org.apache.jsp.index_jsp&lt;/servlet-name&gt;
  &lt;servlet-class&gt;org.apache.jsp.index_jsp&lt;/servlet-class&gt;
&lt;/servlet&gt;

&lt;servlet-mapping&gt;
  &lt;servlet-name&gt;org.apache.jsp.index_jsp&lt;/servlet-name&gt;
  &lt;url-pattern&gt;/index.jsp&lt;/url-pattern&gt;
&lt;/servlet-mapping&gt;
--&gt;</code></pre>
<p>This will disable the <em>index_jsp</em> servlet.  Now when you restart the Tomcat web application server, it should compile and load the default [<em>$CATALINA_HOME/webapps/ROOT/index.jsp</em>] page instead.</p>


<p>Related Posts:<ol><li><a href='http://blog.watashii.com/2009/06/businessobjects-changing-tomcat-session-timeout/' rel='bookmark' title='Permanent Link: BusinessObjects Enterprise &#8211; Changing Tomcat Session Timeout'>BusinessObjects Enterprise &#8211; Changing Tomcat Session Timeout</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.watashii.com/2008/10/how-to-change-default-homepage-in-tomcat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

