非法的表达式开始
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了非法的表达式开始相关的知识,希望对你有一定的参考价值。
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.byd.div9.bzcz.handle;
import com.byd.div9.bzcz.javaBean.JDBCconnection;
import com.byd.div9.bzcz.model.PERMISSION;
import java.io.IOException;
import java.sql.*;
import javax.servlet.ServletException;
import javax.servlet.http.*;
/**
*
* @author 罗时剑
*/
public class permissoin_manager
public void doGet(HttpServletRequest request, HttpServletResponse response) throws
ServletException, IOException
HttpSession session = request.getSession();
String str = (String) session.getAttribute("userName");
System.out.println(str);
public PERMISSION GETBY(String str) throws SQLException
JDBCconnection db = new JDBCconnection();
db.creatConnection();
ResultSet rs = db.excuteQuery("select * from RECOMMENDED where " + str);
PERMISSION permission = null;
while (rs.next())
permission = new PERMISSION();
permission.setDAOCHU(rs.getString("DAOCHU"));
permission.setSHANCHU(rs.getString("SHANCHU"));
permission.setTIME(rs.getString("TIME"));
permission.setXIUGAI(rs.getString("XIUGAI"));
db.closeConnection();
return permission;
在 public PERMISSION GETBY(String str) throws SQLException 这一行出现了“非法的表达式开始”,求Java大神给解释一些,谢谢
只要能回答的将加100财富值
以上是关于非法的表达式开始的主要内容,如果未能解决你的问题,请参考以下文章