How to view ms access data base on click of button

hi every1
i m a newbie in java.
i m designing a simple website where i hv to show data on click of a button.
i am able to access data from the database.
but the problem is->
i want to show 1st record when the page opens up and the next record only when the user click the next button.
i m using ms access as database.
can any 1 help.
thanks in adv

the code i m using is->
<%@ page import="java.sql.*" %>
<htmL>
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String dataSourceName="mydsn";
String dbURL="jdbc:odbc:" + dataSourceName;
Connection con= DriverManager.getConnection(dbURL,"","");
Statement s=con.createStatement();
s.execute("select * from web");
ResultSet rs;
rs=s.getResultSet() ;
rs.next();
%>
<body>
<script>
function getDetails()
rs.next()
</script>
<form method="post">
Website:<input type="text" value="<%=rs.getString(1) %>"><br>
Url:<input type="text" value="<%=rs.getString(2) %>"><br>
Category: <input type="text" value="<%=rs.getString(3) %>"><br>
Description: <input type="text" value="<%=rs.getString(4) %>"><br>
Search Engine-><br>
Yahoo: <input type="text" value="<%=rs.getString(5) %>"><br>
Google: <input type="text" value="<%=rs.getString(6) %>"><br>
Altavista: <input type="text" value="<%=rs.getString(7) %>"><br>
<input type="button" value="Next" onClick="getDetails()">
</form>
</body>
</html>

