`
zhengyang_003
  • 浏览: 12386 次
  • 性别: Icon_minigender_1
  • 来自: 西安
社区版块
存档分类
最新评论

invalid path was requested

F# 
阅读更多
invalid path was requested 即"无效的路径被请求"
在根目录下某个页面执行一下动作:
<a href="javascript:void(0);" onclick="top.mainFrame.location.href='${f.url}&flag=1'">对应的链接</a>
发生此错误,
但是将链接地址放在href 即"<a href="${f.url}&flag=1"></a>"中就没有问题.
<1>因为,href超链接和window中location.href的根路径地址不一样,我们可以让我们的地址后退一级,即加个"../",或者在地址前加个basepath,
即:<a href="javascript:void(0);" onclick="top.mainFrame.location.href='<%=basepath%>${f.url}&flag=1'">

<a href="javascript:void(0);" onclick="top.mainFrame.location.href='<%=request.getco%${f.url}&flag=1'">

<2>,可能你的strust1.2配置文件中的path="/xx.do" 和你的请求地址不匹配,

<3>,可能你的strust1.2配置文件中的forward="/url" 路径不对
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics