0
すべての変数を定義し、これらの変数を関数本体の他のJSPファイルで使用する1つのJSPファイルがありますが、関数内でConnection変数を使用しているときに変数が見つかりません。ここで私を助けてくれますか?jspの別の関数でConnection変数を使用
a.jsp
Connection conn = null;
conn = DriverManager.getConnection(Connecting_URL,DB_UserName,DB_Password);
b.jsp
<%@include file="a.jsp" %>
public static String user_exists (String email_id) throws Exception {
String SEARCH_SQL_COUNT = "SELECT COUNT(*) USER_COUNT FROM V_USER_DATA";
PreparedStatement st_fetch_product_count_1 = conn.prepareStatement(SEARCH_SQL_COUNT);
-----
-----
return <string>
}