You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
701 B
29 lines
701 B
<%@ page import ="org.dbforms.config.DbFormsConfigRegistry, |
|
java.sql.Connection, |
|
java.sql.PreparedStatement, |
|
java.sql.ResultSet" %> |
|
<% |
|
Connection conDbforms; |
|
PreparedStatement st; |
|
ResultSet l_rset; |
|
|
|
conDbforms=null; |
|
try { |
|
|
|
conDbforms = DbFormsConfigRegistry.instance().lookup().getConnection(mandantenid); |
|
} catch (Exception e) { |
|
System.out.println("Error getting dbforms connection:" |
|
+ e.getMessage()); |
|
} |
|
st=conDbforms.prepareStatement("select sp_get_dbform_right(?,?) from xdummy"); |
|
st.setString(1,db_form_name); |
|
st.setInt(2,Integer.parseInt(userid)); |
|
l_rset = st.executeQuery(); |
|
if(l_rset.next()==true) |
|
{ |
|
erlaubt=l_rset.getString(1); |
|
} |
|
l_rset.close(); |
|
st.close(); |
|
conDbforms.close(); |
|
%>
|
|
|