Forward a request with post data to another webApp

Hello,
I have a servlet that recieves data by post. I need to forward that request with the same info it recieves to another webApp in a different EAR
I know it is possible to forward that request to another servlet in the same webapp, how to do that but to a different webApp in post method (No get method, do no sendRedirect)?
Thanks.
Jean-Philippe

ServletContext otherContext =
context.getContext("/otherWebApp");
RequestDispatcher dispatcher =
otherContext.getRequestDispatcher("/otherServlet");
dispatcher.forward(request, response);Interesting. If I read this correctly you CAN actually use RequestDispatcher.forward() to redirect a user after they've contacted the web-server? i.e. Using the otherContext will cause the response that the web-server generates to come from /otherWebApp? That's cool...
Brian

Similar Messages

  • How to changes baseline date in miro with Posting date

    Please tell me the procedure to change the baseline date in miro with posting date (EKBE-BUdat) on basis of  Purchase order No (EBELN) .
    I tried it by using user exit :-EXIT_SAPLKONT_011  Enhancement : LMR1M002 but got stuck somewhere .Please tell me how to work on this .

    hey guys my problem is solved by using a badi  " MRM_PAYMENT_TERMS" .In method "PAYMENT_TERMS_SET" writing the code .

  • Exchange rate not updated with posting date, translation date updated

    Hi,
    I have the follwoing problem in F110. Currency documents are posted with exchange date of the docuemnt entry date. Translation date is updated with Posting date, just exchange rate is not updated. the systems calculates according entry date. Why entry date is one day before the date of posting, I cannot understand. The system takes the exchage date from entry date, which is one day before (docuemnt, posting and translation date)
    Thank you,
    Desimira

    Hello,
    This means, that the exhange rate is missing your local currency vs USD in the system. Your Business Partner or any of items you are adding to the invoice is using USD (price list or customer is in USD).
    My tip is some of the items has USD price set or USD Purchase price used.
    DO the following:
    Check the POsting date of your invoice
    Go to Administration -> Exhnage rate, and locate the posting date and USD from the matrix, and enter the rate.
    Post your invoice.
    it will work
    Regards
    János.

  • Inventory: Movement after count with post date before the count date.

    Hi,
    We have stock movements all the days of the week.
    We conduct physical inventories on Sunday mornings. There are not stock movements on Sunday mornings (stock movements on Sunday starts at night).
    Usually we create the SAP Physical Inventory Document on Fridays, assigning Saturday as the Planned Count Date.
    We enter the SAP Physical Inventory Count on Sunday (at the end of the count) or on Monday.
    How you recommend us to use SAPu2019s Physical Inventory feature in order to calculate the Book Inventory considering all stock movements with posting date less than or equal to Saturday?
    Please, suggest us a solution that If we register a movement after we enter the count but with post date before the count date (and the count is not posted yet), the Book inventory is modified accordingly.
    Thanks in advance for your support!!

    SAP takes the book inventory in the moment you enter the count.
    Best you set  block movements , this block will be removed automatically when you enter the count. So you can prevent users from posting until you have entered the count.
    If you set the freeze book inventory, then SAP takes the book inventory in the moment you create the document.
    This is not a good way if you still have movements after inventory document creation and actual count.
    You have to make sure - organisational  wise, outside SAP - that all movements that happened before inventory count  are posted before you start entering the count. There is nothing in SAP that can help you in this case.

  • How to Record HTTP Requests and POST data

    Hai all..
    Can anyone help me to solve this issue..
    How to Record HTTP Requests and POST data by using java..
    regards
    Ranjith Nair

    You should read about TCP and splitting data stream into packets and learn how to understand packet header to assemble stream from packets.
    Actually there are few different stages:
    1. detect handshake to start new empty stream within your code;
    2. detect subsequent packets and assemble stream (there are counters within packet header and they will help).
    After creating start of TCP stream (usually 1KB is enough) you'll be able to detect is it HTTP request/header or no and start logging or ignoring packets for this connection.

  • Calling external URL with POST data

    Hi:
    In my action bean I have to call and external URL (outside my domain), and along with this URL 'POST' data. I have tried the following code:
    try {
    FacesContext lclFC = FacesContext.getCurrentInstance().getFacesContext();
    lclFC.getExternalContext().getRequestMap().put("x_loc_zip","94804");
    lclFC.getExternalContext().redirect("http://www.mysite.com/personals/search/search.html");
    } catch (IOException e) {
    throw new FacesException(e);
    finally {
    lclFC.responseComplete();
    This works fine in calling the other URL, but no data is sent thru the post protocol. I have no control to the site I am calling....
    I have also tried
    ExternalContext ectx = FacesContext.getInstance().getFacesContext().getExternalContext();
    HttpServletRequest request = (HttpServletRequest) ectx.getRequest();
    HttpServletResponse response = (HttpServletResponse) ectx.getResponse();
    RequestDispatcher dispatcher = request.getRequestDispatcher("http://www.mysite.com/personals/search/search.html");
                   dispatcher.forward(request, response);
    But this tends to put a "/" at the front of the called URL. Can someone please recoomed the coorect way to call a URL from yr action bean and sending it data thru post protocol. I also wish that this new URL should now be displayed within the browser. This is urgent, yr quick reply is appreciated

    Myfaces sandbox form gives the ability to change its action url and port. Look here:
    http://myfaces.apache.org/sandbox/form.html

  • Forwarding a request with a EFFECT

    can anyone help me on how to forward a request to a jsp from a servlet. I wanna the jsp file name to be seen on the web address bar and not the servlet name.
    this is how i do the forwarding inside the servlet
    request.setAttribute("jCustomer", custBean);
    request.getRequestDispatcher("CreateAccount.jsp").forward(request, response);and this will appears on my address bar"http://localhost:8000/createAccountApp/JunYong'sServlet"
    but can i have something like this "http://localhost:8000/createAccountApp/CreateAccount.jsp"
    to make things clearly, when i clicks on Post New Question, i will be brought to this webaddress
    "http://forum.java.sun.com/post.jsp" then i put in my queries. After i finsihed writing and clicks on Preview button, I am brought to another webaddress
    "http://forum.java.sun.com/preview.jsp". Therefore, I as a user can see clearly where i am brought to and this is the effect i want to achieve.
    So anyone want to help me on this?
    Thanks sincerely

    i tried your method and it works, the jsp name is displayed on the web address. but i think you get me wrong perhaps i didn't elaborate well enough.
    1--> In simple words, the client first came to this jsp named "CreateAccount.jsp".
    2--> He/she then enters their particulars and later clicks on the submit button when they are done.
    3--> This jsp will follws the form action and came to this servlet.
    4--> The servlet will do some processing on the data and lastly passed the results back to the client on the same jsp, "CreateAccount.jsp".
    5--> Before sending, the servlet will set a javabean as an attribute req.setAttribute("jCustomer", custBean) and forwards it. req.getRequestDispatcher("CreateAccount.jsp").forward(req, res)6--> Back to the jsp, on the lower potion, the results are retrieved and displayed from that same javabean passed by the servlet.
    I did use this method as suggested by jackychow "res.sendRedirect("CreateAccount.jsp")". It works as the jsp name are displayed on the web address bar. However, the javabean, "jCustomer" were not set because HttpResponse have no setAttribute() like the HttpRequest. This causes the result not to be displayed on "CreateAccount.jsp".
    My ideal scenario is to dispaly the jsp name onto the webaddress bar and to retrieve information from the same javebean set by the servlet. Is is possible for this to be done on the same jsp???? :-]

  • Receive POST data from another URL and process using Struts

    Hi there
    We have a website and as of now we are receiving some data from another URL which is received as an appended part of the URL. My application uses Struts and we process the received data and send back a response.
    Now my question is, I have been asked to change this behavior because there are more parameters now which cannot be passed through the URL. I am supposed to get the data from the other URL as POST data (as a form) and I have to create a new Struts action to receive this data, process it and send the response back to the requesting URL.
    Please explain me how to do this using some example code snippets.
    Thanks a lot

    Lookup in XI is used to call the target data storage system and get data from there to your mapping programme.
    In XI you can do Lookup in Message Mapping, Java Mapping and in XSLT Mapping. Previously Lookup in XI was system dependent. But now what ever the system are i.e. SAP system or non-sap system(Oracle,MS SQL etc) lookup API are same.
    Overview of Lookup
    - Lookups are used to identify/request the data from mapping program.
    - It interrupt the process and looking for data which was stored in target system.
    - It get that data and comeback to process and continue with that data.
    Types of Lookups in XI
    - JDBC Lookup: JDBC lookup is used for accessing data from database (non SAP).
    - RFC Lookup: RFC lookup is used for accessing the SAP Data.
    - SOAP Lookup: SOAP lookup is used for accessing data from Webservice
    Steps to perform Lookup in Mapping
    Import package com.sap.aii.mapping.lookup.*;
    Create connection to the target Database system.
    // Determine communication channel created in ID
    Channel channel = null;
    channel = LookupService.getChannel("DB-SYSTEM-NAME","DB-CHANNEL-NAME");
    // Get system accessor for the channel.
    DataBaseAccessor accessor = null;
    accessor = LookupService.getDataBaseAccessor(channel);
    Build the Query String.
    Getting Result
    // Execute Query and get the values.
    DataBaseResult resultSet = null;
    resultSet = accessor.execute(Query);

  • RE:Need data vendor no with posting date

    Hi All,
    one of my user requires the data of the GR report with vendor no and posting date data to analysis the batch job.kindly anyone can help me from were i can fletch the data i had tried in MKpf i can get the posting date data but when comes to vendor i can't able to get the data of the GR done for the particular vendor on the particular date.kindly help me out.
    Thanks in advance.

    HI,
    Why you are not using MB51 report ?
    Go to MB51
    Here enter Vendor ,Movement type 101 ,Posting date ( Plant ,material if you want )
    You will get all the desired data
    Edited by: redriver on Dec 22, 2011 12:12 PM

  • Issue with Posting Date in F.05 - Foreign Currency Revaluation

    Hi All,
    We have a problem with the US-GAAP Foreign currency revaluation run which we're doing every month.
    Although the posting date is entered correctly (for this month as 30.09.2011), the postings that are created have the posting date of 31.07.2011. But the reversal date is right (01.10.2011).
    Could you please explain why wrong date is appearing.
    Thanks IN Advance
    Regards,
    Payal Saxena

    Hi,
    Have you scheduled any batch job to carry out the Foreign Currency Valuation? If yes, then check the variant which has been created for the program. There the posting date might have been entered as 31.07.2011. Dynamic date calculation must be maintained for the posting date.
    Thanks,
    Aman

  • ACE match http url with post data

    I need to make a layer-7 load balancing decision at the ACE module based on a URL string that includes form POST data. It is important that the balancing decision include and parse the part of the URL after the question mark. This doesn't seem to work with the "match http url" config on the ACE. My interpretation is that the ACE does not consider the POST data to be part of the URL string, and therefore does not include it in the regular expression matching. Am I missing something here, or have I run into a limitation of the ACE module?
    class-map type http loadbalance match-any L7__URL_MATCH_CLASS
    2 match http url index.php\?field=content.*

    Hi
    The '?' has a special meaning in the URL. It means the end of the main URL and the beginning of the URL query.
    Its not possible to match ? in the url.
    One option could be using secondary cookie matching in ACE.
    class-map type http loadbalance match-any xyz
    2 match http cookie secondary field cookie-value content
    Thanks
    Syed

  • Period-End Closing with posting date

    Hi gurus,
       Tell me how to fix posting date when period-end closing. Where I can fix, assign ... Now our system, it's automatic.

    Hi Andy,
    Im using 2004, in 2004 you can not change the date that it carries the values over to. I highly doubt you'll be able in 2005. I'm taking a guess.....but the reason you want to do this is because the figures don't look right when you run the financial reports....hey? Before you execute financial reports tick the selection box "Add closing balances" i9n the selection window. Im assuming they still have this tick box in 2005.
    Hope this helps.

  • Conditional Formatting in one cell with a dates in another cell

    I have a simple spreadsheet that will gauge a project's progress.  I wish to have individual cells change color based on another cell.  I can't get the right syntax in order - groan
    E2 has today's date, =NOW()
    G2 (not started) would change from a color to no color when the start date, F27,  has arrived then
    H2 (started) would change to a color when the date is met, F27, (may be change color as the completed date arrives) then no color when the completed date arrives, F28.
    I2 (completed) would change to a color when the date is met, F28
    When the spread sheet is opened or if I need to change the dates in either of the cells the cells with color gauges will update.
    I am using conditional formating through the ribbon.
    Please help!

    Hi,
    Thank you for posting in the MSDN Forum.
    Since the issue is more relate to the end-user, I'd like to move it to Excel IT pro forum.
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
    Thanks for your understanding.
    Best regards
    Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Breakout table (fill table with matching data from another table)

    Hi
    I've been trying to study old discussions about breakout tables. I feel I'm close, but still no cigar :-)
    In plain english, I'm trying to autocreate rows with data on a table, based on matching values from another table. E.g. have a table to display all rows where type = AssetX
    I have attached a screenshot of my "master table" called Assets:
    I'm looking to prefill Asset name, Total from this table and populate a new table called e.g. Greenhouse
    Where I'd be adding more data (date, income, expense).
    Any help whould be greatly appreciated.
    Thanks!

    Hi,
    Here is a Sample Query.
    Update Emp A
    Set Sal = (Select Sal from emp b where
    a.empno = b.empno)
    where empno in (select empno from emp);
    Regards,
    Ganesh R
    null

  • Help with POST data if  multiple selections are chosen

    I've created a form with a menu (list) that includes all 50
    states. I'm using the POST option, along with PHP, to process the
    form data, which will be emailed to me. The list-menu looks like
    this:
    http://askdave.info/help/states_menu.gif
    and I have "Allow Multiple Selections" checked in the Property
    Inspector.
    If the user chooses multiple states, I want
    EACH of those states to be listed in the email that I
    receive. Right now, if I check multiple states, I only get
    the very last state that's selected. For example, here's the
    email I get after I check 5 different states.
    http://askdave.info/help/formdata.gif
    Problem--> In this email, only one state is listed
    (Hawaii) even though I selected 5 different states. How do I get
    the form data to list ALL states that are checked?
    Here is what I have:
    <form name="form1" method="post" action="process.php">
    <input type="hidden" name="required"
    value="name,phone,email,states,capital" />
    And then for the menu that lists the states, I have:
    <label>
    <select name="states" size="7" multiple id="states">
    <option>All States</option>
    <option>Alabama</option>
    <option>Alaska</option>
    <option>Arizona</option>
    <option>Arkansas</option>
    and so on...
    What am I missing? How do I get the PHP script to send
    multiple values, if multiple values are chosen? (I'm new to PHP, so
    go easy on me. I can post my code, if necessary.) Is this a PHP
    issue, or do I need to add something to the HTML form?

    Hi,
    >>
    I think DynaForm stands for Dynamic Form
    >>
    this makes some sense ;-) I was just wondering because there
    is a pre-made script called DynaForm
    here, but
    it has a different "logistics" than yours.
    However, both "DynaForm" versions are pretty basic, as they
    just deal with non-multiple values - form fields like single line
    input fields, texareas and non-multiple select´s. Your script
    e.g. just loops through all existing form fields using the
    "foreach" method:
    //Pulls form fields & values.
    foreach ($this->post as $field => $value) { // looping
    through all form fields
    if ( $field == 'required' ) continue;
    $this->_addLine($field, $value); // here´s where the
    field´s name/value consolidation happens
    ...and simply consolidates a field´s "value" with its
    associated "name". The problem is : this method just works for
    fields having just 1 value -- but any "multiple value" form fields
    (e.g. your "states" select or checkbox groups which can pass
    multiple values as well) actually require a separate "foreach"
    treatment within the script, and this hasn´t been incorporated
    here.
    That said, I suggest using an other pre-made solution like
    PHP
    Form Mail script that´s capable to handle your multiple
    values - scenario innately.

Maybe you are looking for

  • How do I adjust display resolution for Mac Mini?

    How do I adjust display resolution for Mac Mini? Text does not look crisp.  Using Samsung 27 inch monitor with HDMI input

  • 10gDB Performance:R12

    Hi, I found following activitoes on my ADDM report .. Plz advice FINDING 2: 73% impact (13482 seconds) SQL statements consuming significant database time were found. RECOMMENDATION 1: SQL Tuning, 25% benefit (4640 seconds) ACTION: Run SQL Tuning Advi

  • Issue in business rules attahed with forms (11.1.2.2.300)

    We have attached Business rules with relavent forms but when we run business rule from form some other rule is run instead.

  • Error when starting SAPCCMSR agent

    Helo Guru's, When I try to start/initialize shared memory for SAPCCMSR agent on satellite system I'm getting the following error, could any one please help me to resolve this issue. Please find the details for your reference. INFO: CCMS agent sapccms

  • Use of  TYPE  LINE OF

    Hi , Can any one please tell me what is the use of DATA var  TYPE  LINE  OF  type. Here what is the meaning of  " LINE OF " in this declaration statement.. Thanks Ambili B