Problems with Requests

          Hi,
          i am using weblogic in my project both as a webserver and as the application server.
          But i am facing problems with requests being sent to the server. Basically i have
          a form in my jsp which, if submitted by multiple clients at the same instant in
          time, the server gets confused and mixes up the data in the requests !! the form
          is submitted to another jsp which in turn calls a SLSB which in turn calls various
          entity Beans to fulfill the request.
          Now if 2 or more clients hit the submit button together, the server is mixing
          the data from the requestsand i get corrupted output as a result.
          That if i submit values (a,b,c) from one client machine and values (x,y,z) from
          another machine, the server puts one of the transactions properly and in the other
          it picks up the data from the other request and takes something like (x,y,c) !!
          Is this a bug in Weblogic 6.1 or am doing something wrong ?? Anyone faced this
          problem ?
          Any help would be appreciated.
          Raja
          

Hi,
          It's highly unlikely that it's WebLogic. Somewhere along the line, you are
          calling or referring to the same instance of either a class of a variable.
          You should brush up on the meaning of static variables.
          Make sure that you are not using class-level variables in your servlet. WLS
          will create only one instance of a Servlet or JSP and invoke it from
          multiple threads (requests) unless it is declared as SingleThreadModel. (See
          the servlet spec).
          When you declare variables inside a method - they are defined on the stack -
          so they're safe from multiple threads since each thread has it's own stack.
          If you declare them in a class, they're on the heap, and are shared by
          multiple threads invoking that servlet-class instance.
          There is a workaround if you MUST use class-level variables (not a good idea
          in a servlet). You can declare your Servlet (or JSP) as SingleThreadModel.
          This is less desirable since it carries a performance hit. It's best to
          design around it - but you might try declaring this to see if it helps in
          the JSP...
          <%@ page isThreadSafe="false" %>
          Of course, if the threading issues I've discussed above are occurring
          elsewhere in your code, you'll have to design-around it. Like I say, check
          for static class variables. It's unlikely that your other code is invoking
          the same instances of other classes from multiple threads (unless those
          instances are servlet-class-variables - and your problem will be resolved by
          the above).
          Make sure that you are not referencing static variables in your servlet or
          other bean classes (unless you intend to). Static variables are scoped at
          the class level and are therefore shared by all instances of that class (or
          servlet). The above SingleThreadModel won't help you in that case since all
          instances of the same class will be using the same static variables.
          Hope that helps,
          Alex
          "Raja" <[email protected]> wrote in message
          news:[email protected]...
          >
          > Hi,
          > i am using weblogic in my project both as a webserver and as the
          application server.
          > But i am facing problems with requests being sent to the server. Basically
          i have
          > a form in my jsp which, if submitted by multiple clients at the same
          instant in
          > time, the server gets confused and mixes up the data in the requests !!
          the form
          > is submitted to another jsp which in turn calls a SLSB which in turn calls
          various
          > entity Beans to fulfill the request.
          > Now if 2 or more clients hit the submit button together, the server is
          mixing
          > the data from the requestsand i get corrupted output as a result.
          > That if i submit values (a,b,c) from one client machine and values (x,y,z)
          from
          > another machine, the server puts one of the transactions properly and in
          the other
          > it picks up the data from the other request and takes something like
          (x,y,c) !!
          > Is this a bug in Weblogic 6.1 or am doing something wrong ?? Anyone faced
          this
          > problem ?
          > Any help would be appreciated.
          >
          > Raja
          >
          >
          

