Can I use netui in Framework jsp files?

I'm trying to conditionally render an icon in the portlet titlebar.
I need to query the DB to determine which icon to display,
using a jpf action or method.
Can I use and access porlet obejcts in the framework skeleton files (titlebar.jsp) which is part of my theme?
zoyaf

          Do you know how JSP can use a variable defined in Javascrip ?
          Thx,
          Lin
          "Cameron Purdy" <[email protected]> wrote:
          >Write your JSP as you would any HTML file, including JavaScript. Then
          >rename the .html file to .jsp. Add your custom tags and Java code as
          >desired. Done.
          >
          >There was a complaint in the 5.0 beta about the JSP parser choking on
          >JavaScript, so I would make sure you at least try on the latest 5.1 service
          >pack, just in case.
          >
          >Cameron Purdy
          >
          >"SRINIVAS" <[email protected]> wrote in message
          >news:[email protected]..
          >> Hai,
          >> I know that we can use the jsvascript to validate the html parameters.
          >>
          >> Is the wblogic jsp support the javascript ?. I tried in weblogic
          >> 5.1.0.,the javascript is not working.
          >> anybody can help me how to validate html input and how can i use
          >> javascript in jsp.
          >>
          >> Thanks
          >> Srinivas
          >>
          >
          >
          

