Trouble getting data that I post to my JSC web application

I have some Java code that posts an XML document to my web application. I tried placing the following code in the init() method of my first page.
FacesContext context = FacesContext.getCurrentInstance();
String postData = context.getExternalContext().getRequest().toString();
Instead of getting the XML content that I posted, I get this result in the string :
com.sun.faces.context.MyHttpServletRequestWrapper@1c26895
I wish I knew more about the architecture, and exactly what happens when a request is sent to the application URL with post data.
Joe Paladin

FacesContext context = FacesContext.getCurrentInstance();
String postData = context.getExternalContext().getRequest().toString();
Instead of getting the XML content that I posted, I get this result in the string :
com.sun.faces.context.MyHttpServletRequestWrapper@1c26895Right - the request object you got is HttPServletRequest implementation, see for example :
http://java.sun.com/javaee/javaserverfaces/1.0/docs/api/javax/faces/context/ExternalContext.html#getRequest()
Now you can cast to and use various methods of HttPServletRequest to access the data submitted to the servlet. See for example getInputStream or getParameterValues methods:
http://tomcat.apache.org/tomcat-4.1-doc/servletapi/javax/servlet/ServletRequest.html#getInputStream()
I wish I knew more about the architecture, and exactly what happens when a request is sent to the application URL with post data.It is HTTP POST request (google for rfc2068) : on the wire it is a stream with set of headers, including such as length of the data being submitted and its encoding, followed by the data encoded in either one of 2 ways, please see http://www.w3.org/TR/html4/interact/forms.html#h-17.13 and
http://www.w3.org/TR/html4/interact/forms.html#h-17.13.4
In particular the content of the submitted file should be streamed as part of "multipart/form-data" encoded data stream.

