ADFBC attribute error and JSP bindings

In the following code based on that in Oracle ADFToystore example the ${curBinding.name}
expression seems to be returning the name of the binding itself and not the name of the
DataControl attribute on which a JboAttrValException is thrown.
<c:forEach var="curBinding" items="${bindings.ctrlBindingList}">
<% JUControlBinding cb =
(JUControlBinding)pageContext.getAttribute("curBinding");
if (cb instanceof JUCtrlValueBinding &&
!(cb instanceof JUCtrlRangeBinding) &&
!(cb instanceof JUCtrlHierNodeBinding)) { %>
<c:set var="name" value="${curBinding.name}"/>
<html:errors property='<%= ((String)pageContext.getAttribute("name")) %>'/>
<% } %>
</c:forEach>
If my UIModel has a binding name which differs from the attribute name I do no see an error
thrown as JboAttrValException.
e.g.
<DCControl
id="Sfn"
SubType="DCTextField"
IterBinding="PayeeDataInstIterator"
ApplyValidation="false"
isDynamic="false" >
<AttrNames>
<Item Value="PayeeSfn" />
</AttrNames>
</DCControl>
curBinding.name debugs as 'Sfn'
exception thrown against 'PayeeSfn'
I can see the attribute exceptions in the JSP page if I change the code as follows;
<c:forEach var="curBinding" items="${bindings.ctrlBindingList}">
<% JUControlBinding cb =
(JUControlBinding)pageContext.getAttribute("curBinding");
if (cb instanceof JUCtrlValueBinding &&
!(cb instanceof JUCtrlRangeBinding) &&
!(cb instanceof JUCtrlHierNodeBinding)) { %>
<c:forEach var="curBindingAttrName" items="${curBinding.attributeNames}">
<html:errors property='<%= ((String)pageContext.getAttribute("curBindingAttrName")) %>'/>
</c:forEach>
<% } %>
</c:forEach>
Is this correct/safe, Is there something back when the Jbo Attribute level errors are added
as struts actionErrors that should be done ?
Anyone have any ideas on the best solution to this problem ?

An example of the useBean that does not work would be nice. Of a first guess is that your class does not appear to be in a package. As of java 1.4.2, you can not import (and therefore use) classes from the default package into a class that has a package. And your server's JSP class is in a package, therefore, it can not access your bean that is in the default package.
Put your bean in a package and try again:
//Your UserData1.java first line of code:
package my.jsp.beans;Compile, and make sure the .class file goes to:
[Application Context]/WEB-INF/class/my/jsp/beans/UserData1.class
Then your useBean will look like:
<jsp:useBean id="userData" class="my.jsp.beans.UserData1" scope="page"/>

