<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" 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/" > <channel><title>Comments on: Introduction to Struts 2 Framework</title> <atom:link href="http://viralpatel.net/blogs/2009/12/introduction-to-struts-2-framework.html/feed" rel="self" type="application/rss+xml" /><link>http://viralpatel.net/blogs/2009/12/introduction-to-struts-2-framework.html</link> <description>Tutorials, Java, J2EE, Struts, AJAX, JavaScript, CSS, Web 2.0, MySQL, Articles</description> <lastBuildDate>Wed, 08 Feb 2012 10:36:26 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Amol</title><link>http://viralpatel.net/blogs/2009/12/introduction-to-struts-2-framework.html/comment-page-1#comment-18674</link> <dc:creator>Amol</dc:creator> <pubDate>Thu, 15 Dec 2011 09:10:45 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1934#comment-18674</guid> <description>Hi Viral,How do I use Log4j with struts 2.?Many thanks in advance.</description> <content:encoded><![CDATA[<p>Hi Viral,</p><p>How do I use Log4j with struts 2.?</p><p>Many thanks in advance.</p> ]]></content:encoded> </item> <item><title>By: Soma</title><link>http://viralpatel.net/blogs/2009/12/introduction-to-struts-2-framework.html/comment-page-1#comment-14804</link> <dc:creator>Soma</dc:creator> <pubDate>Tue, 24 May 2011 21:05:45 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1934#comment-14804</guid> <description>Hi - Small correction on Comparison of Struts 1 and Struts 2, point# 5 -&gt; OGNL stands for &quot;Object Graph Navigation Language&quot; not  &quot;Object Graph Notation Language&quot;Really i like your posts... every day i will learn some new things...Good Job..Thanks, -Soma</description> <content:encoded><![CDATA[<p>Hi &#8211; Small correction on Comparison of Struts 1 and Struts 2, point# 5 -&gt; OGNL stands for &#8220;Object Graph Navigation Language&#8221; not  &#8220;Object Graph Notation Language&#8221;</p><p>Really i like your posts&#8230; every day i will learn some new things&#8230;Good Job..</p><p>Thanks,<br /> -Soma</p> ]]></content:encoded> </item> <item><title>By: Viral Patel</title><link>http://viralpatel.net/blogs/2009/12/introduction-to-struts-2-framework.html/comment-page-1#comment-11982</link> <dc:creator>Viral Patel</dc:creator> <pubDate>Mon, 25 Jan 2010 11:07:41 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1934#comment-11982</guid> <description>Hi Alkesh, I am not sure if I understand your requirement but I assume you want to set some request parameters from Struts2 Action class and need to access it from JSP(?). If this is the case, you may want to implement &lt;strong&gt;ServletRequestAware&lt;/strong&gt; class in your Action class. This interface comes with a method &lt;code&gt;public void setServletRequest(HttpServletRequest request);&lt;/code&gt; which is called by Struts2 framework. Thus it will give you access to &lt;strong&gt;request&lt;/strong&gt; object. [code language=&quot;java&quot;]import org.apache.struts2.interceptor.ServletRequestAwarepublic class MyRequest implements ServletRequestAware { private HttpServletRequest request; public String execute() { //My execute method request.setAttribute(&quot;someattribute&quot;, &quot;value&quot;) }public void setServletRequest(HttpServletRequest request) { this.request = request; } }[/code]Hope this will solve the problem.</description> <content:encoded><![CDATA[<p>Hi Alkesh,<br /> I am not sure if I understand your requirement but I assume you want to set some request parameters from Struts2 Action class and need to access it from JSP(?). If this is the case, you may want to implement <strong>ServletRequestAware</strong> class in your Action class. This interface comes with a method <code>public void setServletRequest(HttpServletRequest request);</code> which is called by Struts2 framework. Thus it will give you access to <strong>request</strong> object.</p><pre class="brush: java; title: ; notranslate">

import org.apache.struts2.interceptor.ServletRequestAware

public class MyRequest implements ServletRequestAware {

	private HttpServletRequest request;

	public String execute() {
		//My execute method
		request.setAttribute(&quot;someattribute&quot;, &quot;value&quot;)
	}

	public void setServletRequest(HttpServletRequest request) {
		this.request = request;
	}
}</pre><p>Hope this will solve the problem.</p> ]]></content:encoded> </item> <item><title>By: alkesh</title><link>http://viralpatel.net/blogs/2009/12/introduction-to-struts-2-framework.html/comment-page-1#comment-11981</link> <dc:creator>alkesh</dc:creator> <pubDate>Mon, 25 Jan 2010 07:41:39 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1934#comment-11981</guid> <description>i have to integrate my product with struts. product can only call JSPs (extension .jsp). now I need to get some values in request to display when JSP getting rendered. where should i set those values?? i m using struts 2.0</description> <content:encoded><![CDATA[<p>i have to integrate my product with struts. product can only call JSPs (extension .jsp). now I need to get some values in request to display when JSP getting rendered. where should i set those values?? i m using struts 2.0</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: viralpatel.net @ 2012-02-09 09:20:50 -->