Similar Messages

  • Trouble getting data on Facebook. Lumia 800

    Hello, i have an odd problem on my Lumia 800.
    When i try to go on facebook through the windows app it says that it has trouble getting data.
    Everything else (Internet explorer,Marketplace,Search etc) seems to work fine tho. 
    And this happens only when im on my mobile internet, when im connected thru wifi it works fine.
    I've set my setting up through the Network setup app.
    Please help?? this is furstratinggggg

    Have you try reinstalled the application? It works for me.
    If I have helped you in any way, give me a kudos!

  • Having trouble getting multiple tables to post to the same report

    I have a canned report that is being generated from one source and I am trying to add a field from a different SQL source table. The report is being run in STAGES but every time I try to run the report I am getting an error report. There are several group by tables on the report and I think since the the 2 tables are different SQL's it may be a problem with the data linking. i have tried several different joining methods but I still can't get it to post.

    I have a canned report that is being generated from one source and I am trying to add a field from a different SQL source table. The report is being run in STAGES but every time I try to run the report I am getting an error report. There are several group by tables on the report and I think since the the 2 tables are different SQL's it may be a problem with the data linking. i have tried several different joining methods but I still can't get it to post.

  • Having Trouble getting data from iphone 4 to itunes so I can ultimately transfer to 4s.

    Original itunes machine is dead, so I deauthorized all machines and authorized current machine and couldn't sync items from phone to machine. Apple then told me to uninstall itunes and reinstall, have done so but still can't get it to sync all items from phone to itunes library. (It only synced purchased songs, none of the apps)  I want all the data on my phone to go to my computer, not what is on computer but can't get there. Any suggestions?

    Media sync (music videos, etc.) is 1 way. Computer to iPhone. Items purchased on the phone can be transferred using File>Transfer Purchases in iTunes. If you have music on the phone that was synced to it from another computer but not purchased from iTunes, you will either have to use the backup of your old computer to get it on the new one, as suggested above, or invest in 3rd party software to extract it from the phone.

  • Having trouble getting "date received" to display in my email inbox

    I'm only getting "Today" or "Yesterday" to display in both my "Date Sent" and "Date Received" inbox columns. I've gone into "View" in the menu bar, selected "Columns" and checked both "Date Sent" and "Date Received" and am still only getting "Today and "Yesterday" to show up; nothing is displayed (no dates) for any previously received emails. I couldn't find anything in Mail under "Preferences" to correct this problem. I previously was getting the actual dates (all the way back to 2005) to appear but somehow it recently disappeared -- I don't know what I did to screw it up....
    Thanks for helping...
    [email protected]
    Judy
    iMac   Mac OS X (10.4.8)  

    Could it be that the column width is too narrow for Mail to display the full date when it’s neither today nor yesterday?

  • How can I get data that was on my phone before the last sync?

    I backed up my iPhone in September.  I stupidly restored it last week without first backing up everything I had up to this point, and lost all the data in between that was on it. Is there any way to get that data back?

    The first thing that happens when you sync, is an automatic backup.  This backup overwrote the one you intended to restore from.

  • ALV u2013 Get data that is filtered then sorted

    Hi,
    Iu2019m using the following code below to get the filtered data indexes from the ALV component in the event ON_FUNCTION.  It seems to work fine returning the index of items filtered.  The issue Iu2019m having is if you use ALV filter first then sort by clicking column the 'lo_value-t_displayed_elements' does not contain the correct indexes of the filtered items.  From what I can tell it contains the indexes of full list being sorted not the filtered list being sorted.
    Is there was to get the data/index from ALV that is filtered first then sorted?
        " Get filtered items if any
          TRY.
              lo_interfacecontroller = wd_this->wd_cpifc_alv( ).
            CATCH cx_wdr_rt_exception.
          ENDTRY.
          IF NOT lo_interfacecontroller IS INITIAL.
            lo_value = lo_interfacecontroller->get_ui_info( ).
            lt_displayed_elements[] = lo_value-t_displayed_elements.
          ENDIF.
    Thanks,
    Gary

    Hi Gary,
    We faced the similar issue and resolved like this:
    After you filter the ALV data, rebind the Context node with the internal table having filtered rows lt_displayed_elements[] in your case.
    In case user wants to see all the rows we can have another ALV button say "FETCH ALL" on click of which you fetch all the rows and rebind to ALV node.
    I hope it helps.
    Regards,
    Sumit

  • Hyperion Planning customization on getting data from RDBMS posting to form

    Hi, gurus,
    I am having requirement to retrieve some data from RDBMS and put it on a particular form at Hyperion Planning. We had customized a bit on the same form with modifying its jsp file by adding in some access control upon various user login and add graphic icon. Could anyone share some light on this POC and my understanding is the data will go through ODI and pass to a temporary table and then update to the Essbase table, please comment and point me to the reference on Hyperion planning customization.
    Thanks,
    Fei

    Hi,
    You shouldn't need to go down the route of customizing planning, I would say only go down that route if all the options are not feasible.
    In theory you should be able to use ODI to retrieve and transform the data from a relational table, then load it directly into essbase.
    The planning form will query the data in essbase and present the data in the grid.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Trouble getting numbers that I purchased from the Store for my MAC to get on my IPAD.

    I bought and downloaded Numbers for the iMac a couple years ago. I just bought an iPad and was told I could download numbers at no charge. I had the same problem with Pages, finally gave up and purchased it again as I needed it to get iCloud working. While working with iCloud I realized I needed to upgrade pages on the MAC which I did, so I upgraded numbers at the same time. All good there. I have more time now, so would like to get numbers on my iPad but I'm not keen on paying again.
    I have the same Apple Id as we set it up in the store when I bought it. I tried sync using iTunes but numbers won't show up in the apps for me to transfer. I tried to follow instructions re going to the app store from iPad, click on purchases. It still doesn't recognize any purchases except for the few games I downloaded on iPad itself.
    Any ideas what I'm doing wrong?

    Well before you got too hard on them, keep in mind that often customers don't properly lay out their scenaro, which causes misconmunication.  And then you may get the right advice, but for the wrong scenario.
    But just in case you may doubt me as well, feel free to get a third opinion, as I may have misunderstood you as well

  • How to print formatted data / report on user's printer in Web Application

    Hi All
    I want to print some formatted data/report ( it might be 1000 pages) on user's printer.
    application is web based and tech. used are Java - jsp - servlets
    now prob. is ...
    how i will transfer all data to client (web browser) from the server and how i can print that data on user's printer ...??
    there is requirement that I can not use applet for this purpose.
    if any one done or have idea then let me know.
    thanks
    Shailesh Koradiya

    Hi
    Its simple, first of all break ur data in terms of pages. Write the logic in one JSP.
    suppose i have jsp PrintReport.jsp , for page 1 url will PrintReport.jsp?page=0 ... so on
    get the page parameter in JSP
    String page="";
    if(request.getParameter("page")!=null)
    page=request.getParameter("page");
    get the rowcount from the Result and assume records per page is 100
    if u have 1000 rows then 10 pages u have to serve
    StartRowNumber=page*recordsPerPage
    EndRowNumber=StartRowNumber+recordsPerPage
    Execute a SQL query , select * from table where rownum between
    StartRowNumber and EndRowNumber
    Provide google like pageNumbers in ur HTML page
    ie 1 2 3 4 5 6 ..10
    Regarding printing , Create HTML button called 'print' and add Javascript ' window.print()' on clicking it.
    Hope it would solve ur problem
    Cheers
    Rajendra Bandi

  • I am have trouble getting music I have already purchased in the past to transfer to my phone after I did an update.  The music is there and I can see it but it cannot be played when the music is put on shuffle. It just skips right past it? How do you fix?

    I am having trouble.getting music that I have purchased in the past to transfer to my phone after I did recent update on the phone. I can see the music, it is in a lighter font and appears to still be there but will not play.  When placed on shuffle it will skip right over this music. I have already paid for this music and have been able to play it at one time but that was before the update. Why can I not listen to this music anymore?

    Did you ever resolve the iCloud problem.I am in the same position and its driving me mad!!! If you have a link to an solution I would appreciate it.

  • Need help about RRD4J, get data from rrdb

    i need more help about roundrobin database, especially using RRD4J library.
    i want to know, if i have one file database data1.rrd and i specific want to get data from startTime to endTime.
    how i can get that data from that database, and move them to another database file data2.rrd.
    can i do this?

    thx jschell
    javadoc from rrd4j not clearly enough for me to understanding about prosesing add, update and get data in there, so i ask in this forum may be anyone can give me solution.
    i think it's simple problem but i don't know how to implement with this API.
    with rrd4j we can create roundrobin database (rrd), the output in example: data1.rrd
    i just want to get data that i had put in data1.rrd to move them to another rrd, example: data2.rrd.
    data1.rrd and data2.rrd, they have same lastupdate time.

  • Ways to get data from the internet with XCode and Objective-C

    Hey guys,
    Thanks in advance for any help. I was simple wondering what the best ways are to get data from the internet to use in an application. For example, is it best to store the data in a MySQL database with PHP and then use C code and MySQL commands to get that data from my Mac app? Is JSON better? Any help would be awesome!
    Josh

    What kind of data are you after?
    Eric

  • Syncing itouch to itunes for the first time. How do get data on itouch to the itunes library?

    Syncing itouch to itunes for the first time. How do I get data that is on theitouch to the laptop itune library without erasing the data on the itouch?

    Hey saltorre1!
    I have an article for you that can help you with that question:
    iOS: How to transfer or sync content to your computer
    http://support.apple.com/kb/ht1296
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • Limitation on data that can be fetched (ABAP RFC) via a Web Service?

    Hi,
    Is there any limit on the data that can be fetched via a Web Service (ABAP exposed as Web Service). I am trying to fetch PI monitoring data from ABAP Tables via a Web Service and there can be thousands of messages proceesed say in a day and what if user is provided the option of fetching messages for a specefic duration.
    Please advise.
    Neha

    Hello my friend
    If I understand your question correctly, there's an environment variable CPIC_MAX_CONV handles sessions between integration engine and adapter engine (ABAP and Java). By default, the value of this variable is 500, and you might want to increase it to 1000 at least, depends on system throughput. Recommended value from SAP for Production is 5000.
    Hopefully it's helpful,
    Effan

Maybe you are looking for

  • Installing Data Guard Manager

    Hi Everyone, Regarding Data Guard Manager, I dont have any idea. Does it come with OEM or do i have install it separately. Thanks in advance

  • Same photo in multiple projects?

    Hi there. New Aperture user here so hope this isn't a stupid question. I was wondering if it's possible to have the same photo in multiple Projects? My understanding is that all photos are stored in my Aperture Library but the photos in the Projects

  • External antenna on my MBP?

    I'm going on holiday later this year and a friend's apartment has a WiFi access point. The problem is, it's about 100m away from the apartment I'm staying at. Although there is a clear line of sight, there is a small stream in a steep valley between

  • DTP and  Transformation error

    Hi All, Iam loading master data through process chain. The process chain got failed at some particular DTP giving a error message "Exception CX_RS_ERROR occurred (program: CL_RSTRAN_RUNTIME_EXE=========CP, include: CL_RSTRAN_RUNTIME_EXE=========CM001

  • Where can I download windows for 4.0 and set up to i cloud drive

    Followed the steps to set up iCloud then after that it will not let me set up windows 4.0 and set up to iCloud drive. I tried everything , i am so lost. Can somebody help me please just tell me the step by step , I think I will be ok. Really apprecia