﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-&lt;font face=方正综艺简体 color=salmon pink size=4&gt;&lt;b&gt; JavaBlog&lt;/b&gt;&lt;/font&gt;-最新评论</title><link>http://www.blogjava.net/alecwen/CommentsRSS.aspx</link><description>Java,JSP,JavaBean,Servlet,EJB,Tomcat,Eclipse,Myeclipse......</description><language>zh-cn</language><pubDate>Sun, 21 Mar 2010 09:18:42 GMT</pubDate><lastBuildDate>Sun, 21 Mar 2010 09:18:42 GMT</lastBuildDate><generator>cnblogs</generator><item><title>re: Struts 中jsp页面导入.css样式文件的问题</title><link>http://www.blogjava.net/alecwen/archive/2007/11/19/125613.html#161616</link><dc:creator>Alec Wen</dc:creator><author>Alec Wen</author><pubDate>Mon, 19 Nov 2007 06:47:00 GMT</pubDate><guid>http://www.blogjava.net/alecwen/archive/2007/11/19/125613.html#161616</guid><description><![CDATA[谢谢,问题已经解决了。<img src ="http://www.blogjava.net/alecwen/aggbug/161616.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/alecwen/" target="_blank">Alec Wen</a> 2007-11-19 14:47 <a href="http://www.blogjava.net/alecwen/archive/2007/11/19/125613.html#161616#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: Struts 中jsp页面导入.css样式文件的问题</title><link>http://www.blogjava.net/alecwen/archive/2007/10/30/125613.html#156918</link><dc:creator>zhengbin</dc:creator><author>zhengbin</author><pubDate>Tue, 30 Oct 2007 05:50:00 GMT</pubDate><guid>http://www.blogjava.net/alecwen/archive/2007/10/30/125613.html#156918</guid><description><![CDATA[1.可以更改路径为相对路径,在&lt;html&gt;前加入<br>&lt;% String path = request.getContextPath();<br>String basePath = request.getScheme()+&quot;://&quot;+request.getServerName()+&quot;:&quot;+request.getServerPort()+path+&quot;/&quot;;%&gt;<br><br>然后改成href=&lt;%=basePage%&gt;css/style.css<br>2.同样在&lt;html&gt;前加入那句话,然后在&lt;head&gt;标签中加入<br>&lt;base href=&lt;%=basePath%&gt;&gt;<br><br>就可以了<img src ="http://www.blogjava.net/alecwen/aggbug/156918.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/alecwen/" target="_blank">zhengbin</a> 2007-10-30 13:50 <a href="http://www.blogjava.net/alecwen/archive/2007/10/30/125613.html#156918#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>