Similar Messages

  • How to connect with VPN of type L2TP programatically in IOS8 ? canse NEtwoatically in IOS8 ? can i use NEtwork/Extension framework for this?rk/Extension framework for this?

    I have a mobileconfig file and the VPNType is L2TP . How can i connect to this VPN programatically in IOS8 ?Apple's Network/Extension framework has methods which supports IPSEC and IKEV2 protocols(NEVPNProtocolIPSec, NEVPNProtocolIKEv2). Can i use Network/Extension framework to connect with L2TP type VPN ?

    I have a mobileconfig file and the VPNType is L2TP . How can i connect to this VPN programatically in IOS8 ?Apple's Network/Extension framework has methods which supports IPSEC and IKEV2 protocols(NEVPNProtocolIPSec, NEVPNProtocolIKEv2). Can i use Network/Extension framework to connect with L2TP type VPN ?

  • How to use mxml in a jsp file?

    I'm trying to use flex in a .jsp file. I followed the
    suggestion that I use the Flex 2 Tag library as suggested by this
    link:
    http://labs.adobe.com/wiki/index.php/Flex_2_Tag_Library_for_JSP#Download_and_Installation
    but I couldn't find it. I also downloaded LiveCycle Data Services
    ES but couldn't find the flex-bootstrap.jar.
    I have a simple example:
    <!--<%@ taglib uri="FlexTagLib" prefix="mm" %>-->
    Use the <mxml> tag to insert a Flex application in an
    existing JSP page. The following example shows the <mxml> tag
    with the source attribute to include an external MXML file:
    <mm:mxml source="CustomerServiceChat.mxml"/>
    Alternatively, you can use the <mxml> tag with inline
    MXML source code, as the following example shows:
    <mm:mxml>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns="*">
    <mx:Text label="Hello World">
    </mx:Application>
    </mm:mxml>
    I also added the following code in my web.xml:
    <taglib>
    <taglib-uri>FlexTagLib</taglib-uri>
    <taglib-location>/WEB-INF/lib/flex-bootstrap.jar</taglib-location>
    </taglib>
    and obviously I get an error because I don't have the
    flex-bootstrap.jar file. Please let me know how this can be
    corrected. Thanks in advance!

    Adobe Newsbot hopes that the following resources helps you.
    NewsBot is experimental and any feedback (reply to this post) on
    its utility will be appreciated:
    Adobe - Developer Center : Flex quick start guide for PHP
    developers:
    Apr 30, 2007 ... In this example, I changed the result data
    type to XML with E4X support by setting .... In Flex you would
    download a file using this code:
    Link:
    http://www.adobe.com/devnet/flex/articles/php_getstarted.html
    2d. Tutorial - Flex 3 Getting Started - Adobe Learning
    Resources:
    See Calling XML Web Services over the Web Using the Web
    Service References ... For information on integrating PHP and Flex
    using AMF to encode the data,
    Link:
    http://learn.adobe.com/wiki/display/Flex/2d.+Tutorial
    Mike Potter: Flex and PHP - A simple sample:
    I have other example with PHP and MySql and give the same
    error, and a example .... Flex Data Services... I choose None (???)
    because I work with php and
    Link:
    http://blogs.adobe.com/mikepotter/2006/02/flex_and_php_a_1.html
    Adobe - Developer Center : Transmitting data between Flex and
    PHP:
    Sep 4, 2007 ... Now that the user interface is set up and
    ready to go you can add the HTTP services to go ask for the data
    from the PHP code. In Flex you
    Link:
    http://www.adobe.com/devnet/flex/articles/flex_php_json.html
    Integrating Adobe Flex and PHP:
    Mar 1, 2006 ... The first step is to download Flex Builder
    2.0 from the Adobe labs ... For example, you could use this same
    PHP script to pass data to a
    Link:
    http://devzone.zend.com/article/11-Integrating-Adobe-Flex-and-PHP
    Disclaimer: This response is generated automatically by the
    Adobe NewsBot based on Adobe
    Community
    Engine.

  • Can I use servlet as my welcome file

    How can I use servlet as my welcome file? I know how to use jsp or html pages as my welcome file but that doesn't work for servlets. I modified my web.xml for making jsps and html as my welcome pages but that <welcome-file-list> tag is not working for servlets.

    This was a bug that occured in older Tomcat programs, not sure if it still occurs or not.
    Basically, when this happens, you have to have a physical file with the welcome file name. So you would have to create a file named index.do in each of your directories you wanted the welcome to work for. The index.do wouldn't have to actually do anything. It just had to exist. Then when the URL was used to create content, the servlet would be called to create that content.

  • After upgrading to Mountain Lion, I cannot open my File Maker Pro files. Can I use Numbers to open these files?

    After upgrading to Mountain Lion, I cannot open my File Maker Pro files. Can I use Numbers to open these files?

    Numbers is a spreadsheet program and FileMaker is a database program, so you probably can't use Numbers to open them unless you had first exported them from FileMaker in a spreadsheet-compatible format.
    If you upgraded from 10.6 Snow Leopard or earlier and your old copy of FileMaker won't open anymore, it might be a PowerPC application that is not compatible with 10.7 and later. If that is the case, to work with your FileMaker files you should upgrade your copy of FileMaker to the latest version, which seems to be FileMaker 12.

  • How can I use Applescript to copy a file's icon to the clipboard?

    Hello,
    How can I use Applescript to copy a file's icon to the clipboard?
    Thanks.
    Lennox

    there is no way to do that that I know of. but you can extract an icon of a file to another file using command line tool [osxutils|http://sourceforge.net/projects/osxutils]. you can then call the relevant command from apple script using "do shell script".

  • How can I using functions implicit in dll file in java code ?

    How can I using functions implicit in dll file in java code ?
    I'm developing a program that interfacing with fingerprint hardware.
    I have the finger print already, and I have to the SDK that have all functions for managing this fingerprint.
    These SDK functions are represented in dll files.
    I want to know how can I use these functions in java code .
    I looked on this link of sun forums :
    http://forum.java.sun.com/thread.jspa?threadID=305171&messageID=1215613
    but I don't Understand the meaning of native code.
    Thanks for help.

    please please please please please please please please help me:
    After reading a lot of articles, tutorials, and overviews about JNI (Java Native Interface)
    I found that these steps
    1.     Develop the Java code
    2.     Compile the Java code to a class file
    3.     Generate the header file
    4.     Implement the native method
    5.     Create the shared library or DLL
    6.     Run the Java program
    Is the common steps in JNI development
    The most powerful link was
    http://java.sun.com/docs/books/jni/html/start.html
    and
    http://www.netbeans.org/kb/55/beginning-jni-part2.html
    and the pdf oh this link
    http://www.ibm.com/developerworks/edu/j-dw-javajni-i.html requiring IBM registration to download it.
    But I have already the DLL, and want to the stright forward way to use its functions by java code only.
    I don not to write any C++ code .
    Is this possible???????????????????????????????
    The name of these dll is �zkemsdk.dll�
    It developed by ZKSOFTWARE company for managing a finger print �NP1500A�of
    http://www.napcogulfsecurity.com/finger_print.asp
    thanks for help

  • Can I use SQLJ instead of JSP ?

    Hi:
    Can I use SQLJ instead of JSP to work with Oracle Mobile / Wireless ?
    Thanks

    You can use any language that can output XML - There is a Tag Glossary for the Oracle9iAS Wireless XML on http://studio.oraclemobile.com .
    Regards,
    Kalle
    [email protected]
    Hi:
    Can I use SQLJ instead of JSP to work with Oracle Mobile / Wireless ?
    Thanks

  • Can I use Migration Assistant to Copy files from one mac to another, but not delete the original files off of the original Mac?

    I just purchased a new Macbook Pro Retina, and I have an old Macbook Pro w/o Retina and wish to use migration assistant. I still want to use the older Macbook Pro and keep all the files on it, but copy them and also put them on my new Macbook. What I'm trying to say is, can I use migration assistant to move files to a new Mac, while keeping the files on the old computer?

    You can omit some broad categories, but you can't pick and choose individual items.
    See Using Setup Assistant on Mountain Lion or Lion (preferred method), or the similar Using Migration Assistant on Mountain Lion or Lion for the gory details.

  • Java class bean can not access to DB in JSP file

    Hi, I wrote a java class bean in order to access to MySql database ,and this bean is used in a JSP file,so that the bean can query from DB and then display the queried information on the JSP file,but it can not work correctly,the following is the source code and error message popup by the system,
    does anybody has experience in solving thus question,Please reply ,Thank you for your help.
    %@ page contentType="text/html;charset=UTF-8" language="java" %>
    <%@ page import = "java.sql.*" %>
    <jsp:useBean id="conn" scope="page" class="news.conn"/>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>1</title>
    <style>
    <!--
    A:link {
         COLOR: #993399
    .s {
         FONT-SIZE: 13px; LINE-HEIGHT: 170%; FONT-FAMILY: "utf-8"
    -->
    </style>
    </head>
    <body>
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
    <tr>
    <td width="100%">
    <img border="0" src="images/ruanjian.jpg" width="770" height="154"></td>
    </tr>
    <tr>
    <td width="100%">@</td>
    </tr>
    </table>
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2">
    <tr>
    <td width="13%">@</td>
    <td width="87%">
    <img border="0" src="images/mid-rdxw2.gif" width="101" height="18"><p>
    <%
              ResultSet rs,rsNest;
    String strSql=null;
    strSql = "select * from news where TYPE=1";     
              rs = conn.executeQuery(strSql);
              while (rs.next()){
    %>
    <span class="s"> <a href="newsContent.jsp?newsId=<%=rs.getInt(id")%">"><%=rs.getString("Title")%></a><br>
    <%
    %>
    <p>
    <img border="0" src="images/mid-hyxw2.gif" width="94" height="19"></p>
    <%
    strSql="select * from news where TYPE=2";     
              rs = conn.executeQuery(strSql);
              while (rs.next()){
    %>
    <span class="s"> <a href="newsContent.jsp?newsId=<%=rs.getInt("id")%>"><%=rs.getString("Title")%></a><br>
    <%
    %>
    <p>@</td>
    </tr>
    </table>
    <p align="center">Study Online</p>
    <p align="center">@</p>
    </body>
    </html>
    Error message:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Exception in JSP: /newsMain.jsp:47
    44: strSql = "select * from news where TYPE=1";     
    45:           rs = conn.executeQuery(strSql);
    46:           
    47:           while (rs.next()){
    48:
    49: %>
    50:
    Stacktrace:
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:451)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    root cause
    java.lang.NullPointerException
         org.apache.jsp.newsMain_jsp._jspService(newsMain_jsp.java:98)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.27 l</a>

    nogoodatcoding wrote:
    Tolls wrote:
    Is that Jasper Exception telling us where the problem is in the jsp, though?
    If it is, then "rs" is null in the call rs.next()...which means conn.executeQuery() is returning null. Which means that whatever class conn is (news.conn?) has a problem maybe?That's possible. Though, it may just be the case that the 'conn' object itself is null! That line is the first place where it's being used and there are no checks that I can see...we'll have to wait for the OP to investigate and reply I guess.That's what I originally thought, then I noticed it was saying line 47, which is the rs.next() line. Assuming Jasper is correct in its choice of line, then it's the rs that's null. Which means the conn is doing strange things.
    Edit: Now that I think about it, going by the previous thread the OP posted, I'm wondering whether news.conn class is their attempt to move the JDBC stuff out of the JSP page, and it's grabbing the "real" connection (java.sql.Connection) and getting the result set and returning it...or getting something wrong and returning null.
    Edited by: Tolls on 11-Jun-2009 12:24

  • Need help in using SQL in a jsp file to compare date and time

    hi every one,
    Actually I am doing a project using JSP. I need to compare a date field in the database (MS Acess) to the current system date and time. I have to do this in a select statement.
    I have alredy defined a variable of type Date in the JSP file and I am comparing this variable to the date in the database through a select statemant.
    Here is what I am doing
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-mm-dd hh:mm:ss");
              java.util.Date today = new java.util.Date();
              String myDate=sdf.format(today);
    query = "SELECT Car_ID, Model_ID, Year, Ext_Color, Price from Cars where EDate <= "+myDate+" ;";
    EDate is the feild in the database and it's format is (5/12/2008 5:29:47 PM) it is of type Date/Time in MS Acess.
    when I execute the query it gives the following error
    SQL error:java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'EDate <= 2008-10-16 08:10:07'.
    I hope any one can help me with that error and answer my question, I've tried too many things but nothing helps
    Thanks in advance :-)

    Hi,
    When the comparision is needed to be done with the current date , we don't need to send in Java
    Date then format it and compare with MS Acess Date.
    In MS Access we have Date() function which will give you the current date.
    So you can try rewriting your query as following :
    query = "SELECT Car_ID, Model_ID, Year, Ext_Color, Price from Cars where EDate <= Date() ;"; ---------------------
    Hope this helps.
    Thanks

  • Can't use relative paths in jsp pages or javabeans

    Hi everyone,
    Can someone please help me with this little problem.
    When I want to use in a JSP page the object 'FileReadInput' to read in a file, it can't find when I only give the filename. The target file and source file are in the same directory so I would expect if I only give the filename, it will automatically search in the current directory. But when I give the complete absolute path, everything works fine. Is it possible to use relative paths in a jsp or javabean file?
    By the way, I am working with JDeveloper from Oracle. (maybe that has something to do with my problem)
    Can someone help me???
    Thx

    My dear friend,
    It will not work at all. coz, for any jsp file, ur application server will create a .java file and then .class file in a directory other than the directory where ur .jsp file present. that's why, ur file to be read can't be found. that's why use the following.
    String path=getServletConfig().getServletContext().getRealPath("/")+File.seperator+"yourfilename";

  • How can i use javascript in weblogic jsp

    Hai,
              I know that we can use the jsvascript to validate the html parameters.
              Is the wblogic jsp support the javascript ?. I tried in weblogic
              5.1.0.,the javascript is not working.
              anybody can help me how to validate html input and how can i use
              javascript in jsp.
              Thanks
              Srinivas
              

              Do you know how JSP can use a variable defined in Javascrip ?
              Thx,
              Lin
              "Cameron Purdy" <[email protected]> wrote:
              >Write your JSP as you would any HTML file, including JavaScript. Then
              >rename the .html file to .jsp. Add your custom tags and Java code as
              >desired. Done.
              >
              >There was a complaint in the 5.0 beta about the JSP parser choking on
              >JavaScript, so I would make sure you at least try on the latest 5.1 service
              >pack, just in case.
              >
              >Cameron Purdy
              >
              >"SRINIVAS" <[email protected]> wrote in message
              >news:[email protected]..
              >> Hai,
              >> I know that we can use the jsvascript to validate the html parameters.
              >>
              >> Is the wblogic jsp support the javascript ?. I tried in weblogic
              >> 5.1.0.,the javascript is not working.
              >> anybody can help me how to validate html input and how can i use
              >> javascript in jsp.
              >>
              >> Thanks
              >> Srinivas
              >>
              >
              >
              

  • Can I use Web Connector(Proxy) by file extension?

    Hi, All~
    As you know, we can use proxy by ppath or extension in WebLogic
    like below.
    How can I configure NWS 4.1 obj.conf, so that web connector can
    catch all jsp files for iAS6.
    <Object name="si" ppath="*/servletimages/*">Service fn=wl-proxy
    WebLogicHost=otherserver.com\ WebLogicPort=7008</Object>Service
    method="(GET|HEAD|POST|PUT)" type=text/jsp fn=wl-proxy\
    WebLogicHost=192.1.1.4 WebLogicPort=7001 PathPrepend=/jspfiles

    There is no equivalent in iAS. A URL token must be used.
    David
    A??>Co wrote:
    Hi, All~
    As you know, we can use proxy by ppath or extension in WebLogic
    like below.
    How can I configure NWS 4.1 obj.conf, so that web connector can
    catch all jsp files for iAS6.
    <Object name="si" ppath="*/servletimages/*">Service fn=wl-proxy
    WebLogicHost=otherserver.com\ WebLogicPort=7008</Object>Service
    method="(GET|HEAD|POST|PUT)" type=text/jsp fn=wl-proxy\
    WebLogicHost=192.1.1.4 WebLogicPort=7001 PathPrepend=/jspfiles

  • Can I change scope in my jsp file ??

    Hi all,
    I have html form, jsp for display, bean for Logic and I want the project result is doing sarch in html file,
    bean handle the search in database, and display in jsp, since the database is big, the result is lot, so I want my search result be display 10 recode per page there for I had to use session in my display jsp file.but that bother my new search, if I don't reopen my browns I can't do the new search, like first I search chicken it has over 400 recods, then I jump back to my html file and want to search by duck , I still got the result chicken, if I change my scope to request then is easy to start a new search but can't do to next.
    any ideal??

    Hi,
    The problem still at handle continue search and a new search. i add a again method in my jsp file and can handle new search and old session for few search then get error
    IndexOutOfBoundsException: Index: 60, Size: 4
    <html>
    <head>
         <title>select List</title>
    </head>
    <body>
    <basefont face="Arial">
    <%@ page import = "num.NameBean" %>
    <jsp:useBean id="ViruName" scope="session" class="num.NameBean"/>
    <jsp:setProperty name="ViruName" property="*"/>
    </jsp: useBean>
      <%
       if (ViruName.getString()==null){%>
        <center>
         Sorry, you nedd to enter something for search!
      <br>
    <font size=-1>(Please hit the browser 'back' button to continue)</font><br>
    </center>
    <%}else{%>
    <table align="center" width="600"border="1">
         <tr>
              <td width="20%"><b>FieldNumber</b></td>
              <td width><b>Name</b></td>
              <td width="30%"><b>HiTiter</b></td>
              <td width="30%"><b>SubType</b></td>
         </tr>
    <%
         int rowCount = 0;
         int startRow = 0;
         if (ViruName.Mysearch()) {
              String start = (String) request.getParameter("start");
              if (start != null) {
                   startRow = new Integer(start).intValue();
                   ViruName.setStartRow(startRow);
              while (rowCount < 10 && ViruName.nextRow() > 0) {
                   rowCount++;
    %>
         <tr>
                   <td width="10%"><jsp:getProperty name="ViruName" property="fieldNumber"/></td>
                    <td width="30%"><jsp:getProperty name="ViruName" property="name"/></td>
              <td width="30%"><jsp:getProperty name="ViruName" property="hiTiter"/></td>
              <td width="30%"><jsp:getProperty name="ViruName" property="subType"/></td>
         </tr>
    <%
              }//end while
         }//end if
    %>
    </table>
         <!-- Display the back and next links -->
                   <a href="?start=<%= ViruName.getCurrentRow() %>">Next</a>
                            <% ViruName.again();%>
                     <a href ="test.html">new search</a>
    <%
    %>
    </body>
    </html>
    package num;
    import java.util.*;
    import java.sql.*;
    public class NameBean implements java.io.Serializable {
      /* Member Variables */
      private String fieldNumber;
      private String name;
      private String hiTiter;
      private String subType;
      private String string;
      private String text=null;
      /* ArrayLists to hold recordsets */
      private List fieldNumberList, nameList, hiTiterList, subTypeList;
      /* Helper Variables */
      private int currentRow;
      private int rowCount;
      private Connection db = null;
      /* Constructor */
      public NameBean() {
        /* Initialize bean properties */
        setFieldNumber("");
        setName("");
        setHiTiter("");
        setSubType("");
        /* Initialize arrayLists to hold recordsets */
        fieldNumberList = new ArrayList();
        nameList = new ArrayList();
        hiTiterList = new ArrayList();
        subTypeList = new ArrayList();
        /* Initialize helper variables */
        currentRow = 0;
        rowCount = 0;
        /* Get database connection */
        dbConnect();
      /* Get Database Connection */
      private void dbConnect() {
        if (db == null) {
          try {
            Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
            db = DriverManager.getConnection("jdbc:microsoft:sqlserver://localhost:1433;selectMethod=cursor","test","1234");
            db.setCatalog("HKData");          
          catch (Exception e) {
            System.out.println("Error Connecting to catalog DB: " + e.toString());
      /* Accessor Methods */
      public String getfieldNumber() {
        return fieldNumber;
    /* one way to set data will get from database */
      public void setFieldNumber(String fieldNumber) {
         this.fieldNumber =fieldNumber;
      public String getName() {
        return name;
      public void setName(String _name) {
        name = _name;
      public String getHiTiter() {
        return hiTiter;
      public void setHiTiter(String _hiTiter) {
        hiTiter = _hiTiter;
       public String getSubType() {
        return subType;
      public void setSubType(String _subType) {
        subType = _subType;
    public  String getString(){
        return string;
    public void setString( String string ) {  
       this.string =string;    }
      /* Read-only attribute */
      public int getCurrentRow() {
        return currentRow;
      /* Populate Record List */
      public boolean Mysearch() {
        /* If prodIDList is empty, then execute the query to populate it */
        if (fieldNumberList.isEmpty()) {
          try {
                       Statement s = db.createStatement();
                      String Sql="select ViruName00.FieldNumber, Name, HiTiter, SubType, Storage";
                             Sql+=" from ViruName00, Storage00";
                             Sql+=" where ViruName00.NewNum=Storage00.NewNum and Name like'"+string+"%'";
                            Sql+=" Union";
                             Sql+=" select ViruName01.FieldNumber,Name, HiTiter,SubType, Storage";
                            Sql+=" from ViruName01, Storage01";
                             Sql+=" where ViruName01.NewNum=Storage01.NewNum and Name like'"+string+"%'";
                            Sql+=" Union";
                             Sql+=" select ViruName02.FieldNumber,Name, HiTiter, SubType,Storage";
                             Sql+=" from ViruName02, Storage02";
                             Sql+=" where ViruName02.NewNum=Storage02.NewNum and Name like'"+string+"%'";
                             Sql+=" Union";
                             Sql+=" select ViruName03.FieldNumber,Name, HiTiter, SubType, Storage";
                             Sql+=" from ViruName03, Storage03";
                             Sql+=" where ViruName03.NewNum=Storage03.NewNum and Name like' "+string+"%'";
               ResultSet rs = s.executeQuery (Sql);
            fieldNumberList.clear();
            nameList.clear();
            hiTiterList.clear();
            subTypeList.clear();
            rowCount = 0;
            while (rs.next()) {
              fieldNumberList.add(rs.getString("FieldNumber"));
              nameList.add(rs.getString("Name"));
              hiTiterList.add(rs.getString("HiTiter"));   
              subTypeList.add(rs.getString("SubType"));
              rowCount++;
          catch (Exception e) {
            System.out.println("Error populating productBean: " + e.toString());
            return false;
        /* Return status of operation (assume success if it made it this far) */
        return true;
      /* Reset current row */
      public void setStartRow(int start) {
        if (start < rowCount) {
          currentRow = start;
      /* Move to next row */
      public int nextRow() {
        if (currentRow == rowCount) {
          currentRow = 0; // Reset for next page request
          return 0; // return 0 to indicate end of recordset
        /* Populate bean properties with current row */
        setFieldNumber((String)fieldNumberList.get(currentRow));
        setName((String)nameList.get(currentRow));
        setHiTiter((String)hiTiterList.get(currentRow));
        setSubType((String)subTypeList.get(currentRow));   
        currentRow++;
        /* return currentRow*/
        return currentRow;
    public void again(){
        fieldNumberList.clear();
            nameList.clear();
            hiTiterList.clear();
            subTypeList.clear();
    }

Maybe you are looking for