Similar Messages

  • I have a new imac21.5 how do I open Appleworks6 Data Base files?

    I have a new imac21.5 how do I open Appleworks6 Data Base files? And how do I access Quicken files?

    You won't be able to use AppleWorks on that computer. You will need to open your AW database files on an older computer that can run AW6 then export your database files to a standard text format such as CSV or tab-delimited.
    You can then import those files into some other database program such as iData 3.1.18.
    Quicken does not currently work with Lion but Intuit has announced they will issue a new version sometime this year. You can try using another application that can import Quicken's datafiles or export the data to format other applications can use. Or you can switch to Quicken Essentials that does work with Lion.

  • How to View the Loaded Data

    Hi,
    I have loaded the data into an ODS from an External Flat file and executed the job. Can anyone guide me how to view the loaded data in the ODS ?
    Thanks

    Hi Madhu,
    You can simply Goto Transaction LISTCUBE and give the ODS name -> Execute.
    Regards
    Hemant

  • How to know last access date for the schema's

    Dear all,
    could u plz tell me How to know last access date for the schema’s
    Regards,
    Srinivasa rao.P

    Srinivas,
    could u plz tell me How to know last access date for the schema’s
    In Oracle, we don't access schemas but schema objects.And this informationis not kept anywhere persistantly.As Amit also mentioned,if you do need it,you have to enable Auditing.
    Aman....

  • I want to add image in column is it possible then how to add image in data base what data type we need to do

    I want to add image in column is it possible then how to add image in data base  what data type we need to give we required any casting  please show me one example
    jitendra

    Hi again,
    Several points that can help more:
    1. If you are working with Dot.Net, then I highly recommend read the first link that you got! This is nice and simple coding. Another option is this link which is even better in my opinion:
    http://www.dotnetgallery.com/kb/resource21-How-to-store-and-retrieve-images-from-SQL-server-database-using-aspnet.aspx
    2. As i mention above both link use the column's type image. There are several other option of working with Files. In most of my applications architecture I find that it is better to use a column which let us use any type of file and not an image column.
    In choosing the right column's type for your needs basically your fist question should be if if you want to store your data inside relational database environment or outside relational environment. It is a good idea to look for blogs on this issue. Next
    if you chose to store your data inside then you need to chose the right column type according to your server version. I highly recommend to look for blogs on the differences between those column's types: IMAGE, 
    Check those links:
    To BLOB or Not To BLOB: Large Object Storage in a Database or a Filesystem
    http://research.microsoft.com/apps/pubs/default.aspx?id=64525
    FILESTREAM feature of SQL Server 2008
    http://msdn.microsoft.com/library/hh461480
    FileTables feature of SQL Server 2012
    http://technet.microsoft.com/en-us/library/ff929144.aspx
    Compare Options for Storing Blobs (SQL Server)
    http://technet.microsoft.com/en-us/library/hh403405.aspx
    Binary Large Object (Blob) Data (SQL Server)
    http://technet.microsoft.com/en-us/library/bb895234.aspx
    Managing BLOBs using SQL Server FileStream via EF and WCF streaming
    * Very nice tutorial!
    http://petermeinl.wordpress.com/2012/02/20/managing-blobs-using-sql-server-filestream-via-ef-and-wcf-streaming/
    [Personal Site] [Blog] [Facebook]

  • How can I find a data base table containing a GUID, which is result of the macro's execution?

    Hello,
    please help me to understand how the macros work. I am facing database inconsistency. The CRM-system retrieves a GUID of an opportunity’s item and checks its existence. However, this GUID (here it is es_info-ref_object) does not exist. As result, an exception is triggered.
    I am trying to figure out which data base table is responsible for the inconsistent data. Instead of SELECT statement, I see in the debugger that a macro retrieves the “guilty” entry .
    macro_execute macro_msg_data_read_rea.
    My Question: How can I find a data base table containing a GUID, which is result of the macro’s execution?
    Thanks a lot
    Andrej

    When you save a PDF out of Distiller it doesn't just have different options, it's an entirely different program. It doesn't do things the same way, so it can't have the same options. Saving from Distiller is in many ways better, expecially in that transparency isn't flattened.
    What specific options are you looking for?

  • How to switch from  one Data base to another data base

    Hi,
    How to switch from one Data base to another data base if first data base server like in restoring,blocking,network disconnected state.
    Please help out for the same.
    Regards,
    Anilkumar

    Sounds like a problem for forums/support from the DB provider, as this problem is normally solved through some form of HA provided by the DB (or some cluster software, but still not Java) with, normally, a shared (virtual) IP address.

  • How to view page info other then right click mathod

    how to view page info other then right click mathod

    I'm not sure exactly what you are after but if I remember correctly Fx3 Tools menu has "Page Info" with information the same, or at least similar, to that in '''the-edmeister''''s method.

  • How to pop a virtual calendar with a click of button in swing applications

    How to pop a virtual calendar with a click of button in swing applications
    Does anyone knows how to pop up a virtual calendar in swing applications when there is a click of button. Do u have any components plug in tutorials or free java components download. Does java allows to used Microsoft calendar active x to plug into java applications. Thanks

    If you want a simple date picker, try this one
    http://forum.java.sun.com/thread.jspa?threadID=620699&messageID=3497753its a stand alone, but can be easily modified to include in a popup, and,
    instead of displaying the date:
    - passing the 'date picked' back to the calling object
    - close the popup

  • How can we enable tick icon when user click any button

    how can we enable tick icon when user click any button in captivate 6@

    hi first of all thanks for imitate action.
    actually i want to make a menu (TOC) with tick icons, on starting all ticks are disabled but when i click on any button from my menu i want to enable tick for that particular button so that user can know easily the visited button.

  • How i can import  MS access Data base in Oracle 9i

    Dear ALL,
    i am feacing problem in import data base from MS ACCESS to Oracle 9i the procedure was very simple in oracle 8.0.5 but dont know what is in Oracle 9i pls i am in big tribble just boz of this problem pls tell me the solution of this prob with brief Steps would be very thank full to you
    Nauman Mirza

    Naumann,
    Have you checked out the Oracle Migration Workbench? You will find a lot of infromation about it here on OTN.
    Donal

  • How to view and access files on my iBook G3 from another iMac

    **Hello, everybody on this excelent forum. I need to know how to use my Firewire conection, to view and access files in my iBook G3, from another iMac G3, both are OK in working good condition. I put this question because some days ago a Mac expert fix to me the access in my recent SwapMeet second hand aqcired iMac G3, without the original last owner password.
    this person are egoistic, and DoNot show me how he use the Firewire do this job.
    Thank You: Eduardo from NorthWest Mexico.

    Hello, Niel, Thank You very Much for your fast and kindly responce.
    the next monday I'll buy a new FireWire cable to test the metod you tell me.
    Again thanks and best regards from NW-Mexico.
    Eduardo

  • How to import MS Access Data to Oracle

    At form level by clicking a push button I want to import Ms Access Data to Oracle . Is it possible.
    If yes can you tell me how to proceed.

    Done that like this :
    you create a new ORACLE ODBC connection in the ODBC section of the control panel (you are in Windoze world, don't you?). After you open your Access database and do a file, export, external data, scroll down for ODBC and PICK A NAME FOR YOUR NEW ORACLE DATABASE IN CAPITAL LETTERS, you sign in and the export begin...
    Have fun, and remember that if you have special caracter, like me in french, you must errase all of them, because you never know what it is gonna be in Oracle DB.
    null

  • How to retrive images from data base

    I am facing problem to retriving image data from
    DATABASE
    and how can i so that retrived image into web page
    plz help me

    Look at the URL below:
    How to store/retrieve image to/from SQLServer
    http://www.java-tips.org/content/view/203/29/
    Example below fetch pdf doc from database and show in browser, in order to show image the only difference would be setting the content type to
    response.setContentType("image/jpeg");
    How to view XLS documents loaded from database in the web browser
    http://www.java-tips.org/content/view/844/29/

  • Error to Access Data Base on SAP Netweaver 6.40 Sneak Preview SP14

    Hi guys,
    If someone could help me I'd be very grateful!
    I've installed the NW 6.40 Sneak preview SP 19 and it's working well, however I tried to access the Data Base by MaxDB. So I provided the configuration data, such as:
    Server: myServer like 192.168.0.12
    DataBase: J2E
    User: SAPJ2EDB
    Password: myPassword
    but when I try to connect on it, the system does not allow and display me the following message:
    24950 user authorization failed,
    I tryed to use the user Custom but it also didn't work! the system display me the following message:
    Invalid Session ID!
    PS: When I try to access my ConfigTool to change the SAPJ2EDB password the ConfigTool doesn't open and display me this message:
    Error occurred while working with Configuration (Scanning).
    Msg: Error while connecting to DB.
    In my opinion I suppose that I need to apply some note. What do u think about that? I suppose it coz I've installed the WAS and I didn't do anything more!
    beforehand, thanks for help!
    Cheers!
    Eduardo

    Hello Eduardo,
    1. Could you please check if you could connect to the database using dbmcli tool:
    Login as j2eadm user, run the following commands & update with outputs:
    dbmcli db_enum
    dbmcli u2013d J2E u2013u control,<pwd> db_state
    dbmcli u2013d J2E u2013u control,<pwd> user_getall
    2. What ist he database version?
    Thank you and best regards, Natalia Khlopina

Maybe you are looking for