jsp不加密,所有页面的代码是外露的.如下:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<jsp:useBean id="conn" scope="page" class="XSQL.XSQL" /><%
String sS1="";
String s2 ="";
String s3="";
String sSQL = "";
ResultSet rs = null;
sSQL = "select * from S_tbl ";
rs = conn.ExeQuery(sSQL);
if(rs.next())
rs.close();
}
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<jsp:useBean id="conn" scope="page" class="XSQL.XSQL" /><%
String sS1="";
String s2 ="";
String s3="";
String sSQL = "";
ResultSet rs = null;
sSQL = "select * from S_tbl ";
rs = conn.ExeQuery(sSQL);
if(rs.next())
rs.close();
}
解决方案 »
- 一个正则表达式的问题,希望踊跃参加
- C3P0配置两个数据库
- 请教详细设计方案用什么工具来表现
- spring动态选择数据库,怎么做比较好?
- 求网站访问量demo 或代码, 小弟菜鸟!求大侠了!最好给个demo
- 请教 错误提示The Network Adapter could not establish the connection
- apache+tomcat5.0可不可以支持多站点
- 求高人指点:weblogic问题,散分,进者有份!!
- 请问什么情况下用servlet,什么情况下用ejb,什么情况下用jsp.给出理由?
- spring data jpa 查询参数为空的问题
- 关于本地JNDI找不到的问题?谢谢各位
- 版主好! struts 学习园地为什么总是上不去 ? 麻烦解决一下吧 !
一般都是作为view来使用