Passing parameters to servlet via POST

Hi everyone,
I'm using OAS 4.0.8.2 and I need to send parameters to a servlet via POST (html form), the form tag must be something like:
<form action="MyServlet?param1=x&param2=y method="POST">
but in MyServlet.doPost method the parameters (param1 and param2) are empty.
Anyone know if this is an OAS bug or a bad configuration of OAS?
thanks in advance
null

Hi,
I suggest you to use hidden fiels in your form to send param1 and param2 to the servlet.
Good luck...

Similar Messages

  • How to pass parameters to servlet with POST with  Business Service OSB

    Hi all.
    I am newby in OSB. I am trying to send some values through a POST call to a servlet. I know how to call the servlet with Business Service of type "Messaging Service". I send the parameters of type Text.
    I have tried several ways, but I don`t find the proper way yo do it. I have tried to insert the param into the body and into the header.
    The problem is that I don`t know exactly where to put them, I don`t know if it must be done in the header or in the boy. I neither don`t know if there is a common way to do this.
    Please, could you give me a good example of an insert activity to isert a post parameter inside the call?
    For example: now I am using this one:
    Expression => "accountType=test"
    Location => as first child of"
    XPATH => empty.
    In variable => body.
    Where do I have to insert this, in the body or in the outbounds?
    I have followed this posts:
    https://blogs.oracle.com/jeffdavies/entry/enhanced_rest_support_in_oracl
    http://www.yenlo.nl/en/using-osb-with-rest/
    Thanks a lot.

    Hi,
    Please be carefull about passing values such as Strings or number that contains ',' .
    using the way described above.
    the best way is to pass an ID and then use a select Statement to get the other Values in the target page.
    regards
    MDK.

  • Passing parameters to FMX via windows CMD

    Hi, all!
    is it possible to run a form from windows command line and pass some specific parameters to that form?
    for example,
    start_form.bat[
    c:\orawin95\bin\ifrun60.exe module=myForm *<pass parameters syntax>* userid=user1/user1_pass@oraInst
    Next command showing info about using ifrun60 and I think that passing parameters to a form is not provided.
    ifrun60 ?
    Thanx

    I can not change the code of the form because it is a part of the banking system, purchased from the developer (mainly this form called from reports menu using CALL_FORM). Parameter, of course, there is, otherwise I would not ask the question.
    Arun, you were right!
    Yesterday's attempt to run the form failed, because perhaps I was mistaken in the name of the parameter form (case sensitive, I was taped in lower case).
    So, result:
    there are parameter named MST_MNEMO, and
    ifrun60 module=MS_REPORTS mst_mnemo=TAX_REPORT
    works as I expected, consequently, in the form you can pass any option that name is different from the parameters of IFUN60. ;)
    Thanks to all.
    Edited by: just me on 20.11.2009 9:58

  • Methods of passing parameters from servlets to servlets

    Hi all,
    Im new to Java servlets. After doing some read-up, I understand that parameters can be passed using request.getSession().setAttribute(). The other method is using hidden element as shown below:
    out.println("<form method=POST>");
    out.println("<center>");
    out.println("<input type=submit value=Next>");
    out.println("</center>");
    out.println("<input type=hidden name=passpage value=" + passpage + ">");
    out.println("</form>)");I just want to find whether there is other alternatives and is there any security implications of using hidden element? Any advice will be much appreciated.
    Regards

    HttpServletRequest#setAttribute() is commonly be used to set some object references inside a Servlet before forwarding the request to a JSP. In the JSP you can access it using EL.
    E.g. in a Servlet:String foo = "bar";
    request.setAttribute("name", foo);
    request.getRequestDispatcher("page.jsp").forward(request, response);and in page.jsp:${name} <!-- prints 'bar' -->which only works if you use Servlet 2.4/JSP 2.0. If older, then use JSTL:<c:out value="${name}" /> <!-- prints 'bar' -->HttpServletRequest#getParameter() is commonly used to retrieve parameters from the request. Those parameters can either be set using a query string (e.g. http://foo.com/page.jsp?name1=value1&name2=value2&name3=value3) or by submitting a form with any input fields.
    Having said that, HTML code belongs in a JSP file, not in a Java class. I highly recommend you to reconsider your design.

  • Call a Servlet via POST from a Stand alone Java App

    Hi guys.
    Right now I am facing a tricky problem I hope you can help me on this...
    What I want to do is to call a servlet that is listening ( I can't touch the servlet code) in a web browser.
    I was able to send a GET request by a code like this:
    URLConnection conn = new URL(webServerStr).openConnection();
    conn.setDoOutput(true);
    OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());
    wr.write(webServerStr);
    wr.flush();
    and everthig was all right.
    The problem arises when I try to send a long REQUEST via my java app. I get a 414 HTTP error (414 - Request-URI Too Large ). When I do the long request by browser works fine. (when I fill all the form and press the submit button)
    The only difference between the browser request and my java request is the ACTION. From the FORM is POST and when I build the string to send it out to the web server is via GET ( I build the string like ?ATTR=VALUE&ATTR2=VALUE2....)
    Here is my question. How I do a POST request from a java application?
    Any ideas?
    Thaks guys and any help will be appreciate.

    URL url = new URL("http://localhost:8080/");
    HttpURLConnection con = (HttpURLConnection)url.openConnection();           
    con.setStuff(...............................check out api
    con.setDoOutput(true);
    con.connect();
    // write stuff
    PrintWriter pw = new PrintWriter(con.getOutputStream());
    pw.println(depart);
    pw.flush();
    pw.close();
    // read reply
    BufferedReader br = new BufferedReader(new InputStreamReader(con.getInputStream()));
    String res = br.readLine();

  • Fail to pass parameters to subreports via VB6 application

    Hi everybody,
    I'm a newbie here and I need to view a report (CR10) via a VB6 application where you enter the report's parameters. The report has subreports where its parameters are linked to the main report's ones.
    The application works properly on the development computer but doesn't work on the client computer (Crystal Reports 10 is not installed on it). In fact, the "Enter Parameter Value" message box appears and wants me to enter the parameters manually.
    For reports without subreports, it works nicely.
    How can I do to fix this problem ?
    I really need your help.
    Thank you
    Delphine

    Hello, Delphine;
    If the parameters are linked to the main report they should pass correctly.
    Linked parameters will fail if the database logon fails and the data they are linked to does not exist.
    Open the report in the Crystal Report designer. Go to Database|Set Datasource location.
    What is displayed for the properties of the main report database?
    For the subreport database?
    How do you pass the connection properties in code at runtime?
    Elaine

  • Can I pass parameter to BIP in POST mode?

    Hello,
    Can I pass parameters to BIP 11g instead in GET mode, in POST mode ?
    There is documentation for passing parameters in BIP via url?
    thanks, bye. R.

    hello
    Mr.BalusC
    you replyed me
    but
    my problem is
    i have one jsp page from there i navigate to jsf page
    now i want to forward the data from jsp page to jsf page
    and the data filled in the list while on page page load
    i mean
    first.jsp page
    =========
    <jsp:useBean id="login" class="com.nic.gis.geoampere.library.Login"
         scope="session" />
    <%
    if(login.getRole().equals("ADM")){
    String region= request.getParameter("region");
    String circle= request.getParameter("circle");
    String strparam = "region="+region+"&circle="+circle;
    login.setRegion(region);
    login.setCircle(circle);
    login.setParameters(strparam);
    %>
    i have data in bean Login
    now i want to use the data stored in Login bean
    but this Login in not mention in Faces config file
    from this login bean data
    i want to populate data in list as this page ( jsf page) (second page) initialize
    now give me some suggestion.
    can i use this bean in second jsf page and remember one thing i can not use form tag
    within first jsp page and can not pass with the url also.
    Edited by: DON on Nov 3, 2007 10:43 AM

  • Passing Parameters via Post Method from Webdynpro Java to a web application

    Hello Experts,
    I want to pass few parameters from a web dynpro application to an external web application.
    In order to achieve this, I am referring to the below thread:
    HTTP Post
    As mentioned in the thread, I am trying to create an additional Suspend Plug parameter (besides 'Url' of type String) with name 'postParams' and of type Map.
    But when I build my DC, I am getting the same error which most of the people in the thread have mentioned:
    Controller XXXCompInterfaceView [Suspend]: Outbound plug (of type 'Suspend') 'Suspend' may have at most two parameters: 'Url' of type 'string' and 'postParams' of type 'Map'.
    I am using SAP NetWeaver Developer Studio Version: 7.01.00
    Kindly suggest if this is the NWDS version issue or is it something else that I am missing out.
    Also, if it is the NWDS version issue please let me know the NWDS version that I can use to avoid this error.
    Any other suggestion/alternative approach to pass the parameters via POST method from webdynpro java to an external web application apart from the one which is mentioned in the above thread is most welcome.
    Thanks & Regards,
    Anurag

    Hi,
    This is purely a java approach, even you can try this for your requirement.
    There are two types of http calls synchronous call or Asynchronous call. So you have to choose the way to pass parameters in post method based on the http call.
    if it is synchronous means, collect all the values from users/parameters using UI element eg: form and pass all the values via form to the next page is nothing but your web application url.
    If it is Asynchronous  means, write a http client in java and integrate the same with your custom code and you can find an option for sending parameters in post method.
    here you go and find the way to implement Asynchronous  scenario,
    http://www.theserverside.com/news/1365153/HttpClient-and-FileUpload
    http://download.oracle.com/javase/tutorial/networking/urls/readingWriting.html
    http://digiassn.blogspot.com/2008/10/java-simple-httpurlconnection-example.html
    Thanks & Regards
    Rajesh A

  • Pass parameters via POST in WDPortalNavigation.navigateAbsolute method

    Hi,
    how can i pass parameters via POST method from WD Application using WDPortalNavigation.navigateAbsolute method
    Should i pass the parameters as part of the NavigationTarget URL or they should be passed via different parameter?
    Thanks,
    Yuly Roberman

    What is the procedure to pass parameters via POST using WebDynpro ?
    I am required to pass XML Data via POST.
    I have gone through the following :
    a) http://help.sap.com/saphelp_nw04/helpdata/en/9e/a073001903c9419592b14c2aa63669/content.htm
    b) Inter Navigation Application in Web Dynpro
    However, I could not find any reference to do the same via POST.
    Can anyone throw light on the same ?
    Best Regards,
    Subramanian V.

  • Pass URL parameters from BSP to WDA for ABAP (via Post   )

    Dear Gurus,/ Joerge,
    I am unable to post my Code here, but with the guidance provided by Joerge i am able to solve this
    i Have been through the Below thread
    Pass URL parameters from WD to BSP via Post
    Dear Gurus,
    "Since I am unable to Post new thread i am Continuing this thread, though this Issue has been
    " resolved,i need some more info on the following issue, Kindly guide me,
    I have gone through the below thread but left with no clue
    Pass URL parameters from WD to BSP via Post
    Here i have 2 Issues
    First one is --->
    " After pressing the Button I am calling this URL which is WDA for ABAP
          action="http://company/sap/bc/webdynpro/sap/zuser"> " I am calling WDA for ABAP URL here
    " Kindly guide me how to pass the Value
    Second one is -->
    " This value need to be passed to the URL above and
    " How to capture the Same in WINDOWINIT method of WDA for ABAP
    " And how to Capture this Value in Webdynpro INIT method
    "Here am using Form and method = post , I am removing this as it is causing some problem while posting
          action= my WDA For ABAP URL here " I am calling WDA for ABAP URL here
    " Kindly guide me how to pass the Value
    " This value need to be passed to the URL above and
    " How to capture the Same in WINDOWINIT method of WDA for ABAP
    Thanks and Regards
    Ramchander Rao.K

    Hi,
    let me see if I understand you well.
    BSP -
    You wrote the code for catching the user name in the event OnCreate, which means that you know who´s working with the BSP application when it starts.
    Somewhere you must have a button or something with text like "Call WDA application". When user presses the button, it triggers events OnInputProcessing. Here you must write the code for the cookie that "sends" the parameter(s), something like:
    CALL METHOD cl_bsp_server_side_cookie=>set_server_cookie
      EXPORTING
        name                  = 'MY_COOKIE'
        application_name      = 'ZUSER_NAME_GET'
        application_namespace = 'ZUSER_NAME_GET'
        username              =  sy-uname
        session_id            = 'SAME_FOR_ALL'
        data_value            = PAGE_DATA
        data_name             = 'PAGE_DATA'
        EXPIRY_TIME_REL       = 3600.
    you call then the URL for the WDA application.
    WDA -
    probably in method WDDOINIT of the component controller you´ll write the code for reading the "content" of the cookie:
    CALL METHOD cl_bsp_server_side_cookie=>get_server_cookie
      EXPORTING
        name                  = 'MY_COOKIE'
        application_name      = 'ZUSER_NAME_GET'
        application_namespace = 'ZUSER_NAME_GET'
        username              =  sy-uname
        session_id            = 'SAME_FOR_ALL'
        data_name             = 'PAGE_DATA'
    CHANGING
        data_value            = PAGE_DATA.
    read more about the cookies in SDN, because I am not sure if this is the correct example for transmiting values. I´ve used it in conjunction of instructions IMPORT and EXPORT for transmiting an internal table.
    if this is not working properly, then try with IMPORT TO MEMORY and EXPORT FROM MEMORY.

  • How to pass parameters/atrributes to Servlet from ALBPM

    HI Friends,
    I am invoking servlet from bpm using server configuration, i am able to invoke servlet, but not able to pass parameters dynamically,
    Also I like to receive response parameters/attributes from servlets?
    Can any body help me on this?
    Look forward for response.
    Cheers

    Some helpful Docs on the WebServer component for you:
    The WebServer component is used to send HTTP requests to an HTTP server and capture the responses. It supports HTTP methods GET and POST.
    The body of the HTTP response is available in the WebServer.response attribute (String).
    Note: This component is superseded by the Fuego.NetX.AdvancedWebServer component, which provides better performance and more functionality like support for proxies and for more HTTP methods (like PUT and DELETE).
    Example: Get Oracle's website home page and save it to a file.
    getFrom(WebServer, url : "http://oracle.com", args : null)
    binaryResponse = Binary(text: WebServer.response,
    encoding: "UTF8")
    BinaryFile.writeFromBinaryTo(data : binaryResponse,
    name : "/tmp/oracle_index.html",
    append : false)

  • Calling a new browser window with WD Abap and passing data via POST

    Hi there,
    does anybody know whether passing data via POST method is possible when opening a new browser window from within a Web Dynpro Component? In my case I use method IF_WD_WINDOW_MANAGER->CREATE_EXTERNAL_WINDOW for opening a new browser window. Now I want to pass a big amount of data which is only possible via POST method. How can I achieve that or is it not considered inside the Web Dynpro Framework?
    Kind regards,
    Albert

    Hi Priya,
    can you please explain a little bit more what you mean? I didn't get it..
    Kind regards,
    Albert

  • Parameters via POST using WebDynpro ?

    Hi all,
    I need to pass parameters between two web dynpro applications of length bigger than the limit that HTTP GET method allows.
    I'm thinking to use HTTP POST method or HTTP Session to share data.
    Anybody knows if web dynpro provides a way to handle this?
    Thanks in advance,
    Diego.

    Hello Diego,
    From where are you getting startup parameters initialy? Or are they hardcoded?
    More information about "transient attributes" https://media.sdn.sap.com/javadocs/NW04/SP9/ume/com/sap/security/api/IUser.html (methods getTransientAttribute and setTransientAttribute). The main feature of transient attributes is non-persistance. They are not stored.
    Best regards, Maksim Rashchynski.

  • Call Paje jsp passing parameters with method post

    How can I call a jsp page with outputlink, passing parameters with method post ?
    Ex: I need that the word "?pNumMensagem=#{currentRow["NumMensagem"]}" not was exposed when a call P0077_2.jsp.
    <h:outputLink binding="#{P0077.hyperlink1}" id="hyperlink1" target="t1" value = "#{facesContext.externalContext.requestContextPath}/faces/P0077_2.jsp?pNumMensagem=#{currentRow["NumMensagem"]}">
    <h:outputText binding="#{P0077.outputText14}" id="outputText14" value="#{currentRow['NumMensagem']}"/>
    </h:outputLink>
    Thanks.
    Heitor.

    Any body have an idea ?

  • How I can pass parameters by POST method?

    How I can pass parameters by POST method?
    I use URL Template iView. I checked Requested Method - POST, but when I started the iView the program says:"It's a GET method!"
    I use httpServletRequest.getMethod()in the program.
    Environment: EP6 SP2
    Thank's! 

    Hi Kremena,
    the OSS stands for "Online Service System" - service.sap.com - messages or directly: service.sap.com/message.
    Hope it helps
    Detlev

Maybe you are looking for

  • Not able to post material

    Hi, I am not able to post material in  MB1C.I am getting error,"posting only possible in periods 2002/11 and 2002/10 in company code ZVAN".  I have already done,OMS2 and OMS2.

  • Apps wont download from App Store when using iOS5

    iPhone 4 (verizon) (updated last week) ... Apps waiting in queue to update but a pop up comes up with;; "unable to download application - (((name))) could not be downloaded at this time" [Done] [Retry] Restarted device twice and no go !  The old vers

  • Is it possible to create table of contents without having paragraph style ?

    Hi all I have designed my magazine for school project in indesign including 20 pages ,now I wanted to make table of contents but I have difficultly to make I watched some tutorial online but it seems that I had to make paragraph style . actually I do

  • 0CO_OM_CCA_9 - Full update

    Hi, Is it possible to load this data source as a full update? In June I have done it for the last month (May) and current month ( June).This had worked. Now we have the requirement to load from the beginning of this year until July. But no data is co

  • Introduce a "Smooth Vectors" Tool to Photoshop

    Hi, Designers find the "Smooth Tool" extremely useful in Illustrator, which is very powerful and helps a lot with the designs. It would be very helpful if Adobe implemented that tool as well to the vectors' abilities in Photoshop. Currently the only