struts2中action跳转导致图片相对路径无法显示问题

来源:互联网 发布:淘宝泄漏买家信息 编辑:程序博客网 时间:2024/05/16 06:11

首先在头部加上<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<head></head>中间加入<html:base />就可以

注意:当<head></head>之间有<s:head theme="ajax" />时,<html:base />应该放在

 

转自:http://cache.baidu.com/c?m=9f65cb4a8c8507ed4fece763105392230e54f72b66848c403489cf1dcb2307564711b2e6783f405a8e90613441e9120db4a72172405061f58cc9fc118bac935e298d21356459db0144dc58e98b01638037912ae9b81996ad863684ded4c4a95644bc51127bf0a3da1c5b499678f1642693d58e3c144810cbfa4113e829063eee2757c536&p=882a9245829512a058a5c134570a&user=baidu

原创粉丝点击