JSP UseBean setproperty work  deleted value setting work around

          I was using the set property * and i had to navigate through the pages. I was stuck with when some one deletes the value and setting of is not being done. The only way i could find is to set " " a space onSubmit or unLoad and finally while setting into a database or anything make a trim of it .
          If any one finds a good way of over coming this please mail me at [email protected]
          Waiting for a response.
          Thanx in advance.
          Lakshmi Narayan.
          

          I was using the set property * and i had to navigate through the pages. I was stuck with when some one deletes the value and setting of is not being done. The only way i could find is to set " " a space onSubmit or unLoad and finally while setting into a database or anything make a trim of it .
          If any one finds a good way of over coming this please mail me at [email protected].
          Waiting for a response.
          Thanx in advance.
          Lakshmi Narayan.
          

Similar Messages

  • Jsp:useBean  not work when I install aplication!!

    Hi
    I developing an application with UIX JSP on Jdeveloper 9.0.2 and i using something like this:
    <jsp:useBean id="cbean" class="oracle.jsp.dbutil.ConnBean" scope="session" />
    <jsp:setProperty name="cbean" property="dataSource" value="jdbc/BiblosConnectionCoreDS" />
    </jsp:useBean>
    <%
    try{
    cbean.connect();
    This code work fine in standalone mode, but when i install this application on 9IAS, with an archive War, the code <jsp:useBean, not work.
    What is missing for? o What is the reason for this situation
    Thanks for some help?

    many thanks for your reply, and I have download new updates driver from your website (http://consumersupport.lenovo.com/en/DriversDownloads/drivers_show_890.html) and Installer it on my Y410 but it still does not work!!!
    the firstly: when I star up with win7, I can see a speaker icon right down near the clock, when I click mouse on it, I can see: Volume Mixer - Speaker with Device(Speaker Hight definition Audio Device, Digital Audio(S/PDIF) ( Hight definition Audio Device) ).
    Look in devicemanger I can see "Sound , video and game controll " has already installer with 'Hight definition Audio Device ' & 'Unimodem Hafl-Duplex Audio Device' below... but I cannot hear the sound when I play music, video, games...etc...
    the second: when laptop wakeup after 'sleep' mode, I can hear sound on speaker! but headphone jack does not work when I plug my headphone jack into it (I cannot hear sound with headphone), however I still hear sound from speaker, in this case!  
    Can you help me or tell me how I can do ?!
    Thanks and Best Regards,
    jupitervn

  • JSP usebean setProperty property is not working ??

    I am new to this forum so not sure whether I put my concern in correct category or not.
    I have the following piece of code in my JSP
    <jsp:useBean id="bean" class="com.cdr.settlement.bean.MassUpdateUtilityBean" scope="request">
    <jsp:setProperty name="bean" property="*"/>
    </jsp:useBean>
    <form name="massUpdateForm" id="massUpdateForm" action="massUpdateUtilityAction" method="Post">
    When I try to get the value of bean in my controller (massUpdateUtilityAction) its coming as null (bean value).
    public void doPost(HttpServletRequest request, HttpServletResponse response) {
    bean = (MassUpdateUtilityBean)request.getAttribute("bean");
    Any help would be highly appreciated....!!! Thanks

    I want to get the bean values in my controller....!!!
    I am posting my code once again here...!!!
    My jsp Code is:--
    <jsp:useBean id="bean" class="com.cdr.settlement.bean.MassUpdateUtilityBean" scope="request"/>
    <jsp:useBean id="addressBean" class="com.cdr.settlement.bean.AddressBean" scope="request" />
    <form name="massUpdateForm" id="massUpdateForm" action="MassUpdateUtilitySave.jsp" method="Post">
    My controller code is:--
    public void doPost(HttpServletRequest request, HttpServletResponse response) {
    bean = (MassUpdateUtilityBean)request.getAttribute("bean");
    bean.getUserName();
    now this bean value is coming null though I am setting all the values of this bean in jsp using setProperty...!!!

  • HELP: jsp:useBean not "working"

    I have written a JSP that utilizes some JavaBeans. With one, I do something similar to the following:
    <jsp:useBean id="BeanA" class="mypackage.myFirstBean" />
    That statement executes just fine, as the debug HTML statement that follows is printed using <c:out>.
    Then I follow that with something nearly identical:
    <jsp:useBean id="BeanB" class="mypackage.mySecondBean" />
    The debug statement after this second <jsp:useBean> call is not executed.
    The two beans have no-argument constructors and are in the same package, and both are found in the right hierarchy under WEB-INF/classes inside my WAR file. Also, both are named properly in the JSP. The only difference is that one "executes," and the other does not. I don't even get to call <c:set> on them to actually make them do some work!
    Any insight is appreciated. Let me know if there is anything else I can provide.
    Thanks for your help, and Happy New Year!

    The symptom you described is certainly curious.
    Can you put the second "useBean" line before the first one? Then please tell us if it "executes".

  • JSP - useBean tag works only for first request

     

    hey why donnu change the scope to PAGE, give a try.........
              Vishal Vishnoi wrote:
              > Using Weblogic 5.1 I am trying to work with a simple example of a JSP
              > page which has got a usebean tag. The tag is
              >
              > <jsp:useBean id="resourceTypes" type="java.util.ArrayList"
              > scope="request" />
              >
              > * This works only the first time I load the page.
              >
              > If I try to load the page again. I get the following error
              >
              > javax.servlet.ServletException: Could not find bean 'resourceTypes',
              > type 'java.
              > util.ArrayList' in scope
              >
              > --Vishal
              

  • Jsp:useBean and assigning a value to that bean

    Hello,
    I have a type called Country and I have declared a bean using the "jsp:useBean" syntax.
    I then try to assign a value to that bean in a scriptlet. Eventually I try to retrieve the values using "jsp:getProperty". The problem is that it appears to null.
    Here is the code of the jsp
    <%@ page language="java" %>
    <%@ page import="com.parispano.latinamericaguide.*" %>
    <%
    /* We retrieve the Countries object from the servlet context. */
    ServletContext sc = getServletContext();
    Countries cs = (Countries)sc.getAttribute("countries");
    %>
    <jsp:useBean id="country" class="com.parispano.latinamericaguide.Country"/>
    <%
    /* If the request contains a country id, then we set the variable. */
    country = cs.getCountryFromId(Integer.parseInt(request.getParameter("countryID")));
    %>
    <html>
    <head>
    <title>Country details</title>
    </head>
    <body>
    <table>
    <tr><td>Name</td><td><jsp:getProperty name="country" property="name"/><!-- This is not working--></td></tr>
    <table>
    <%
    out.println(country.getName());//This is working
    %>
    </body>
    </html>This is the code for the bean
    package com.parispano.latinamericaguide;
    * @author Julien Martin
    * Represents a country.
    public class Country implements Comparable {
         private int id;
         private String name;
         private int landArea;
         private String capital;
         private String currency;
         private String flag;
         private String internet_domain;
         private String dialling_code;
         private float literacy;
         private float male_life_expectancy;
         private float female_life_expectancy;
         private String map;
         private int population;
         private int population_year;
         private float birth_rate;
         private int birth_rate_year;
         private float death_rate;
         private int death_rate_year;
         private int gdp;
         private int gdp_per_head;
         private int gdp_year;
         private float unemployment_rate;
         private int unemployment_rate_year;
         public Country() {
         public Country(
              int id,
              String name,
              int landArea,
              String capital,
              String currency,
              String flag,
              String internet_domain,
              String dialling_code,
              float literacy,
              float male_life_expectancy,
              float female_life_expectancy,
              String map,
              int population,
              int population_year,
              float birth_rate,
              int birth_rate_year,
              float death_rate,
              int death_year_rate,
              int gdp,
              int gdp_year,
              float unemployment_rate,
              int unemployment_rate_year) {
              this.id = id;
              this.name = name;
              this.landArea = landArea;
              this.capital = capital;
              this.currency = currency;
              this.flag = flag;
              this.internet_domain = internet_domain;
              this.dialling_code = dialling_code;
              this.literacy = literacy;
              this.male_life_expectancy = male_life_expectancy;
              this.female_life_expectancy = female_life_expectancy;
              this.map = map;
              this.population = population;
              this.population_year = population_year;
              this.birth_rate = birth_rate;
              this.birth_rate_year = birth_rate_year;
              this.death_rate = death_rate;
              this.death_rate_year = death_year_rate;
              this.gdp = gdp;
              this.gdp_year = gdp_year;
              this.unemployment_rate = unemployment_rate;
              this.unemployment_rate_year = unemployment_rate_year;
         public float getBirth_rate() {
              return birth_rate;
         public int getBirth_rate_year() {
              return birth_rate_year;
         public String getCapital() {
              return capital;
         public String getCurrency() {
              return currency;
         public float getDeath_rate() {
              return death_rate;
         public int getDeath_rate_year() {
              return death_rate_year;
         public String getDialling_code() {
              return dialling_code;
         public float getFemale_life_expectancy() {
              return female_life_expectancy;
         public String getFlag() {
              return flag;
         public int getGdp() {
              return gdp;
         public int getGdp_per_head() {
              return gdp / population;
         public int getGdp_year() {
              return gdp_year;
         public int getId() {
              return id;
         public String getInternet_domain() {
              return internet_domain;
         public float getLiteracy() {
              return literacy;
         public float getMale_life_expectancy() {
              return male_life_expectancy;
         public String getMap() {
              return map;
         public String getName() {
              return name;
         public int getPopulation() {
              return population;
         public int getPopulation_year() {
              return population_year;
         public int getLandArea() {
              return landArea;
         public float getUnemployment_rate() {
              return unemployment_rate;
         public int getUnemployment_rate_year() {
              return unemployment_rate_year;
         public void setBirth_rate(float f) {
              birth_rate = f;
         public void setBirth_rate_year(int i) {
              birth_rate_year = i;
         public void setCapital(String string) {
              capital = string;
         public void setCurrency(String string) {
              currency = string;
         public void setDeath_rate(float f) {
              death_rate = f;
         public void setDeath_rate_year(int i) {
              death_rate_year = i;
         public void setDialling_code(String string) {
              dialling_code = string;
         public void setFemale_life_expectancy(float f) {
              female_life_expectancy = f;
         public void setFlag(String string) {
              flag = string;
         public void setGdp(int i) {
              gdp = i;
         public void setGdp_per_head(int i) {
              gdp_per_head = gdp/population;
         public void setGdp_year(int i) {
              gdp_year = i;
         public void setId(int i) {
              id = i;
         public void setInternet_domain(String string) {
              internet_domain = string;
         public void setLiteracy(float f) {
              literacy = f;
         public void setMale_life_expectancy(float f) {
              male_life_expectancy = f;
         public void setMap(String string) {
              map = string;
         public void setName(String string) {
              name = string;
         public void setPopulation(int i) {
              population = i;
         public void setPopulation_year(int i) {
              population_year = i;
         public void setlandArea(int i) {
              landArea = i;
         public void setUnemployement_rate(float f) {
              unemployment_rate = f;
         public void setUnemployment_rate_year(int i) {
              unemployment_rate_year = i;
         public String toString() {
              return name;
         public int compareTo(Object o) {
              Country c = (Country)o;
              int cmp = name.compareTo(c.name);
              System.out.println(cmp);
              return cmp;
    }Can anyone please help?
    Thanks in advance,
    Julien.

    Thanks,
    I have added scope="application". It still show "null" indicating that the bean is not initialized with the properties. I would like a quicker way to initialize a bean property than invoking the setProperty tag for each property.
    Here is a simple example that demonstrates the problem:
    <%@ page language="java" %>
    <%@ page import="com.tests.*" %>
    <jsp:useBean id="monBean" class="com.tests.MonBean" scope="application"/>
    <%
    MonBean mb = new MonBean();
    mb.setName("toto");
    monBean= mb;
    %>
    <html>
    <head>
    <title>Lomboz JSP</title>
    </head>
    <body bgcolor="#FFFFFF">
    <jsp:getProperty name="monBean" property="name"/>
    </body>
    </html>And the bean
    package com.tests;
    public class MonBean {
    private String name;
    public String getName() {
         return name;
    public void setName(String name) {
         this.name = name;
    }This show "null".
    Any other idea why this is not working?
    Thanks,
    Julien

  • Jsp:usebean How to get value of an object from a bean

    I am new to JSP and am struggling from past few days to solve a problem. Consider the below scenario
    Class Book{
    private String author;
    public void setAuthor(String author)
    public String getAuthor(){
    return author; }
    Class Rack{
    private Book []books;
    public []Book getbooks()
    return books;
    public void setbooks([]Book val){....}
    Suppose Books gets populated only using Rack and I have Rack populate in my session, using jsp:usebean or any other tag how can I get value of author? Does using tag handle null value check of books, if books are not set by any chance?
    Regards,
    Dhyan

    I got a way out to access the attribute, i feel it is
    <jsp:usebean id="myRack" class="settings.Rack"/>
    <c:foreach var="book" item="myRack.books">
    </c:foreach>
    I am not able to check if this is correct or not because myRack.books is not having any value set by me in the request scope. How do i get instance of Rack class set by another page in the current request? I can get the value if i use scriptlet but i dont want to use scriptlet.
    I am continiously trying, if I get an answer, I shall post, else pls somebody guide.

  • What is different?  setProperty works, c:set does not ???

    I have a class that I am instantiating twice (separate instances... i.e. using different scopes) in a jsp page. In the second instance I tried to set three properties using c:set, target, and property. It gave me an error saying the last property did not have a setter method... but it does. So then I tried using 'setProperty' instead, and it worked fine. Can someone take a look and tell me what the difference is?
    This worked fine:
    <jsp:useBean id="arrayOfArticles" scope="session" class="com.mystuff.blogger.beans.GetArticleBean">
    <jsp:setProperty name="arrayOfArticles" property="upperBound" value="0" />
    <jsp:setProperty name="arrayOfArticles" property="range" value="10" />
    <jsp:setProperty name="arrayOfArticles" property="articleArray" />
    </jsp:useBean>
    For some reason this did not work:
    <jsp:useBean id="arrayOfArticles" scope="session" class="com.mystuff.blogger.beans.GetArticleBean" />
    <c:set target="${arrayOfArticles}" property="upperBound" value="0" />
    <c:set target="${arrayOfArticles}" property="range" value="10" />
    <c:set target="${arrayOfArticles}" property="articleArray" />
    It kept giving an error like this (from Tomcat 5.0.19):
    javax.servlet.ServletException: No setter method in <set> for property "articleArray"
    Thanks,
    BillR

    a c:set represents a Set Collection I think?Nope. It is JSTL tag used fro setting properties and variables
    So it doesn't "set" something, it represents a set of
    values. See J2SE 1.4 API on Collection,Set, HashSet,
    TreeSet, ...Generally his use is correct.
    <c:set target="${arrayOfArticles} property="articleArray" value="someValue"/>
    But he has to make sure
    1) the arrayOfArticles bean has a method called setArticleArray(...)
    2) that the method takes a parameter of some type
    3) that there is a value provided that can be converted to the same type needed by the set method
    canucklehead, I know I answered in your other thread, but another idea would be to create a 'dummy' value in the setArticleArray method. Sorta like this:
    //doit is a dummy boolean, used just to get this method called
    public void setArticleArray(boolean doit) {
      this.articleArray = new ReturnArticle().getRangeOfArticles(upperBound, range);
    } Then you could use it in JSTL like this:
    <jsp:useBean id="arrayOfArticles" scope="session" class="com.mystuff.blogger.beans.GetArticleBean" />
    <c:set target="${arrayOfArticles}" property="upperBound" value="0" />
    <c:set target="${arrayOfArticles}" property="range" value="10" />
    <c:set target="${arrayOfArticles}" property="articleArray" value="true"/>

  • Setting attributes in jsp is not working

    i want to recieve the "stuBean" object in the servlet by setting it in following jsp page.In this jsp page i am retrieving that object sent by a servlet and then again i want to forward it to another servlet through this jsp page. And in the servlet i want to recieve this object is giving me null pointer exception.
    CoDe for JSP page
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>JSP Page</title>
        </head>
        <body  >
            <%
                LoginRemote stuBean=(LoginRemote) request.getAttribute("stuBean");
                out.print(stuBean.getPassWord());
                request.setAttribute("stuBean", stuBean);
    %>
      <center>  <form  action="passChangeServlet" method="POST">
                <table  border="1">
                    <tbody >
                        <tr>
                            <td>Current Password</td>
                            <td><input  type="password" name="currentPass" value="" /></td>
                        </tr>
                        <tr>
                            <td>New Password</td>
                            <td><input type="password" name="newPass" value="" /></td>
                        </tr>
                        <tr>
                            <td>Confirm Password</td>
                            <td><input type="password" name="confPass" value="" /></td>
                        </tr>
                        <tr>
                            <td><input type="reset" value="Reset" name="reset" /></td>
                            <td><input type="submit" value="Submit" name="process" /></td>
                        </tr>
                    </tbody>
                </table>
            </form>
            <a href="http://abc">Continue....</a></center>
        </body>
    </html>
    Code for servlet
    LoginRemote stuBean=(LoginRemote)request.getAttribute("stuBean");
            out.print(stuBean.getUserName());

    Request attributes last for one "request".
    If you want to remember a value across multiple HTTP requests, use Session scope.
    Also rather than scriptlet code in a JSP, it would be better to have a <jsp:useBean> and <jsp:setProperty> tag.

  • Value set not working in responsibility

    Hello everyone,
    I created a custom responsibility and added a custom concurrent program to it (specifically the payroll run concurrent program). Now this concurrent program has a value set attached to it (PY_SRS_PAYROLL_GB) to select the payroll name. My custom concurrent program works great when attached to the Global Super HRMS Manager responsibility, but when attached to my custom responsibility, the value set say list of values contains no entries.
    This is the body of the value set:
    where pay.business_group_id =
    :$PROFILES$.PER_BUSINESS_GROUP_ID
    and fnd.session_id = userenv('sessionid')
    and fnd.effective_date between pay.effective_start_date
    and pay.effective_end_date
    and popmf.ORG_PAYMENT_METHOD_ID =
    Pay.DEFAULT_PAYMENT_METHOD_ID
    and popmf.CURRENCY_CODE = 'GBP'
    order by pay.payroll_name
    Any ideas? Could I have gone wrong somewhere in my responsibility definition? I set the data group to Standard for the Human Resources application. This matches the Global Super HRMS Manager responsibility.
    Thank you

    Thanks its solved .
    Solution is adding Navigator: Disable Multiform. function to custom menu.
    This is an AOL function that should be included on all menus (custom or standard) to allow session_id to be populated.
    From: Payroll: Value Set issue

  • Value set not working

    Hi,
    I have a procedure that runs as a concurrent program with the following parameters
    1) Fiscal_year (for p_fiscal_year)
    2) Start Date
    3) End Date
    I defined a value set that provides the value for p_fiscal_year in the format YYYYMM (for example 200912 for the fiscal year 2009 and month JUN) based on a table that has three columns
    1) Fiscal year (eg 2009, 2010 etc),
    2) Period (APR, MAY, JUN etc),
    3) MONTH (10, 11, 12 etc).
    when I run the program the column p_fiscal_year comes out blank.
    Here is the code:
    CREATE OR REPLACE procedure APPS.NFPC_FUTURION_UPLOAD
    (errbuff OUT varchar2,
    retcode OUT number,
    p_fiscal_year IN varchar2,
    p_start_date date,
    p_end_date date)
    IS
       fileID UTL_FILE.FILE_TYPE;
    BEGIN
       fileID := UTL_FILE.FOPEN ('/usr/tmp', 'futmth.txt', 'W');
      FOR emprec IN ((SELECT msi.segment1 item_number,
           bill.location customer_number,
           substr(pv.segment1,2,5) broker_code,
           lin.attribute1 division_code,
           nbm.region_code region_code,
           rpad(msi.attribute9,2) product_type,
           rpad(msi.description,39) description,
           rpad(prty.party_name,30) customer_name,
           rpad(pv.vendor_name,30) broker_name,
           rpad(nbm.regional_manager,20) regional_manager,
           rpad(DECODE (msi.attribute9,
              2, 'VINEGAR',
              4, 'SAUCE',
              6, 'JUICE',
              41, 'SINGLE SERVE',
              9, 'SPECIALITY',
              91, 'SLICES',
              92, 'PIE FILLING',
              93, 'PUDDING/CHEESE',
              94, 'LEMON TEA TRADEWINDS',
              95, 'FRUIT AND JUICE',
              NULL),20)  prod_type,
           Rpad(brk.division,15) division,
                         TO_CHAR(SUM ((nvl(lin.quantity_invoiced,0)*nvl(msi.attribute13,1)) -
               ((nvl(lin.quantity_credited,0)*-1)*nvl(msi.attribute13,1))),'0000000') cases_this_month ,
          TO_CHAR( SUM (round(lin.revenue_amount,0)),'0000000') dollars_this_month,
              msi.attribute12,
           msi.attribute11
    FROM   ra_customer_trx_all hdr,
           ra_customer_trx_lines_all lin,
           mtl_system_items_b msi,
           hz_cust_accounts cust,
           hz_parties prty,
           hz_cust_site_uses_all bill,
           hz_cust_acct_sites_all bill_addr,
           hz_party_sites bill_sites,
           hz_locations bill_locn,
           po_vendors pv,
           nfpc_broker_master nbm,
           nfpc_broker_master_v brk
    WHERE    cust.cust_account_id = hdr.bill_to_customer_id
       AND      nbm.broker_code(+) = pv.segment1
       AND      prty.party_id = cust.party_id
       AND      bill.site_use_id = hdr.bill_to_site_use_id
       AND      bill.site_use_code = 'BILL_TO'
       AND      bill_addr.cust_acct_site_id = bill.cust_acct_site_id
       AND      bill_sites.party_site_id = bill_addr.party_site_id
       AND      bill_locn.location_id = bill_sites.location_id
       AND      lin.customer_trx_id = hdr.customer_trx_id
       AND      interface_header_context = 'ORDER ENTRY'
       AND      msi.inventory_item_id = lin.inventory_item_id
       AND      msi.organization_id = hdr.interface_header_attribute10
       AND      pv.segment1 = lin.attribute2
       AND      TRUNC (hdr.trx_date) between (p_start_date) and (p_end_date)
        AND      brk.broker_code = lin.attribute2
       AND      prty.party_id not in ('1130','1457','1413','1518')
       AND      interface_header_attribute1 not like '%B'
    GROUP BY msi.segment1,
           cust.account_number,
           bill.location,
           pv.segment1,
           lin.attribute1,
           nbm.region_code,
           msi.attribute9,
           msi.description,
           prty.party_name,
           pv.vendor_name,
           nbm.regional_manager,
           brk.division,
              msi.attribute12,
           msi.attribute11) 
       LOOP
          UTL_FILE.PUT_LINE(fileid, emprec.item_number || emprec.customer_number||emprec.broker_code||emprec.division_code
          ||emprec.region_code||emprec.product_type || emprec.description ||emprec.customer_name||
          emprec.broker_name|| emprec.regional_manager|| emprec.prod_type||
          emprec.division|| p_fiscal_year ||emprec.cases_this_month||emprec.dollars_this_month||
          emprec.attribute12|| emprec.attribute11);
       END LOOP;
       UTL_FILE.FCLOSE (fileID);
       utl_file.fcopy('/usr/tmp','futmth.txt','/usr/tmp','futmth-'||TO_CHAR(SYSDATE,'DDMMYY')||'-'||TO_CHAR(SYSDATE,'HH24MI')||'.txt');
    END;
    /Thanks
    A/A
    Edited by: asgar_amin on Jun 4, 2009 11:51 AM

    Hi,
    I have a procedure that runs as a concurrent program with the following parameters
    1) Fiscal_year (for p_fiscal_year)
    2) Start Date
    3) End Date
    I defined a value set that provides the value for p_fiscal_year in the format YYYYMM (for example 200912 for the fiscal year 2009 and month JUN) based on a table that has three columns
    1) Fiscal year (eg 2009, 2010 etc),
    2) Period (APR, MAY, JUN etc),
    3) MONTH (10, 11, 12 etc).
    when I run the program the column p_fiscal_year comes out blank.
    Here is the code:
    CREATE OR REPLACE procedure APPS.NFPC_FUTURION_UPLOAD
    (errbuff OUT varchar2,
    retcode OUT number,
    p_fiscal_year IN varchar2,
    p_start_date date,
    p_end_date date)
    IS
       fileID UTL_FILE.FILE_TYPE;
    BEGIN
       fileID := UTL_FILE.FOPEN ('/usr/tmp', 'futmth.txt', 'W');
      FOR emprec IN ((SELECT msi.segment1 item_number,
           bill.location customer_number,
           substr(pv.segment1,2,5) broker_code,
           lin.attribute1 division_code,
           nbm.region_code region_code,
           rpad(msi.attribute9,2) product_type,
           rpad(msi.description,39) description,
           rpad(prty.party_name,30) customer_name,
           rpad(pv.vendor_name,30) broker_name,
           rpad(nbm.regional_manager,20) regional_manager,
           rpad(DECODE (msi.attribute9,
              2, 'VINEGAR',
              4, 'SAUCE',
              6, 'JUICE',
              41, 'SINGLE SERVE',
              9, 'SPECIALITY',
              91, 'SLICES',
              92, 'PIE FILLING',
              93, 'PUDDING/CHEESE',
              94, 'LEMON TEA TRADEWINDS',
              95, 'FRUIT AND JUICE',
              NULL),20)  prod_type,
           Rpad(brk.division,15) division,
                         TO_CHAR(SUM ((nvl(lin.quantity_invoiced,0)*nvl(msi.attribute13,1)) -
               ((nvl(lin.quantity_credited,0)*-1)*nvl(msi.attribute13,1))),'0000000') cases_this_month ,
          TO_CHAR( SUM (round(lin.revenue_amount,0)),'0000000') dollars_this_month,
              msi.attribute12,
           msi.attribute11
    FROM   ra_customer_trx_all hdr,
           ra_customer_trx_lines_all lin,
           mtl_system_items_b msi,
           hz_cust_accounts cust,
           hz_parties prty,
           hz_cust_site_uses_all bill,
           hz_cust_acct_sites_all bill_addr,
           hz_party_sites bill_sites,
           hz_locations bill_locn,
           po_vendors pv,
           nfpc_broker_master nbm,
           nfpc_broker_master_v brk
    WHERE    cust.cust_account_id = hdr.bill_to_customer_id
       AND      nbm.broker_code(+) = pv.segment1
       AND      prty.party_id = cust.party_id
       AND      bill.site_use_id = hdr.bill_to_site_use_id
       AND      bill.site_use_code = 'BILL_TO'
       AND      bill_addr.cust_acct_site_id = bill.cust_acct_site_id
       AND      bill_sites.party_site_id = bill_addr.party_site_id
       AND      bill_locn.location_id = bill_sites.location_id
       AND      lin.customer_trx_id = hdr.customer_trx_id
       AND      interface_header_context = 'ORDER ENTRY'
       AND      msi.inventory_item_id = lin.inventory_item_id
       AND      msi.organization_id = hdr.interface_header_attribute10
       AND      pv.segment1 = lin.attribute2
       AND      TRUNC (hdr.trx_date) between (p_start_date) and (p_end_date)
        AND      brk.broker_code = lin.attribute2
       AND      prty.party_id not in ('1130','1457','1413','1518')
       AND      interface_header_attribute1 not like '%B'
    GROUP BY msi.segment1,
           cust.account_number,
           bill.location,
           pv.segment1,
           lin.attribute1,
           nbm.region_code,
           msi.attribute9,
           msi.description,
           prty.party_name,
           pv.vendor_name,
           nbm.regional_manager,
           brk.division,
              msi.attribute12,
           msi.attribute11) 
       LOOP
          UTL_FILE.PUT_LINE(fileid, emprec.item_number || emprec.customer_number||emprec.broker_code||emprec.division_code
          ||emprec.region_code||emprec.product_type || emprec.description ||emprec.customer_name||
          emprec.broker_name|| emprec.regional_manager|| emprec.prod_type||
          emprec.division|| p_fiscal_year ||emprec.cases_this_month||emprec.dollars_this_month||
          emprec.attribute12|| emprec.attribute11);
       END LOOP;
       UTL_FILE.FCLOSE (fileID);
       utl_file.fcopy('/usr/tmp','futmth.txt','/usr/tmp','futmth-'||TO_CHAR(SYSDATE,'DDMMYY')||'-'||TO_CHAR(SYSDATE,'HH24MI')||'.txt');
    END;
    /Thanks
    A/A
    Edited by: asgar_amin on Jun 4, 2009 11:51 AM

  • My simple jsp doesn't work: hhhelp

    hello i'm new to java.
    I'm testing a simple jsp with a javabean: Fruit.class
    When i test it , it seems there is a problem of package (but i really need help on this)...
    Here's the error i get:
    C:\jakarta-tomcat-5.0.19\work\Catalina\localhost\_\org\apache\jsp\confirm_jsp.java:44: cannot resolve symbol
    symbol : class Fruit
    location: class org.apache.jsp.confirm_jsp
    Fruit commandeFruit = null;
    ^
    here's the full error report
    Etat HTTP 500 -
    type Rapport d'exception
    message
    description Le serveur a rencontr� une erreur interne () qui l'a emp�ch� de satisfaire la requ�te.
    exception
    org.apache.jasper.JasperException: Impossible de compiler la classe pour la JSP
    Une erreur s'est produite � la ligne: 2 dans le fichier jsp: /confirm.jsp
    Erreur de servlet g�n�r�e:
        [javac] Compiling 1 source file
    C:\jakarta-tomcat-5.0.19\work\Catalina\localhost\_\org\apache\jsp\confirm_jsp.java:44: cannot resolve symbol
    symbol  : class Fruit 
    location: class org.apache.jsp.confirm_jsp
          Fruit commandeFruit = null;
          ^
    Une erreur s'est produite � la ligne: 2 dans le fichier jsp: /confirm.jsp
    Erreur de servlet g�n�r�e:
    C:\jakarta-tomcat-5.0.19\work\Catalina\localhost\_\org\apache\jsp\confirm_jsp.java:46: cannot resolve symbol
    symbol  : class Fruit 
    location: class org.apache.jsp.confirm_jsp
            commandeFruit = (Fruit) _jspx_page_context.getAttribute("commandeFruit", PageContext.PAGE_SCOPE);
                             ^
    Une erreur s'est produite � la ligne: 2 dans le fichier jsp: /confirm.jsp
    Erreur de servlet g�n�r�e:
    C:\jakarta-tomcat-5.0.19\work\Catalina\localhost\_\org\apache\jsp\confirm_jsp.java:48: cannot resolve symbol
    symbol  : class Fruit 
    location: class org.apache.jsp.confirm_jsp
              commandeFruit = new Fruit();
                                  ^
    Une erreur s'est produite � la ligne: 16 dans le fichier jsp: /confirm.jsp
    Erreur de servlet g�n�r�e:
    C:\jakarta-tomcat-5.0.19\work\Catalina\localhost\_\org\apache\jsp\confirm_jsp.java:71: cannot resolve symbol
    symbol  : class Fruit 
    location: class org.apache.jsp.confirm_jsp
          out.write(org.apache.jasper.runtime.JspRuntimeLibrary.toString((((Fruit)_jspx_page_context.findAttribute("commandeFruit")).getNomFruit())));
                                                                            ^
    Une erreur s'est produite � la ligne: 17 dans le fichier jsp: /confirm.jsp
    Erreur de servlet g�n�r�e:
    C:\jakarta-tomcat-5.0.19\work\Catalina\localhost\_\org\apache\jsp\confirm_jsp.java:74: cannot resolve symbol
    symbol  : class Fruit 
    location: class org.apache.jsp.confirm_jsp
          out.write(org.apache.jasper.runtime.JspRuntimeLibrary.toString((((Fruit)_jspx_page_context.findAttribute("commandeFruit")).getCouleur())));
                                                                            ^
    Une erreur s'est produite � la ligne: 18 dans le fichier jsp: /confirm.jsp
    Erreur de servlet g�n�r�e:
    C:\jakarta-tomcat-5.0.19\work\Catalina\localhost\_\org\apache\jsp\confirm_jsp.java:77: cannot resolve symbol
    symbol  : class Fruit 
    location: class org.apache.jsp.confirm_jsp
          out.write(org.apache.jasper.runtime.JspRuntimeLibrary.toString((((Fruit)_jspx_page_context.findAttribute("commandeFruit")).getPrix())));
                                                                            ^
    Une erreur s'est produite � la ligne: 19 dans le fichier jsp: /confirm.jsp
    Erreur de servlet g�n�r�e:
    C:\jakarta-tomcat-5.0.19\work\Catalina\localhost\_\org\apache\jsp\confirm_jsp.java:80: cannot resolve symbol
    symbol  : class Fruit 
    location: class org.apache.jsp.confirm_jsp
          out.write(org.apache.jasper.runtime.JspRuntimeLibrary.toString((((Fruit)_jspx_page_context.findAttribute("commandeFruit")).getPoids())));
                                                                            ^
    7 errors
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    note La trace compl�te de la cause m�re de cette erreur est disponible dans les fichiers journaux de Tomcat.
    --------------------------------------------------------------------------------

    hello i tried what you told me but it steel seems i've
    got 2 errors
    here's the error
    exception
    org.apache.jasper.JasperException: Impossible de
    compiler la classe pour la JSP
    Une erreur s'est produite � la ligne: 5 dans le
    fichier jsp: /confirm.jsp
    Erreur de servlet g�n�r�e:
    [javac] Compiling 1 source file
    C:\jakarta-tomcat-5.0.19\work\Catalina\localhost\_\org\
    pache\jsp\confirm_jsp.java:6: <identifier> expected
    import full.package.name.Fruit;
    ^
    C:\jakarta-tomcat-5.0.19\work\Catalina\localhost\_\org\
    pache\jsp\confirm_jsp.java:47: cannot resolve symbol
    symbol  : class Fruit 
    location: class org.apache.jsp.confirm_jsp
    Fruit commandeFruit = null;
    ^--------------------------------------
    here's my jsp:
    <%-- confirm.jsp --%>
    <%@ page import="full.package.name.Fruit" %>
    <jsp:useBean id="commandeFruit" class="Fruit" />
    <jsp:setProperty name="commandeFruit"
    property="nomFruit" value="Mangue" />
    <jsp:setProperty name="commandeFruit"
    property="couleur" value="Orange" />
    <jsp:setProperty name="commandeFruit" property="prix"
    value="5.95" />
    <jsp:setProperty name="commandeFruit" property="poids"
    param="saisie_poids" />
    <HTML>
    <body>
    <h1>Votre commande de fruit (confirm.jsp)</h1>
    <br>
    Fruit : <jsp:getProperty name="commandeFruit"
    property="nomFruit"/><br>
    Couleur : <jsp:getProperty name="commandeFruit"
    property="couleur" /><br>
    Prix au kg : <jsp:getProperty name="commandeFruit"
    property="prix" /> Euros<br>
    Quantit� : <jsp:getProperty name="commandeFruit"
    property="poids" /><br>
    Total
    :�<%=commandeFruit.getPrix()*commandeFruit.getPoid
    () %> Euros<p></p>
    Revenir � la commande pour
    la modifier
    </body>
    </html>
    First error is becoz you are using word package which is a standard identifier. So you have to change ur folder name to smething else other than package.
    Second error is becoz of the first error. If the forst error is fixed second error will not occur.
    Thanks
    KM

  • Not getting sets for jsp:useBean bean when in request scope

    I have a JSF (JSP) page in which I have a bean that I declare using jsp:useBean.
    The bean implements Map. I have a h:inputText and an h:inputHidden with a value referencing the bean.
    The odd thing is that if in jsp:useBean, I set the scope to session, everything works as I expect. However, if I change the scope to request, the put method on the bean never gets called.
    Can anyone explain why this is happening?
    Thanks,
    ken clark

    Yes, I understand that old data I had is gone -- that is fine, I expect that.
    My question is, why do I not get calls on the put method of my Map implementation when the screen is submitted? (I have a breakpoint in the method in the debugger, so I know when I get hit.)
    If the scope is session, I get put calls (yes, the old data is there, it gets overwritten).
    If the scope is request though, I simply never see the calls made at all, and my application errors out for lack of data.

  • How to assign the class value dynamically  in jsp:useBean ?its urgent

    Hi
    I want to set the class value of <jsp:useBean> dynamically
    when i am trying to this way
    <jsp:useBean id="<%=id %>" class="<%=beanclass %>" scope="request">
    <jsp:setProperty name="<%=id %>" property="*"/>
    </jsp:useBean>
    where beanclass is .class file that is to be used by the usebean tag
    i am getting following error
    The value for the useBean class attribute <%=beanclass %> is invalid.
    please help as soon as possible
    regards,
    Rameshwari

    You can not do that.The jsp:useBean and jsp:setProperty are action tags and not custom tags. Action tags get translated into Java code in the translation unit and are then compiled. Custom tag are backed by classes and the tag get translated into a method call of the class.

  • Parsing in Weblogic/jsp doesn't work; application-mode (command-line) works

    Hello-
    Parsing my XML file in Weblogic/jsp doesn't work, whereas it works
    in application-mode... (albeit on two different machines)
    Here are the parameters:
    server1:
    weblogic 6.0
    win2k server
    jre1.3
    my personal machine:
    ***no weblogic***
    win2k server
    jre1.3
    When I run my code as an application (command-line style) on my machine,
    parsing in my xml file works fine, and I can do a root.toString() and it
    dumps out the entire xml file, as desired.
    However, running my code inside weblogic (on server1) in JSP, parsing in
    my file and doing a root.toString() results in the following: [dmui: null]
    (where dmui is my root)
    (even though i'm running it on two different machines, i'm positive its the
    same code (the servers share a mapped drive)...
    So, I think its probably because I'm using a different parser, as
    specified by weblogic? There are no exceptions being thrown. Here's my
    (abbreviated) code, which is called either command line style or in a JSP:
    // Imports
    import org.w3c.dom.*;
    import org.w3c.dom.Document;
    import javax.xml.parsers.*;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.DocumentBuilder;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    DocumentBuilderFactory docBuilderFactory =
    DocumentBuilderFactory.newInstance();
    DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
    mDocument = docBuilder.parse (inFile);
    myRoot.toString()
    -END
    Doing a System.getProperty("javax.xml.parsers.DocumentBuilderFactory")
    results in:
    server1 (weblogic/jsp):
    "weblogic.apache.xerces.jaxp.DocumentBuilderFactoryImpl"
    my machine (application-mode):
    null
    Does anyone have any ideas about how to get this work? Do I try to set it
    up so that they both use the same parser? Do I change the Weblogic parser?
    If so, to what? And how?
    Am I even close?
    Any help would be appreciated..
    Thanks, Clint
    "[email protected]" <[email protected]> wrote in message
    news:[email protected]...
    No problem, glad you got it worked out :)
    ~Ryan U.
    Jennifer wrote in message <[email protected]>...
    I completely missed setting the property(:-o), foolish mistake. That wasit. Thanks.
    "j.upton" <[email protected]> wrote:
    Jennifer,
    Personally I would get rid of import com.sun.xml.parser.* and use xerces
    which comes with WLS 6.0 now, unless like I said earlier you have a need
    to
    use the sun parser :) Try something like this with your code --I've put
    things to watch for as comments in the code.
    import javax.xml.parsers.*;
    import org.xml.sax.SAXException;
    import org.w3c.dom.*;
    import java.io.FileInputStream;
    public class BasicDOM {
    public BasicDOM (String xmlFile) {
    try{
    FileInputStream inStream;
    Document document;
    /*You must specify a parser for jaxp. You can in a simple view
    think
    of this as being analogous to a driver used by JDBC or JNDI. If you are
    using this in the context of a servlet or JSP and have set an XML
    registry
    with the console this happens automatically. You can also invoke it in
    the
    context of an application on the command line using the -D switch. */
    System.setProperty("javax.xml.parsers.DocumentBuilderFactory",
    >>>
    "weblogic.apache.xerces.jaxp.DocumentBuilderFactoryImpl");
    // create a document factory
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    // specify validating or non-validating parser
    dbf.setValidating(true);
    // obtain a factory
    DocumentBuilder db = dbf.newDocumentBuilder();
    // create a document from the factory
    inStream = new FileInputStream(xmlFile);
    document = db.parse(inStream);
    }//try
    catch (Exception e)
    System.out.println("Unexpected exception reading document!"
    +e);
    System.exit (0);
    }//catch
    }//BasicDom
    // Main Method
    public static void main (String[] args) {
    if (args.length < 1)
    System.exit(1); file://or you can be more verbose
    new BasicDOM(args[0]);
    }//class
    =============================================
    That will give you a basic DOM you can manipulate and parse it fromthere.
    BTW this code
    compiled and ran on WLS 6.0 under Windows 2000.
    Let me know if this helped or you still are having trouble.
    ~Ryan U.
    "Jennifer" <[email protected]> wrote in message
    news:[email protected]...
    Actually I included com.sun.xml.parser.* as one last febble attempt toget
    it working.
    And as for source code, I included the code. If I just put that oneline
    of code
    in, including the imports, it fails giving me an error listed above inthe
    subject
    line. Here is the code again:
    package examples.xml.http;
    import javax.xml.parsers.*;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import org.w3c.dom.*;
    import java.util.*;
    import java.net.*;
    import org.xml.sax.*;
    import java.io.*;
    public class BasicDOM {
    static Document document;
    public BasicDOM (String xmlFile) {
    try {
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    } catch (FactoryConfigurationError e){
    System.err.println(e.getException());
    e.printStackTrace();
    // Main Method
    public static void main (String[] args) {
    BasicDOM basicDOM = new BasicDOM (args[0]);

    Hi, Rob
    Does it work in WL9.2?
    It seems I do it exactly as the explained at http://edocs.bea.com/wls/docs81/programming/classloading.html - and it fails :o(.
    I try to run my app.ear with WL9.2 There are 2 components in it: webapp and mdb. The webapp/WEB-INF contains weblogic.xml:
    <weblogic-web-app>
    <container-descriptor>     
    <prefer-web-inf-classes>true</prefer-web-inf-classes>
    </container-descriptor>
    </weblogic-web-app>
    Mdb is expected to run in the same mode, i.e. to prefer the webapp/WEB-INF/*.jar over the parent Weblogic classloader. To do so I add the weblogic-application.xml to the app.ear!/META-INF:
    <weblogic-application>
    <classloader-structure>
    <module-ref>
    <!-- reminder: this webapp contains
    prefer-web-inf-classes -->
    <module-uri>webapp</module-uri>
    </module-ref>
    <classloader-structure>
    <module-ref>
    <module-uri>mdb.jar</module-uri>
    </module-ref>
    </classloader-structure>
    </classloader-structure>
    </weblogic-application>
    Now, when classloader-structure specified, both webabb and mdb prefer the weblogic root loader as if prefer-web-inf-classes not defined at all.

Maybe you are looking for

  • Urgent....How can i redirect to my jsp page from servlet in init() method..

    How can i redirect to my jsp page from servlet in init() method..Becoz that servlet is calling while server startsup..so im writing some piece of code in init() method..after that i want to redirect to some jsp page ...is it possible? using RequestDi

  • Create a structure type at runtime

    Hi friends, is it possible to create a local structure type dynamically(at run time).My situation is as follows : The user gives a period of time - for Example from "05.03.2009" to "04.03.2010" Depending on the number of months between the period of

  • Using a Mac to drive 2 HDTVs

    I need to run video and/or powerpoint to two HDTV displays from a Mac. Will a MacBook Pro (intel) run to 1080p displays and it's own screen? WIll an iMac (intel)? What amount of video ram will I need to do this? Ken

  • How to find out the idoc type required for our requirement

    Hi,      How to find out the list of available idoc type in SAP. It will be good if i get to know the table name where all the idoc type definitions are gets stored. Say i have some requirement and for that requirement how i can find the proper idoc

  • IMac extremely slow! Run EtreCheck. SOS with diagnosis! Thx

    Hello, I will need your expertise, I have an iMAC 21.5 inch, Mid 2010. (Processor  3.06 GHz Intel Core i3 - Memory  4 GB 1333 MHz DDR3 - Graphics  ATI Radeon HD 4670 256 MB - Software  Mac OS X Lion 10.7.5 (11G63)). Lately, I have been experiencing a