Chinaunix

标题: jsp问题 [打印本页]

作者: bluesxk    时间: 2005-02-21 20:01
标题: jsp问题
偶用JSP做的网站,有等级,但是用FronPage等编辑工具打开后,用小权限用户登陆后更改框架源码中路径,可以访问权限以外的页面,怎么才能防止!?
网站用了框架,怎么才能尽可能隐藏源码!

谢谢   
作者: bluesxk    时间: 2005-02-22 21:57
标题: jsp问题
<%@ page contentType="text/html;charset=gb2312" %>;
<html>;
" content="Microsoft FrontPage 4.0">;
<meta name="rogId" content="FrontPage.Editor.Document">;
<title>;××医药管理系统</title>;
</head>;

<frameset id="fraList" framespacing="0" border="0" rows="65,10,*,0,0,0" frameborder="0">;
  <frame name="banner" scrolling="no" noresize target="contents" src-RIGHT: medium none; BORDER-TOP: medium none" LEFTMARGIN="0" TOPMARGIN="0"  noresize>;
  <frameset" border=0 frameBorder=0 marginHeight=0 marginWidth=0 scrolling="auto" target="main" src="jsp/UserLogin.html" id="contents"  LEFTMARGIN="0" TOPMARGIN="0" noresize >;
    <FRAME name="jsp/handler.htm" style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; BORDER-RIGHT: medium none; BORDER-TOP: medium none" LEFTMARGIN="0" TOPMARGIN="0"  noresize>;
    <frame name="main" border=0 frameBorder=0 marginHeight=0 marginWidth=0 src="jsp/Main.html" target="_self" scrolling="auto" id="main" LEFTMARGIN="0" TOPMARGIN="0"   <frame name="HideFrm2" scrolling="no" noresize target="main" src="">;
  <frame name="HideFrm3" scrolling="no" noresize target="main" src="">;
  <noframes>;
  <body>;

  <p>;此网页使用了框架,但您的浏览器不支持框架。</p>;

  </body>;
  </noframes>;
</frameset>;
</html>;
标示地方,登陆后,可以更改路径!
求高手帮忙啊!




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2