Similar Messages

  • At the creation of MCD we got the problem with Request

    Hi All,
    we are all very new to SAP MI,
    At the creation of CD we got the problem with Request
    <i><b>Creation of CD</b></i>
    we gave these entries
    <b>1.Mobile Solution Name        :      CIBERNW
    Version                                    :      1001
    Description                              :      Ciber Netweaver Mobile
    Cmponent Type                       :        APPLICATION
    Runtime Enviroment                 :      JSP</b>
    In SyncBO tab we specified our SyncBO that is <b>ZNWW_EX01</b>
    we selected the check two checkboxs that is
                       <b>->SyncBOs Expect Initial Value
                       ->Data Visible to all</b>
    2.when i am trying to <b>save the MCD</b> it will open one dialog box that is
    <b>"Object can only created in SAP Package "</b> -> Continue
           <b>"Link to Transport "</b> it says
    <b>"Include MCD in Transport Request", "Yes","No"</b>
    when i will go for <b>"Yes"</b>
    it will give one more dialog box that is
    <b>"prompt of workbeanch Request"</b>
    it will give one Request bydefault that is <b>"CNWK900030"</b>
    there we have some option that is
         <b> ->Continue
          ->Create Request
          ->Own Request</b>
    which one we will select ?
    i will go for <b>Continue</b> it will open other dialog box it says
    <b>"Include MiniApp in Transport Request"</b>
    it says <b>"MiniApp must be assigned to a transport request"</b>
    i will go for continue it will the message in the status bar
    <b>"MCD Changed"</b>
    can you please tell me this process is Right or wrong
    if it is wrong can you please tell me the right process
    and it will some default Requests which Request we need to select
    or we need to create the Request where we need to create that
    what is process we need to follow ?
    Thanks and Regards
    Dileep Painnamaneni

    Hi Dileep,
    <<Creation of MCD >>
    <<we gave these entries >>
    <b><<1.Mobile Solution Name : CIBERNW
    Version : 1001
    Description : Ciber Netweaver Mobile
    Cmponent Type : APPLICATION
    Runtime Enviroment : JSP>>
    In SyncBO tab we specified our SyncBO that is ZNWW_EX01
    we selected the check two checkboxs that is
    ->SyncBOs Expect Initial Value
    ->Data Visible to all</b>
    Every thing is fine. We need to check Link to <b>SAP MI Home page</b> check box
    <b>2.when i am trying to save the MCD it will open one dialog box that is
    "Object can only created in SAP Package " -> Continue
    "Link to Transport " it says
    "Include MCD in Transport Request", "Yes","No"
    when i will go for "Yes"
    it will give one more dialog box that is
    "prompt of workbeanch Request"
    it will give one Request bydefault that is "CNWK900030"
    there we have some option that is
    ->Continue
    ->Create Request
    ->Own Request
    which one we will select ?
    i will go for Continue it will open other dialog box it says
    "Include MiniApp in Transport Request"
    it says "MiniApp must be assigned to a transport request"
    i will go for continue it will the message in the status bar
    "MCD Changed"</b>
    In SAP when ever we create any object(tables or MCDs) :
    there are two things CUSTOMER NAME SPACE(stored locally in that system only) and FORIEGN NAME SPACE(can be transported)
    CUSTOMER NAME SPACE objects starts with 'Z' or 'Y'
    FORIEGN NAME SPACE objects starts with any other digit other than 'Z' or 'Y'
    So youhave created MCD name CIBERNW which starts with 'C' (its not customer name space with z or y)
    so it will be stored in package(so that this package can be transported to any other system later)
    So what ever you have done is correct.
    You can create your own request also.
    But confirm once that whether you are supposed to store your MCD this that package.
    <b>
    can you please tell me this process is Right or wrong
    if it is wrong can you please tell me the right process
    and it will some default Requests which Request we need to select
    or we need to create the Request where we need to create that
    what is process we need to follow ?</b>
    So this is the concept of request.
    So this request is nothing but....
    When ever we create tables or MCDs we try to save it..so if we are trying to create objects in Foreign name space(i.e without 'Z' or 'Y' inthe beginning) so it will ask to create this object in a package which requires request(transport request)
    All objects are stored in package,( so this package contains many objects like MCD,SYNBOS etc what ever we store in it) so we can transport this package from one system to another system so to transport we need to generate a transport request for that package and them release that transport request.....
    So once the package is released and we try to edit or create new objects in that package it will ask for some new request.....
    Yes we can create our own request and later release it.
    But in your case u can take up the default request and continue.
    If this MCD is for only testing purpose(for our selfs)..means this MCD is just for our testing sake..its better to create it in Customer name space..starts with 'Z' or 'Y'.
    I hope its clear.
    Cheers,
    Karthick

  • Problems with Requests in Weblogic 6.1

    Hi,
    i am using weblogic in my project both as a webserver and as the application server.
    But i am facing problems with requests being sent to the server. Basically i have
    a form in my jsp which, if submitted by multiple clients at the same instant in
    time, the server gets confused and mixes up the data in the requests !! the form
    is submitted to another jsp which in turn calls a SLSB which in turn calls various
    entity Beans to fulfill the request.
    Now if 2 or more clients hit the submit button together, the server is mixing
    the data from the requestsand i get corrupted output as a result.
    That if i submit values (a,b,c) from one client machine and values (x,y,z) from
    another machine, the server puts one of the transactions properly and in the other
    it picks up the data from the other request and takes something like (x,y,c) !!
    Is this a bug in Weblogic 6.1 or am doing something wrong ??
    Any help would be appreciated.
    Raja

    Make sure your JSP scope is set correctly:
    <jsp:useBean id="beanName" scope="session" class="abc.BeanClass" />
    "Raja" <[email protected]> wrote in message
    news:3c6abfc8$[email protected]..
    >
    Hi,
    i am using weblogic in my project both as a webserver and as theapplication server.
    But i am facing problems with requests being sent to the server. Basicallyi have
    a form in my jsp which, if submitted by multiple clients at the sameinstant in
    time, the server gets confused and mixes up the data in the requests !!the form
    is submitted to another jsp which in turn calls a SLSB which in turn callsvarious
    entity Beans to fulfill the request.
    Now if 2 or more clients hit the submit button together, the server ismixing
    the data from the requestsand i get corrupted output as a result.
    That if i submit values (a,b,c) from one client machine and values (x,y,z)from
    another machine, the server puts one of the transactions properly and inthe other
    it picks up the data from the other request and takes something like(x,y,c) !!
    Is this a bug in Weblogic 6.1 or am doing something wrong ??
    Any help would be appreciated.
    Raja

  • Problem with Request for Permissions (mobile app)

    In my application I want to publish the results of the games on facebook. I used this tutorial: http://www.adobe.com/devnet/facebook/articles/flex_fbgraph_pt1.html
    Here is a fragment of my source code:
    <fx:Script>
            <![CDATA[
                import com.facebook.graph.FacebookMobile;
                import mx.events.Request;
                import valueObjects.GlobalVariables;
                protected var extendedPermissions:Array = ["publish_stream","user_website","user_status","user_about_me"];
               protected function initApp():void
                    FacebookMobile.init("app ID",loginHandler);
                protected function loginHandler(success:Object,fail:Object):void
                    if(success){   
                        currentState="loggedin";
                        nameLbl.text=success.user.name;
                        userImg.source=FacebookMobile.getImageUrl(success.uid,"small");
                        birthdayLbl.text=success.user.birthday;
                        FacebookMobile.api("/me/statuses",getStatusHandler);
                    else{   
                        this.login();
                protected function login():void
                    FacebookMobile.login(loginHandler, stage, []);
                protected function logout():void
                    FacebookMobile.logout();
                    currentState="loggedout";
                protected function getStatusHandler(result:Object, fail:Object):void
                    statusLbl.text=result[0].message;
                protected function submitPost():void
                    FacebookMobile.api("/me/feed",submitPostHandler,{message:GlobalVariables.d.toString()}, "POST");
                protected function submitPostHandler(result:Object,fail:Object):void
                    FacebookMobile.api("/me/statuses",getStatusHandler);
            ]]>
        </fx:Script>
    I have problem with permissions. After login I see a white screen instead of request for permission.  The desktop application does not have a problem with it. When I log for the first time to the desktop application and I will give the permissions applications, then in the mobile application everything works fine. But this is not a good solution. And so please help.

    The labelField of IconItemRenderer only supports single line text.  Try using the messageField instead:
    <s:List width="200" height="200">
        <s:dataProvider>
            <s:ArrayList>
                <s:DataItem desc="1 Hello World Hello World Hello World" />
                <s:DataItem desc="2 Hello World Hello World Hello World" />
                <s:DataItem desc="3 Hello World Hello World Hello World" />
            </s:ArrayList>
        </s:dataProvider>
        <s:itemRenderer>
            <fx:Component>
                <s:IconItemRenderer labelField="" messageField="desc">
                </s:IconItemRenderer>
            </fx:Component>
        </s:itemRenderer>
    </s:List>
    If you need more control you might need to subclass, this post might help: http://flexponential.com/2011/08/21/adding-multiline-text-support-to-labelitemrenderer/

  • I am having a problem with requesting new service, I am hoping someone with verizon can assist.

    We are in transistion to a new home.
    Back on 8/9 I registered for service for a temporary residence that I was expecting to be at the time. Unfortunately plans changed at the last minute.
    I am now in the final stages of closing on my new home, and will move in on 9/6-9/7.
    I have reinitiated a request for Fios online. I followed the prompts selecting my service and everything seemed to be going swimingly. I requested installation for 9/9 8am-12pm. I filled out the online registration.
    My verizon user id is paulsur.
    I did not ever get a confirmation email, and I cannot login to my verizon account. it states as disabled.
    I am worried that my service order has not been processed.
    I logged into Verzon support and started a chat with a customer service representative that went absolutely nowhere.
    Can somone please help me with the confirmation of my order, and getting my verzon account working?
    My name is Paul {edited for privacy}
    My contact # is {edited for privacy}
    my email is {edited for privacy}
    Thanks for helping.
    here is the online chat transcript:
    {edited for privacy}

    Your issue has been escalated to a Verizon agent. Please go to your profile page for the forum, and look in the middle, right at the top where you will find an area titled "My Support Cases".  You can reach your profile page by clicking on your name beside your post, or at the top left of this page underneath the title of the board.
    Under “My Support Cases” you will find a link to the private board where you and the agent may exchange information.  This should be checked on a frequent basis  as the agent may be waiting for information from you before they can proceed with any actions. Please keep all correspondence regarding your issue in the private support portal.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer that solved your issue as the accepted solution.

  • Problem with requesting focus for a list

    Hi there !
    What would be the right way to request focus for a list component ?
    I can use select() method to select some item from a list, but the list itself still hasn't got a focus until I click it.
    What I'd like to do is to be able to highlight some item from the list by using up and down arrow keys only, without clicking the list first =)

    The list is visible, but still this doesn't work.
    I think that the reason for this may be that I'm running this app on Nokia 9210 Communicator emulator. The emulator itself has had some not-so-minor problems...

  • 2.2.1 problem with "request contained within expression 1"

    If you create validations, processes with the above condition set and have possible request values which are subsets of each other then the smallest subset seems to match.
    ie create a validation which has the following condition
    request NOT conained with expression 1.
    RELOGIN, SAVE
    if you then submit the page with value of LOGIN the validation will not fire
    if you change the RELOGIN value in the condition to say RELOGI (anything which LOGIN is not a subset of) the validation will now fire!

    Scott,
    I am not disputing in anyway that the code is wrong, once it had been explained how the code was intended by the apex developers to work.
    My original point was the intuitiveness of the condition label and the way the logic actually behaved (at this point there was little known about the logic). I had instinctively assumed that when verifying that the REQUEST value exists within expression 1 it would be doing a pl/sql type IN (A,B) comparison hence the confusion. (would be interesting to know if i was the only one under this impression)
    I still believe that intuitively developers (us the wider community not the apex team)when refering to the REQUEST value in a condition would list the required values under the expectation of an exact match. Hence my later post stating that for the REQUEST value it would be more useful to have a comma delimited list. I was debating (probably badly) the expected behaviour of the condition and not the actual logic delivered.
    After your latest post there is a good case for both..
    This kind of matching against the REQUEST value is useful when you have buttons with similar values(something i hadn't thought of as i usually list all required values just to be safe)

  • Problems with Requesting A Service

    I get the following screen when trying to request a service for my broken ipod. it wont let me go any further than this screen and throws up this "Customer Number Not Configured" "Please contact system administrator" "22,400 219 null.
    So not only is my ipod not working, i cant even get it serviced yet! Please help!!!!!!!!
    Below is the screen im stuck at.
    Contact Information
    First Name Last Name
    Scott Reilly
    Company/Institution Name
    (optional)
    We cannot ship to P.O., F.P.O or A.P.O boxes. Your signature will be required.
    Country
    Email Address
    Phone
    Product Owned by
    Business (Small & Large) Consumer Education

    I'm based in the United Kingdom., do you know of a support number in the UK I can call.
    What do I dial to get that American number form the UK?
    Thanks
    Scott

  • Problems with servlet mapping in 10g AS

    Hi There,
    i have a web application consisting of 2 controller servlets and use url mapping to send requests to the appropriate servlet, but i have a strange issue with 10g where it seems to be alternating between serlvets when handling requests!!!!
    the web.xml is like as follows (with the app having the root context '/app'):
    <servlet>
    <servlet-name>control1</servlet-name>
    <servlet-class>com.package1.class.name</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>control2</servlet-name>
    <servlet-class>com.package2.class.name</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>control2</servlet-name>
    <url-pattern>/special/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>control1</servlet-name>
    <url-pattern>/*</url-pattern>
    </servlet-mapping>
    therefore i'd expect a request like http://domain.name/app/special/content to be handled by the control2 servlet and http://domain.name/app/normal/content or http://domain.name/app/normal/special/content to be handled by the control1 servlet...
    but what seems to happen when requesting http://domain.name/app/special/content oc4j seems to alternate which servlet it passes it to...
    is there any reason why this might be happening (like some app server configuration), as i have other applications that are configured in the same way, and there's no problems with requests going to the wrong servlet.
    many thanks for your help,
    Andy

    In your integration process, define the import parameter under Configurable Parameters category.
    http://help.sap.com/saphelp_nwpi71/helpdata/en/44/1f1a5c932d0d19e10000000a114a6b/frameset.htm
    Regards,
    Prateek

  • Problems with 2 transaction data getting intermixed !!!

    Hi,
    i am using weblogic in my project both as a webserver and as the application server.
    But i am facing problems with requests being sent to the server. Basically i have
    a form in my jsp which, if submitted by multiple clients at the same instant in
    time, the server gets confused and mixes up the data in the requests !! the form
    is submitted to another jsp which in turn calls a SLSB which in turn calls various
    entity Beans to fulfill the request.
    Now if 2 or more clients hit the submit button together, the server is mixing
    the data from the requestsand i get corrupted output as a result.
    That if i submit values (a,b,c) from one client machine and values (x,y,z) from
    another machine, the server puts one of the transactions properly and in the other
    it picks up the data from the other request and takes something like (x,y,c) !!
    Is this a bug in Weblogic 6.1 or am doing something wrong ??
    Any help would be appreciated. Anyone faced something similar ?
    Raja

    Hi.
    Please open a case with support if you haven't already done so.
    Regards,
    Michael
    Raja wrote:
    Hi,
    i am using weblogic in my project both as a webserver and as the application server.
    But i am facing problems with requests being sent to the server. Basically i have
    a form in my jsp which, if submitted by multiple clients at the same instant in
    time, the server gets confused and mixes up the data in the requests !! the form
    is submitted to another jsp which in turn calls a SLSB which in turn calls various
    entity Beans to fulfill the request.
    Now if 2 or more clients hit the submit button together, the server is mixing
    the data from the requestsand i get corrupted output as a result.
    That if i submit values (a,b,c) from one client machine and values (x,y,z) from
    another machine, the server puts one of the transactions properly and in the other
    it picks up the data from the other request and takes something like (x,y,c) !!
    Is this a bug in Weblogic 6.1 or am doing something wrong ??
    Any help would be appreciated. Anyone faced something similar ?
    Raja--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • I have a problem with wifi in my iphone 4s, i already try everything and download latest version 7.1(11D167) but wifi switch is not working, its my humble request to Apple support team that pls resolve this problem as soon as possible because

    I have a problem with wifi in my iphone 4s, i already try everything and download latest version 7.1(11D167) but wifi switch is not working, its my humble request to Apple support team that pls resolve this problem as soon as possible because its a prestiage of Apple Company.
    Pls inform me how can i resolve the problem of wifi.

    You have to go to autherized iPhone agent.

  • .MSG files. Problem with getting requested values from crawled properites

    Hi
    I have a lot of msg files on my file server. I use SharePoint Enterprise Serach engine to crawl all these MSGs.
    I would like to get extra managed properties out of these files. I am most interested in getting Mail:5(text) / Mail:12(Date and Time) / Mail:53(Date and Time) from MAIL category in Managed Properties.
    This thread is very similar to one already posted by SpinnerUp:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/82d69df0-5cb2-4e51-a485-34209e111f4b/problem-with-crawling-msg-files-doesnt-seem-to-return-requested-values-from-crawled-property
    Please be aware that I do not use Public Folders. These MSGs are exproted from Outlook and are stored on File Server not Exchange.
    I tried to link Crawled Properties to new property however I cannot get any results back.
    Thank you for you help.
    Regards, Marcin (Please mark as helpful or answered if it helps)

    Thank you for your replay.
    However I am not keen to write custom connector at this stage.
    Is it possible to simply get "Subject", "Sent", "Received" info from msg file and then map it to managed properties.
    Does SharePoint create any crawled properties which contain information about let's say "Subject" which then can be used to create managed properties?
    I tried playing with "MAIL" properties however I cannot get them to work. I guess this is because the file is a msg file rather than mail which is stored in Exchange Public Folder.
    Regards, Marcin (Please mark as helpful or answered if it helps)

  • Problem with errorPage in page directive tag while proxying request from iPlanet to WebLogic

              Hi,
              We are using iPlanet 4.0 as the webserver and WebLogic 5.1 as the application server on different solaris machines. We have put our JSPs in the weblogic application server and proxy the requests from iplanet to weblogic.
              We are facing a problem with the errorPage in the 'Page Directive' tag of the JSP. We have given xxx.jsp as an 'errorpage' parameter in the page directive tag. If we directly access the JSP from the WebLogic, and there is an system error, the error page specified in the JSP is getting displayed. But if we access the JSP from iPlanet and there is an system error, instead of displaying the error page, iPlanet is asking whether we want to download the file. If we say yes it downloads the actual JSP code itself. We have defined the mime types in obj.conf file as well as mime.types for the iPlanet.
              If anyone knows how this can be solved, it would be of great help
              Regards,
              Krish
              

    How did you configure the obj.conf file? proxy by mime type or ppath? It
              seems errorPage.jsp was not proxyed and treated as a unknown mime type.
              Krishnaraja <[email protected]> wrote in message
              news:3a372d79$[email protected]..
              >
              > Hi,
              >
              > We are using iPlanet 4.0 as the webserver and WebLogic 5.1 as the
              application server on different solaris machines. We have put our JSPs in
              the weblogic application server and proxy the requests from iplanet to
              weblogic.
              >
              > We are facing a problem with the errorPage in the 'Page Directive' tag of
              the JSP. We have given xxx.jsp as an 'errorpage' parameter in the page
              directive tag. If we directly access the JSP from the WebLogic, and there is
              an system error, the error page specified in the JSP is getting displayed.
              But if we access the JSP from iPlanet and there is an system error, instead
              of displaying the error page, iPlanet is asking whether we want to download
              the file. If we say yes it downloads the actual JSP code itself. We have
              defined the mime types in obj.conf file as well as mime.types for the
              iPlanet.
              >
              > If anyone knows how this can be solved, it would be of great help
              >
              > Regards,
              > Krish
              

  • Problem with subsequent deltas after converting Full requests to Repair.

    Hi All,
    We are working on changing an existing system from loading from multiple extractors directly to a cube to loading each extractor to its own DSO and then combining the data in a 'consolidated' DSO and then on the the cube.
    To avoid downtime in the production system when we do the cut-over we have decided to do full loads of historical data up to Sept 2007 and then do delta loading from then on.
    So the steps so far have been:
    1) Full load of data to low-level DSO's. to 09 2007.
    2) Full load of data to 'consolidated' DSO.
    3) Convert Full requests in consolidated DSO to Repair Full Requests (see SAP Note 689964).
    4) Initialise Without Data Transfer to the 'consolidated' DSO.
    5) Delta Initialise from 10 2007 from the source system to the low-level DSO's.
    6) Delta from low-level DSO to consolidated DSO.
    My problem is with step 6 - no records are loaded into the consolidated DSO after delta load of data to the low-level DSO - the load process runs correctly but tells me that there was no data available.
    Can anybody see if there is a problem with my approach - I thought this was the correct way to convert from full loading to delta loading ?
    A Merry Christmas and a Happy New Year to you all
    Graham

    Hi Siva,
    Thanks for the reply.
    I understand that there is only an active table with a write-optimised DSO - but delta processing should still be possible at the request level
    (SAP Help on Write-Optimized DataStore Objects http://help.sap.com/saphelp_nw2004s/helpdata/en/b6/de1c42128a5733e10000000a155106/frameset.htm)
    Since write-optimized DataStore objects do not have a change log, the system does not create delta (in the sense of a before image and an after image). When you update data into the connected InfoProviders, the system only updates the requests that have not yet been posted.
    In my case the 'new' request loaded into the DSO have not been loaded into the connected InfoProvider, so it should be processed.
    Regards
    Graham

  • Problem with Non JSF Request to JSF Page

    Hi All,
    I am working on dynamic controls generation based on the request come from non jsf page
    For the first request, pageworks perfectly. but when we go for second request, it is not rendering and I am getting same old page.
    What I have identified is if I have 2 pages as JSF, application is not giving any problem.
    For this I have written small test application contains both JSF pages only.
    page1 contains 3 submit buttons.
    When submit buttons are clicked based on the request, I get, am able to see the dynamic controls.
    SO there is no problem with JSF PAGE to JSF Page Communication
    Now I have done some changes in First JSF page. Instead of submitting directly I am submitting the page through JavaScript which is nonb JSF request. There I am facing the problem and based on requested qaction I am not able to see correct rendered page based on the requested action.
    Any Idea why it is giving problem for non JSF requests??
    Thanks
    Sudhakar

    For Your Convenience in understanding the problem
    I am pasting entire test code
    Page 1 -- (here page2 is Page1 and Page1 is page2 - some naming convention errors :) )
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page">
        <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
        <jsp:text><![CDATA[
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    ]]></jsp:text>
        <f:view>
            <html lang="en-US" xml:lang="en-US">
                <head>
                    <meta content="no-cache" http-equiv="Cache-Control"/>
                    <meta content="no-cache" http-equiv="Pragma"/>
                    <title>Page2 Title</title>
                    <link href="resources/stylesheet.css" rel="stylesheet" type="text/css"/>
                </head>
                <body style="-rave-layout: grid">
                    <h:form binding="#{Page2.form1}" id="form1">
    <!-- Non JSF REquests -->
                        <h:commandButton action="#{Page2.button1_action}" binding="#{Page2.button1}" id="button1" style="left: 48px; top: 48px; position: absolute" value="Submit" onclick="document.forms['form1'].action='faces/Page2.jsp?id=1'; document.forms['form1'].submit(); return false;"/>
                        <h:commandButton action="#{Page2.button2_action}" binding="#{Page2.button2}" id="button2" style="left: 48px; top: 96px; position: absolute" value="Submit" onclick="document.forms['form1'].action='faces/Page2.jsp?id=2'; document.forms['form1'].submit(); return false;"/>
                        <h:commandButton action="#{Page2.button3_action}" binding="#{Page2.button3}" id="button3" style="left: 48px; top: 144px; position: absolute" value="Submit" onclick="document.forms['form1'].action='faces/Page2.jsp?id=3'; document.forms['form1'].submit(); return false;"/>
    <!-- this  is JSF request -->
                        <!--
                        <h:commandButton action="#{Page2.button1_action}" binding="#{Page2.button1}" id="button1" style="left: 48px; top: 48px; position: absolute" value="Submit" />
                        <h:commandButton action="#{Page2.button2_action}" binding="#{Page2.button2}" id="button2" style="left: 48px; top: 96px; position: absolute" value="Submit" />
                        <h:commandButton action="#{Page2.button3_action}" binding="#{Page2.button3}" id="button3" style="left: 48px; top: 144px; position: absolute" value="Submit" />-->
                    </h:form>
                </body>
            </html>
        </f:view>
    </jsp:root>Page1 Bean
    * Page2.java
    * Created on June 25, 2005, 11:08 AM
    * Copyright user
    package webapplication8;
    import javax.faces.*;
    import com.sun.jsfcl.app.*;
    import javax.faces.component.html.*;
    import javax.faces.context.ExternalContext;
    import javax.faces.context.FacesContext;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    public class Page2 extends AbstractPageBean {
        // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Definition">
        private int __placeholder;
        private HtmlForm form1 = new HtmlForm();
        public HtmlForm getForm1() {
            return form1;
        public void setForm1(HtmlForm hf) {
            this.form1 = hf;
        private HtmlCommandButton button1 = new HtmlCommandButton();
        public HtmlCommandButton getButton1() {
            return button1;
        public void setButton1(HtmlCommandButton hcb) {
            this.button1 = hcb;
        private HtmlCommandButton button2 = new HtmlCommandButton();
        public HtmlCommandButton getButton2() {
            return button2;
        public void setButton2(HtmlCommandButton hcb) {
            this.button2 = hcb;
        private HtmlCommandButton button3 = new HtmlCommandButton();
        public HtmlCommandButton getButton3() {
            return button3;
        public void setButton3(HtmlCommandButton hcb) {
            this.button3 = hcb;
        // </editor-fold>
        public Page2() {
            // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Initialization">
            try {
            } catch (Exception e) {
                log("Page2 Initialization Failure", e);
                throw e instanceof javax.faces.FacesException ? (FacesException) e: new FacesException(e);
            // </editor-fold>
            // Additional user provided initialization code
        protected webapplication8.ApplicationBean1 getApplicationBean1() {
            return (webapplication8.ApplicationBean1)getBean("ApplicationBean1");
        protected webapplication8.SessionBean1 getSessionBean1() {
            return (webapplication8.SessionBean1)getBean("SessionBean1");
         * Bean cleanup.
        protected void afterRenderResponse() {
        public String button1_action()  throws Exception{
            // TODO Following code was replaced by static navigation
           getSessionBean1().setId(1);       
          /* ExternalContext ctx=(ExternalContext)FacesContext.getCurrentInstance().getExternalContext();
           HttpServletRequest req=(HttpServletRequest)ctx.getRequest();
           HttpServletResponse res=(HttpServletResponse)ctx.getResponse();
           res.sendRedirect("http://localhost:18080/webapplication8/faces/Page2.jsp");
           return null;*/
            return "case1";
        public String button2_action()  throws Exception{
            // TODO Following code was replaced by static navigation
                getSessionBean1().setId(2);
          /*  ExternalContext ctx=(ExternalContext)FacesContext.getCurrentInstance().getExternalContext();
           HttpServletRequest req=(HttpServletRequest)ctx.getRequest();
           HttpServletResponse res=(HttpServletResponse)ctx.getResponse();
           res.sendRedirect("http://localhost:18080/webapplication8/faces/Page2.jsp");
           return null;*/
            return "case2";
        public String button3_action() throws Exception{
            // TODO Following code was replaced by static navigation
                getSessionBean1().setId(3);
            /*    ExternalContext ctx=(ExternalContext)FacesContext.getCurrentInstance().getExternalContext();
           HttpServletRequest req=(HttpServletRequest)ctx.getRequest();
           HttpServletResponse res=(HttpServletResponse)ctx.getResponse();
           res.sendRedirect("http://localhost:18080/webapplication8/faces/Page2.jsp");
            return null;*/
            return "case3";
    }page 2
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page">
        <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
        <jsp:text><![CDATA[
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    ]]></jsp:text>
        <f:view>
            <html lang="en-US" xml:lang="en-US">
                <head>
                    <meta content="no-cache" http-equiv="Cache-Control"/>
                    <meta content="no-cache" http-equiv="Pragma"/>
                    <title>Page1 Title</title>
                    <link href="resources/stylesheet.css" rel="stylesheet" type="text/css"/>
                </head>
                <body style="-rave-layout: grid">
                    <h:form binding="#{Page1.form1}" id="form1">
                        <h:panelGrid binding="#{Page1.gridPanel1}" id="gridPanel1" style="left: 96px; top: 48px; position: absolute"/>
                        <f:selectItems binding="#{Page1.radioButtonList1SelectItems1}" id="radioButtonList1SelectItems1"/>
                        <h:commandButton action="#{Page1.button1_action}" binding="#{Page1.button1}" id="button1"
                            style="left: 384px; top: 120px; position: absolute" value="Submit"/>
                        <h:commandButton action="#{Page1.button1_action}" binding="#{Page1.button1}" id="button1" style="left: 384px; top: 72px; position: absolute" value="Submit"/>
                        <h:outputLink binding="#{Page1.hyperlink1}" id="hyperlink1" style="left: 480px; top: 216px; position: absolute" value="http://www.sun.com/jscreator">
                            <h:outputText binding="#{Page1.hyperlink1Text}" id="hyperlink1Text" value="Hyperlink"/>
                        </h:outputLink>
                        <h:commandLink binding="#{Page1.linkAction1}" id="linkAction1" style="left: 456px; top: 264px; position: absolute">
                            <h:outputText binding="#{Page1.linkAction1Text}" id="linkAction1Text" value="Link Action"/>
                        </h:commandLink>
                    </h:form>
                </body>
            </html>
        </f:view>
    </jsp:root>page2 bean
    * Page1.java
    * Created on June 25, 2005, 10:52 AM
    * Copyright user
    package webapplication8;
    import javax.faces.*;
    import com.sun.jsfcl.app.*;
    import com.sun.jsfcl.data.DefaultSelectItemsArray;
    import java.util.Vector;
    import javax.faces.component.UIComponent;
    import javax.faces.component.UISelectItems;
    import javax.faces.component.html.*;
    import javax.faces.context.ExternalContext;
    import javax.faces.context.FacesContext;
    import javax.faces.el.ValueBinding;
    import javax.faces.model.SelectItem;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class Page1 extends AbstractPageBean {
        // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Definition">
        private int __placeholder;
        private HtmlForm form1 = new HtmlForm();
        public HtmlForm getForm1() {
            return form1;
        public void setForm1(HtmlForm hf) {
            this.form1 = hf;
        private HtmlPanelGrid gridPanel1 = new HtmlPanelGrid();
        public HtmlPanelGrid getGridPanel1() {
            return gridPanel1;
        public void setGridPanel1(HtmlPanelGrid hpg) {
            this.gridPanel1 = hpg;
        private HtmlCommandButton button1 = new HtmlCommandButton();
        public HtmlCommandButton getButton1() {
            return button1;
        public void setButton1(HtmlCommandButton hcb) {
            this.button1 = hcb;
        private HtmlOutputLink hyperlink1 = new HtmlOutputLink();
        public HtmlOutputLink getHyperlink1() {
            return hyperlink1;
        public void setHyperlink1(HtmlOutputLink hol) {
            this.hyperlink1 = hol;
        private HtmlOutputText hyperlink1Text = new HtmlOutputText();
        public HtmlOutputText getHyperlink1Text() {
            return hyperlink1Text;
        public void setHyperlink1Text(HtmlOutputText hot) {
            this.hyperlink1Text = hot;
        private HtmlCommandLink linkAction1 = new HtmlCommandLink();
        public HtmlCommandLink getLinkAction1() {
            return linkAction1;
        public void setLinkAction1(HtmlCommandLink hcl) {
            this.linkAction1 = hcl;
        private HtmlOutputText linkAction1Text = new HtmlOutputText();
        public HtmlOutputText getLinkAction1Text() {
            return linkAction1Text;
        public void setLinkAction1Text(HtmlOutputText hot) {
            this.linkAction1Text = hot;
        // </editor-fold>
        public Page1() {
            // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Initialization">
            try {
                ExternalContext ctx=(ExternalContext)FacesContext.getCurrentInstance().getExternalContext();
                HttpServletRequest req=(HttpServletRequest)ctx.getRequest();
                HttpServletResponse res=(HttpServletResponse)ctx.getResponse();
                String id=req.getParameter("id");
                if(id!=null)
                    getSessionBean1().setId(Integer.parseInt(id));
                if (getSessionBean1().getId()==1) {
                    addTextBox();
                else if (getSessionBean1().getId()==2) {
                    addCheckBox();
                    addRadio();
                else if (getSessionBean1().getId()==3) {
                    addRadio();
                   // addCheckBox();
            } catch (Exception e) {
                log("Page1 Initialization Failure", e);
                throw e instanceof javax.faces.FacesException ? (FacesException) e: new FacesException(e);
            // </editor-fold>
            // Additional user provided initialization code
        protected webapplication8.ApplicationBean1 getApplicationBean1() {
            return (webapplication8.ApplicationBean1)getBean("ApplicationBean1");
        protected webapplication8.SessionBean1 getSessionBean1() {
            return (webapplication8.SessionBean1)getBean("SessionBean1");
         * Bean cleanup.
        protected void afterRenderResponse() {
        private void addRadio() {
            HtmlPanelGrid gridPanel = new HtmlPanelGrid();
            UIComponent parent = gridPanel1;
            HtmlOutputText outputText = new HtmlOutputText();
            outputText.setValue("Some Desc");
            outputText.setId("somedesc2");
            HtmlSelectOneRadio checkBox = new HtmlSelectOneRadio();
            checkBox.setBorder(0);
            checkBox.setLayout("pageDirection");
            checkBox.setId("a3");
            UISelectItems items = new UISelectItems();
            DefaultSelectItemsArray objArray =new DefaultSelectItemsArray();
            vectDefaultSelectItemsArray.add(objArray);
            arrays=(DefaultSelectItemsArray[])vectDefaultSelectItemsArray.toArray(new DefaultSelectItemsArray[vectDefaultSelectItemsArray.size()]);
            int size =arrays.length;
            arrays[size - 1].clear();
            for (int i =0;i<10;i++) {
                arrays[size - 1].add(new SelectItem(""+i+"",""+i));
            // array.setItems(new String[] {"Yes","No" });
            items.setValueBinding("value",getValueBinding("#{Page1.arrays["+(size-1)+"]}"));
            checkBox.getChildren().add(items);
            gridPanel.getChildren().add(outputText);
            gridPanel.getChildren().add(checkBox);
            parent.getChildren().add(gridPanel);
        private void addCheckBox() {
            HtmlPanelGrid gridPanel = new HtmlPanelGrid();
            UIComponent parent = gridPanel1;
            HtmlOutputText outputText = new HtmlOutputText();
            outputText.setValue("Some Desc");
            outputText.setId("somedesc1");
            HtmlSelectManyCheckbox checkBox = new HtmlSelectManyCheckbox();
            checkBox.setBorder(0);
            checkBox.setLayout("pageDirection");
            checkBox.setId("a2");
            UISelectItems items = new UISelectItems();
            DefaultSelectItemsArray objArray =new DefaultSelectItemsArray();
            vectDefaultSelectItemsArray.add(objArray);
            arrays=(DefaultSelectItemsArray[])vectDefaultSelectItemsArray.toArray(new DefaultSelectItemsArray[vectDefaultSelectItemsArray.size()]);
            int size =arrays.length;
            arrays[size - 1].clear();
            for (int i =0;i<10;i++) {
                arrays[size - 1].add(new SelectItem(""+i+"",""+i));
            // array.setItems(new String[] {"Yes","No" });
            items.setValueBinding("value",getValueBinding("#{Page1.arrays["+(size-1)+"]}"));
            checkBox.getChildren().add(items);
            gridPanel.getChildren().add(outputText);
            gridPanel.getChildren().add(checkBox);
            parent.getChildren().add(gridPanel);
        private void addTextBox() {
            HtmlPanelGrid gridPanel = new HtmlPanelGrid();
            UIComponent parent = gridPanel1;
            HtmlOutputText outputText = new HtmlOutputText();
            outputText.setValue("Some Description for Control Text Box");
            outputText.setId("somedesc");
            HtmlInputText textField = new HtmlInputText();
            //  textField.setId("textField_"+control.getId());
            textField.setId("a1");
            HtmlOutputText outputText1 = new HtmlOutputText();
            hyperlink1Text.setValue(" ");
            hyperlink1Text.setStyleClass("bodyText");
            textField.setStyleClass("frmObjects");
            gridPanel.setColumns(3);
            gridPanel.getChildren().add(outputText);
            gridPanel.getChildren().add(hyperlink1Text);
            gridPanel.getChildren().add(textField);
            parent.getChildren().add(gridPanel);
        private DefaultSelectItemsArray array = new DefaultSelectItemsArray();
        public DefaultSelectItemsArray getArray() {
            return array;
        public void setArray(DefaultSelectItemsArray dsia) {
            this.array = dsia;
        private Vector vectDefaultSelectItemsArray = new Vector();
        private DefaultSelectItemsArray[] arrays = new DefaultSelectItemsArray[10];
        public DefaultSelectItemsArray[] getArrays() {
            return arrays;
        public void setArrays(DefaultSelectItemsArray[]dsia) {
            this.arrays = dsia;
        private UISelectItems radioButtonList1SelectItems1 = new UISelectItems();
        public UISelectItems getRadioButtonList1SelectItems1() {
            return radioButtonList1SelectItems1;
        public void setRadioButtonList1SelectItems1(UISelectItems uisi) {
            this.radioButtonList1SelectItems1 = uisi;
        private ValueBinding getValueBinding(String expression) {
            return     FacesContext.getCurrentInstance().getApplication().createValueBinding(expression);
        public String button1_action() {
            // TODO Replace with your code
            return "case1";
    }my navigation.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
                                  "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
    <faces-config>
        <navigation-rule>
            <from-view-id>/Page2.jsp</from-view-id>
            <navigation-case>
                <from-outcome>case1</from-outcome>
                <to-view-id>/Page1.jsp</to-view-id>
            </navigation-case>
            <navigation-case>
                <from-outcome>case2</from-outcome>
                <to-view-id>/Page1.jsp</to-view-id>
            </navigation-case>
            <navigation-case>
                <from-outcome>case3</from-outcome>
                <to-view-id>/Page1.jsp</to-view-id>
            </navigation-case>
        </navigation-rule>
        <navigation-rule>
            <from-view-id>/Page1.jsp</from-view-id>
            <navigation-case>
                <from-outcome>case1</from-outcome>
                <to-view-id>/Page2.jsp</to-view-id>
            </navigation-case>
        </navigation-rule>
    </faces-config>my managed beans xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
                                  "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
    <faces-config>
        <managed-bean>
            <managed-bean-name>Page1</managed-bean-name>
            <managed-bean-class>webapplication8.Page1</managed-bean-class>
            <managed-bean-scope>request</managed-bean-scope>
        </managed-bean>
        <managed-bean>
            <managed-bean-name>SessionBean1</managed-bean-name>
            <managed-bean-class>webapplication8.SessionBean1</managed-bean-class>
            <managed-bean-scope>session</managed-bean-scope>
        </managed-bean>
        <managed-bean>
            <managed-bean-name>ApplicationBean1</managed-bean-name>
            <managed-bean-class>webapplication8.ApplicationBean1</managed-bean-class>
            <managed-bean-scope>application</managed-bean-scope>
        </managed-bean>
        <managed-bean>
            <managed-bean-name>Page2</managed-bean-name>
            <managed-bean-class>webapplication8.Page2</managed-bean-class>
            <managed-bean-scope>request</managed-bean-scope>
        </managed-bean>
        <managed-bean>
    </faces-config>

Maybe you are looking for