一段JSP 代码 希望高手帮忙翻译下 谢谢
//if(form1.image.value.indexOf(".gif")==-1){alert("请输入格式为gif的图片");form1.image.focus()...
//if(form1.image.value.indexOf(".gif")==-1){
alert("请输入格式为gif的图片");
form1.image.focus();
return false;
//
Condb con=new Condb();
ResultSet rs = null;
int temp=0;
String sub=request.getParameter("Wareid");
if(sub.equals("")||sub==null){
response.sendRedirect("warelist.jsp");
%>
<%
}else{
String sql="select Wareid,Warename,Wareprice,Waretype,Wareintro,Wareimage,Wareif,Dattime from tb_Ware where Wareid="+sub;
rs=con.executeQuery(sql);
if(rs.next()){ 展开
alert("请输入格式为gif的图片");
form1.image.focus();
return false;
//
Condb con=new Condb();
ResultSet rs = null;
int temp=0;
String sub=request.getParameter("Wareid");
if(sub.equals("")||sub==null){
response.sendRedirect("warelist.jsp");
%>
<%
}else{
String sql="select Wareid,Warename,Wareprice,Waretype,Wareintro,Wareimage,Wareif,Dattime from tb_Ware where Wareid="+sub;
rs=con.executeQuery(sql);
if(rs.next()){ 展开
展开全部
Condb con=new Condb();//数据库连接
ResultSet rs = null;//SQL查询结果集
int temp=0;
String sub=request.getParameter("Wareid"); //获取浏览器GET来的参数Wareid
if(sub.equals("")||sub==null){ //没有参数Wareid或值为空
response.sendRedirect("warelist.jsp"); //重定向到页面warelist.jsp
}else{ //参数Wareid有值
String sql="select, ..., Wareif,Dattime from tb_Ware where Wareid="+sub;
rs=con.executeQuery(sql); //用参数Wareid的值sub作为过滤条件进行SQL查询
if(rs.next()){ //查询结果判断
ResultSet rs = null;//SQL查询结果集
int temp=0;
String sub=request.getParameter("Wareid"); //获取浏览器GET来的参数Wareid
if(sub.equals("")||sub==null){ //没有参数Wareid或值为空
response.sendRedirect("warelist.jsp"); //重定向到页面warelist.jsp
}else{ //参数Wareid有值
String sql="select, ..., Wareif,Dattime from tb_Ware where Wareid="+sub;
rs=con.executeQuery(sql); //用参数Wareid的值sub作为过滤条件进行SQL查询
if(rs.next()){ //查询结果判断
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询