如题,struts2中action接到请求后返回到一个html,这个html中有一个iframe,iframe的src路径和返回的html在同一目录下,所以在html中src="直接写的文件名.html",但是返回的html是正确的,iframe中却提示访问的页面不存在.struts.xml中
<result>/WEB-INF/template/default/user/index.html</result>
在user目录下有index.html以及index.html中inframe的src所对应的html.
难道src需要二次请求???请大家帮忙,谢谢谢谢..
<result>/WEB-INF/template/default/user/index.html</result>
在user目录下有index.html以及index.html中inframe的src所对应的html.
难道src需要二次请求???请大家帮忙,谢谢谢谢..
你确定iframe中的src中的文件名没有写错?
然后<head></head>中间加入<html:base />就可以注意:当<head></head>之间有<s:head theme="ajax" />时,<html:base />应该放在后面