一个奇怪的问题....
在MyEclipse里双击 一个main.jsp 跳出一个winform错误信息内容为:The file/e:/workspace/*****/WebRoot/<%=request.getContextPath()%>/WorkFlowPlatform/guide.jsp?RYBM=<%=RYBM%>&random=<%=Math.random() %> can not be found please try again
我点击确定 确定.... 点到最后 发现MyEclipse 直接退出了???
我找了一下 那个路径的guide。jsp 是有的 ,不知道怎么回事了 ,有哪位高手 遇过的 指点指点啊?、、、
搜索更多相关主题的帖子:
信息 please file
----------------解决方案--------------------------------------------------------
request.getContextPath()是用在e:/workspace/*****/WebRoot/<%=request.getContextPath()%>/WorkFlowPlatform/guide.jsp之中的?
应该是 <%request.getContextPath()%>/guide.jsp吧,
因为request.getContextPath()得到的就是绝对路径,
仅供参考。
----------------解决方案--------------------------------------------------------
回复 2楼 syg5434
源码是这样子的》。
程序代码:
<frame src="<%=request.getContextPath()%>/WorkFlowPlatform/guide.jsp?RYBM=<%=RYBM%>&random=<%=Math.random() %>" name="guidebar" id="guidebar" scrolling=no style="border:1 #00A399" frameBorder=2 />
<frame id="workspace" name="workspace" src="" ></frame>
</frameset>
为什么得到e:/workspace/*****/WebRoot/<%=request.getContextPath()%>/WorkFlowPlatform/guide.jsp?RYBM=<%=RYBM%>&random=<%=Math.random() %><frame id="workspace" name="workspace" src="" ></frame>
</frameset>
为什么中间多了个<%=request.getContextPath()%>/
我很费解 啊 啊 啊....
----------------解决方案--------------------------------------------------------
不知道哦,我用的时候都是在<%request.getContextPath()%>直接加jsp文件的啊
----------------解决方案--------------------------------------------------------