JDBC in JSP

Hello,
I am new to java, jsp, and jdbc. My programming expirence is in vb, and asp. When I would connect to a database using asp, I would create a file with my database connection string and then included it into every asp page that needed a database connnection. That way I could switch my databases much easier.
Now I am designing jsp's with jdbc connection. I have been making a connection to my database on every page. Could I use a similar approach in my jsp to connect to my database? Can I include a jsp file with my data connection on every file? Should I use a java bean? Are there any good examples out there?
Thanks,
Brad

I was in exactly the same situation about 3 years ago and I made a lot of mistakes trying to mimic the VB/ASP way of producing websites. My first suggestion is to forget the way you used to do it with includes.
It's one of those things that will come with experience, but I would suggest that you start by writing all of your data access code in Classes. Then write business logic Classes that use the data access Classes to get the data. Then think about how to present the information the business logic returns to you.
But don't, I can't say this enough, don't, get into the habit of using includes for dynamic content. You will regret it further down the line when you have to maintain your website.
Spend the time now understanding the idea behind the 3 tier architecture and you will thank yourself for it later.

Similar Messages

  • Best practice for dealing with Recordsets, JDBC and JSP?

    I've spent the last three years developing web apps using JSP, Struts and Kodo JDO for persistence. All of the content for the apps was created as Java objects using model classes and saved to an Oracle db. Thus, data retrieved from the db was as instances of the model classes and then put into Struts form beans, etc.
    I changed jobs last month and am now having to use Servlets with JDBC to retrieve records from db tables and returning it into Recordsets. Oh, and I can't use Struts in my JSPs either. I'm beginning to think that I had it easy at my previous job but maybe that's just because I was used to it.
    So here are my problems/questions:
    I have two tables with a one to many relationship that I need to retrieve data from, show in a jsp and be able to update eventually.
    So here's what I am doing:
    a) In a servlet, I use a SQL statement to join the tables and retrieve the results into a Recordset.
    b) I created a class with a bunch of String attributes to copy the Recordset data into, one Recordset row per each instance of the bean and then close the Recordset
    c) I then add the beans to an ArrayList and save the ArrayList into the session.
    d) Then, in the JSP, I retrieve the ArrayList from the session and iterate over each bean instance, printing the data out to the jsp. There are some logic statements to determine when not to print redundant data caused by the one to many join.
    e) I have not written the code to update the data yet but was planning on having separate jsps for updating the (one) table and the (many) table.
    Would most of you do something similar? Would you use one SQL statement to retrieve all of the data for display and use logic to avoid printing the redundant part of the data? Or would you have used separate SQL queries, one for each table? Would you have saved the results into something other than an instance of a bean class that represents one record in the RecordSet? Would you have had a bean class with attributes other than Strings - like had a collection attribute to hold the results from the "many" table? The way that I am doing everything just seems so cumbersome and difficult compared to using Struts and JDO before.
    Your help/opinion will be greatly appreciated!

    Would you use one SQL statement to retrieve all of the data for display Yes.
    and use logic to avoid printing the redundant part of the dataNo.
    I believe in minimising the number of queries. If it is a simple one-many join on a db table, then one query is better than one + n queries.
    However I prefer to store the objects in a bean class with attributes other than strings - ie one object, with a collection attribute to hold the related "many" records.
    Does the fact you are not using Struts mean that you have to use scriptlet code? (shudder)
    Or are you using JSTL, or other custom tags?
    How about tools like Ant? Junit testing?
    The way that I am doing everything just seems so cumbersome and difficult
    compared to using Struts and JDO before.Anything different takes adjusting to. Sounds like you know what you're doing for the most part. I agree, in terms of best practices what you have described so far sounds like a step backwards from what you were previously doing.
    However I wouldn't go complaining about it too loudly, too quickly. If you're new on the block theres nothing like making a pain of yourself, and complaining how backwards the work they have done is to put your new workmates' backs up
    Look on it as a challenge. Maybe discuss it quietly with a team leader, to see if they understand how much easier/better/less error prone such approaches can be?
    Struts, cumbersome as it can be, definitely has the advantage of pushing you to follow good MVC practice.
    Good luck,
    evnafets

  • How to call BULK COLLECT using JDBC in JSP?

    Hi
    I am using BULK COLLECT instead of CURSOR in my Stored Procedure.
    How to use these stuff in JDBC.
    If i am using CURSOR means
    cs.registerOutParameter(1,oracle.jdbc.driver.OracleTypes.CURSOR);
    is used.
    Which types i have to use?
    I am retriving morethan one record using FOR. LOOP in SP and before that
    BULK COLLECT is used in SELECT query..
    Can you give jsp code for this?
    Thanks

    you may find related sample jdbc code on otn - http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/index.html
    Best regards.

  • Problem Loading JDBC Enabled JSP Page

    Hi all, does anyone knows that's the case of this error:
    This happened when I tried to access MySQL Database from remote client. I have no problem loading normal jsp file w/o JDBC Connection. Kind of confused on what is going on
    Regards,
    Joe
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: com.mysql.jdbc.Driver
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:536)
    root cause
    javax.servlet.ServletException: com.mysql.jdbc.Driver
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536)
         at org.apache.jsp.dbquery_jsp._jspService(dbquery_jsp.java:112)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:536)
    Apache Tomcat/4.1.24

    Hi scsi-boy, first of all, thank you so much for your
    prompt and fast response. So how do i tackle
    ClassNotFoundException ?.i'm sorry coz i'm a newbie to
    jsp. I hope by providing my configuration below could
    aid you in understanding my problem.
    I've place the setting config in /etc/profile with the
    following:
    JAVA_HOME=/usr/local/java
    CATALINA_HOME=/usr/local/tomcat
    ANT_HOME=/usr/local/ant
    APACHE_HOME=/usr/local/apache
    MYSQL_HOME=/usr/local/mysql
    CLASSPATH=${CATALINA_HOME}/common/lib/servlet-api.jar:$
    YSQL_HOME/connector/mysql_connector/mysql_connector-jav
    -3.08-stable-bin.jar:${JAVA_HOME}/lib/tools.jar:${JAVA_
    OME}/jre/lib/rt.jar:./
    PATH=${PATH}:${JAVA_HOME}/bin:${ANT_HOME}/bin:
    MANPATH=${JAVA_HOME}/man:${MANPATH}
    export JAVA_HOME ANT_HOME APACHE_HOME MYSQL_HOME
    CATALINA_HOME CLASSPATH PATH MANPATH
    As you can see, i've un-tar mysql_connector in
    /usr/local/mysql/connector directory and set my
    classpath to point to that file. Is that the proper
    way to do it?
    Regards,
    Joesorry not a JSP expert however just to clarify i am guessing that it is a ClassNotFoundException. it could be something else entirely and i don't really want to send you on a wild goose chase. we need to know what the root exception actually is.
    i am off to sleep now but i'm sure if you can give a little more information which may involve figuring out how to get it to cough up more information someone will help you here.

  • Classpath in tomcat.bat for jdbc driver (jsp page)

    Dear Friends,
    I am able to run my java program with Microsoft JDBC driver from console (dos prompt).
    But, when i am trying to run JSP program on browser using, the same driver, it is saying classNotFoundException().
    do i need to set the classpath for Microsoft jdbc driver in my tomcat.bat ?
    Please help me, what changes do i have to do in tomcat.bat to run the microsoft jdbc driver for jsp application.
    If anyone having idea, please share ur valuable ideas.
    thanks in advance.
    yours
    Rajesh
    [email protected]

    If the driver is packed in a jar-file, you can just place the jar in the lib directory of Tomcat. If it's not, you can pack it in a jar and do the same thing:)

  • Mysql, jdbc, tomcat, jsp...

    hi,
    i am new in this topic.
    i have some simple questions:
    i use windows. i downloaded eclipse wtp, mysql 5.0.41, apache tomcat 6.0.13 and installed them all.
    what version of jdbc should i download and what are the steps for a working connection between jsp and mysql?
    what is the code that i should copy on the classpath?
    where is classpath?
    i know it is very boring for you but if you could help i would be so pleased:)
    thank you..

    what version of jdbc should i download JDBC is just available in the JDK.
    If you mean the JDBC driver, the Connector/J, just refer to the manfacturer's site.
    Here is a link: http://www.mysql.com/products/connector/j/
    For Java 1.5 (JDBC 3.0), get the Connector/J 5.0.
    For Java 1.6 (JDBC 4.0), get the Connector/J 5.1.
    and what are the steps for a working connection between jsp and mysql?
    what is the code that i should copy on the classpath?Read the reference manual available at the Connector/J site.
    http://dev.mysql.com/doc/refman/5.0/en/connector-j.html
    where is classpath?It depends on the running environment. As you're using Eclipse, just rightclick at the project, choose Properties, navigate to Java Build Path, choose tab Libraries and add the JAR to the classpath.

  • Connecting to MSAcess database using JDBC in JSP

    Hi,
    I have created an Aceess database file (C:\db1.mdb) and created a DSN=db1.
    I could able to connect to the database and retrieve the information from the tables using Sun's JDBC OdBc bridge drivers.
    DriverManager.getConnection("jdbc:odbc:db1").
    It was working Fine in my Standalone java program.
    But,when I used the database connection statements in my JSP page,it is not displaying any error message and not selecting rows from the Select statement i used in my JSP page.(The same worked in my standalone Java program).
    I executed the two programs on same machine.Database is also on the same machine.
    Can anyone tell me what shall i do to connect to the database(C:\db1.mdb) through JSP.
    Thanks in Advance
    Rao...

    in your code do you have any things that is suppressing your exception?? i.e. something lik
    try
    // do your stuff
    catch(Exception e)
    // do nothing??
    }if so you vont get to know of any problem that happened....
    also if there is an un handled exception the jsp page will sometimes come up as blank, because your print streem will be terminated abrubtly....
    this will probably happen if you dont have a try - catch block at all, or if you are not handling the exception that is being thrown.... try inclosing your code in a try catch block and doing ex.priintStackTrace() in the catch block to get the exception trace on the server console....
    also can you post some code for both your java client and jsp??

  • Implementing  jdbc using jsp and servlets

    please give me documnetation and few programs with code .
    implementing or using jdbc with servlets and jsp.

    please give me documnetation and few programs with
    code .
    implementing or using jdbc with servlets and jsp.Well, which do you want to do? Implement JDBC with servlets and JSP - a tricky job, but there's no technical reason why you couldn't for instance write a class which both extends HttpServlet and implements java.sql.Driver. Wouldn't recommend it, though

  • [b]Config JDBC for JSP to connect to OracleDB[/b]

    I use iWS6.0 and JDK1.2 to enable JSP.
    To use JDBC Driver to connect to OracleDB, I simply set CLASSPATH to the location of classes12.zip, and I have tested in java command-line, it worked fine.
    To let JSP work with JDBC, I edit file jvm12.conf so that the jvm.classpath to location of classes12.zip, but it doesn't work.
    Could someone guide me to the solution, or some document to read.

    Class.forName("COM.ibm.db2.jdbc.app.DB2Driver");Modify these lines as this, checking whtr the driver is available in the correspopnding package...
    Class.forName("COM.ibm.db2.jdbc.net.DB2Driver");
    i suppose that this works out well.

  • Can't run jdbc with jsp

    Hello,
    I tried to run a jsp file that accesses a jdbc database, but I got this error :
    exception
    org.apache.jasper.JasperException: Impossible de compiler la classe pour la JSP (in english: Unable to complie the class for the JSP)
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    cause m�re
    Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK
         org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106)
         org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
         org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Can some body help ?
    Thanks

    I fixed it by copying the file "tools.jar" in the
    directory "common\lib".
    Thanks
    WebCEOYou shouldn't have to do that.
    You installed your JDK in "Program Files". Paths with spaces in them are anathema. I'll bet that's the root cause. Reinstall to a path without spaces in it and you won't have to move the tools.jar into common/lib.
    %

  • Concurrent Access to JDBC from JSP

    I'm sure that I am not the first to ask this !!
    I have a JSP page that uses a bean to access a database table.
    This page gets a set of records, and displays a list, with the Primary key set to a hyperlink.
    This link tkaes the user to a detail page, that gets the specific record and displays all the fields.
    Now, if while the index page is running it's query, another page also runs the query, the two lists get mixed up, or if a user calls up the detail page, while another is running the list, the detail page doesn't grab the correct record.
    I have set <%@ page isThreadSafe="false" %> on every JSP page, and also set every public method in the bean to synchronized, but still the problem.
    The bean has PAGE scope.
    Any ideas ?? It's driving me nuts !!

    I am facing the same problem...... When same JSP Page Query is accessed by more than one client at the same time, results get mixed up. Is there any to prevent this....Please HELP!!!!!!!!!!!!!!!!!

  • Problem when using JDBC with JSP

    Hi,
    I am trying to display results after a database query on a JSP page, and then provide the options delete or update one of these records or to add a new one.
    What I did was to pass the ResultSet object to the webpage, and then display the result. When the buttons are pressed, I pass this ResultSet to another jsp page where I provide the required functionality. This is then forwarded back to the previous JSP, where the new data is displayed.
    However, when the first page is re-displayed, it creates a new connection and i was wondering if there is a way to close the previous connection through the ResultSet?
    Also, I wanted to put the ResultSet in a bean, but I think it is causing an error in the web server, saying something like it is not Serializable. Is there any other way to pass the ResultSet around?
    Any suggestions on better ways to manage databases though web interfaces would be welcome, or if someone could point me to a good tutorial on this topic!
    cheers
    Ankur

    Bad idea to be passing ResultSets around. Those are database cursors, a scarce resource.
    You should load that data into a data structure, close the ResultSet immediately, and then pass the data structure around in session if you must.
    Better yet, have a central servlet that deals with all database calls. Let the JSPs just do display, as they were meant to. - MOD

  • JDBC from jsp (performance)

    Hello everybody.
    I am developing a web application with jsp and beans, i have a connector bean that opens a connection with a database, then this connection is setted in the session, so the other classes can use it to create preparedStatements.
    First Question:
    Is this the best way to do it? i would appreciate any other suggestion that improves performance and reliability.
    Second Question:
    What is the best way to manage concurrent connections to the database, as i have modeled it, there will be one connection per user, but what if there is 100 users at the same time, if i need this application to be fast and reliable, what would you suggest... thank you very much. Bye
    Otto

    There is no golden rul to build the system. Every situation may need different best answer. However, field experts established some common wisdom which has been proved to be good in many situations.
    1. Model 2 : Like other dynamic content technology, JSP is suffering the problem of sharing sources between tech and non-tech people. Avoiding as much as java codes in jsp will remove much headaches. Model in JSP spec is recommended in that sense. (Still you can't avoid accusing other side for messing up the code, if your desing is not complete up front)
    2. Connection Pool. is the most common way to reduce the overhead of creating the connection to the database. Keep the connections in some in-memory store and reuse them.
    3. Focus on building the whole system instead of building view components. Solidly designed back-end server properly equipped with data caching will improve your system as a whole.
    Cheers,

  • Using JDBC with JSP

    I have a standalone application using Swing. Im converting it to a web / JSP/Servlets application.
    Can my JSP acess my database using the same classes it used to or should I configure in my Tomcat a data source and call my database using the jndi name ?
    thx in advance,
    Giselle

    Agreed - JSPs are best for presentation.
    I have a front controller servlet that delegates to POJOs to do database interactions and then forwards results to JSPs for display. No scriptlet code in my pages, no database interactions, just looping through collections and displaying the results. - MOD

  • Next page previous page using JDBC in JSP

    Hello,
    I wanted to know how the previous page and next page is developed when an user serches for a particular string in a web site.They are restricting the database to display only 10-25 rec per page and giving an option like next, when an user clicks next the next 10-25 rec are shown how is this done.
    Please e-mail me the source code if availabale to [email protected]
    Thanks in advance
    Anu
    null

    Hi Anu,
    visit technet.oracle.com site, go to sample section, in that choose JDBC section, here you will find example similar to your problem which you have describe below -
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Anu:
    Hello,
    I wanted to know how the previous page and next page is developed when an user serches for a particular string in a web site.They are restricting the database to display only 10-25 rec per page and giving an option like next, when an user clicks next the next 10-25 rec are shown how is this done.
    Please e-mail me the source code if availabale to [email protected]
    Thanks in advance
    Anu
    <HR></BLOCKQUOTE>
    null

Maybe you are looking for

  • I-pod touch works on a Mac but not a PC

    Please help! My I-pod touch works on a Mac but not a PC. When hooked up to a PC, the device is not recognized in I-tunes message, says I-pod in recovery mode and to restore, after checking update and restore, receive unknown error message (9). Have t

  • IMovie w/ Network Accounts

    Server : XServer Running 10.6.8 hosting Worgroup Manager for user management Clients : 2010 MacBooks running 10.6.8 Software : iMovie 11 I work for a school district and teachers are starting to want their students to create iMovie projects. All stud

  • My iPad App Store has  changed from the UK store to the US store, how do I get my version back?

    My iPad App Store has somehow changed from the UK App Store to the US App Store, how do I get my version back?

  • How to list all physical schemas in ODI procedure

    Dear Experts, I am trying a requirement which is to execute a set of sqls in all the schemas configured in ODI. for example 1) I have four data servers/physical schemas configured in Physical Architecture under Oracle techonlogy. 2) Created correspon

  • How to tune gc cr block 2-way and gc current grant 2-way

    Hi, I'm working on an Oracle Database 11g Release 11.1.0.6.0 - 64bit Production With the Real Application Clusters option, Standard Edition. During last days I'm suffering performance lack due to 2 main wait event classes: gc cr block 2-way gc curren