Similar Messages

  • When I check my boot SSD drive using Disk Utility under Mavericks, I often get "Incorrect number of extended attributes" errors.  But if I boot off an external drive and check the same SSD, no errors are reported.  Is this a bug in Mavericks?

    When I check my boot SSD drive using Disk Utility under Mavericks, I often get "Incorrect number of extended attributes" errors.  But if I boot off an external drive and check the same SSD, no errors are reported. 
    This happens not just with the SSD in my Mac Mini, but with another SSD in my MacBook (both now running Mavericks).  So far as I know, all of the kit I am using is in good order (despite the file corruption reports).  So I am beginning to wonder if it could be due to a bug in Mavericks?  Both SSD drives have been formatted to MacOS Extended (journaled) format.  Should I have used a different format, I wonder?
    Has anyone else encountered this issue?
    Does anyone have a solution?
    Or an explanation that might help my investigation of the issue?
    Thanks guys,

    I understand that the Corsair Force 3 is not one of the SSD drives that are supported on Apple Macs. 
    I did try downloading and using Trim Enabler, but the error message came up both when it was off and when it was on.
    I understand that not everyone thinks Trim Enabler is a good program, though there is a new version out now, so I may give it another try.

  • Dbc file and Jsp error

    Dear all,
    I am trying to do multinode installtion on AIX 5.3 HACMP . During post installation i am getting this error.
    Dbc file and Jsp error
    Updating Server Security Authentication
    java.sql.SQLException: Io exception: Invalid number format for port number
    Database connection to jdbc:oracle:thin:@host_name:port_number:database failed
    Updating Server Security Authentication failed with exit code 1
    adgendbc.sh exiting with status 1
    ERRORCODE = 1 ERRORCODE_END
    SQLPLUS Executable : /mglapp/oramgl/mglora/8.0.6/bin/sqlplus
    SP2-0642: SQL*Plus internal error state 2165, context 4294967295:0:0
    Unable to proceed
    ERRORCODE = 1 ERRORCODE_END
    Thanks in advance

    Maybe you have problem with the date format, please ensure that NLS_DATE_FORMAT env variable is set to a valid value.
    Please view SP2-0642: Sql*Plus Internal Error State 2165, Context 4294967295:0:0 Doc ID: Note:396154.1.
    Hope it helps.
    Adith

  • VSM-BC4J IN JDEV9042:compile error at JClient and run error at JSP

    compile error at JClient:
    C:\VSM-BC4J\src\oracle\otnsamples\vsm\client\admin\profilePanal.java
    --! Wraning(424,18):method setNextFocusableComponent(java.awt.Component) in class javax.swing.JComponent has been deprecated
    --! Wraning(425,20):method setNextFocusableComponent(java.awt.Component) in class javax.swing.JComponent has been deprecated
    --! Wraning(428,21):method setNextFocusableComponent(java.awt.Component) in class javax.swing.JComponent has been deprecated
    --! Wraning(430,13):method setNextFocusableComponent(java.awt.Component) in class javax.swing.JComponent has been deprecated
    run error at JSP:
    503 Service Unavailable
    Servlet error:Parsing error processing resource path

    Solution: don't use a runtime expression for the id attribute.
    The id attribute is used to declare
    - an attribute in scope
    - a scriptlet variable on the page
    These are only available for the duration of the <logic:iterate> tag
    The "id" is only used in your programming. You don't need to make it dynamic.

  • RE: [iPlanet-JATO] Parse error in JSP parser in IAS6

    Hi Todd,
    removing the defaultValue="" attribute works.
    I have not got around to testing the SP3.
    BTW. The reason the default value tag was added was to stop Null pointer
    exceptions being thrown in the
    HrefTag.beginDisplay().
    buffer.append("?")
    .append(field.getQualifiedName()) // "FooHref"
    .append("=")
    .append(URLEncoder.encode(value.toString())); // "/foo"
    If you don't explicitly add a defaultValue="" to the jsp HREF tag ,
    HrefTag.getDefaultValue() returns null.
    Our hack was to add the following in HrefTag.java.
    if (value==null)
    value=getDefaultValue();
    //===========================
    //IP6 ADDED THE FOLLOWING LINE
    value = (value== null? "":value);
    //============================
    Is that pheasible work-around ? This eliminates the need to add
    defaultValue="" to all HREF tags.
    Also, I might as well point another behavior that we encountered with HREFS.
    In ND, if a HREF's display Field was bound to a column in DataObject and the
    particular record had no value, no URL would be rendered on the page.
    The HTML would look something like this( from memory ):
    <A
    HREF="../AppName/PgMsgMain.hrfSubject_onWebEvent(hrfSubject).994226335140? +
    ND URL STUFF"></A>
    In JATO by default a url get displayed with "null" as the link. ie.
    <a href="../AppName/PgMsgMain?PgMsgMain.hrfSubject= + URL STUFF">null</a>
    Our hack was modify the HrefTag.doEndTag method to not append "null" to the
    buffer.
    if (displayed)
    buffer.append(getBodyContent().getString().equals("null")? "":
    getBodyContent().getString()))
    // IP6 HACK buffer.append(getBodyContent().getString())
    .append("</a>");
    writeOutput(fireEndDisplayEvent(buffer.toString()));
    Is there a better way to do this?
    thanks
    Kostas
    -----Original Message-----
    From: Todd Fast [mailto:<a href="/group/SunONE-JATO/post?protectID=189233080150012190218067203043176090006144139218183041">toddwork@c...</a>]
    Sent: Tuesday, July 03, 2001 12:46 AM
    Subject: Re: [iPlanet-JATO] Parse error in JSP parser in IAS6
    Hey Kostas--
    I personally haven't seen this kind of error. Have you tried simplifying
    the expression inside the href tag? For example:
    <% Object foo =
    viewBean.getRptAssignmentMatch().getvwAssignmentMatchModel().getValue(
    vwAssignmentMatchModel.FIELD_ASSIGNMENT_ASSIGNMENT_ID);
    %>
    <jato:href name="hrefASSIGNMENT_ASSIGNMENT_ID" fireDisplayEvents="true">
    <%= foo %>
    </jato:href>
    Also, is there a different version you could upgrade to? iAS SP3 includes
    the Jasper compiler from Tomcat, which should behave quite differently.
    Todd
    ----- Original Message -----
    From: "Kostas Morfis" <kmorfis@i...>
    Sent: Tuesday, July 03, 2001 12:17 AM
    Subject: [iPlanet-JATO] Parse error in JSP parser in IAS6
    >
    Hi all,
    has anyone come across the following error in iPlanet?
    [02/Jul/2001 12:21:32:1] error: Exception: SERVLET-compile_failed: Failedin
    compiling template: /ras/ras/voyager4/pgAssignmentMatch.jsp, Parse errorin
    JSP parser. Missing endtag: /jato:href
    Exception Stack Trace:
    java.lang.Exception: Parse error in JSP parser. Missing endtag: /jato:href
    at com.netscape.jsp.JSP.parseBlock(Unknown Source)
    at com.netscape.jsp.JSP.parseUserTag(Unknown Source)
    at com.netscape.jsp.JSP.parseTag(Unknown Source)
    at com.netscape.jsp.JSP.parseNext(Unknown Source)
    etc etc.
    We have tested the page in Resin and it works fine.
    It seems the JSP parser has a problem with the following type of HREFtags.
    >
    <jato:href name="hrefASSIGNMENT_ASSIGNMENT_ID" fireDisplayEvents="true"
    defaultValue=""><%=
    viewBean.getRptAssignmentMatch().getvwAssignmentMatchModel().getValue(com.cb
    >
    re.ras.voyager4.model.vwAssignmentMatchModel.FIELD_ASSIGNMENT_ASSIGNMENT_ID)
    %></jato:href></font></td>
    anyone have any suggestions/thoughts/comments ?
    Kostas Morfis
    Senior Consultant
    iRise
    www.iRise.com
    [Non-text portions of this message have been removed]
    [email protected]
    [email protected]

    Hi Todd,
    removing the defaultValue="" attribute works.
    I have not got around to testing the SP3.
    BTW. The reason the default value tag was added was to stop Null pointer
    exceptions being thrown in the
    HrefTag.beginDisplay().
    buffer.append("?")
    .append(field.getQualifiedName()) // "FooHref"
    .append("=")
    .append(URLEncoder.encode(value.toString())); // "/foo"
    If you don't explicitly add a defaultValue="" to the jsp HREF tag ,
    HrefTag.getDefaultValue() returns null.
    Our hack was to add the following in HrefTag.java.
    if (value==null)
    value=getDefaultValue();
    //===========================
    //IP6 ADDED THE FOLLOWING LINE
    value = (value== null? "":value);
    //============================
    Is that pheasible work-around ? This eliminates the need to add
    defaultValue="" to all HREF tags.
    Also, I might as well point another behavior that we encountered with HREFS.
    In ND, if a HREF's display Field was bound to a column in DataObject and the
    particular record had no value, no URL would be rendered on the page.
    The HTML would look something like this( from memory ):
    <A
    HREF="../AppName/PgMsgMain.hrfSubject_onWebEvent(hrfSubject).994226335140? +
    ND URL STUFF"></A>
    In JATO by default a url get displayed with "null" as the link. ie.
    <a href="../AppName/PgMsgMain?PgMsgMain.hrfSubject= + URL STUFF">null</a>
    Our hack was modify the HrefTag.doEndTag method to not append "null" to the
    buffer.
    if (displayed)
    buffer.append(getBodyContent().getString().equals("null")? "":
    getBodyContent().getString()))
    // IP6 HACK buffer.append(getBodyContent().getString())
    .append("</a>");
    writeOutput(fireEndDisplayEvent(buffer.toString()));
    Is there a better way to do this?
    thanks
    Kostas
    -----Original Message-----
    From: Todd Fast [mailto:<a href="/group/SunONE-JATO/post?protectID=189233080150012190218067203043176090006144139218183041">toddwork@c...</a>]
    Sent: Tuesday, July 03, 2001 12:46 AM
    Subject: Re: [iPlanet-JATO] Parse error in JSP parser in IAS6
    Hey Kostas--
    I personally haven't seen this kind of error. Have you tried simplifying
    the expression inside the href tag? For example:
    <% Object foo =
    viewBean.getRptAssignmentMatch().getvwAssignmentMatchModel().getValue(
    vwAssignmentMatchModel.FIELD_ASSIGNMENT_ASSIGNMENT_ID);
    %>
    <jato:href name="hrefASSIGNMENT_ASSIGNMENT_ID" fireDisplayEvents="true">
    <%= foo %>
    </jato:href>
    Also, is there a different version you could upgrade to? iAS SP3 includes
    the Jasper compiler from Tomcat, which should behave quite differently.
    Todd
    ----- Original Message -----
    From: "Kostas Morfis" <kmorfis@i...>
    Sent: Tuesday, July 03, 2001 12:17 AM
    Subject: [iPlanet-JATO] Parse error in JSP parser in IAS6
    >
    Hi all,
    has anyone come across the following error in iPlanet?
    [02/Jul/2001 12:21:32:1] error: Exception: SERVLET-compile_failed: Failedin
    compiling template: /ras/ras/voyager4/pgAssignmentMatch.jsp, Parse errorin
    JSP parser. Missing endtag: /jato:href
    Exception Stack Trace:
    java.lang.Exception: Parse error in JSP parser. Missing endtag: /jato:href
    at com.netscape.jsp.JSP.parseBlock(Unknown Source)
    at com.netscape.jsp.JSP.parseUserTag(Unknown Source)
    at com.netscape.jsp.JSP.parseTag(Unknown Source)
    at com.netscape.jsp.JSP.parseNext(Unknown Source)
    etc etc.
    We have tested the page in Resin and it works fine.
    It seems the JSP parser has a problem with the following type of HREFtags.
    >
    <jato:href name="hrefASSIGNMENT_ASSIGNMENT_ID" fireDisplayEvents="true"
    defaultValue=""><%=
    viewBean.getRptAssignmentMatch().getvwAssignmentMatchModel().getValue(com.cb
    >
    re.ras.voyager4.model.vwAssignmentMatchModel.FIELD_ASSIGNMENT_ASSIGNMENT_ID)
    %></jato:href></font></td>
    anyone have any suggestions/thoughts/comments ?
    Kostas Morfis
    Senior Consultant
    iRise
    www.iRise.com
    [Non-text portions of this message have been removed]
    [email protected]
    [email protected]

  • SetQuery and JSP Binding

    I have a complex query that I just haven't been able to get to run inside of a view object. I have been trying to do a setWhereClause, but when Jdev tries to execute it, it puts a select * from ( in from of it, and a ) QRSLT after the from statements, and the query failes. Taking out the added SQL allows the query to run normally.
    So, be that as it may, I decided to bypass the whole ordeal and just issue a setQuery. I copied the select statement right out of the view object so it's identical, and then put the from and where clause where it needed to be.
    Now, at run time the query executes with no errors, and if I copy/paste the query from the log to SQL Plus, it returns rows. Unfortunately, my read-only grid on the jsp that it's supposed to be populating is empty. I'm assuming that the bindings get broken since I'm building the entire query? If so, is there a way to get around this?
    Code snippet:
    String myQuery = "select "; //lots more
    mnVo.setQuery(myQuery);
    mnVo.executeQuery();

    I've been able to use expert mode in my view object, and Vo.setWhereClauseParam(0,myvariable); to set the appropriate parameter value. I have logging enabled, and the parameters are getting passed correctly, and the query is running, but my jsp shows no rows.
    This has GOT to be a binding issue on the jsp side, but I don't see anything that isn't set up right. I've repeatedly drug a view-only grid to my jsp, but it doesn't change the behavior. Is there some limitation as to binding from an expert-mode query in the view object?

  • Tomcat error  and others !!

    Hi ,
    I'm beginner in Jave. When I start tomcat in command line ,it appears new window named tomecat3.2 but shows error like that " The file name, directory name or volume label syntex is in correct" . How can I solve this problem??
    How can I install J2EE 1.2.1 application server?? I install j22ee1.2.1 sdk already. Is that enough or what else I need to install??
    To create java beans entity, what should I do??
    thanks

    I can't help you with your Tomcat technical problems.
    But since you're a beginner, I'd like to refer you to some very good books you ought to read if you're interested in learning how to develop web applications.
    The first book you should read is "core servlets and JSP" from Marty Hall. if you don't mind to read the older version, you can find a pdf file of this book at http://www.coreservlets.com/.
    A second book is the "Apache Tomcat Bible" from Eaves, Jones and Godfrey. This book explains what you need to develop web applications with Java, MySQL and Tomcat. And it shows the source code of a java web application for a cinema complex.
    Next, you should try to learn about the Model-View-Controller design pattern and learn how to divide your application in 3 layers.
    If you're looking for a free IDE, take a look at eclipse (eclipse.org), Gel for your JSP's (Gexperts.com) or JCreator if you want to take a quick start. JCreator (Jcreator.com) is easier to start with than eclipse.
    And finally, your question about a java bean. Well, a java bean is a java class containing properties and methods. The properties can only be changed or displayed if you use the so called getters and setters. These are functions in order to controll the properties. And then there is the constructor method(s). You have to define how you can make an object of the class. I'll give an example of a java bean. Don't mind the words you don't understand, it's Dutch.
    /** Java class "Meterronde.java" generated from Poseidon for UML.
    * Poseidon for UML is developed by Gentleware.
    * Generated with velocity template engine.
    package org.gertcuppens.mopo;
    // import java.util.*;
    import java.util.Collection;
    // import java.sql.*
    import java.sql.ResultSet;
    import java.sql.SQLException;
    * <p>
    * Een meterronde is een geografisch geheel van meteretappes, die binnen
    * een beperkte periode van 2 tot 4 dagen gelezen moet worden.
    * </p>
    public class Meterronde {
    // attributes
    * <p>
    * is de nummer die overeenstemt met de beurtrolwijknummer. De
    * beurtrolwijken zijn een geografische onderverdeling van het
    * verzorgingsgebied van AWW waaraan een beurtrolinspecteur is toegekend.
    * </p>
    private int wijknummer;
    * <p>
    * is de nummer van de ronde binnen de wijknummer. Wijknummer en
    * rondenummer vormen samen een unieke sleutel die de meterronde
    * identificeert.
    * </p>
    private int rondenummer;
    * <p>
    * is de omschrijving van de meterronde.
    * </p>
    private String omschrijving;
    * <p>
    * is de streefdatum (dag/maand) waarop de jaarlijks te lezen meters
    * gelezen moeten worden.
    * </p>
    private int streefdatumJR;
    * <p>
    * is de streefdatum (dag/maand) van het eerste kwartaal waarop de
    * trimestri&#235;le en driemaandelijks te lezen meters gelezen moeten worden.
    * </p>
    private int streefdatumK1;
    * <p>
    * is de streefdatum (dag/maand) van het tweede kwartaal waarop de
    * trimestri&#235;le en driemaandelijks te lezen meters gelezen moeten worden.
    * </p>
    private int streefdatumK2;
    * <p>
    * is de streefdatum (dag/maand) van het derde kwartaal waarop de
    * trimestri&#235;le en driemaandelijks te lezen meters gelezen moeten worden.
    * </p>
    private int streefdatumK3;
    * <p>
    * is de streefdatum (dag/maand) van het vierde kwartaal waarop de
    * trimestri&#235;le en driemaandelijks te lezen meters gelezen moeten worden.
    * </p>
    private int streefdatumK4;
    * <p>
    * is het aantal actieve leidingen toegekend aan actieve contracten die aan
    * deze meterronde zijn toegekend.
    * </p>
    private int aantalContractueleLeidingen;
    * <p>
    * is het aantal actieve meters dat aan deze meterronde is toegekend.
    * </p>
    private int aantalActieveMeters;
    * <p>
    * is het aantal meters van de meterronde die in de CMB-gegevens voorkomen.
    * </p>
    private int aantalInCMB;
    * <p>
    * is het aantal jaarlijkse meters waarvan de plandatum voorbij is ...
    * </p>
    private int aantalTeLezenJR;
    * <p>
    * is het aantal trimestri&#235;le meters waarvan de plandatum voorbij is
    * </p>
    * <p>
    * </p>
    private int aantalTeLezenTR;
    * <p>
    * is het aantal driemaandelijkse meters waarvan de plandatum voorbij is
    * </p>
    * <p>
    * </p>
    private int aantalTeLezen3M;
    * <p>
    * is het aantal maandelijkse meters waarvan de plandatum voorbij is
    * </p>
    * <p>
    * </p>
    private int aantalTeLezen1M;
    * <p>
    * is het aantal actieve meters van deze meterronde waarvan de plandatum
    * voorbij is.
    * </p>
    private int aantalTeLezen;
    * <p>
    * is de verzameling van meteretappes van deze meterronde. ...
    * </p>
    private Collection meteretappes;
    * Represents ...
    private Collection teLezenMeteretappes;
    * Represents ...
    private Collection gelezenMeteretappes;
    * Represents ...
    private Collection afwijkendeMeteretappes;
    // operations
    * Does ...
    * @return
    * <p>
    * geeft de wijknummer weer .
    * </p>
    * @return
    public int getWijknummer() {       
    return wijknummer;
    } // end getWijknummer
    * <p>
    * geeft de rondenummer weer ...
    * </p>
    * @return
    public int getRondenummer() {       
    return rondenummer;
    } // end getRondenummer
         * <p>
         * geeft de wijkronde weer ; wordt gebruikt in combinatie
         * met radiobuttons; hierdoor weten we welke primary key (wijk+ronde)
         * er geldig is bij de gekozen radiobutton
         * </p>
         * @return
              public int getWijkRonde() {       
                   return ((wijknummer * 100) + rondenummer) ;
              } // end getWijkRonde
    * <p>
    * geeft de omschrijving weer ...
    * </p>
    * @return
    public String getOmschrijving() {       
    return omschrijving;
    } // end getOmschrijving
    * <p>
    * geeft de streefdatum weer waarop de jaarlijkse meters gelezen moeten
    * worden
    * </p>
    * @return
    public int getStreefdatumJR() {       
    return streefdatumJR;
    } // end getStreefdatumJR
    * <p>
    * geeft de streefdatum weer waarop de trimestri&#235;le en driemaandelijkse
    * meters gelezen moeten worden in het eerste kwartaal
    * </p>
    * <p>
    * </p>
    * @return
    public int getStreefdatumK1() {       
    return streefdatumK1;
    } // end getStreefdatumK1
    * <p>
    * geeft de streefdatum weer waarop de trimestri&#235;le en driemaandelijkse
    * meters gelezen moeten worden in het tweede kwartaal
    * </p>
    * <p>
    * </p>
    * @return
    public int getStreefdatumK2() {       
    return streefdatumK2;
    } // end getStreefdatumK2
    * <p>
    * geeft de streefdatum weer waarop de trimestri&#235;le en driemaandelijkse
    * meters gelezen moeten worden in het derde kwartaal
    * </p>
    * <p>
    * </p>
    * @return
    public int getStreefdatumK3() {       
    return streefdatumK3;
    } // end getStreefdatumK3
    * <p>
    * geeft de streefdatum weer waarop de trimestri&#235;le en driemaandelijkse
    * meters gelezen moeten worden in het vierde kwartaal
    * </p>
    * <p>
    * </p>
    * @return
    public int getStreefdatumK4() {       
    return streefdatumK4;
    } // end getStreefdatumK4
    * <p>
    * Geeft het aantal leidingen weer van de meterronde die actief zijn en
    * gekoppeld zijn aan en actief BO ...
    * </p>
    * @return
    public int getAantalContractueleLeidingen() {       
    return aantalContractueleLeidingen;
    } // end getAantalContractueleLeidingen
    * <p>
    * Geeft het aantal actieve meters weer gekoppeld aan de meterronde ...
    * </p>
    * @return
    public int getAantalActieveMeters() {       
    return aantalActieveMeters;
    } // end getAantalActieveMeters
    * <p>
    * geeft het aantal meters weer dat is doorgegeven aan CMB ...
    * </p>
    * @return
    public int getAantalInCMB() {       
    return aantalInCMB;
    } // end getAantalInCMB
    * <p>
    * Geeft het aantal actieve meters weer die jaarlijks gelezen moeten worden
    * en waarvan de plandatum voorbij is ...
    * </p>
    * @return
    public int getAantalTeLezenJR() {       
    return aantalTeLezenJR;
    } // end getAantalTeLezenJR
    * <p>
    * Geeft het aantal actieve meters weer die trimestrieel gelezen moeten
    * worden en waarvan de plandatum voorbij is
    * </p>
    * <p>
    * </p>
    * @return
    public int getAantalTeLezenTR() {       
    return aantalTeLezenTR;
    } // end getAantalTeLezenTR
    * <p>
    * Geeft het aantal actieve meters weer die driemaandelijks gelezen moeten
    * worden en waarvan de plandatum voorbij is
    * </p>
    * <p>
    * </p>
    * @return
    public int getAantalTeLezen3M() {       
    return aantalTeLezen3M;
    } // end getAantalTeLezen3M
    * <p>
    * Geeft het aantal actieve meters weer die maandelijks gelezen moeten
    * worden en waarvan de plandatum voorbij is
    * </p>
    * <p>
    * </p>
    * @return
    public int getAantalTeLezen1M() {       
    return aantalTeLezen1M;
    } // end getAantalTeLezen1M
    * <p>
    * Geeft het totaal aantal actieve meters weer waarvan de plandatum
    * voorbij is
    * </p>
    * <p>
    * </p>
    * @return
    public int getAantalTeLezen() {       
    return aantalTeLezen;
    } // end getAantalTeLezen
    * <p>
    * Geeft de meteretappes weer die tot deze meterronde behoren ...
    * </p>
    * @return
    public Collection getMeteretappes() {       
    return meteretappes;
    } // end getMeteretappes
    * Does ...
    * @return
    public Collection getTeLezenMeteretappes() {       
    return teLezenMeteretappes;
    } // end getTeLezenMeteretappes
    * Does ...
    * @return
    public Collection getGelezenMeteretappes() {       
    return gelezenMeteretappes;
    } // end getGelezenMeteretappes
    * Does ...
    * @return
    public Collection getAfwijkendeMeteretappes() {       
    return afwijkendeMeteretappes;
    } // end getAfwijkendeMeteretappes
    * <p>
    * noteert de wijknummer ...
    * </p>
    * @param _wijknummer
    public void setWijknummer(int _wijknummer) {       
    wijknummer = _wijknummer;
    } // end setWijknummer
    * <p>
    * noteert de rondenummer ...
    * </p>
    * @param _rondenummer
    public void setRondenummer(int _rondenummer) {       
    rondenummer = _rondenummer;
    } // end setRondenummer
    * <p>
    * noteert de omschrijving ...
    * </p>
    * @param _omschrijving
    public void setOmschrijving(String _omschrijving) {       
    omschrijving = _omschrijving;
    } // end setOmschrijving
    * <p>
    * noteert de datum waarop de jaarlijks te lezen meters gelezen moeten
    * worden ...
    * </p>
    * @param _streefdatumJR
    public void setStreefdatumJR(int _streefdatumJR) {       
    streefdatumJR = _streefdatumJR;
    } // end setStreefdatumJR
    * <p>
    * noteert de datum waarop de trimestri&#235;le en driemaandelijks te lezen
    * meters gelezen moeten worden in het eerste kwartaal
    * </p>
    * <p>
    * </p>
    * @param _streefdatumK1
    public void setStreefdatumK1(int _streefdatumK1) {       
    streefdatumK1 = _streefdatumK1;
    } // end setStreefdatumK1
    * <p>
    * noteert de datum waarop de trimestri&#235;le en driemaandelijks te lezen
    * meters gelezen moeten worden in het tweede kwartaal
    * </p>
    * <p>
    * </p>
    * @param _streefdatumK2
    public void setStreefdatumK2(int _streefdatumK2) {       
    streefdatumK2 = _streefdatumK2;
    } // end setStreefdatumK2
    * <p>
    * noteert de datum waarop de trimestri&#235;le en driemaandelijks te lezen
    * meters gelezen moeten worden in het derde kwartaal
    * </p>
    * <p>
    * </p>
    * @param _streefdatumK3
    public void setStreefdatumK3(int _streefdatumK3) {       
    streefdatumK3 = _streefdatumK3;
    } // end setStreefdatumK3
    * <p>
    * noteert de datum waarop de trimestri&#235;le en driemaandelijks te lezen
    * meters gelezen moeten worden in het vierde kwartaal
    * </p>
    * <p>
    * </p>
    * @param _streefdatumK4
    public void setStreefdatumK4(int _streefdatumK4) {       
    streefdatumK4 = _streefdatumK4;
    } // end setStreefdatumK4
    * <p>
    * noteert het aantal actieve leidingen van de meterronde die gekoppeld
    * zijn aan een actief contract ...
    * </p>
    * @param _aantalContractueleLeidingen
    public void setAantalContractueleLeidingen(int _aantalContractueleLeidingen) {       
    aantalContractueleLeidingen = _aantalContractueleLeidingen;
    } // end setAantalContractueleLeidingen
    * <p>
    * noteert het aantal actieve meters van de meterronde ...
    * </p>
    * @param _aantalActieveMeters
    public void setAantalActieveMeters(int _aantalActieveMeters) {       
    aantalActieveMeters = _aantalActieveMeters;
    } // end setAantalActieveMeters
    * <p>
    * noteert het aantal meters dat aan CMB is overgedragen ...
    * </p>
    * @param _aantalInCMB
    public void setAantalInCMB(int _aantalInCMB) {       
    aantalInCMB = _aantalInCMB;
    } // end setAantalInCMB
    * <p>
    * noteert het aantal jaarlijks meters waarvan de plandatum voorbij is ...
    * </p>
    * @param _aantalTeLezenJR
    public void setAantalTeLezenJR(int _aantalTeLezenJR) {       
    aantalTeLezenJR = _aantalTeLezenJR;
    } // end setAantalTeLezenJR
    * <p>
    * noteert het aantal trimestrieel meters waarvan de plandatum voorbij is
    * </p>
    * <p>
    * </p>
    * @param _aantalTeLezenTR
    public void setAantalTeLezenTR(int _aantalTeLezenTR) {       
    aantalTeLezenTR = _aantalTeLezenTR;
    } // end setAantalTeLezenTR
    * <p>
    * noteert het aantal driemaandelijks meters waarvan de plandatum voorbij
    * is
    * </p>
    * <p>
    * </p>
    * @param _aantalTeLezen3M
    public void setAantalTeLezen3M(int _aantalTeLezen3M) {       
    aantalTeLezen3M = _aantalTeLezen3M;
    } // end setAantalTeLezen3M
    * <p>
    * noteert het aantal maandelijks meters waarvan de plandatum voorbij is
    * </p>
    * <p>
    * </p>
    * @param _aantalTeLezen1M
    public void setAantalTeLezen1M(int _aantalTeLezen1M) {       
    aantalTeLezen1M = _aantalTeLezen1M;
    } // end setAantalTeLezen1M
    * <p>
    * noteert het aantal meters waarvan de plandatum voorbij is
    * </p>
    * <p>
    * </p>
    * @param _aantalTeLezen
    public void setAantalTeLezen(int _aantalTeLezen) {       
    aantalTeLezen = _aantalTeLezen;
    } // end setAantalTeLezen
    * <p>
    * noteert alle meteretappes van de meterronde ...
    * </p>
    * @param _meteretappes
    public void setMeteretappes(Collection _meteretappes) {       
    meteretappes = _meteretappes;
    } // end setMeteretappes
    * Does ...
    * @param _teLezenMeteretappes
    public void setTeLezenMeteretappes(Collection _teLezenMeteretappes) {       
    teLezenMeteretappes = _teLezenMeteretappes;
    } // end setTeLezenMeteretappes
    * Does ...
    * @param _gelezenMeteretappes
    public void setGelezenMeteretappes(Collection _gelezenMeteretappes) {       
    gelezenMeteretappes = _gelezenMeteretappes;
    } // end setGelezenMeteretappes
    * Does ...
    * @param _afwijkendeMeteretappes
    public void setAfwijkendeMeteretappes(Collection _afwijkendeMeteretappes)
    afwijkendeMeteretappes = _afwijkendeMeteretappes;
    } // end setAfwijkendeMeteretappes
    // Constructors
    * Aanmaken van een meterronde op basis van een ResultSet
    * @author GC1494
    * @param _rs
    public Meterronde ( )
    this.setWijknummer(0 ) ;
    this.setRondenummer(0) ;
    this.setOmschrijving("???") ;           
         public Meterronde (ResultSet _rs) 
              throws SQLException
         this.setWijknummer(_rs.getInt("rowynr")) ;
         this.setRondenummer(_rs.getInt("roronr")) ;
         this.setOmschrijving(_rs.getString("roomsc")) ;           
    } // end Meterronde

  • [b]Error during JSP page processing[/b]

    hi , i'm mech.
    i have some probs with jsp. i am trying to connect jsp page with database and printing the data on the browser page. i have created DSN mm using microsoft odbc for oracle and oracle9i's driver oracle in orahome90 but it is giving yet . i have this coding and error.
    ------------------------jsp code--------------------------
    package pagecompile.jsp;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.servlet.jsp.*;
    import java.io.PrintWriter;
    import java.io.IOException;
    import java.io.FileInputStream;
    import java.io.ObjectInputStream;
    import java.util.Vector;
    import com.sun.server.http.pagecompile.jsp.runtime.*;
    import java.beans.*;
    import com.sun.server.http.pagecompile.jsp.JspException;
    import java.sql.*;
    public class _Connect extends HttpJspBase {
    static char[][] jspxhtml_data = null;
    public _Connect( ) {
    private static boolean jspxinited = false;
    public final void jspxinit() throws JspException {
    ObjectInputStream oin = null;
    int numStrings = 0;
    try {
    FileInputStream fin = new FileInputStream("E:\\JavaWebServer2.0\\tmpdir\\default\\pagecompile\\jsp\\pagecompile.jspConnect.dat");
    oin = new ObjectInputStream(fin);
    jspxhtml_data = (char[][]) oin.readObject();
    } catch (Exception ex) {
    throw new JspException("Unable to open data file");
    } finally {
    if (oin != null)
    try { oin.close(); } catch (IOException ignore) { }
    public void _jspService(HttpServletRequest request, HttpServletResponse  response)
    throws IOException, ServletException {
    boolean jspxcleared_due_to_forward = false;
    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    String _value = null;
    try {
    if (_jspx_inited == false) {
    jspxinit();
    jspxinited = true;
    _jspxFactory = JspFactory.getDefaultFactory();
    response.setContentType("text/html");
    pageContext = _jspxFactory.getPageContext(this, request, response,
                   "", true, 8192, true);
    application = pageContext.getServletContext();
    config = pageContext.getServletConfig();
    session = pageContext.getSession();
    out = pageContext.getOut();
    out.print(_jspx_html_data[0]);
    out.print(_jspx_html_data[1]);
    // begin [file="E:\\JavaWebServer2.0\\public_html\\Connect.jsp";from=(14,2);to=(28,2)]
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection myconn=DriverManager.getConnection("Jdbc:Odbc:mm","madhulika","madhulika");
    Statement stmt = myconn.createStatement();
    ResultSet myResultSet = stmt.executeQuery("Select * from peopletable");
    if(myResultSet != null)
         while(myResultSet.next())
              int eid=myResultSet.getInt("id");
              String fname=myResultSet.getString("firstname");
              String lname=myResultSet.getString("lastname");
              String mail=myResultSet.getString("email");
    // end
    out.print(_jspx_html_data[2]);
    // begin [file="E:\\JavaWebServer2.0\\public_html\\Connect.jsp";from=(30,10);to=(30,13)]
    out.print(eid);
    // end
    out.print(_jspx_html_data[3]);
    // begin [file="E:\\JavaWebServer2.0\\public_html\\Connect.jsp";from=(31,10);to=(31,15)]
    out.print(fname);
    // end
    out.print(_jspx_html_data[4]);
    // begin [file="E:\\JavaWebServer2.0\\public_html\\Connect.jsp";from=(32,10);to=(32,15)]
    out.print(lname);
    // end
    out.print(_jspx_html_data[5]);
    // begin [file="E:\\JavaWebServer2.0\\public_html\\Connect.jsp";from=(33,10);to=(33,14)]
    out.print(mail);
    // end
    out.print(_jspx_html_data[6]);
    // begin [file="E:\\JavaWebServer2.0\\public_html\\Connect.jsp";from=(37,5);to=(43,0)]
    stmt.close();
    myconn.close();
    // end
    out.print(_jspx_html_data[7]);
    } catch (Throwable t) {
    if (out.getBufferSize() != 0)
    out.clear();
    throw new JspException("Unknown exception: ", t);
    } finally {
    if (!_jspx_cleared_due_to_forward)
    out.flush();
    _jspxFactory.releasePageContext(pageContext);
    -------------------error in browser----------------------
    Error during JSP page processing
    java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
         at java.lang.Throwable.(Compiled Code)
         at java.lang.Exception.(Compiled Code)
         at java.sql.SQLException.(SQLException.java:43)
         at sun.jdbc.odbc.JdbcOdbc.createSQLException(Compiled Code)
         at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:3814)
         at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:1029)
         at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:145)
         at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:165)
         at java.sql.DriverManager.getConnection(Compiled Code)
         at java.sql.DriverManager.getConnection(DriverManager.java:126)
         at pagecompile.jsp._Connect._jspService(Compiled Code)
         at com.sun.server.http.pagecompile.jsp.runtime.HttpJspBase.service(HttpJspBase.java:87)
         at javax.servlet.http.HttpServlet.service(Compiled Code)
         at com.sun.server.http.pagecompile.jsp.runtime.JspServlet.runServlet(JspServlet.java:469)
         at com.sun.server.http.pagecompile.jsp.runtime.JspServlet.processJspPage(JspServlet.java:259)
         at com.sun.server.http.pagecompile.jsp.runtime.JspServlet.service(JspServlet.java:97)
         at javax.servlet.http.HttpServlet.service(Compiled Code)
         at com.sun.server.ServletState.callService(ServletState.java:226)
         at com.sun.server.ServletManager.callServletService(ServletManager.java:936)
         at com.sun.server.ProcessingState.invokeTargetServlet(ProcessingState.java:423)
         at com.sun.server.http.HttpProcessingState.execute(HttpProcessingState.java:79)
         at com.sun.server.http.stages.Runner.process(Runner.java:79)
         at com.sun.server.ProcessingSupport.process(Compiled Code)
         at com.sun.server.Service.process(Service.java:204)
         at com.sun.server.http.HttpServiceHandler.handleRequest(HttpServiceHandler.java:374)
         at com.sun.server.http.HttpServiceHandler.handleRequest(Compiled Code)
         at com.sun.server.HandlerThread.run(Compiled

    Backing up a moment, is there a particular reason that you're using the JDBC-ODBC bridge rather than using the Oracle JDBC driver?
    Have you taken a look at the JSP sample code available on OTN? I would start by making sure you can run that.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Values from event and from bindings are not same in valueChangeListener

    Hi, in a valueChangeListener method of an af:selectOneChoice component I get
    the new value from the event with:
    valueChangeEvent.getNewValue()
    and from bindings with:
    JsfUtils.getExpressionValue("#{bindings.Parflag.inputValue}")
    But the value from bindings is the previous value set in UI.
    Why is this happening? In ADF Page lifecycle manual it is referenced that “update model values” face runs before “invoke application” so why the value in bindings is the previous value?
    Any comment will be helpful,
    Thanks.

    That’s right.
    Could anyone comment why a valueChangeListener is regarder as a
    Validation Process and not an Application Action that commits business changes.
    I mean if I need a validator I can put an f:validator to the component and that’s all.
    The immediate attribute didn’t change the result, the method is run before bindings set.

  • "500 Internal server error" in JSPs

              Hi,
              I have an application which uses servlets and JSPs. Sometimes I get "500 Internal
              Server error" at a random location (diff servlet/jsp). The weblogic.log shows
              following exception...
              Wed Jun 20 15:26:56 GMT+05:30 2001:<E> <ServletContext-General> Servlet failed
              w
              ith Exception
              java.lang.ArrayIndexOutOfBoundsException: 8813824
              at weblogic.servlet.jsp.JspBase.service(Compiled Code)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
              C
              ode)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
              C
              ode)
              at weblogic.servlet.internal.ServletContextManager.invokeServlet(Compile
              d Code)
              at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled Code)
              at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
              at weblogic.kernel.ExecuteThread.run(Compiled Code)
              Does anybody know why the reson for this problem?
              Thanks,
              -D K
              

    Hussein Sawwan wrote:
    Please run the script in (How To List E-Business Suite Profile Option Values For All Levels Using SQLPlus [ID 201945.1]) to verify if this profile option is set or not at all levels. For the profile option name, please use "FND_INIT_SQL".
    Hi Hussein,
    When i run this select Script,
    It returns as Level_set is Undefined , Please see below
    SHORT_NAME                     NAME                                     LEVEL_SET       CONTEXT                        VALUE
    FND_INIT_SQL                   Initialization SQL Statement - Custom    UnDef           UnDef I Checked the note id *Using Profile Option 'Initialization SQL Statement - Custom' [ID 135389.1]* for setting this profile option to Application Level or Higher.
    But they only mention steps to enable session level trace or logging through this profile option.
    Can you help me, how to set this profile option to Application Level with any values as setting this profile option can solve the error
    javax.servlet.ServletException: Could not initialize class oracle.apps.fnd.sso.Utils , As by note id ID 1497554.1
    Thanks

  • Very Strange error and can't find any answer anywhere in the net

    I created a login form (see below).
    If I use the regular HTML form and form fields for the username, password and submit button I don't get any problem viewing my form
    But if I use cfform and cfinput form fields I get this error.
    Here is my cfform codes:
    cfform name="login" action="/login/checkLogin.cfm" method="post">
      cfinput type="text" name="username" size="25" required="Yes" message="Please enter your username">
      cfinput type="password" name="password" size="25" required="Yes" message="Please enter you password">
       cfinput type="submit" value="Sign In">
    /cfform>
    When I launch this page I get this error and I don't understand what this means and what am I supposed to do, please help!
    Total Time Avg Time Count Template
    1 ms 1 ms 1 /opt/coldfusion10/cfusion/wwwroot/CFIDE/administrator/templates/secure_profile_error.cfm
    0 ms 0 ms 1 top level /home/space/users/www/webdocsec/login/login.cfm
    19 ms   STARTUP, PARSING, COMPILING, LOADING, & SHUTDOWN
    20 ms   TOTAL EXECUTION TIME
    red = over 250 ms average execution time
    Exceptions
    10:08:08.008 - Template Exception - in : line -1
         Attribute validation error for tag CFINPUT.

    Using cfform
    To start with, leave cfform aside. You will find in the documentation that most developers are abandoning Coldfusion's native UI tags, for example, cfform, cfgrid, and so on. They are outdated and occasionally perform erratically. If you wish to validate forms, use a Javascript library such as jQuery.
    Implementing Site-Wide Error Handler
    By default, there is no site-wide error handler configured. It is advisable to create your own. Then register the path of the page in the Coldfusion Administrator.
    As the name implies, it is a CFM page which ColdFusion runs when it encounters an error on your site. Creating your own enables you to present a simple, customized, user-friendly page to your visitors.
    Alternatively, you may choose to implement a Secure Profile. This is available in the Administrator, on the page Security => Secure Profile.
    When you check the box, you configure Coldfusion to automatically implement all the security measures listed in the table. That includes Coldfusion's own the Site-Wide Error Handler. It is the system file, /CFIDE/administrator/templates/secure_profile_error.cfm.

  • Error while accessing OIM UI - OracleJSP error: oracle.jsp.parse.JspParseException

    We have 3 nodes of OIM servers in our clustered production environment. While accessing OIM server on first node, following error is coming in the browser window -
    OracleJSP error: oracle.jsp.parse.JspParseException:
    /oracle/iam/ui/main/signin.jspx: Line # 5, &amp;amp;amp;lt;af:document id="d1" initialFocusId="pt1:_pt_it1" theme="light" title="#{uiBundle['IDENTITY_SELF_SERVICE_TITLE']}"&amp;amp;amp;gt;
    Error: Encountered deferred syntax #{ in template text. If intended as a literal, escape it or set directive deferredSyntaxAllowedAsLiteral
    The OIM UI is accessible on the other 2 nodes. There are no changes made in the environment. I have also attached the OIM diagnostic logs for your analysis.
    Please let us know the steps to resolve this issue in production environment.

    No..
    I have followed the way to add JSF libray,
    1)Right click the projet->project properties->javadoc->JSP taglibraries
    2)Inside the Distributed Library i have selected the JSTL core 1.2 and click on add.
    3) Then a new dialogue box of Choose tablibraries came.inside that only struts bean,struts Html etc are seeing.
    What i need to select?..Do i am following the right way?
    Please help..

  • PL/SQL error in JSP Reports

    Hi,
    I am trying to create a simple PL/SQL in a JSP report thar returns a column's value as below:
    Return :RES_COM_CODE ;
    I am getting an error as below:
    javax.servlet.jsp.JspException: REP-0724: Cannot get the value of Column 'RES_COM_CODE' here. REP-1401: 'cf_1formula': Fatal PL/SQL error occurred.
    Can someone please tell me how to solve the error above? The CF_1 is in the same group as 'RES_COM_CODE' .
    Thank you in advance.
    Cheers,
    Tan

    it seems to be a bug in oracle.
    you need to apply the patchset 9.0.4.1 to get this issue resolved.
    .0.4.1 3240140 This fix will solve the REP-0724 error (and engine crash/hang) which you web only report and formula column accessing database columns in the group

  • Getting import error in jsp in creating war project of masthead for portal 7.31

    Hi,
    I am getting error in customize masthead war project in jsp for import statement.
    <%@ page import="com.sapportals.htmlb.*"%>
    <%@ page import="com.sapportals.htmlb.hovermenu.*"%>
    <%@ page import="com.sap.security.api.UMFactory"%>
    <%@ page import="com.sapportals.portal.prt.service.license.ILicenseService"%>
    <%@ taglib uri="prt:taglib:tlhtmlb" prefix="hbj"%>
    I have asked basis team for jar relative to these but they have not found in system.
    We are using portal 7.31 version.
    Kindly help me to remove this error from jsp.
    Thanks in advance.

    Hi Hemendra,
    At first i have done this and after that even i was facing error that's why i created this thread.
    Kindly check my first post for error.
    Getting import error in jsp in creating war project of masthead for portal 7.31
    This question is Not Answered.(Mark as assumed answered)
    Swati Joshi  Apr 29, 2015 12:34 PM  
    Hi,
    I am getting error in customize masthead war project in jsp for import statement.
    <%@ page import="com.sapportals.htmlb.*"%>
    <%@ page import="com.sapportals.htmlb.hovermenu.*"%>
    <%@ page import="com.sap.security.api.UMFactory"%>
    <%@ page import="com.sapportals.portal.prt.service.license.ILicenseService"%>
    <%@ taglib uri="prt:taglib:tlhtmlb" prefix="hbj"%>
    I have asked basis team for jar relative to these but they have not found in system.
    We are using portal 7.31 version.
    Kindly help me to remove this error from jsp.
    Thanks in advance.

  • Database access by Bean, error in JSP(view)

    Hello,
    I have a web application. All my database connection logic, execution of query is done in my bean. I have verified that the code in my bean is fine and so I have not posted that code.
    My jsp code is as follows:
    <%@ page import="java.util.*" %>
    <%@ page import="java.sql.*" %>
    <html>
    <head><title>Trial JSP Page</title>
    <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
    <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
    <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-STORE">
    <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="PRIVATE">
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
    </head>
    <jsp:useBean id="data" class="com.bean.samples.ConnectionBean"/>
    <jsp:setProperty name="data" property="drivername" value="oracle.jdbc.driver.OracleDriver"/>
    <jsp:setProperty name="data" property="url" value="jdbc:oracle:thin:@someurl"/>
    <jsp:setProperty name="data" property="username" value="name"/>
    <jsp:setProperty name="data" property="password" value="passwd"/>
    <jsp:setProperty name="data" property="query" value="SELECT * FROM tablename"/>
    <%
    data.processQuery();
    ResultSet rs = data.getRs();
    ResultSetMetaData rsmd = data.getRsmd();
    %>
    <body text="black">
    The table has <jsp:getProperty name="data" property="count"/> columns and <jsp:getProperty name="data" property="rowcnt"/>
    rows in it.
    The first column name is <%= rsmd.getColumnLabel(1) %>.
    The current row is <%= rs.getRow() %>.
    </pre>
    </body>
    </html>
    Output of browser:
    The table has 2 columns and 6 rows in it. The first column name is ITEMNO. The current row is
    Error: 500
    Location: /schedule/jsp/Trial.jsp
    Internal Servlet Error:
    java.lang.IllegalStateException: Response has already been committed
         java.lang.Throwable(java.lang.String)
         java.lang.Exception(java.lang.String)
         java.lang.RuntimeException(java.lang.String)
         java.lang.IllegalStateException(java.lang.String)
         void org.apache.tomcat.core.HttpServletResponseFacade.sendError(int, java.lang.String)
         void org.apache.jasper.runtime.JspServlet.unknownException(javax.servlet.http.HttpServletResponse, java.lang.Throwable)
         void org.apache.jasper.runtime.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void org.apache.tomcat.core.ServletWrapper.handleRequest(org.apache.tomcat.core.Request, org.apache.tomcat.core.Response)
         void org.apache.tomcat.core.ContextManager.service(org.apache.tomcat.core.Request, org.apache.tomcat.core.Response)
         void org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(org.apache.tomcat.service.TcpConnection, java.lang.Object [])
         void org.apache.tomcat.service.TcpConnectionThread.run()
         void java.lang.Thread.run()
    Error is being thorwn on the statemnt:
    The current row is <%= rs.getRow() %>.
    Can anyone help with this?
    Thanks in advance.

    Hi beattris,
    No I dont close the rs and conn objects.
    The relevant method of my bean is :
    public void processQuery() throws Exception{
         try{
              Class.forName(getDrivername());
              conn = DriverManager.getConnection(getUrl(),getUsername(),getPassword());
              st = conn.createStatement();
              rs = st.executeQuery(getQuery());
              rsmd = rs.getMetaData();
              int columncount = rsmd.getColumnCount();
              int rowcount = 0;
              setCount(columncount);
              while(rs.next()){
                   rowcount++;
              setRowcnt(rowcount);
         }catch(Exception e){
              throw e;
    I did some searching on the internet for this error and found that it is tricky one and so far I havent found a way to correct it.
    The link i went to were:
    http://developer.java.sun.com/developer/Books/ProJSP/Chap19.pdf
    and
    http://archives2.real-time.com/rte-tomcat/2000/Jun/msg02490.html
    Well, I hope I get some answers soon.
    Thanks.

Maybe you are looking for

  • Problem in the update rule routine in BIW production

    hi,   I have encountered a problem in the update rule, the problem is, there is a routine to calculate the age of a person, age is a key figure, The problem is that the key figure is not being calculated. we had encountered the same problem in the bw

  • Using music from a pc

    I sort of wrote about this earlier today but not sure I framed the question correctly. My 16 y.o. daughter has a PC and she down loads tons of junk. After running Norton Anti Virus on her computer today I see she has a number of trojans on her PC. Sh

  • Vendor request approved and then denied

    Hi, I registered in Vendor portal recently...I got a mail after that , asking some document verfication..I sent a scanned copy of my driving license... Within a few minutes , i got a mail saying VENDOR APPROVED..Then after a few mins, i got a mail sa

  • How to design a "white" background in "black and white" ad on pink newsprint?

    Long-time Indesigner here, but I have never had this dilemma before. Am designing a "black and white" newpaper ad for a major paper that has a pink section, i.e. it prints on pink newsprint. So I know this is black ink only, hence the "black and whit

  • Trying to emulate a fill in actionscript 3

    What I'm trying to do is, I load thumbnail pictures into a scrollbar, via XML,when a user selects the thumbnail, what I want it to do is: Take the thumbnail bitmapData (66x66) , copy it into an empty movieclip that can be used with multiple instances