Heim  >  Artikel  >  Web-Frontend  >  frameset页面的取值及整个页面跳转问题_html/css_WEB-ITnose

frameset页面的取值及整个页面跳转问题_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:44:151311Durchsuche

大体代码如下:








1.这是登录成功后的显示页面,我想在top.jsp上显示欢迎xx的信息。但通过request.getAttribute怎么也获取不到??估计是返回给了frameset这个页面。但我不知道如何将这个值从frameset页面传到top.jsp上。
2.当我点击top.jsp的退出登录链接时,我想返回到登录界面,但通过这样做出来只是top.jsp这个页面跳转了,整个frameset 页面没有跳转。


回复讨论(解决方案)

在当前页面中打开,而不是在框架的中打开: 
参考: http://www.w3school.com.cn/tags/att_a_target.asp

至于欢迎“XX”,这个“XX”,直接使用JSP中的EL表达式就OK了;
比如,你后台把 username放到session里,然后JSP中直接 ${username}即可

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn