Sending Response to HTTPPost request

I have a form that submits to a JSP page which does processing on the back end. Someone needs to submit to this page via HTTPPost and they want some type of response back letting them know that the data was processed on the backend. How do I do this via the JSP page?

unless i missed something this is simple form processing
this would b page that accepts posted form data
// check post params, if ok goto next
// do something with posted data, if ok goto next
// couple of options here for both cases of 'all_ok' and 'something went wrong' both are same just different pages in syntax
// option 1
<jsp:forward page="all_ok.jsp" /> /* or */ <jsp:forward page="something_wrong.jsp" />
// option 2
response.sendReditect("all_ok.jsp"); /* or */ response.sendReditect("something_wrong.jsp");
// option 3
use either of above for one case and fall through to end of this code for other case,
so say, if all_ok, redirect to confirm page for back_end actions otherwise follow through to end of this code and display an error, or redirect back to form using above methods
hth
g00fy

Similar Messages

  • Sending response back to RFC in UDF

    Hi All,
    I have a Sync scenario from RFC to SOAP. I want to check the line items in RFC request. If there are no line items , then i want to stop the scenario and use UDF to send the constant (Invalid line items based on validations) back to RFC responce by using RFC lookup.
    Is it possible to send response back to RFC in UDF?
    Please suggest me, i want to handle exceptions without BPM.
    Thanks and regards
    Uma

    hi,
    >>Is it possible to send response back to RFC in UDF?
    I don't think such an option exists in standard
    but maybe you can do the check in the RFC much faster instead os checking
    this in XI ?
    Regards,
    Michal Krawczyk

  • UDF to send Response to RFC

    Hi Experts,
    We have a scenario where we have to send a response back to RFC from UDF .
    How can we do this without using RFC lookups ?
    Regards,
    Syed

    Hi,
    I think UDF don't have nature to send response back to RFC meanwhile RFC request and response are different mapping windows, better to go for RFC lookup, we can fulfill your requirement easily.

  • HELP plz..How to send response from server to client

    Hi..plz help me out of this problem..i am sending request from client side to servlet..lets say i am sendin "Bechkam"..now my servlet fetches this request.n finds out that BECHKAM is a football player..now i dont want to print this on the client side..i simply want to sent this response back to the client..after client receives this response the client should print bechkam is a football player..i have done coding of sending request from client(javascript code)to server but dont kno how to send response to client..do i have to use cookies or sessions..
    Any help will be greatly appreciated
    THANX

    I'm not sure how well versed you're with HTTP and servlets.
    What you term as 'printing on the client side' is in fact the response you're looking for. The response you send from a servlet is 'printed' into the response stream. The client receives this data and interprets is according to some headers. Usually, this data is HTML/ plain text which is interpreted by the browser and rendered as required. It could very well be displayed as is.
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • Error when other people send me a meeting request

    Dear Microsoft,
    When other people send me a meeting request, they get the error you can see below (it says: "Your message can not be delivered to the following
    people or distribution lists"). The strange thing is that I receive as well the meeting request and I can accept it. However, it is confusing for the people who send me the request, so can you help me to fix te problem? 
    I use Outlook 2010, but I had also this problem with an older version. I have not had this problem always. The problem started when I authorized a colleague
    to look in my calendar (but, if I cancel the authorization it doesn't help, so I really don't understand what is going wrong!).
    I really hope you know a solution of this problem.
    Kind regards,
    Dineke Wolbink 
    The error (in dutch):
    Uw bericht kan niet worden bezorgd bij de volgende personen of distributielijsten:
    19d23aca-f069-4dfb-8f90-47ee2b07317f
    Het e-mailadres van de geadresseerde is niet gevonden in het e-mailsysteem van de geadresseerde. Microsoft Exchange probeert dit bericht niet opnieuw te verzenden. Controleer het e-mailadres van de geadresseerde en probeer dit bericht nog eens te versturen
    of geef de volgende diagnosetekst door aan uw systeembeheerder.
    Diagnostische gegevens voor beheerders:
    Bronserver: CPHUB-ZH01.kpneol.local
    IMCEAEX-_O=KPNEOL_OU=EXCHANGE+20ADMINISTRATIVE+20GROUP+20+28FYDIBOHF23SPDLT+29_CN=RECIPIENTS_CN=*** E-mailadres is om privacyredenen verwijderd ***
    #< #5.1.1 smtp;550 5.1.1 RESOLVER.ADR.ExRecipNotFound; not found> #SMTP#
    Oorspronkelijke berichtkoppen:
    Received: from CPMBS-ZH01.kpneol.local ([169.254.2.62]) by
     CPHUB-ZH01.kpneol.local ([10.94.81.134]) with mapi; Thu, 30 Jan 2014 10:13:10
     +0100
    Content-Type: application/ms-tnef; name="winmail.dat"
    Content-Transfer-Encoding: binary
    From: Dineke Wolbink <hier stond mijn e-mailadres>
    To: 19d23aca-f069-4dfb-8f90-47ee2b07317f
                <IMCEAEX-_O=KPNEOL_OU=EXCHANGE+20ADMINISTRATIVE+20GROUP+20+28FYDIBOHF23SPDLT+29_CN=RECIPIENTS_CN=*** E-mailadres is om privacyredenen verwijderd ***>
    Date: Thu, 30 Jan 2014 10:13:04 +0100
    Subject: hoi
    Thread-Topic: hoi
    Thread-Index: Ac8dm3/BkI5G2ujIRKKYyE6kqe5htgAAAFlQ
    Message-ID: <*** E-mailadres is om privacyredenen verwijderd ***>
    Accept-Language: nl-NL, en-US
    Content-Language: nl-NL
    X-MS-Has-Attach:
    X-MS-TNEF-Correlator: <*** E-mailadres is om privacyredenen verwijderd ***>
    acceptlanguage: nl-NL, en-US
    x-originalarrivaltime: 30 Jan 2014 09:13:04.0347 (UTC)
     FILETIME=[7B5702B0:01CF1D9B]
    kpn-deliveryagentmarker: 1
    x-rcptdomain: syntro.nl
    x-brand: 6aXqz76n4qX03qPpzQ==
    MIME-Version: 1.0

    Hi Dineke,
    You can contact your Exchange administrator to run the following command to check it:
    Get-Mailbox –Identity yourname | Select Name, HiddenFromAddressListsEnabled
    Or you can view your colleague’s Default Global Address List in OWA to check whether you are listed there or not.
    Please check whether there is any transport rule or Outlook rule setting in your mailbox. Also change a new computer and create a new Outlook profile to have a try.
    Best Regards,
    Winnie Liang
    TechNet Community Support

  • Error by sending a Web Service request

    Hi,
    we generated a WSDL from an outbound-interface and build a web application with it. When we send a Web Service request to SAP-XI from our Web Dynpro client application, we get an error "CALL_CONSUMER_ERROR" (of category "XI_J2EE_MESSAGING_SYSTEM"). We find the following entry in the message-log of the adapter engine:
    Error: Return of synchronous errormessage to the calling application: com.sap.aii.af.ra.ms.api.RecoverableException: java.lang.RuntimeException: Error while silently connecting: org.w3c.www.protocol.http.HttpException: iaik.security.ssl.SSLException: Server certificate rejected by ChainVerifier.
    Error: The Transmission of the message with https://hpsaps01.inveos.com:8001/sap/xi/engine?type=entry failed, because: com.sap.aii.af.ra.ms.api.RecoverableException: java.lang.RuntimeException: Error while silently connecting: org.w3c.www.protocol.http.HttpException: iaik.security.ssl.SSLException: Server certificate rejected by ChainVerifier
    does anybody know, how to solve this problem?
    Greetings
    Hildegard

    Hi Stefan,
    correct certificates are established in the meantime and the error-message in the adapterlog has changed. The errorcode still remains "CALL_CONSUMER_ERROR" of category "XI_J2EE_MESSAGING_SYSTEM".
    Adapter-log:
    Error: Return of synchronous errormessage to the calling application: com.sap.aii.af.ra.ms.api.RecoverableException: java.lang.RuntimeException: Error while silently connecting: org.w3c.www.protocol.http.HttpException: java.net.ConnectException: Connection refused.
    Error: The Transmission of the message with https://hpsaps01.inveos.com:8001/sap/xi/engine?type=entry failed, because: com.sap.aii.af.ra.ms.api.RecoverableException: java.lang.RuntimeException: Error while silently connecting: org.w3c.www.protocol.http.HttpException: java.net.ConnectException: Connection refused
    Are there missing any more permissions or is this another error in the configuration?
    Regards
    Hildegard

  • JDBC Sender Response Message as an XML SQL

    Hi All,
    I have a scenario as follows :
    JDBC Sender <-> XI (synchronous) <-> ABAP Proxy.
    I'm hoping that I can use XML SQL form at the JDBC Sender Response message, so I can update some fields at the database using the response message's data. But actually it's not working. Please advise whether it's applicable or not ? If it's not, is there any other way to do that ?
    Thanks in advance,
    Andy S

    Andy,
    Adding to the discussion here, JDBC sender adapter does not support Synchronous Processing .It supports only Asynch procesing and so, you would need a BPM inorder to update the database again with the ABAP Proxy response.
    You would have a sender jdbc adapter polling over the db and getting the data, --> a receiev step in the BPM receives the data.
    Next a send Synch Step makes the call to the ABAP Proxy and get the response.
    You map this response to a JDBC receiver adapters data format on the basis of the action you need and then use a send step with a receierv JDBC adapter to update the DB.
    Regards,
    Bhavesh

  • PO 7.4: NW BPM: HTTP Error response for SOAP request or invalid content-type.HTTP 200 OK

    Hi Experts
    I am trying to call NW BPM scenario(File to BPM) from PI, and using below adapter config.
    I am getting below error.
    Failed to call the endpoint: Error in call over HTTP: HTTP 200 OK
    SOAP: Call failed: java.io.IOException: HTTP Error response for SOAP request or invalid content-type.; HTTP 200 OK
    SOAP: Error occurred: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: HTTP Error response for SOAP request or invalid content-type.; HTTP 200 OK
    MP: exception caught with cause com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: HTTP Error response for SOAP request or invalid content-type.; HTTP 200 OK
    Transmitting the message to endpoint <local> using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: HTTP Error response for SOAP request or invalid content-type.; HTTP 200 OK
    Any idea how to fix this issue?
    Thanks,
    Sandeep Maurya.

    Hi Sandeep,
    Test the URL from your browser and check the proxy settings as well.
    Refer the below links
    SOAP: call failed: java.io.IOException: invalid content type for SOAP: TEXT
    SOAP: Call failed: java.io.IOException: Failed to get the input stream from socket: java.net.SocketException: Connection…
    Regards
    Bhargava Krishna

  • XML Incoming Invoices - Send response to Vendor for Failed Messages in XI

    In our system, Vendor are posting XML Invoices to XI using HTTP adapter and then XI is sending invoices to R/3 using IDOC adapter. Is there anyway I can send response message to vendors for the error out invoice messages in XI?
    Please help  me if someone has any information about it.
    Thanks in advance!
    Mrudula Patel

    Mrudula
    There are two types of errors you have take care of. One is technical error and the other application error.
    To sending technical errors like mapping error, you can use fault messages in XI.
    For application errors, you can use ALEAUDIT functionality from the receiver R/3 system, which you can map in to an asynchronous XML message as agreed between you and your vendor.
    It is a good practise to always send acknowledgements (both failure and success) to your vendor so that at the end of the day, the number of invoices matches on both systems (yours and your vendor's).
    Thanks
    KK

  • SOAP Receiver Error: HTTP Error response for SOAP Request

    Hi gurus,
    I'm facing a weird error in File --> PI 7.31 java only --> soap receiver proxy.
    The other interfaces runs well. just one get the the following error:
    Exception caught by adapter framework: java.io.IOException: Error receiving or parsing request message: java.io.IOException: HTTP Error response for SOAP request or invalid content-type.
    I check the payload and test in the inbound proxy. on error.
    Any hints?
    Thanks a lot!
    regards
    Christine

    Hello Christine,
    I faced the same issue,
    You can use the beans below to overcome the error.
    And charset should be utf-8

  • Sending response back

    Hi
    I’m getting message from source system (MQ) for   which I need to validate the header details and mandatory field information in XI, if success then send to SAP system through proxy otherwise send the response back to MQ system with batch number or some mandatory fields missing information.
    Client not agrees to send this information through alert want to send response to MQ system only.
    Please suggest good design option for sending response back. Can we achive this through acknowledgement or how? Please provide suggestive document on the approach suggesting would be grateful
    Thanks,
    Srini

    Hi,
    See you can use two target messages , in mapping , handle the condition and route the message , in determination use interface mapping.
    see the below links also
    /people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
    https://media.sdn.sap.com/javadocs/NW04/SPS15/pi/com/sap/aii/mapping/api/DynamicConfiguration.html
    Regards
    Chilla

  • BBM pack is activated by vodafone but i am unable to send and receive friend request.

    I am using BB9220 and Service provider is Vodafone. BBM pack is activated by vodafone but i am unable to send and receive friend request. EDGE is written in caps on top right of the screen but messenger is not working. kindly help me out. 

    sahilnayyar wrote:
    I am using BB9220 and Service provider is Vodafone. BBM pack is activated by vodafone but i am unable to send and receive friend request. EDGE is written in caps on top right of the screen but messenger is not working. kindly help me out. 
    Hello sahilnayyar,
    Please perform hard reset by pulling the battery while your BlackBerry is ON and reinsert again in a few seconds. Now try again to send or to received friend request/s. 
    Make sure the other user have sufficient BlackBerry data plan.
    Thanks.
    Good luck!
    Please thank those who help you by clicking the button.
    If your issue has been solved, please resolve it by marking "Accept as Solution"

  • When I activate my Firefox e-mail account using Yahoo, the response is "bad request" and I can't open my mail.

    I use Yahoo as my search engine...I use an e-mail account. When I activate the icon for mail..the response says "bad request". What is happening

    This issue can be caused by corrupted cookies.
    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"

  • Why would I be receiving texts on iPad,but now cannot send response from the iPad?

    Wondering why I am receiving texts on iPad, but now cannot send response from it.

    Have you tried resetting your iPad? Press on the Home and Power buttons and hold both down until the Silver Apple appears. Once the Home screen displays, try messaging again.
    Cheers,
    GB

  • I have 2 Company ipads. They were set up by someone who has left the company. His email address was deleted when he left - so we cannot send a recovery email request.  He connected both iPads to 'find my iphone' - and we cant locate his mobile! help!

    I have 2 Company ipads. They were set up by someone who has left the company. His email address was deleted when he left - so we cannot send a recovery email request.  He connected both iPads to 'find my iphone' - and we cant locate his mobile! help!

    If you have the original receipts, you can take them to an Apple Store and they may be able to remove the activation lock. A good lesson learned to have an employee clear a device when leaving.

Maybe you are looking for

  • What is GAP ANALYSIS

    dear all can u plz give a brief description on GAP anallysis

  • Printing documents on Linux

    We have a problem, we got reports mixed up. Sometimes documents get printed on a different printer then specified. This seem to be happening when the concurrent programs output is send to the server at exactly the same time. Is this a known issue? Ar

  • Captivate 8 - how do I export or publish to PDF?

    Captivate 8 - how do I export or publish to PDF?

  • Dark prints with PSE 10

    My prints look fine on my screen but print too dark.  I've spent time lowering the brightness on my iMac monitor, calibrating the monitor, tried every combination of Photoshop managing the print, the printer (Epson1900) managing printing, Adobe 1998,

  • Stalls out during backup

    I am having problems trying to backup my 9700. Whenever I try to do a backup, it seems to stall out about halfway through the status bar. I have even tried letting it run overnight & it still won't finish the backup. Is this normal?   I am running th