<?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>一起去看海 &#187; struts2</title>
	<atom:link href="http://www.ooobj.com/tag/struts2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ooobj.com</link>
	<description>ooobj.com</description>
	<lastBuildDate>Sat, 14 Jan 2012 13:48:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>struts2中使用jsp:forward命令</title>
		<link>http://www.ooobj.com/2010/05/struts2-jsp-forward/</link>
		<comments>http://www.ooobj.com/2010/05/struts2-jsp-forward/#comments</comments>
		<pubDate>Fri, 21 May 2010 12:47:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web开发]]></category>
		<category><![CDATA[struts2]]></category>

		<guid isPermaLink="false">http://www.ooobj.com/?p=26401</guid>
		<description><![CDATA[工程中用到了struts2，index.jsp中使用jsp:forward命令跳转来执行action，web.xml中需要做如下配置：
[xml]&#60;filter-mapping&#62;
 &#60;filter-name&#62;struts2&#60;/filter-name&#62;
 &#60;url-pattern&#62;/*&#60;/url-pattern&#62;
 &#60;dispatcher&#62;REQUEST&#60;/dispatcher&#62;
 &#60;dispatcher&#62;FORWARD&#60;/dispatcher&#62;
 &#60;/filter-mapping&#62;[/xml]
不明白为什么要这样配置，有时间好好研究一下。如果觉得配置web.xml很麻烦，不如使用jstl的redirect标签来跳转，可以达到一样的效果。
[xml]&#60;c:redirect url=&#34;/login.action&#34;&#62;&#60;/c:redirect&#62;[/xml]
]]></description>
			<content:encoded><![CDATA[<p>工程中用到了struts2，index.jsp中使用jsp:forward命令跳转来执行action，web.xml中需要做如下配置：</p>
<p>[xml]&lt;filter-mapping&gt;<br />
 &lt;filter-name&gt;struts2&lt;/filter-name&gt;<br />
 &lt;url-pattern&gt;/*&lt;/url-pattern&gt;<br />
 &lt;dispatcher&gt;REQUEST&lt;/dispatcher&gt;<br />
 &lt;dispatcher&gt;FORWARD&lt;/dispatcher&gt;<br />
 &lt;/filter-mapping&gt;[/xml]</p>
<p>不明白为什么要这样配置，有时间好好研究一下。如果觉得配置web.xml很麻烦，不如使用jstl的redirect标签来跳转，可以达到一样的效果。</p>
<p>[xml]&lt;c:redirect url=&quot;/login.action&quot;&gt;&lt;/c:redirect&gt;[/xml]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ooobj.com/2010/05/struts2-jsp-forward/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

