<?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>betweenGo &#187; Programming</title>
	<atom:link href="http://betweengo.com/category/atg/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://betweengo.com</link>
	<description>We make Ruby on Rails easy.  We make ATG easy.</description>
	<lastBuildDate>Tue, 06 Dec 2011 14:03:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Load ATG Order</title>
		<link>http://betweengo.com/2010/11/14/load-atg-order/</link>
		<comments>http://betweengo.com/2010/11/14/load-atg-order/#comments</comments>
		<pubDate>Mon, 15 Nov 2010 07:20:00 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Commerce]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://betweengo.com/2010/11/15/load-order/</guid>
		<description><![CDATA[Crystal Ball by David Reece You can always look up an order in the repository using it’s ID.&#160; But then you want to use the properties of this order object you will always be calling getPropertyValue and casting it to the type you expect. A better and much simpler way is to look up the [...]
Related posts:<ol>
<li><a href='http://betweengo.com/2009/08/17/how-to-debug-an-invalidversionexception-from-updating-an-atg-order/' rel='bookmark' title='How to Debug an InvalidVersionException from Updating an ATG Order'>How to Debug an InvalidVersionException from Updating an ATG Order</a></li>
<li><a href='http://betweengo.com/2009/11/12/the-dangers-of-custom-atg-repository-ids/' rel='bookmark' title='The Dangers of Custom ATG Repository ID&rsquo;s.'>The Dangers of Custom ATG Repository ID&rsquo;s.</a></li>
<li><a href='http://betweengo.com/2009/09/08/update-profile-in-atg-commerce/' rel='bookmark' title='Update Profile in ATG Commerce'>Update Profile in ATG Commerce</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p align="center"><a href="http://www.flickr.com/photos/spursfan_ace/1162117754/"><img style="display: block; float: none; margin-left: auto; margin-right: auto" title="Crystal Ball | Flickr" alt="Crystal Ball | Flickr" src="http://farm2.static.flickr.com/1333/1162117754_e64afe710e.jpg" /></a><a title="Crystal Ball | Flickr" href="http://www.flickr.com/photos/spursfan_ace/1162117754/">Crystal Ball</a> by <a title="David Reece&#39;s Photostream | Flickr" href="http://www.flickr.com/photos/spursfan_ace/">David Reece</a></p>
<p>You can always look up an order in the repository using it’s ID.&#160; But then you want to use the properties of this order object you will always be calling <a title="RepositoryItem.getPropertyValue (ATG Java API)" href="http://www.atg.com/repositories/ContentCatalogRepository_en/manuals/ATG9.0/apidoc/atg/repository/RepositoryItem.html#getPropertyValue%28java.lang.String%29">getPropertyValue</a> and casting it to the type you expect.</p>
<p>A better and much simpler way is to look up the order using the <a title="OrderManager (ATG Java API)" href="http://www.atg.com/repositories/ContentCatalogRepository_en/manuals/ATG9.0/apidoc/atg/commerce/order/OrderManager.html">OrderManager</a>.&#160; Then you get a strongly typed <a title="Order (ATG Java API)" href="http://www.atg.com/repositories/ContentCatalogRepository_en/manuals/ATG9.0/apidoc/atg/commerce/order/Order.html">Order</a> object and don’t have have to deal with the repository.&#160; Life has become a little easier. <img src='http://betweengo.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<pre>OrderManager orderManager = getOrderManager;
Order order = orderManager.loadOrder(orderId);</pre>
<p>
  <br />Now that you have the order you can also get the profile for that order.</p>
<p></p>
<pre>RepositoryItem profile = getProfileTools().getProfileForOrder(order);</pre>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbetweengo.com%2F2010%2F11%2F14%2Fload-atg-order%2F&amp;title=Load%20ATG%20Order" id="wpa2a_2"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>Related posts:<ol>
<li><a href='http://betweengo.com/2009/08/17/how-to-debug-an-invalidversionexception-from-updating-an-atg-order/' rel='bookmark' title='How to Debug an InvalidVersionException from Updating an ATG Order'>How to Debug an InvalidVersionException from Updating an ATG Order</a></li>
<li><a href='http://betweengo.com/2009/11/12/the-dangers-of-custom-atg-repository-ids/' rel='bookmark' title='The Dangers of Custom ATG Repository ID&rsquo;s.'>The Dangers of Custom ATG Repository ID&rsquo;s.</a></li>
<li><a href='http://betweengo.com/2009/09/08/update-profile-in-atg-commerce/' rel='bookmark' title='Update Profile in ATG Commerce'>Update Profile in ATG Commerce</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2010/11/14/load-atg-order/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Combining XML in ATG</title>
		<link>http://betweengo.com/2010/01/12/combining-xml-in-atg/</link>
		<comments>http://betweengo.com/2010/01/12/combining-xml-in-atg/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 19:58:07 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[ID generators]]></category>
		<category><![CDATA[product catalog]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://betweengo.com/2010/01/12/combining-xml-in-atg/</guid>
		<description><![CDATA[(Photo: Legospective by Guillermо) ATG uses XML files sometimes instead of Java properties files for configuration.  Combining them is not as straight-forward as with Java properties files but more flexible. The XML File Combination section in the Nucleus: Organizing JavaBean Components chapter of the ATG Programming guide gives a good explanation.  You can combine XML [...]
Related posts:<ol>
<li><a href='http://betweengo.com/2010/01/25/configuring-atg-to-send-email-via-comcast-smtp/' rel='bookmark' title='Configuring ATG to Send Email via Comcast SMTP'>Configuring ATG to Send Email via Comcast SMTP</a></li>
<li><a href='http://betweengo.com/2009/07/22/how-to-get-permission-to-create-scenarios-in-acc/' rel='bookmark' title='How to Get Permission to Create Scenarios in ACC'>How to Get Permission to Create Scenarios in ACC</a></li>
<li><a href='http://betweengo.com/2007/11/29/cannot-create-new-scenario/' rel='bookmark' title='Cannot Create New ATG Scenario'>Cannot Create New ATG Scenario</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/grdloizaga/817443503/"><img style="display: inline; margin-left: 0px; margin-right: 0px;" title="Legospective on Flickr" src="http://farm2.static.flickr.com/1197/817443503_e9766c35fd.jpg" alt="Legospective on Flickr" /></a></p>
<p>(Photo: <a title="Legospective on Flickr" href="http://www.flickr.com/photos/grdloizaga/817443503/">Legospective</a> by <a title="Flickr: Guillermо's Photostream" href="http://www.flickr.com/photos/grdloizaga/">Guillermо</a>)</p>
<p>ATG uses XML files sometimes instead of Java properties files for configuration.  Combining them is not as straight-forward as with Java properties files but more flexible.</p>
<p>The <a title="XML File Combination" href="http://www.atg.com/repositories/ContentCatalogRepository_en/manuals/ATG2006.3/dynprog/dynprog0207.html">XML File Combination</a> section in the <a title="Nucleus: Organizing JavaBean Components" href="http://www.atg.com/repositories/ContentCatalogRepository_en/manuals/ATG2006.3/dynprog/dynprog0201.html">Nucleus: Organizing JavaBean Components</a> chapter of the <a href="http://www.atg.com/repositories/ContentCatalogRepository_en/manuals/ATG2006.3/dynprog/index.html">ATG Programming guide</a> gives a good explanation.  You can combine XML files using one of these methods.</p>
<ul>
<li>replace</li>
<li>remove</li>
<li>append</li>
<li>append-without-matching</li>
<li>prepend</li>
<li>prepend-without-matching</li>
</ul>
<p>In most cases you will append.  In one case I wanted to update the <a title="ID Generators" href="http://www.atg.com/repositories/ContentCatalogRepository_en/manuals/ATG2006.3/dynprog/dynprog0509.html">id-spaces</a> for orders but I had to first remove before appending because replace did not work in this case.  This is how I did it.</p>
<pre>&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;

&lt;id-spaces&gt;
  &lt;id-space xml-combine="remove" name="order" seed="1" batch-size="10000" prefix="o"/&gt;
  &lt;id-space name="order" seed="100" batch-size="1" prefix="m"/&gt;
&lt;/id-spaces&gt;</pre>
<p>To see the result of XML combining you can use the Dynamo Administration Server’s Component Browser to go to the component and then click on the property which specifies the XML file(s).</p>
<p>For example to find the result of combining idspaces.xml’s you would go to <a href="http://localhost:8080/dyn/admin/nucleus/atg/dynamo/service/IdGenerator/?propertyName=initialIdSpaces">http://localhost:8080/dyn/admin/nucleus/atg/dynamo/service/IdGenerator/?propertyName=initialIdSpaces</a>.</p>
<p>To find the result of combining productCatalogs.xml’s you would go to <a href="http://localhost:8080/dyn/admin/nucleus/atg/commerce/catalog/ProductCatalog/?propertyName=definitionFiles">http://localhost:8080/dyn/admin/nucleus/atg/commerce/catalog/ProductCatalog/?propertyName=definitionFiles</a>.</p>
<p>To find the result of combining commercepipeline.xml&#8217;s you would go to <a href="http://localhost:8080/dyn/admin/nucleus/atg/commerce/PipelineManager/?propertyName=definitionFile">http://localhost:8080/dyn/admin/nucleus/atg/commerce/PipelineManager/?propertyName=definitionFile</a>.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbetweengo.com%2F2010%2F01%2F12%2Fcombining-xml-in-atg%2F&amp;title=Combining%20XML%20in%20ATG" id="wpa2a_4"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>Related posts:<ol>
<li><a href='http://betweengo.com/2010/01/25/configuring-atg-to-send-email-via-comcast-smtp/' rel='bookmark' title='Configuring ATG to Send Email via Comcast SMTP'>Configuring ATG to Send Email via Comcast SMTP</a></li>
<li><a href='http://betweengo.com/2009/07/22/how-to-get-permission-to-create-scenarios-in-acc/' rel='bookmark' title='How to Get Permission to Create Scenarios in ACC'>How to Get Permission to Create Scenarios in ACC</a></li>
<li><a href='http://betweengo.com/2007/11/29/cannot-create-new-scenario/' rel='bookmark' title='Cannot Create New ATG Scenario'>Cannot Create New ATG Scenario</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2010/01/12/combining-xml-in-atg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debug ATG running on JBoss with Eclipse</title>
		<link>http://betweengo.com/2009/07/27/debug-atg-running-on-jboss-with-eclipse/</link>
		<comments>http://betweengo.com/2009/07/27/debug-atg-running-on-jboss-with-eclipse/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 12:00:00 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[ATG]]></category>
		<category><![CDATA[JBoss]]></category>

		<guid isPermaLink="false">http://betweengo.com/2009/07/27/debug-atg-running-on-jboss-with-eclipse/</guid>
		<description><![CDATA[&#160; With Eclipse debugging an ATG application running on JBoss is fairly straightforward. Configure JBoss to start up with Java options for debugging. On UNIX you do this by uncommenting this line in &#60;JBoss&#62;/bin/run.conf. #JAVA_OPTS=&#34;$JAVA_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y&#34; On Windows you do this by uncommenting this line in &#60;JBoss&#62;/bin/run.bat. rem set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y %JAVA_OPTS% Create a [...]
Related posts:<ol>
<li><a href='http://betweengo.com/2010/12/19/turning-on-debug-in-jboss/' rel='bookmark' title='Turning On Debug in JBoss'>Turning On Debug in JBoss</a></li>
<li><a href='http://betweengo.com/2009/07/14/recurring-illegal-access-errors-in-jboss-when-running-atg/' rel='bookmark' title='Recurring Illegal Access Errors in JBoss when running ATG'>Recurring Illegal Access Errors in JBoss when running ATG</a></li>
<li><a href='http://betweengo.com/2009/09/28/running-jboss-with-oracle/' rel='bookmark' title='Running JBoss with Oracle'>Running JBoss with Oracle</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://oreilly.com/java/archive/eclipse-jboss-remote-debug.html?page=8"><img title="Configuring Eclipse for Remote Debugging - O&#39;Reilly Media" alt="Configuring Eclipse for Remote Debugging - O&#39;Reilly Media" src="http://oreillynet.com/onjava/2005/08/31/graphics/Image16.gif" /></a>&#160; </p>
<p>With <a title="Eclipse" href="http://eclipse.org">Eclipse</a> debugging an <a title="ATG" href="http://atg.com/">ATG</a> application running on <a title="JBoss" href="http://jboss.org/">JBoss</a> is fairly straightforward.</p>
<ol>
<li>Configure JBoss to start up with Java options for debugging.      </p>
<p>On UNIX you do this by uncommenting this line in &lt;JBoss&gt;/bin/run.conf.
<pre>#JAVA_OPTS=&quot;$JAVA_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y&quot;</pre>
<p>On Windows you do this by uncommenting this line in &lt;JBoss&gt;/bin/run.bat. </p>
<pre>rem set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y %JAVA_OPTS%</pre>
</li>
<li>Create a remote Java application debug configuration using the port you specified in step 1.&#160; The default port is 8787. </li>
</ol>
<p>For further reading please see <a title="Debugging Nucleus components in JBoss with Eclipse - KnobsLeversButtons" href="http://blog.pulleman.com/2007/05/27/debugging-nucleus-components-in-jboss-with-eclipse/">Debugging Nucleus components in JBoss with Eclipse</a> or <a title="EclipseZone - Remote Debugging with Eclipse" href="http://www.eclipsezone.com/eclipse/forums/t53459.html">Remote Debugging with Eclipse</a>.&#160; There is also a very complete tutorial from <a title="Technology Books, Tech Conferences, IT Courses, News - O’Reilly Media" href="http://oreilly.com/">O’Reilly Media</a> called <a title="Configuring Eclipse for Remote Debugging - O&#39;Reilly Media" href="http://oreilly.com/java/archive/eclipse-jboss-remote-debug.html">Configuring Eclipse for Remote Debugging</a>.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbetweengo.com%2F2009%2F07%2F27%2Fdebug-atg-running-on-jboss-with-eclipse%2F&amp;title=Debug%20ATG%20running%20on%20JBoss%20with%20Eclipse" id="wpa2a_6"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>Related posts:<ol>
<li><a href='http://betweengo.com/2010/12/19/turning-on-debug-in-jboss/' rel='bookmark' title='Turning On Debug in JBoss'>Turning On Debug in JBoss</a></li>
<li><a href='http://betweengo.com/2009/07/14/recurring-illegal-access-errors-in-jboss-when-running-atg/' rel='bookmark' title='Recurring Illegal Access Errors in JBoss when running ATG'>Recurring Illegal Access Errors in JBoss when running ATG</a></li>
<li><a href='http://betweengo.com/2009/09/28/running-jboss-with-oracle/' rel='bookmark' title='Running JBoss with Oracle'>Running JBoss with Oracle</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2009/07/27/debug-atg-running-on-jboss-with-eclipse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>java.io.FileNotFoundException for valid URL</title>
		<link>http://betweengo.com/2005/09/14/java-filenotfoundexception-for-valid-url/</link>
		<comments>http://betweengo.com/2005/09/14/java-filenotfoundexception-for-valid-url/#comments</comments>
		<pubDate>Wed, 14 Sep 2005 20:32:13 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Java SE]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[ATG]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://betweengo.com/?p=29</guid>
		<description><![CDATA[In one of our ATG servlet&#8217;s we were making a normal HTTP call to a page located on our ATG Dynamo server. url = new URL(urlString); connection = (HttpURLConnection)url.openConnection(); reader = new InputStreamReader(connection.getInputStream()); However when trying to get the input stream we got a FileNotFoundException yet we were able to go to the same URL [...]
Related posts:<ol>
<li><a href='http://betweengo.com/2009/01/15/urlequals-and-hashcode-make-blocking-internet-connections/' rel='bookmark' title='URL.equals and hashCode make blocking Internet connections'>URL.equals and hashCode make blocking Internet connections</a></li>
<li><a href='http://betweengo.com/2007/02/28/updating-atg-after-installing-new-java-sdk/' rel='bookmark' title='Updating ATG after installing new Java SDK'>Updating ATG after installing new Java SDK</a></li>
<li><a href='http://betweengo.com/2005/09/14/locallib-classes-not-loading/' rel='bookmark' title='locallib classes not loading'>locallib classes not loading</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>In one of our ATG servlet&#8217;s we were making a normal HTTP call to a page located on our ATG Dynamo server.</p>
<pre>url = new URL(urlString);
connection = (HttpURLConnection)url.openConnection();
reader = new InputStreamReader(connection.getInputStream());</pre>
<p><a href="http://www.flickr.com/photos/pinksherbet/179279964/"><img class="alignright" title="Free Daddy and His Little Shadow Girls at The Skate Park Creative Commons on Flickr" src="http://farm1.static.flickr.com/76/179279964_8e0675c135_m.jpg" alt="Free Daddy and His Little Shadow Girls at The Skate Park Creative Commons on Flickr" width="240" height="147" /></a>However when trying to get the input stream we got a <tt>FileNotFoundException</tt> yet we were able to go to the same URL using a browser.  Googling around we found this <a href="http://forum.java.sun.com/thread.jspa?threadID=337084&amp;tstart=15">lovely thread about the same problem</a>.</p>
<p>To summarize the thread, the problem was in our proxy settings which are set on Windows in <tt>localconfig/environment.bat</tt> and on UNIX in <tt>localconfig/environment.sh</tt>.  An example of proxy settings on Windows is <tt>set PROXY_ARGS=-Dhttp.proxyHost=192.168.1.134 -Dhttp.proxyPort=8080</tt>.</p>
<p>The proxy server did not recognize our machines as valid clients so it rejected our requests.  Once we changed the <tt>proxyHost</tt> argument to point to a valid server then this problem was fixed.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbetweengo.com%2F2005%2F09%2F14%2Fjava-filenotfoundexception-for-valid-url%2F&amp;title=java.io.FileNotFoundException%20for%20valid%20URL" id="wpa2a_8"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>Related posts:<ol>
<li><a href='http://betweengo.com/2009/01/15/urlequals-and-hashcode-make-blocking-internet-connections/' rel='bookmark' title='URL.equals and hashCode make blocking Internet connections'>URL.equals and hashCode make blocking Internet connections</a></li>
<li><a href='http://betweengo.com/2007/02/28/updating-atg-after-installing-new-java-sdk/' rel='bookmark' title='Updating ATG after installing new Java SDK'>Updating ATG after installing new Java SDK</a></li>
<li><a href='http://betweengo.com/2005/09/14/locallib-classes-not-loading/' rel='bookmark' title='locallib classes not loading'>locallib classes not loading</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2005/09/14/java-filenotfoundexception-for-valid-url/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>JSP Dynamo Request Retrieval</title>
		<link>http://betweengo.com/2005/08/30/jsp-dynamo-request-retrieval/</link>
		<comments>http://betweengo.com/2005/08/30/jsp-dynamo-request-retrieval/#comments</comments>
		<pubDate>Tue, 30 Aug 2005 21:18:24 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Page Development]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[ATG]]></category>

		<guid isPermaLink="false">http://betweengo.com/?p=26</guid>
		<description><![CDATA[In JHTML pages, the request object is of class DynamoHttpServletRequest which has many methods that are not part of the HttpServletRequest interface including the very useful resolveName method for looking up components in Nucleus. In JSP pages on ATG there is no guarantee that the request object is of class DynamoHttpServletRequest. According to the JSP [...]
Related posts:<ol>
<li><a href='http://betweengo.com/2009/04/10/getting-the-request-parameter/' rel='bookmark' title='Getting the request parameter'>Getting the request parameter</a></li>
<li><a href='http://betweengo.com/2009/05/04/get-jstl-vars-from-pagecontext/' rel='bookmark' title='Get JSTL Vars from PageContext'>Get JSTL Vars from PageContext</a></li>
<li><a href='http://betweengo.com/2010/09/27/atg-log-error-from-jsp-page/' rel='bookmark' title='ATG Log Error from JSP Page'>ATG Log Error from JSP Page</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>In JHTML pages, the request object is of class <code>DynamoHttpServletRequest</code> which has many methods that are not part of the <code>HttpServletRequest</code> interface including the very useful <code>resolveName</code> method for looking up components in Nucleus.</p>
<p>In JSP pages on ATG there is no guarantee that the request object is of class <code>DynamoHttpServletRequest</code>.  According to the JSP specification the request object always implements the <code>HttpServletRequest</code> interface.</p>
<p>If you need to get the  <code>DynamoHttpServletRequest</code> do something like this:</p>
<pre>DynamoHttpServletRequest dynRequest  = atg.servlet.ServletUtil.getDynamoRequest(request);
</pre>
<p>If you need to get a <code>PortalServletRequest</code> do something like this:</p>
<pre>PortalServletRequest portalRequest = (PortalServletRequest) request.getAttribute(atg.portal.servlet.Attributes.PORTALSERVLETREQUEST);</pre>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbetweengo.com%2F2005%2F08%2F30%2Fjsp-dynamo-request-retrieval%2F&amp;title=JSP%20Dynamo%20Request%20Retrieval" id="wpa2a_10"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>Related posts:<ol>
<li><a href='http://betweengo.com/2009/04/10/getting-the-request-parameter/' rel='bookmark' title='Getting the request parameter'>Getting the request parameter</a></li>
<li><a href='http://betweengo.com/2009/05/04/get-jstl-vars-from-pagecontext/' rel='bookmark' title='Get JSTL Vars from PageContext'>Get JSTL Vars from PageContext</a></li>
<li><a href='http://betweengo.com/2010/09/27/atg-log-error-from-jsp-page/' rel='bookmark' title='ATG Log Error from JSP Page'>ATG Log Error from JSP Page</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2005/08/30/jsp-dynamo-request-retrieval/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
