Using MS-Access database in JSP application

Hi, all. I am new in JSP world. I have an Access database and I�d like to access it in my JSP Application.
Does anybody know I could do this?
TIA
Fernando

Define your database as an ODBC source and then use the JDBC/ODBC bridge. It's actually only a few lines of code - see http://java.sun.com/docs/books/tutorial/jdbc/basics/index.html

Similar Messages

  • Use of Access database

    Hi,
    I want to write a application that uses an Access Database. Actually I want to write data to and read data from a Database with Labview. Does anyone knows a library to control a Access Database. Or any other solutions.
    Davy

    You've got several options. There is a shipping example that uses DDE to talk to an Access database. DDE sucks so you probably don't want to do that. There is ActiveX. There have been a lot of examples posted to the forum so you might want to do a search. ActiveX can be a real pain though. The nicest solution is to buy the Database Connectivity Toolkit from NI. It uses ADO/SQL to communicate to any database and hides a lot of complexity of learning SQL. There is also the free open source toolkit called LabSQL from Jeffrey Travis. This uses ADO/SQL to talk to any database. You'll need to learn SQL but that's not really that big a task.

  • "Connection is closed" closed error while using MS Access database

    We are using MS Access database in our project. Recently the database was upgraded to 2000.
    After upgrading the database, I get the folowing error when getAutoCommit() is called on a connection -
    java.sql.SQLException: Connection is closed
         at sun.jdbc.odbc.JdbcOdbcConnection.validateConnection(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbcConnection.getAutoCommit(Unknown Source)
    The connection is not closed explicity before getAutoCommit() is called, only the statement is closed.
    This error is sporadic and occurs under load scenario only (when a lot of connections are open). Once the error occurs, all the database calls fail then onwards. The error was not occuring before the database was upgraded.
    I suspect the jbdc-odbc driver. The driver might not be compatible with Access2000 database. Under load scenario, it might be closing connections automatically.
    Has anybody faced similar problem before? Where can I find the compatible jdbc-odbc driver? And how to ensure that it is jdbc-odbc driver problem only?
    The database verison - MS Access 2000
    Java version - 1.3.1_01

    can i just point out that there is no support for transactions in Access so I wonder why you are calling autoCommit methods at all...

  • How to use debug my jdevloper devloped jsp applications using tomcat 4.0?

    hello,
    how to use debug my jdevloper devloped jsp applications using tomcat 4.0?
    how to run with using tomcat path with browser?
    can any one help?
    thanks
    pullareddy

    Hi Pullareddy,
    Charles' answer will work for Servlets in Tomcat, but debugging JSPs is a bit more complicated than debugging Servlets.
    Here's what you need to do:
    (I don't have Tomcat, so I don't know the details of Tomcat configuration files and I can't guarentee that Tomcat provides the flexibility so that you can configure it for debugging JSPs. Each application server is configured a bit differently. Hopefully you can adjust the following instructions to Tomcat.)
    1. You need to replace Tomcat's JSP engine with OJSP and you need to setup debugging parameters for OJSP.
    This is not specifically in the JDev documentation, but you may be able to apply the information found in the topic "Remote Debugging in OC4J".
    Here are some tips:
    A. You'll probably need to specify the following jars in some Tomcat config file: ojsp.jar, ojsputil.jar, xmlparserv2.jar, ojc.jar, and jdev-rt.jar.
    B. The OJSP class name is oracle.jsp.runtimev2.JspServlet.
    C. The debug parameters are:
    debug_mode = true
    developer_mode = true
    encode_to_java = true
    emit_debuginfo = true
    jspjavacompiler = oracle.jdevimpl.jsp.JspOjcCompiler
    2. You need to make Tomcat start the Java command with debugging options. (This is what Charles was talking about. One of the debug options is -XXdebug). This is in the JDev documentation in the topic "Starting a Java Process in Debug Mode". Please read that documentation help topic.
    3. You need to delete any old .java or .class files which were created in the past for your JSP. If you leave old .java or .class files around, then the debugger may not be able to stop at breakpoints in your JSPs. So, be sure to clean up old files.
    4. Set your project settings for remote debugging. This is on the Debugger - Remote panel in the Project Settings dialog box. You probably want either Attach to OJVM or Attach to JPDA. Which radio button you choose depends on what command line options you specified in step 2.
    -Liz

  • How to use central output server in JSP application

    Dear All,
    We have developed a jsp application which is running on JBoss.We want to create receipts in PDF format.For this we are using central output server.Our approach is as follows:
    When request comes from the user, we are generating .dat file by fetching data from the Oracle database depending upon credentials and then pushing this file into data folder of Central output server.From there we are waiting for PDF file in predefined path.Here we found this is asynchronous way of producing receipts.
    Is there any other way that is synchronous or the way we are approaching is the only way of doing it.A sample would be of immense help.
    Note:The concurrent hits would be around 5000 in a peak hour.Any help would be highly appreciated.

    I don't think you can get things to operate in a synchronous manner. You have one application - perhaps running on a totally separate server - feeding data files to a different application. The only way to make it even semi-sychronous would be to throttle the JSP application in some way to prevent it from placing a new file into Central's data folder while there was already one there.
    I assume your problem is knowing which PDF belongs to which user. If that is the case you could send some type of unique identfier (IP#?) as a "job" parameter that would then be used as the specific PDF file name instead of letting Central create a random file name.

  • Create both onscreen and database storage JSP application

    Hi,
    My JSP application is a JSP form with name, address, phone number, etc. and a submit button. The output currently shows onscreen with no database connection. Can someone please tell me how I store this in the Oracle database and would it be possible to do both - show the output on screen and also store it in the database.
    TIA,
    Sassan
    Code:
    Create jsp form:
    <html>
    <head>
    <title>Create Form</title>
    </head>
    <body>
    <form action="/Create_Form_html/RetrieveFormData.jsp" method="post">
    <table align="center" cellspacing="2" cellpadding="2" border="1">
    <tr>
    <td colspan="3">
    <b>Company Name:</b>
    <%
    String company = request.getParameter("company");
    if ( company != null ) {
    %>
    <input type="text"
    name="company name"
    value="<%=company %>"
    size="40" maxlength="40">
    <%
    else {
    %>
    <input type="text"
    name="company name"
    size="40"
    maxlength="40">
    <%
    %>
    </td>
    <tr>
    <td colspan="3">
    <b>Street:</b>
    <input type="text"
    name="street"
    size="43"
    maxlength="43">
    </td>
    </tr>
    <tr>
    <td>
    <b>City:</b>
    <input type="text"
    name="city"
    size="20"
    maxlength="20">
    </td>
    <td>
    <b>State:</b>
    <input type="text"
    name="state"
    size="2"
    maxlength="2">
    </td>
    <td>
    <b>Zip:</b>
    <input type="text"
    name="zip"
    size="5"
    maxlength="5">
    </td>
    </tr>
    <tr>
    <td>
    <input type="Submit" value="Submit">
    </td>
    </tr>
    </table>
    </form>
    </body>
    </html>

    You can use JDeveloper's Data Web Beans - these are data-aware controls for JSPs.
    Start by creating a JSP from scratch using the Business Components JSP application wizard. Instructions are in the online documentation, under:
    User Guides
    ->Developing Applications
    ->Developing Web Applications
    ->Creating a JSP application
    Or you can learn how to do this by stepping through the Business Components tutorial. The tutorial is also in the online documentation, under Tutorials and Sample Applications.
    Once you're more familiar with data-aware JSPs, you can customize a data-aware JSP or create your own from scratch. Instructions for customizing JSPs are also in the online documentation, following the instructions for creating a JSP.
    Regards
    Blaise

  • How to use MS Access database in Flash CS4 using AS3

    Hello everyone,
         I need help for how use the MS Access database in FlashCS4 and I want to save and retrive the data from the database and display in the Flash window.
    Thanks with,
    Viswa.

    http://www.northcode.com/blog.php/2011/05/06/Using-ADO-Data-Sources-in-Flash-Projectors

  • Tracking external programs used to access database

    I would like to track/audit the external programs our users are using to access our Oracle databases over a period of time. Hoping to track users hitting database with SPSS, MSAccess, etc for a report requested by our mgmt.
    I find "program" and "module" in the v$_session table but don't see similar info in the SYS aud$ table. And v$_session info doesn't get "saved" over the course of a day/week/month.
    Any ideas how to accomplish this?

    See this, but note the caveats:
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:1830073957439
    Tom Best

  • Is there any way to use the access database on my ipad?

    Is it possible to upload an access database on to my iPad and then edit it?

    A search on the App store found this.  I am not a user though.
    https://itunes.apple.com/uy/app/access-mobile-database-client/id387300746?mt=8

  • Column Not found error while trying to access database through JSP+Java Bea

    I am trying to access MS Access 2003 db through JSP using Tomcat 5.0.28.The code for accessing the database is incorporated in the bean.The JSP only calls the particular method of the bean .
    Code for Java Bean:
    package ActiveViewer;
    import java.sql.*;
    import java.util.*;
    public class CompanyBean
    Connection con;
    ResultSet rs=null;
    Statement st;
    public CompanyBean(){}
    public void connect()
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    System.out.println("Here4");
    con=DriverManager.getConnection("jdbc:odbc:activeviewer","","");
    System.out.println("Here1");
    catch (ClassNotFoundException e)
    System.out.println("Could not locate driver.");
    catch (SQLException e)
    System.out.println("An SQL Exception has occured :: "+e);
    e.printStackTrace();
    catch (Exception e)
    System.out.println("An unknown Exception has occured :: "+e);
    e.printStackTrace();
    public void disconnect()
    try
    if (con!=null)
    con.close();
    catch (SQLException e)
    System.out.println("An SQL Exception has occured :: "+e);
    e.printStackTrace();
    public ResultSet select(String username)
    if(con!=null)
    try
    st=con.createStatement();
    rs=st.executeQuery("select * from company where username='" + username + "'");
    catch (SQLException e)
    System.out.println("An SQL Exception has occured :: "+e);
    e.printStackTrace();
    catch (Exception e)
    System.out.println("An Exception has occured while retrieving :: "+e);
    e.printStackTrace();
    else
    System.out.println("Connection to database was lost.");
    return rs;
    The code for JSP that uses the above bean is:
    <%@ page language="java" import="java.sql.*,ActiveViewer.* " contentType="text/html"%>
    <jsp:useBean id="conn" scope="session" class="ActiveViewer.CompanyBean" />
    <html>
    <body>
    <% String username=request.getParameter("username");
    String password=request.getParameter("password");
    System.out.println("username:"+username);
    System.out.println("password:"+password);
    conn.connect();
    ResultSet rs=conn.select(username);
    System.out.println("Below select ");
    while (rs.next())
    String dbusername=rs.getString("username");
    String dbpassword=rs.getString("password");
    if(dbusername.equals(username) && dbpassword.equals (password))
    { %> out.println("OK");
    <% }
    else { %>Invalid Username and / or Password.
    <br>Clickhere to go back to Login Page.
    <% }
    } %>
    </body>
    </html>
    I get the following error:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Column not found
    though the database is not int he same folder as the jsp, the DSN is set correctly to pint to the db location.The jsp does print in stdout file:
    Here4 (from connect method above)
    Here 1 (from connect method above)
    Below Select (from jsp)
    This means that the jsp does connect to db but it gives the above error.Also the field name also matches that in the database and data is present in the db too.
    All other things like creating package for bean in WEB-INF/classes,incorporating the packakage are done.
    Can someone please help me with their precious advice?

    Hi, I too have a problem with an SQL exception, the message is Column not found.
    I'm using the sun jdbc odbc driver with access.
    the first few lines of the stack trace are
    sun.jdbc.odbc.JdbcOdbcResultSet.findColumn(JdbcOdbcResultSet.java:1852)
    sun.jdbc.odbc.JdbcOdbcResultSet.getInt(JdbcOdbcResultSet.java:603)
    net.homeip.sdaniels.MemberBean.ejbFindByUnamePwd(MemberBean.java:127)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    I am of course sure that the column does infact exist. I can insert into the column no problems. the sql looks like this:
    SELECT * FROM Members WHERE uName ='Stewart' AND encPwd='�F2C�3����h�1Y�'
    Can any one tell me if there is a common cause to this problem?
    Thanks

  • How to use an access database file with vb project

    hi deve.
    im wondering how can i use a database file (created with microsoft access) in a vb project
    i want to assign a textbox content from the database file from a specific field according to its id can anyone explain that with a simple code example
    thanx..

    thanx
    pvdg42
     this article is all i need

  • Limited access database user in applications

    We need to create one user in the applications database who should have access to all the tables except those belonging to HRMS.
    We need this user restricted from being able to see the HR data. Is there any way we can achieve this.
    please help.

    Hi,
    We need to create one user in the applications database who should have access to all the tables except those belonging to HRMS.
    We need this user restricted from being able to see the HR data. Is there any way we can achieve this.Yes -- Create a script to grant select on all tables and exclude HRMS tables from that script.
    Thanks,
    Hussein

  • Smart tunnel used for access other than native application?

    Dear all,
    i have a question about smart tunnel. my situation is, i need to  access to the server on certain IP address that using a port (example : port 5007) that is native for the application. that application is customized application just for my company.
    Question is :
    1. can i use smart tunnel to access the application for that particular port (ex : port 5007, 8476) ?
    2. i have so many grup servers (other than group server A) with so many costumized application with native port . is there any other way for me to access to that IP without using smart tunnel? because this project requirement is
    Clientless application access using application/Agent in user's PC, such as RDP, SSH & Native Application and ohers.
    Group Server A
    IP                                     Port
    10.194.24.99
    5007, 80, 9593, 9594, 9595
    10.194.22.99
    82
    192.9.1.99
    23, 449, 8470, 8476, 9470, 9476, 992
    My ASA is 9.1.3 and my ASDM is 7.1.3
    Please kindly to help, any reponse i appreciated
    source : http://www.cisco.com/c/dam/en/us/solutions/collateral/enterprise/design-zone-security/tunnel.pdf

    See http://www.mozilla.org/projects/netlib/PortBanning.html
    * http://kb.mozillazine.org/network.security.ports.banned.override

  • Using ReportViewer Controls in a jsp application calling Reporting Services using Web Services

    Hi,
     I am invoking RS web services to render reports, using Apache Axis to generate stub classes from Reporting Service WSDL.
    Please let me know if I can integrate Report Viewer control in the jsp where I am writing the report output. Else do I have to create my own custom tags simulating ReportViewer functionality.

    did anyone of you have tried it or not?
    i need this thing tobe confirmed. i have drilled the google and others.but can't find other than
    http://www.mainsoft.com/products/SQLServerReportingServicesConnectorforWPS.aspx

  • Error while doing dblookups using MS Access database

    Hi everyone,
      I am trying to perform dblookups in a file to file scenario but it is showing some error.I have used receiver JDBC adapter channel for dblookup.If anyone knows the solution kindly reply it thanks in advance.Here is the error
    Exception during processing the payload.Problem when calling an adapter by using communication channel.  XI AF API call failed. Module exception: (No information available). Cause Exception: 'Error when attempting to get processing resources: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: DriverManagerException: Cannot establish connection to URL 'jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=
    XI\data\XI_Workbench\1234\DB\EMP.mdb;Uid=1234;Pwd=abcd;': SQLException: [Microsoft][ODBC Microsoft Access Driver] Could not find file '(unknown)'.'.

    Hi,
    ->Have you installed the JDBC drivers on XI server. Can you please check.
    ->Which DB are you polling?
    Please check if respective drivers are installed in the J2ee stack. you can get a help 4m ur basis team on this.
    DB drivers (jar files)can be obtained from respective vendors.
    have a look in the following discussion,it looks like the drivers are different
    Re: JDBC driver for J2EE AE that supports MS SQL 7.0
    IDOC to JDBC :Error using JDBC
    Please Reward points if it helps
    Thanks
    Vikranth

Maybe you are looking for

  • How to Print Post Script Files

    Hi All, I am trying to make a utility software in foxpro that could print post script file on:- 1) Post script printer 2) Non Post Script printer Operating System Windows 95 & above Help is requested from all the community members Reagards Harsh

  • Once again: Unable to convert sender service to an ALE logical system

    Hi, I know there's a lot of threads regarding that error but I didn't find one that fits to our current scenario: IDoc -> XI -> File We have checked if the logical system name in SALE (of sending system) fits to the one in the business system and it

  • Capture @@ROWCOUNT for all QUERIES using SQL AUDIT

    I have a requirement where the customer wants to audit all SELECT queries made to a specific table  and also capture "No of rows returned" for these queries made to the table. I was able to capture various SELECT queries happening in the database /Ta

  • How to open a copied iPhoto library

    I recently got a new 2014 MacBook Pro. My old MacBook Pro is a 2009. I had a 1TB hard drive in my old MacBook Pro and decided to put that into an external drive to keep with me to use with my new computer. I didn't want to take out or mess with the s

  • Print quality from Photoshop compared to Lightroom

    Does Photoshop always convert the adjusted RAW image to a jpeg for printing, while Lightroom always prints as a Raw file after making adjustments?