使用框架页,页面程序为:
<frameset rows="*" cols="153,*" framespacing="0" frameborder="auto" border="0">
<html:frame action="/adminLeft" frameName="leftFrame" scrolling="auto" noresize="true"></html:frame>
<frame src="right.jsp" name="mainFrame" id="mainFrame" title="mainFrame" >
</frameset>
<noframes><body>
</body>
</noframes>部分Action为:
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response) {
if (!isLogin(request)) {
ActionMessages messages = new ActionMessages();
messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("message.login.pleaselogin"));
saveMessages(request, messages);
return mapping.findForward("unlogin");
}
else {
return mapping.findForward("adminleft");
}
为什么全局转发的unlogin的页面只在左边框架显示?
怎么才能够整个页面显示?
请求大牛指教,衷心感谢!!
<frameset rows="*" cols="153,*" framespacing="0" frameborder="auto" border="0">
<html:frame action="/adminLeft" frameName="leftFrame" scrolling="auto" noresize="true"></html:frame>
<frame src="right.jsp" name="mainFrame" id="mainFrame" title="mainFrame" >
</frameset>
<noframes><body>
</body>
</noframes>部分Action为:
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response) {
if (!isLogin(request)) {
ActionMessages messages = new ActionMessages();
messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("message.login.pleaselogin"));
saveMessages(request, messages);
return mapping.findForward("unlogin");
}
else {
return mapping.findForward("adminleft");
}
为什么全局转发的unlogin的页面只在左边框架显示?
怎么才能够整个页面显示?
请求大牛指教,衷心感谢!!
解决方案 »
- 哪位高人用过手机浏览器模拟软件!
- 浏览器打开页面老是正在从xxx传送数据,其实页面早显示完成了的
- ie可以,为什么firefox不行
- 如何使用jsp(java)来实现某个文件夹的系统空间占用量!!
- 两个JSP页面,如何将A页面中的值,传给B页面,然后再自动返回A页面?
- 值替换问题
- 用servlet实现登陆,密码正确则可以正确登陆,密码错误就抛出错误,原码看下文,请各位高手指点?
- 求帮忙.............管理员身份验证 可是现在怎么也登不进去 到底是哪里出错了
- 我的工资待遇,欢迎大家讨论,在杭州
- 怎么可以自动去登陆JSP页面?
- 这句SQL语句怎么写啊??
- 问个关于javaBean的简单问题(调试半天...)
而且模板不受分辨率等其他因数的限制。现在用模板的人比用框架的多