Integration of PL/SQL and JSP (Java Server Pages)

I need to match a web application developed with PL/SQL with another developed in JSP (Java Server Pages) the problem is that the two apps interact with the same databese, an share de same users, I need to know how to get the user and password loged into pl/sql when the user want to use same of de .jsp pages running on another application server?

Hi Michael Vstling,
Did you try the java classes library (SDOAPI) that can be downloaded from OTN?
It may provide you with a better alternative when manipulating geometries in the Java space. There is an adapter in SDOAPI which can convert a JDBC STRUCT object into Java Geometry object defined in SDOAPI, and vice versa.
There are at least two ways in mixing PL/SQL and Java. The first one, as you mentioned, is to define your custom function in terms of PL/SQL and call it from within your Java program. With SDOAPI, you have the second option, which is to define your own functions in Java using SDOAPI and deploy them as Java stored procedures in db. You can then call them from within your PL/SQL code. In either way performance depends on a lot of things and generally it requires a "try and improve" approach.
About JPublisher and sdo_ordinate_array it may not be a spatial related problem. Did you try search the Java-related forums first?
LJ

Similar Messages

  • MS Access & MS SQL from a Java Server Page

    I'm new to JSP but I know how to write Active Server Pages and was wondering how to set up a JSP so that I can access data in my MS Access database and also my MS SQL server.
    Anyone have code snippets that connect to these two databases, retrieve and update data in a table?
    Also, what's the easiest way to deploy a JSP page, I've got J2EE, JDK, Tomcat, Apache installed not sure how to just deploy a JSP page so I can test it.
    Thanks in advance,
    dez

    the above connection example is ok, to deploy the jsp first you need of course
    Apache with some servlet container such Tomcat or Resin or JServ...
    For Tomcat there should be an folder in server root where the static pages are to be put
    (as htdocs in apache for example) for every application, and usually is webapps and in this folder
    you put another folder that will contain all of your stuff. In this folder, let say is named myapp, you
    can put the jsp's and html's. Yes you can simply put it there but for the jsp to work you need in
    this folder another one named WEB-INF that must have an xml file named web.xml where you must
    set up a lot of stuff for your web-application, you can for test just to copy it from
    wbapps\examples\WEB-INF\web.xml and
    delete everything between <web-app></web-app>. Then start or restart your web server and if the
    jsp is in webapps\myapp and it is named test.jsp then type in your browser:
    http://127.0.0.1:8080/myapp/test.jsp.
    Another thing: for the connection to work of course the connection parameters should be ok and the
    database connection driver should be put in the tomcats classes classpath.
    Just put it in webapps\myapp\WEB-INF\classes... where ... is of course the package folders.
    Hope I'd helped you a little bit.
    whiteadi

  • SQL query with Java Server Pages

    Hey,
    I'm trying to read some information from database with SQL Query. How I can put the parameter that I get from previous *.jsp page to SQL query?
    Technologies that I use are WML, JSP and MySQL.
    I can get the parameter by method getParameter() and it is correct.
    But how to but the requested parameter into sql query and complete the sql query?
    Should I read it to some variable before putting it to sql query?
    */ this works fine */
    out.println("<p>periodi"+request.getParameter("periodi"+"loppu</p>");
    /* this doesn't work */
    ResultSet tulokset = lause.executeQuery("select * from kurssi where periodi='+request.getParameter("periodi")+'");
    /* this doesn't work */
    String periodi=request.getParameter("periodi");
    ResultSet tulokset = lause.executeQuery("select * from kurssi where periodi='periodi' '");
    Thanks,
    Rampe

    Hey,
    I'm trying to read some information from database
    se with SQL Query. How I can put the parameter that I
    get from previous *.jsp page to SQL query?
    Technologies that I use are WML, JSP and MySQL.
    I can get the parameter by method getParameter()
    () and it is correct.
    But how to but the requested parameter into sql
    ql query and complete the sql query?
    Should I read it to some variable before putting it
    it to sql query?
    */ this works fine */
    out.println("<p>periodi"+request.getParameter("periodi"
    "loppu</p>");
    /* this doesn't work */
    ResultSet tulokset = lause.executeQuery("select * from
    kurssi where
    periodi='+request.getParameter("periodi")+'");
    /* this doesn't work */
    String periodi=request.getParameter("periodi");
    ResultSet tulokset = lause.executeQuery("select *
    * from kurssi where periodi='periodi' '");
    Thanks,
    RampeTry this
    ResultSet tulokset = lause.executeQuery("select * from kurssi where periodi=" + "'" +request.getParameter("periodi")+"' " );this should work

  • Code to set and destroy session variables in Java Server Pages(JSP)

    code to set and destroy session variables in Java Server Pages(JSP)
    we have use following statement to set session variable
    session.setAttribute("userClient",id);
    we have use following statement to destroy session variable
    session.setAttribute("userClient","");
    and
    the session.invalidate() is not working
    Plz. solve this probem

    code to set and destroy session variables in Java
    Server Pages(JSP)
    we have use following statement to set session
    variable
    session.setAttribute("userClient",id);
    we have use following statement to destroy session
    variable
    session.setAttribute("userClient","");Perhaps if you tried using
    session.setAttribute("userClient", null);
    or
    session.removeAttribute("userClient");
    and
    the session.invalidate() is not workingNot working how?
    >
    Plz. solve this probem

  • How do I set a breakpoint in a Java Server page (.jsp)?

    I have set up an application for remote debugging and am able to connect to it from JDeveloper. When the code execution comes to breakpoints that I have set in java (.java) files they work and the application stops so I can debug etc.
    This also applies to breakpoints set in java code that is called from Java Server pages.
    However if I set breakpoints directly in a java server page whether it is in html code or in java code (such as scriplets) the execution does not stop and the breakpoints are ignored.
    Why? Is there some extra thing I have to do? I have tried in Project Properties/Run/Debug/Profile/Edit/Launch Settings to choose server as Virtual Machine for instance but that does not change anything.
    Comment. I do not know if this is of interest but I am going to add some java server pages to an application and they are defined in a directory like this:
    . . . src\org\yawlfoundation\yawl\resourcing\jsf\jsp
    but when the tomcat deploys the .war file they end up here:
    . . . apache-tomcat-6.0.18\webapps\resourceService
    As I can find no package declaration in a .jsp file this should not matter but I mention it anyway.
    Edited by: user10477024 on Nov 25, 2008 5:32 AM

    Hi user10477024,
    thanks for explaining your background on what you are trying to do and I do understand the approach you are taking. Unlike user10689900's completely random post.
    I've tried to convey why there is no support for JSP debugging in JDev, but again the main reason is that the current frameworks do not code Java directly into a JSP. The JSP is purely used to position the components on the page aiding visual design and real Java classes in tag libs do the rest.
    So the evolution has been:
    Servlets (Java classes writing HTML logic and intermingling presentation and business logic)
    JSP 1.0 JSP (HTML looking) files where you can add scriptlets enclosed in <% ... %> <- you are here
    JSP 1.1 Introduction of Tags and Tag libraries, tag libraries are true java classes and the JSP controls layout and simpler more elegant design.
    Really JSP 1.1 is all about building reusable components together in tag libraries that can be reused across pages and improving design by not mixing presentation and business logic code together.
    If I had inherited something as you have, my advice (if you can) would be to code up some tag libraries because it would be a good learning experience and would be very helpful for moving to more advanced frameworks like JSF.
    regards,
    Brenden

  • Java Server Pages Programming Database Access Error Through Tomcat

    Question# 1
    I am trying to access MYSQL Database through JAVA Server Pages programming using Tomcat Server as web server on win xp.
    Whenever I give following url http://localhost:8080/jspBook/ch1/customers.jsp in web browser , I get followin errors.
    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
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.NullPointerException
    org.apache.jsp.ch1.customers_jsp._jspService(org.apache.jsp.ch1.customers_jsp:96)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.15 logs.
    Apache Tomcat/5.5.15
    I am facing this problem since one month. I tried searching on google, but could not get concrete answer. I have configured mysqlconnector to connect to mysql and also configured other things in Tomcat's webapps folder. But I could not overcome this error.
    Please reply urgently. Thankz for the help and time. ?
    <!-- JSP Directives -->
    <%@ page import="java.sql.*" %>
    <%@ page contentType="text/html" %>
    <html>
    <head>
         <title>Insurance Quoting System</title>
    </head>
    <body>
    <basefont face="Arial">
    <!-- JSP Declarations -->
    <%! ResultSet rs = null;%>
    <!-- JSP Scriptlet -->     
    <%
         try {
              Class.forName("org.gjt.mm.mysql.Driver");
              Connection db = DriverManager.getConnection(
    "jdbc:mysql://localhost:3306/quoting");
              Statement s = db.createStatement();
              rs = s.executeQuery("select * from customer");
         catch (Exception e) {
    // For now, just report the error to the system log
         System.out.println(e.toString());
    %>
    <!-- Template text -->
    <table width="550" border="0" align="center">
    <tr>
    <td bgcolor="#006633">
    <div align="center">
              <font size="6" color="#FFFFFF"><b>Insurance Quoting System</b></font>
         </div>
    </td>
    </tr>
    <tr>
    <td>
    <p> </p>
    <p> </p>
    <p align="center"><b>Customers</b></p>
    <table width="290" border="0" align="center">
    <%
         try {
              while (rs.next()) {
    %>
    <!-- JSP Expressions used within template text -->
         <tr>
              <td width="20"><%= rs.getInt(1) %></td>
              <td width="70"><%= rs.getString(2) %></td>
              <td width="70"><%= rs.getString(3) %></td>
              <td width="40">
                   <a href="custMaint.jsp?id=<%= rs.getString(1) %>&action=edit">edit
    </a>
              </td>
              <td width="40">
                   <a href="custMaint.jsp?id=<%= rs.getString(1) %>&action=delete">delete
    </a>
              </td>
              <td width="40">
                   <a href="custMaint.jsp?id=<%= rs.getString(1) %>&action=newQuote">new quote
    </a>
              </td>
         </tr>
    <%
         catch (SQLException e) {
         // For now, just report the error to the system log
         System.out.println(e.toString());
    %>
    </table>
    </td>
    </tr>
    <tr>
         <td>
              <p> </p>
         <p align="center">New Customer</p>
         </td>
    </tr>
    </table>
    </body>
    </html>
    I have tried all possible configurations of classpath with mysqlconnectorj and Tomcat, but i could not find any solution. Plz help urgently. Thankz a lot.

    Your DB connection is probably failing
    As a result your result set "rs" is null when you get to it later on, causing a null pointer exception.
    Do you need to provide a username/password for your database?
    Have you configured your database to allow connections from localhost?
    If you haven't already figured it out, doing SQL programming in a JSP is bad practice. Put your SQL code into a java bean / class where it belongs.

  • Java Server Page

    Good Day, Gentleman and Ladies
    I need help in Java Server Pages (JSP)
    I using Weblogic 6.1 as Development Environment.
    Developing in Macromedia Dreamweaver 4.
    When I preview using Dreamweaver, It can be display properly.
    But when viewing in Internet Explorer, it give following error
    unreachable statement - out.print("\r\n\t\t\t
    uses or override a deprecated API.
    Following is the statement in JSP Code
    <input name="<%=ParamName%>" type="text" value="" size="8">
                                  <a href = "javascript:show_calendar('parameterInputForm.<%=ParamName%>');"><img src="images/toolbar/calendar.gif" border=0 alt="Click to see calendar" align="abmiddle"></a>
    Could any kind souls please help me in it.
    Thank you very much, your help is deeply appreciated
    Luo_Sha_Zong_Zu

    Hi
    First, dont put msg with subjects like "Java Server Page". Put msg with subject showing the problem, like "unreachable statement - out.print("\r\n\t\t\t uses or override a deprecated API"
    Your problem is with the value of the var "ParamName". It has something with "return" and "tab". Check it

  • Displaying a picture or image in a java server page

    I am using tomcat to load my java server pages. I need to display a picture in the page. Can somebody help?

    The images are not located on my site, or computer, but rather they are located on different websites. This is what the browser recieves when the jsp runs:
    <IMG SRC="http://www.thesite.com/images/theimage.gif"/>
    and the site that is running the JSP is:
    www.mysite.com/jsp/PicPage.jsp
    Is this what you think maybe happening when the browser tries to process the linked image:
    www.mysite.com/images/theimage.gif
    I don't really understand the nuances of HTML, but if I specify a web address completely in the HTML then wouldn't that specified website be queried for the pictures by the web browser?
    Thank you for any help you can provide.
    John

  • Java Server Page Translation Error

    Hello !
    I'm new in JSP pages and i try to launch Hello.jsp on Java Web Server(2.0)
    I get the following error :
    java Server Page Transalation Error
    Error during compilation
    Can't load class : pagecompile.jsp._Hello
    With Hello.jsp :
    <html>
    <head>
    <title>My first JSP page
    </title>
    </head>
    <body>
    <%@ page language="java %>
    <% System.out.println("Hello World"); %>
    </body>
    </html>
    This is put in the directory public_html
    And and call it with http//myhostname:8080/Hello.jsp
    I really don't understand what the matter with that !
    Thanks very much to help me !

    Sorry i found this error.
    But i've another :
    The html page is generated but Hello World is not printed !
    Have you got an idea ?
    Thanks

  • Using Java Beans in Java Server Pages

    Can we not use a method of Java Bean in a Java Server Page ?
    I am trying to retrieve the user email from a java bean method "getUserEmail". I am instantiating the class, but when I try to use that in JSP tags, I am getting an error.
    <jsp:useBean class = "formjavabean.application" id = "applicationId" scope = "session" />
    <%@ page import="java.io.*, java.lang.*" %>
    <%!
    String user = applicationId.getUserEmail() ;
    String f3 = "ftn03" ;
    String f3not = "ftn03 file not uploaded";
    ...........I am failing in debugging that, can anyone help plz ?

    Here is my whole code in parts:
    First the head section:
    <head>
    <title> Fastran </title>
    <jsp:useBean class = "formjavabean.application" id = "applicationId" scope = "session" />
    </head>JSP part in the body section :
    <%@ page import="java.lang.*, java.io.*" %>
    <%!
    private String f3 = "ftn03";
    private String f3not = "ftn03 file not uploaded";
    private String f7 = "ftn07";
    private String f7not = "ftn07 file not uploaded";
    private String f9 = "ftn09";
    private String f9not = "ftn09 file not uploaded";
    public String checkFile3()
        File ch3 = new File("C:\\JBoss\\jboss-4.0.5.GA\\bin\\Fastran\\ftn03") ;
        if (ch3.exists() == true)
            return f3 ;
        else
            return f3not ;
    public String checkFile7()
        File ch7 = new File("C:\\JBoss\\jboss-4.0.5.GA\\bin\\Fastran\\ftn07") ;
        if (ch7.exists() == true)
            return f7 ;
        else
            return f7not ;
    public String checkFile9()
        File ch9 = new File("C:\\JBoss\\jboss-4.0.5.GA\\bin\\Fastran\\ftn09") ;
        if (ch9.exists() == true)
            return f9 ;
        else
            return f9not ;
    %>Java Script in the body section, using methods defined in the JSP part:
    <script type="text/javascript">
            function validate_file ( )
                    var file3 = "<%= checkFile3() %>" ;
                    var file7 = "<%= checkFile7() %>" ;
                    var file9 = "<%= checkFile9() %>" ;
                    if ( file3 != "ftn03" || file7 != "ftn07" || file9 != "ftn09" )
                        alert("Please upload the required file") ;   
                        return ("fastran.jsp") ;
                    else
                        return ("processForm.jsp") ;
            function validate_upload ( )
                    valid = true;
                    if ( document.val_file.filefield.value == "")
                            alert("Please select a file for upload") ;
                            valid = false;
                    return valid;
        </script>Finally the form and button part of the page, in the body section:
    <form name = "val_file" method="post" action="upload.jsp" name="submit" enctype="multipart/form-data" onSubmit = "return validate_upload();">
    Upload Files: <input type="file" name="filefield" >&nbsp&nbsp<input type="submit" name="submit" value="Upload"><br>
    <font color = "Red"><h5>(ftn03,ftn07, and ftn09)</h5></font><br><br><br>
    Files on the server :<br><br>
    <font color = "Green"><h5>
    <%= checkFile3() %><br>
    <%= checkFile7() %><br>
    <%= checkFile9() %><br>
    </h5></font>
    <br><br><br><br><br><br><br><br><br>
    <input type=button onClick="location.href='logintest.jsp'" value='Home'>  <input type=button onClick="location.href=validate_file()" value='Proceed' ><br>
    </form>Now try this:
    Change <%! to <%, or try using bean method as:
    String userEmail = applicationId.getUserEmail() ;..........and that is my problem. I would really appreciate any help, thanks

  • Books Java Server Pages. I would like to learn

    I have been using PHP for the last 4 years, but would love to learn Java Server Pages, .jsp Can anyone recommend good books that can teach me the basics of .jsp so that I can start creating webpages with webforms etc....
    I see .jsp as a logical progression.

    Hi,
    You will get lot of books on JSP written by some of the best brains in Java / J2EE. However, there is nothing that substitues exposure / experience.
    I would suggest that you use Google & check out some of the web sites that offer helps for beginners in JSP. You can also download OC4J, develop your JSPs & start playing with it.
    And, if you have any problems, the forums are always there...:)
    Regards,
    Sandeep

  • Java server pages+ database

    res sir,
    I want to ask you a qestion regarding a java server page sir pls. can you tell me the answer of my question. i will be pleased to know about my answer.
    Q1:- Can Java Server Pages help to communicate With Databaseand Can I put any informatin in databse through JSP?

    yes jsp pages can communicate with databases, done with jdbc. people use it all the time, like in a login page, you can connect to a database and check the user and password before allowing the user into your site.

  • WHAT ARE JAVA SERVER PAGES?

    Right now I am learning java on my own, and I have a question.
    What are Java Server Pages(JSP)?
    Thanks

    In short, they're standard HTML pages with embedded Java code to dynamically create pages based on values from the user, a database, or some other source. Search the java.sun.com site for a more detailed explanation, and examples too. Or, pick up a book.

  • New in java server pages and j2ee

    hello, im new in jsp and servlet..im new in j2ee..
    my OS is Windows XP ..
    i dont know how to start learning...
    i installed J2EE development kit.. also.. i start the server from (Start Default Server)
    i dont know how to create jsp files. and java files..
    where to write the java code and where to write html code..
    also.. where should i save these files.. i mean.. in which directory?
    i want to know how can i start the servlet and JSP.. someone told me.. to put http://localhost:8080.. when i put this in the browser.. it works correctly..
    can anybody help me????

    http://java.sun.com/learning/training/index.html

  • SQL and JSP compatablility

    This part of code is not working properly as the JSP code has not been encorporated properly in the sql statement after LIKE.
    java.sql.ResultSet RS = statement.executeQuery("SELECT BookID, Ebook.AuthorID, Surname, BookTitle, FileSize, Description, Price, Image FROM Author INNER JOIN Ebook ON Author.AuthorID = Ebook.AuthorID WHERE BookTitle LIKE '*" + bookTitle2 + "*' AND Surname LIKE '*" + surname2 + "*'");
    It doesn't display the shopping cart but if I change the sql code to:
    WHERE BookTitle LIKE '* queen *' AND Surname LIKE '**'
    It works so I know its not the SQL code. I have included the code for the entire page below in case you spot any glaring mistakes.
    <%@ page language="java" contentType="text/html"
    import="ShoppingBasket,Product"
    errorPage="errorpage.jsp" %>
    <html>
    <head> <title>Search Results</title></head>
    <body>
    <table width="80%" border="0" cellspacing="5" cellpadding="1">
    <tr>
    <td width = "15%"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Search
    Results</font></b></td>
    <td width = "10%">�</td>
    <td width = "15%">�</td>
    <td width = "15%">�</td>
    <td width = "20%">�</td>
    <td width = "5%">�</td>
    <td width = "10%">�</td>
    <td width = "5%">�
    <td width="10%"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><a href="<%= response.encodeURL(shop-basket.jsp") %">"><img src="images\viewbasket.gif" border="0" alt="View Basket"></a></font></td>
    </tr>
    <tr>
    <td width = "15%"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"></font></td>
    <td width = "10%"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2">E-Book
    No.</font></b></td>
    <td width = "15%"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Title</font></b></td>
    <td width = "15%"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Author</font></b></td>
    <td width = "20%"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Story
    Line</font></b></td>
    <td width = "5%"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2">File
    Size</font></b></td>
    <td width = "10%"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Price</font></b></td>
    <td width = "5%"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>Read
    Reviews</b> </font>
    <td width="10%"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"></font></td>
    </tr>
    <%
         String bookTitle2 = request.getParameter("bookTitle");
         bookTitle2 = bookTitle2.replaceAll("'", "''");
         String surname2 = request.getParameter("surname");
         surname2 = surname2.replaceAll("'", "''");
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    java.sql.Connection connection =
    java.sql.DriverManager.getConnection("jdbc:odbc:Novbase","","");
    java.sql.Statement statement = connection.createStatement();
    java.sql.ResultSet RS = statement.executeQuery("SELECT BookID, Ebook.AuthorID, Surname, BookTitle, FileSize, Description, Price, Image FROM Author INNER JOIN Ebook ON Author.AuthorID = Ebook.AuthorID WHERE BookTitle LIKE '*" + bookTitle2 + "*' AND Surname LIKE '*" + surname2 + "*'");
    int rowCounter = 0;
    while(RS.next())
         String image = RS.getString("Image");
    String bookID = RS.getString("BookID");
    String title = RS.getString("BookTitle");
         String surname = RS.getString("Surname");
    String storyLine = RS.getString("Description");
         String fileSize = RS.getString("FileSize");
    String price = RS.getString("price");
    rowCounter++;
    String bg = (rowCounter %2 !=0) ? "#C0C0C0" : "#FFFFFF";
    %>
    <tr bgcolor="<%= bg %>">
    <td width="15%" valign="top" align="left"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><img src="<%= image %>"></font></td>
    <td width="10%" valign="top" align="left"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><%= bookID %></font></td>
    <td width="10%" valign="top" align="left"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><%= title %></font></td>
    <td width="10%" valign="top" align="left"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><%= surname %></font></td>
    <td width="10%" valign="top" align="left"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><%= storyLine %></font></td>
    <td width="5%" valign="top" align="left"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><%= fileSize %>MB</font></td>
    <td width="10%" valign="top" align="left"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">?<%= price %></font></td>
    <td width="10%" valign="top" align="left"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">
    review</font></td>
    <td width="10%" align="center" valign="top"><a href="<%= response.encodeURL("shop-products.jsp?title="+title+"&bookID="+bookID+"&price="+price) %> ">
    <font face="Verdana, Arial, Helvetica, sans-serif" size="1"><img src="images\addtobasket.gif" border="0" alt="Add To Basket"></font></a></td>
    </tr>
    <%
    RS.close();
    connection.close();
    %>
    </table>
    this is the contents of the surname field <%= surname2 %><br>
    this is the contents of the title field <%= bookTitle2 %>
    <jsp:useBean id="basket" class="ShoppingBasket" scope="session"/>
    <% String title = request.getParameter("BookTitle");
    if(title!=null)
    String bookID = request.getParameter("BookID");
    double price = Double.parseDouble(request.getParameter("Price"));
    Product item = new Product(bookID, title, price);
    basket.addProduct( item );
    %>
    </body>
    </html></a>

    found the answer. Wildcard should be like this:
    '%" + bookTitle + "%'

Maybe you are looking for

  • Voice memos are not transferred to my Mac

    I am trying to transfer some voice memos from my iPhone to my Macbook. I select 'include voice memos' in iTunes under the Music tab. But all what is doing is to transfer voice memos from my Mac to my iPhone, not vice versa. After syncing when I check

  • Error in stock transport requisition

    Hi SAP gurus, to transfer the stock from one plant to another plant within same company code, i have created two new plants as supplying and receiving plant. i have done all the customization setting and tested it in development. in Dev it is running

  • CS 5 InDesign can't get the tutorial to work

    I'm new to CS5 InDesign.  I want to do the tutorial but when it tries to load it says I need an updated version of "Flash" I have uninstalled flash and reinstalled several time. The version that I downloaded is version 10.2.159.1 But when I check on

  • Please suggest regarding reproting tools

    Hi can any one tell which reporting tool is better to learn (i mean to learn quickly .) .My company people given these two reporting tools(Finacial &Financial) and said learn any one . i have little time to spend on reporting tools. please suggest

  • Is my iphone 5 "paper weight"?

    Owing old bill, want to unlock...(not my bill). It's not on that new plan that was issued in 2013 where you can unlock after 90 days etc... phone is on an older plan. Question is, is this $300+ phone just paper weight? What can I do with this?  I'm w