Applet good to access database though web???

Hi,
I have a java3d applet which I must link to a database. And later the applet has to be accessible from a laptop not necessarily connected to the local network.
I am quite new in this area ... as you might have guessed !
First, do I have to use servlets ? Is it more or less works like php?
Could someone give me a hint on the overall architecture of the system ? Any suggestions ?
What I have in mind is a 3 tier application. For example Web server + Oracle server and the client connects to the web server.
Hope someone can give me some ideas or suggestions.
Thanks

Use an applet if you must. I'd prefer a JSP that used JSTL.
I think a servlet is a good gateway to that database. Let the JSP simply present results to the client. POST requests to the servlet, which interacts with the database on the user's behalf and sends results back to the JSP.
MOD

Similar Messages

  • I want to connect an applet with an access database

    I want to connect an applet with an access(*.mdb) database, how I do?
    I now the jdbc odbc bridge but how work it?
    Please Help me!!!!!!!!!!

    If you want access database please install IDSSERVER and import j102.sql.*;
    Example:
    import java.awt.*;
    import java.io.*;
    import j102.sql.*;
    public class AccessMdb extends Applets {
    Connection con;
    ResultSet rs;
    Statement stmt;
    IDSDriver drv;
    String _url ="jdbc:ids://localhost:your port /conn?dsn="your database"";
    // make connection to database
    drv = new j102.sql.IDSDriver();
    try{
    con = drv.connect(_url,null);
    stmt = con.createStatement();
    // query database
    stmt.executeQuery("your SQL statement");
    }catch(Exception ex){
    System.out.println(ex.getMessage());
    Good luck.

  • How to administer an Access database via web-based interface?

    There are times when I need to edit a database record to do something my CMS wasn't designed to do, so I have to manually edit it. Normally I just ftp the Access mdb file to my pc, make edits, and reupload the mdb file and hope nobody updated the database in the meantime.  Does anyone know of a web-based database admin system that will allow me to edit Access data?  Sure would be nice if I could install something on the server that would allow me to edit any datasource there and not have to have a separate, customized interface for each datasource.
    Thanks for looking, Bill

    I would recommend naming that page with an extension that the web server will not serve.  Rename it to use it and then rename it back when done.
    Or just put access restrictions on it via the web server, so one needs to authenticate to the system before using it.
    Or stop using Access and use a decent DB: Access is not appropriate to be used as a DB for a web application.  But that might not be an option.
    Adam

  • Migrating Access Database to Web WITH FORMS (not just backend)

    How difficult would this be, what steps would be involved and is Dreamweaver capable of helping?
    The server uses IIS and ASP so compatibility should be fine with access.
    I have enough of a programming history to replace vbasic code with ASP code if I read about the language, but would like to do the least amount of work required.

    Lets just say that Access and Oracle are completly different animals and leave it at that. What I believe you need to do is:
    1. Create an Oracle Database using the Database Creation Assistant. (Keep all the Defaults, and keep track of any passwords that are used.
    2. Using the System (DBA) account, crate a user to hold the Access Schema (Never create objects in the SYS account and you shouldn't do that with the SYSTEM account either.
    3. Run the Access Migration Workbench.

  • Using JavaScript to access Database

    Hi all,
    I am using JSP and Tomcat for my web application.
    Now i need to use Javascript to access the MS Access database. Can anyone please tell me the class and command for accessing database from javascript.
    Please give me an example and that will help me. I know it is not good to access database using JavaScript. But in this situation i have to use it anyhow.
    Thatnks

    Hi all,
    Thanks very much for your help. Now some of you said that it is not possible in JSP to access database using JavaScript, some of you said yes it is possible but not secure, I understand the both concepts.
    Now my problem is last year i built a web application for my company and the scenario is like this:
    The staff records their working time in that application. Now when they click a button it creates a drop down list of all clients they have and that list is in HTML as SELECT TAG. So the select tag includes 100+ client name.
    Now they can add as many client as they want for example if i have worked with 10 clients i will create 10 drop down list by pressing button called ADD CLIENT and will record their hours.
    Now from the description above you guys can understand that an OnClick Javascript event in involved to create multiple dropdown list.
    Now what i want is that i want those 100+ client list to come from database rather than typing them in the SELECT TAG. and please remember the SELECT tag is implemented in Javascript using innerHTML event.
    Now for those of you who suggested that it is not possible to use Javascript in accessing database, can you please tell me how can i implement Onclick event using JSP/Serverlet and can create dynamic drop downlist?
    Thanks for your time to read this long message.

  • Access Reliability in Web Application

    Does anyone have recommendation on using Access database in
    Web application.
    I have always used Access, but recently heard that it can
    cause great problems if more than one user is accessing information
    at the same time.
    Is there anyway around this or do I need to switch to MySql?
    The application is written entirely within Coldfusion, using
    a DSN for the Access DB.
    This is a small application and it would be rare that more
    than one user would be into the same table at one time but it could
    happen, as there is a login and the users table would be accessed
    each time someone logs in.
    Any insight would be helpful. I really don't want to have to
    redo the database.
    so far there have been no problems but I would be in a fix if
    the system crashed.
    Thanks.

    quote:
    Originally posted by:
    TJ_onTheWeb
    Thanks for the feedback.
    My next client application will be using MySQL on a Unix Web
    server so I am setting it up for development on the local server.
    Regarding the Coldfusion Application which is currently
    running on the web, using an Access database, how disruptive do you
    think it would be to migrate to MySQL from Access?
    Anyone have experience with this?
    Thanks!
    The work might not be hard, but there is an awful lot of it.
    I changed one from Access to Oracle once. What I did was:
    1. Create the Oracle tables and sequences.
    2. Transfer the existing data to the new db.
    3. Test every single query and rewrite the ones that needed
    it.
    So far there is no disruption to your production app, until
    now.
    4. Take the production app offline to freeze the data.
    5. Bring the new db up to date.
    6. Put your new app into production.

  • Does anyone have a good link for images I can access for my web development work. I have Adobe Creative SUite 5.5

    Does anyone have a good link for images I can access for my web development work. I have Adobe Creative Suite 5.5

    In short, NO.
    I was hoping that the 7.4.1 update would allow it to work, but it has caused more problems than it is worth.If you do actually get it to work you will see the TC in finder (under Shared) when connected to the internet outside of your home network. What I have found though is that the 7.4.1 firmware update has made using the internet at home almost impossible.
    I have tried Hamachi but it is not reliable.
    I have settled with Dropbox so my files are synced between my home machine and laptop.

  • Applet and Access Database

    How can I use an Access Database with a web applet? I can do it on my machine because I can set the data source. However, I can't set the data source on the server I'm uploading my web page to. Suggestions?

    You may be able to find some third party vendor that wrote a JDBC driver for Access that allows you to connect directly, but I doubt you'll find one.
    I don't know what you are needing to do exactly, but have you considered using an XML file?

  • Access of ms access database and displaying it on applets

    I had made the connection thru JDBC and was able to access data from MS Access database when i had written java application program. But when i created one applet and created instance of that class which was making connection to the database thru JDBC and called one method which was returning one value from the database , i was not able to get on the applet(in the text field) . It gave me some security exception saying acces is not allowed.
    Please give me the reason for this and send me reply back on this email id
    [email protected]

    Welcome to the club. There is an on-going discussion from which I too would like to learn this. Try http://forum.java.sun.com/thread.jsp?forum=31&thread=174953.
    Best Wishes.

  • How to connect my access database using applet?

    hi all,
    i need to connect my access database in my applet program which should work like an atm machine..I dont know how to connect it. Im new to applet same thing in JDBC application. Please help i terribly need it, our deadline in our case study is fast approaching and i still dont know how to do it. I tried the tutorial but i received some sql exception error. thanks!

    Try this link
    http://java.sun.com/docs/books/tutorial/jdbc/basics/

  • SetDataSource not working for Web App Access database

    I have a web app developed using VS 2008 that is using Crystal Reports to produce bar graphs. The data is held in an Access database. I developed the report using an Access database located in the App_Data directory.
    I have the following code on the page load event.
       Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            Dim con As New OleDb.OleDbConnection
            con.ConnectionString = System.Web.Configuration.WebConfigurationManager.ConnectionStrings("strConnect").ToString
            Dim path1 As String = "|DataDirectory|\ForthWorthISD.mdb"
            Dim report As CrystalDecisions.CrystalReports.Engine.ReportDocument = New BuildingUsage
            report.Load(Server.MapPath("BuildingUsage.rpt"))
            Dim com As New OleDb.OleDbCommand
            com.CommandType = CommandType.Text
            com.CommandText = "SELECT * FROM tblFWISDBuildingUsage WHERE BuildingName = '" & Session("BuildingName") & "'"
            com.Connection = con
            Dim adp As New OleDb.OleDbDataAdapter
            adp.SelectCommand = com
            Dim ds As New Data.DataSet
            Dim result As Integer = adp.Fill(ds)
            Try
                report.SetDataSource(ds)
            Catch ex As Exception
                Dim fubar As String = "Fubar"
            End Try
            Label2.Text = Session("BuildingName") & "      Monthy kWh"
            Label3.Text = "January 2006 Thru December 2008"
            CrystalReportViewer1.ReportSource = report
        End Sub
    I have checked the DataSet after the fill and everything appears to be correct. There is only one row in the table
    However the report is showing the entire table.
    I have also tried setting the datasource to the datatable of the dataset with the same result.
    How can I get this to work?

    Hi Bob,
    You stated that you designed the report against the access database itself correct?
    Are there usenames and passwords required to access the db?
    What looks like is happening is if you designed the report against the database instead of against an xsd file (which if you are using datasets should be done) then it has the access info stored so just hits it and pulls all the data.
    Try outputting the schema of the dataset and do a set location in the designer to the xsd instead of the access db then try passing the dataset.
    Jason

  • Web-Intelligence Reports against Access Database

    We are unable to run Web-Intelligence reports against Microsoft Access Database which resides on a network drive
    Able to create Unvierse, and Universe Connection to the Access Database through ODBC, but unable to run Web-I reports, when tried we get the following error
    A database error occured. The database error text is: [Microsoft][ODBC Microsoft Access Driver] '(unknown)' is not a valid path.  Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.. (WIS 10901)
    Did anyone tried to develop Web-I reports from Access database on a network drive, if so I request you to provide us details and your findings
    Thank you

    We run the designer on the same machine where BOBJ runs and also on other client machines, from disigner it works fine,
    The service account which is used to run BO Application Services has full control access to the network location and folder where the database resides
    We can run / refresh Desk-I and Web-I rich client but cannot run web-i reports against access database
    Thanks
    Sreekanth Pinnam
    Edited by: Sreekanth Pinnam on Jul 9, 2009 2:07 PM

  • ORA-31050:Access denied when trying enabling the database-native Web servic

    Dear all,
    I'm trying to follow the instruction of OBE about "Using Oracle XML DB Web Services for Service-Oriented Architecture " as this url http://st-curriculum.oracle.com/obe/db/11g/r1/prod/datamgmt/xmldb2_b/xmldb2_b.htm#http .
    I would like to enable the database-native Web service end point in Oracle XML DB and I already execute the script to create Web Service Endpoint.
    Anyway, I got the following error.
    ORA-31050: Access denied
    ORA-06512: at "XDB.DBMS_XDB", line 528
    ORA-06512: at "SYSTEM.ADDSERVLETMAPPING", line 91
    I found that this procedure was created on system schema but the problem occur when I tried to call ADDSERVLETMAPPING procedure.
    This is a code that I used to enable.
    set pagesize 100
    set linesize 132
    set long 20000
    set echo on
    -- conn sys/oracle as sysdba
    create or replace procedure addServletMapping (pattern varchar2,
    servletname varchar2,
    dispname varchar2,
    servletclass varchar2,
    servletschema varchar2,
    language varchar2,
    description varchar2,
    securityRole xmltype) as
    xdbconfig xmltype;
    begin
    xdbconfig := dbms_xdb.cfg_get();
    select deleteXML
    xdbconfig,
    '/xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-list/servlet[servlet-name="' || servletname || '"]'
    into xdbconfig
    from dual;
    if (language = 'C') then
    select insertChildXML
    xdbconfig,
    '/xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-list',
    'servlet',
    xmlElement
    "servlet",
    xmlAttributes('http://xmlns.oracle.com/xdb/xdbconfig.xsd' as "xmlns"),
    xmlForest
    servletname as "servlet-name",
    language as "servlet-language",
    dispname as "display-name",
    description as "description"
    securityRole
    into xdbconfig
    from dual;
    else
    select insertChildXML
    xdbconfig,
    '/xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-list',
    'servlet',
    xmlElement
    "servlet",
    xmlAttributes('http://xmlns.oracle.com/xdb/xdbconfig.xsd' as "xmlns"),
    xmlForest
    servletname as "servlet-name",
    language as "servlet-language",
    dispname as "display-name",
    description as "description",
    servletclass as "servlet-class",
    servletschema as "servlet-schema"
    into xdbconfig
    from dual;
    end if;
    select deleteXML
    xdbconfig,
    '/xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-mappings/servlet-mapping[servlet-name="' || servletname || '"]'
    into xdbconfig
    from dual;
    select insertChildXML
    xdbconfig,
    '/xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-mappings',
    'servlet-mapping',
    xmltype
    '<servlet-mapping xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd">
    <servlet-pattern>'||pattern||'</servlet-pattern>
    <servlet-name>'||servletname||'</servlet-name>
    </servlet-mapping>'
    into xdbconfig
    from dual;
    xdb.dbms_xdb.cfg_update(xdbconfig);
    end;
    call addServletMapping(
    '/orawsv/*',
    'orawsv',
    'Oracle Query Web Service',
    null,
    null,
    'C',
    'Web Services Servlet',
    xmltype(
    '<security-role-ref>
    <role-name>XDB_WEBSERVICES</role-name>
    <role-link>XDB_WEBSERVICES</role-link>
    </security-role-ref>'
    call addServletMapping(
    '/orawsdl/*',
    'orawsdl',
    'Oracle WSDLs',
    null,
    null,
    'C',
    'WSDL Servlet',
    xmltype(
    '<security-role-ref>
    <role-name>XDB_WEBSERVICES</role-name>
    <role-link>XDB_WEBSERVICES</role-link>
    </security-role-ref>'
    --grant XDB_WEBSERVICES to oe
    grant XDB_WEBSERVICES to TESTDB
    -- For 11g only
    --grant XDB_WEBSERVICES_OVER_HTTP to oe
    grant XDB_WEBSERVICES_OVER_HTTP to TESTDB
    --grant XDB_WEBSERVICES_WITH_PUBLIC to oe
    grant XDB_WEBSERVICES_WITH_PUBLIC to TESTDB
    -- Clean up afterward
    drop procedure addServletMapping
    Regards,
    Zenoni
    Edited by: zenoni on Jan 28, 2011 10:18 AM

    Test if you can access the generic WSDL using a browser
    http://server:port/orawsv?wsdlYou should get prompted for a username and password. If you provide the username and password of a database user who was been granted the Web Services Roles you should see the query service WSDL
    <definitions name="orawsv" targetNamespace="http://xmlns.oracle.com/orawsv"
        xmlns="http://schemas.xmlsoap.org/wsdl/"
        xmlns:tns="http://xmlns.oracle.com/orawsv"
        xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://schemas.xmlsoap.org/wsdl/ http://schemas.xmlsoap.org/wsdl/">
    <types>
      <xsd:schema
            targetNamespace="http://xmlns.oracle.com/orawsv"
       elementFormDefault="qualified">
       <xsd:element name="query">
        <xsd:complexType>
         <xsd:sequence>
          <xsd:element name="DDL_text" type="xsd:string"
           minOccurs="0" maxOccurs="unbounded" />
          <xsd:element name="query_text">
           <xsd:complexType>
            <xsd:simpleContent>
             <xsd:extension base="xsd:string">
              <xsd:attribute name="type">
               <xsd:simpleType>
                <xsd:restriction base="xsd:NMTOKEN">
                 <xsd:enumeration value="SQL" />
                 <xsd:enumeration value="XQUERY" />
                </xsd:restriction>
               </xsd:simpleType>
              </xsd:attribute>
             </xsd:extension>
            </xsd:simpleContent>
           </xsd:complexType>
          </xsd:element>
          <xsd:choice minOccurs="0" maxOccurs="unbounded">
           <xsd:element name="bind">
            <xsd:complexType>
             <xsd:simpleContent>
              <xsd:extension base="xsd:string">
               <xsd:attribute name="name" type="xsd:string" />
              </xsd:extension>
             </xsd:simpleContent>
            </xsd:complexType>
           </xsd:element>
           <xsd:element name="bindXML">
            <xsd:complexType>
             <xsd:sequence>
              <xsd:any/>
             </xsd:sequence>
            </xsd:complexType>
           </xsd:element>
          </xsd:choice>
          <xsd:element name="null_handling" minOccurs="0">
           <xsd:simpleType>
            <xsd:restriction base="xsd:NMTOKEN">
             <xsd:enumeration value="DROP_NULLS" />
             <xsd:enumeration value="NULL_ATTR" />
             <xsd:enumeration value="EMPTY_TAG" />
            </xsd:restriction>
           </xsd:simpleType>
          </xsd:element>
          <xsd:element name="max_rows" type="xsd:positiveInteger" minOccurs="0"/>
          <xsd:element name="skip_rows" type="xsd:positiveInteger" minOccurs="0"/>
          <xsd:element name="pretty_print" type="xsd:boolean" minOccurs="0"/>
          <xsd:element name="indentation_width" type="xsd:positiveInteger" minOccurs="0"/>
          <xsd:element name="rowset_tag" type="xsd:string" minOccurs="0"/>
          <xsd:element name="row_tag" type="xsd:string" minOccurs="0"/>
          <xsd:element name="item_tags_for_coll" type="xsd:boolean" minOccurs="0"/>
         </xsd:sequence>
        </xsd:complexType>
       </xsd:element>
       <xsd:element name="queryOut">
        <xsd:complexType>
         <xsd:sequence>
          <xsd:any/>
         </xsd:sequence>
        </xsd:complexType>
       </xsd:element>
      </xsd:schema>
    </types>
      <message name="QueryInput">
       <part name="body" element="tns:query"/>
      </message>
      <message name="XMLOutput">
       <part name="body" element="tns:queryOut"/>
      </message>
      <portType name="ORAWSVPortType">
       <operation name="XMLFromQuery">
        <input message="tns:QueryInput"/>
        <output message="tns:XMLOutput"/>
       </operation>
      </portType>
      <binding name="ORAWSVBinding" type="tns:ORAWSVPortType">
       <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
       <operation name="XMLFromQuery">
        <soap:operation soapAction="http://localhost/orawsv"/>
        <input>
         <soap:body use="literal"/>
        </input>
        <output>
         <soap:body use="literal"/>
        </output>
       </operation>
      </binding>
      <service name="ORAWSVService">
       <documentation>Oracle Web Service</documentation>
       <port name="ORAWSVPort" binding="tns:ORAWSVBinding">
        <soap:address location="http://localhost/orawsv"/>
       </port>
    </service>
    </definitions>Edited by: mdrake on Jan 27, 2011 8:42 PM

  • MS Access Database on Runtime (Tables on Sharepoint)

    Using: Office 365
    MS Access tables are on my Share Point Site as lists.
    The database on my local pc has linked tables to the Share Point lists, which works fantastic.  I have a need to place the database on a pc that does not have any office software installed, so I loaded Access Runtime on that pc.  Pulls up the database,
    but, it the tables will not link to Share Point.  No error messages, cursor just spins, nothing happens.  

    Actually I'm already using JDBC-ODBC driver. The problem is it still doesn't connect. Sorry I should have mentioned this above.
    String dbDriver = "sun.jdbc.odbc.JdbcOdbcDriver";
    String dbLocation = "//host/directory/database.mdb";
    String dbURL = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)}; DBQ=" + dbLocation;
    String dbUserName = "Name";
    String dbPassword = "Pass";
    public boolean connectToDatabase () {
      // Microsoft Access Database SQL Connection.
      try {
        Class.forName(dbDriver);
        connection = DriverManager.getConnection(dbURL);
      } catch (Exception e) {
          return false;
      return true;
    }If I run my applet local, I can connect to my Access DB (Using a location similar to 'C:\Path\myDB.mdb'). When I put it on my web host, it can't connect to it. DriverManager tries to connect but fails after about half a minute of inactivity. The error message is:
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] '(unknown)' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.
    And so I need to know any Java equivalent that doesn't require 'HttpServlet' 'getRealPath(...)' and get's me the server path to my DB or another way to connect to it alltogether.
    Devyn

  • Access database in a WAN

    Hello:
    I have to develop an application in Director that will use
    one Access
    Database in two LAN in different cities.
    So I will need to connect these LAN's via Internet. (10 users
    in every LAN
    with XP client)
    Do you think DatagripNet is OK for this purpose or do you
    suggest me other
    third party software?
    thank you

    > This link does not work :
    http://www.shocknet.org.uk/
    You're right. I have seen it being down before. Give it some
    time - it will
    hopefully be back.
    > Well I am most confused now. I don't know program in PHP
    or ASP. This can
    > not do it with Lingo?.
    When shocknet.org.uk is back, you'll see that - besides very
    good tutorials
    in all the net stuff - there is a collection of scripts,
    prepared for your
    situation.
    1. A lingo behaviour to send a postNetText call to the
    ASP/PHP script on
    the server where your database is.
    2. PHP/ASP script (depending of what the server supports - so
    your choice):
    The script does the following:
    - recieve the call from your application
    - send a query to the database
    - process the result into a lingostring
    - and then return that string back to your application
    As far as I remember, all you have to do in the PHP/ASP
    script is:
    - add the correct connectionstring to the database.
    - specify the SQL string that corresponds with your needs
    (select, insert,
    update and so)
    > How to use SQL server with Director? some Xtras?
    The princip above will work for most kinds of databases,
    Access, MySQL and
    MSSQL for sure, meaning that you can change database, but
    keep the PHP/ASP
    script.
    You'll have to change the connectionstring to the right one
    though.
    There are SQL xtras, but I have ony experience in working
    with them locally
    (LAN)
    I'll repost this fine line from Andrew - it says somehow the
    same as my 20
    lines above...:
    [Your program]<->[Internet]<->[CGI program or ASP
    or PHP]<->[Database]
    If you are lost, then try to get help for the serverside, so
    you can
    concentrate on your application.

Maybe you are looking for

  • 8.1.1 mail doesn't work anymore

    Hello All ! I did the ios 8.1.1 update yesterday evening on my iPad Air-2. I configured my Exchange Mail the same way as my iPad Air. Now, I can't receive any mail. I have the same problem for Outlook and Gmail. Only my iCloud is working. Do you know

  • Field Number(19,8) always returns Zero!

    Thanks for reading this I am developing an application in VB6 on NT 4 SP5 and have come accross a very strange error. This project is a migration from Sequel Server, I am redoing an ACCESS application. In one of the tables, the Latitude and Longitude

  • Exporting photo slideshow - HELP!

    I've been trying to export my photo slideshow with final cut express 4, and every combination I've tried always comes out blurry when the photos have movement. I was able to export them clearer on imovie. There must be a way to import photos, give th

  • Atomic operation on array elements

    For array elements of primitive types (32 bits and less): byte, short, int. Are array operations atomic? For example, define byte b[] = new byte[1]; thread A executes b[0]++; thread B reads b[0]. or both threads writing.. Question: 1 Is it possible t

  • No rubber bands on audio tracks

    Weird thing. I can't see the rubber bands on individual audio clips after setting them to "show clip volume".  If I set them to "show track volume" they appear.  The problematic tracks seem to be in left and right channels when they were originally r