WHY? Request Parameters From Form are NULL

I have the following process, which by the way has been working successfully for months, until just recently.
1) User comes to JSP page to upload images through a form that has the <input type="file"> fields as well as <input type="hidden"> to hold a few essential values.
2) User submits form, form action attribute set to go to a Servlet
3) Servlet reads all request params and inserts the images into a database.
I have code to read in the images...I use classes from the org.apache.commons package.
I could only assume it was the servlet that was the problem, but doubted that because why would it work all these months than suddenly stop.
I set up a test html page with a form and had it go to a jsp page to read the request params and print them out. To my suprise they all had NULL values.
Which tells me that the params aren't being read from the form.
How could this be??
Here is some example code snippets from my test pages:
HTML PAGE
<html><body>
<form name="images" action="testing_operations.jsp" enctype="multipart/form-data" method="post">
<input type="hidden" name="Customer_Number" value="4750">
<table>
<tr><td>
<input type="file" name="image1" />
</td></tr>
<tr><td>
<input type="file" name="image2" />
</td></tr>
<tr><td>
<input type="submit" value="submit">
</td></tr>
</table>
</form>
</body>
</html>JSP PAGE
String cus = request.getParameter("Customer_Number");
out.println("cus : " + cus +"<br>");
String image = request.getParameter("image1");
out.println("image: " + image); 
I'm stumped...what am I doing wrong?
I can't continue until I get this figured out, can anybody help me with this?
Message was edited by:
Love2Java

I ran my original app with the enctype and without it:
the tomcat dos-prompt that shows exceptions lists out this below...
org.apache.commons.fileupload.FileUploadException: Processing of multipart/form-data request failed.
C:\jakarta-tomcat\temp\upload_00000009.tmp (The system cannot find the path specified)
at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:429)
at org.apache.jsp.testing_operations_jsp._jspService(testing_operations_jsp.java:113)The code on line 113 in testing_operations.jsp is:
List items = upload.parseRequest(request);
and what is this .tmp file its trying to find?? I'm passing it an image off my local disk, not a .tmp file, there isn't even a temp folder in my jakarta-tomcat main folder....
It is failing on this line because it isn't reading the request parameters sent in, thus why too when I test for the values of the params they return null.
True, when I take out the enctype my test page will show the values, but this doesn't help me. I need that enctype attribute in there to process the images sent in through the fields.
So where does this leave me??
I went to the apache site for the commons upload and they have a more current version than what I'm using which is version 1.0, they have 1.1.1
I downloaded the new version but had no success in using it, the compiler couldn't find a class I attempted to use.
I still don't understand how this could be working and then suddenly stop.

Similar Messages

  • Passing parameters from FORM to REPORT

    Hello All,
    How to pass parameters from a FORM to a REPORT in Oracle Application Server Portal.

    Vamsi, Are u capturing the imputs for these parameters in the form??
    If u are capturing them in the form, then u need to add them to a parameter list (TEXT_PARAMETER) and while calling the report u can send it as a parameter in the RUN_PRODUCT call.
    Pls check the syntax for adding parameters and calling report from form in the form builder help.

  • Passing Parameters from Forms to Discoverer

    Hello Everybody,
    Is there a way to pass parameters from Oracle Forms to discoverer 4??
    I want to call Discoverer from a Form and pass parameters to a sheet.
    Thanks

    Hi,
    I don't have 10g right now, so can't test it...
    Isn't it possible to just put the params you won't show to your users 'behind' other objects on the param form?
    Strange behaviour anyway, in 6i Reports does not seem to care wether the params are on the form or not.
    Rgds,
    Guido

  • How to pass parameters from Forms to Reports

    dear all,
    i'm running a report from a form using run_product(), now i want
    to pass a parameter from a form to report, say i want to display
    all the employees of deptno=10, so what parameter should i give
    in run_product() and what modifications should i make in the
    report???
    thanks and regards
    Tariq.

    Yeah,
    You can pass parameters to from form to report using
    Parameter list. E.g. You want to display all employees of Dept
    10.
    1. Create report with one user paramter say p_dept
    2. Now Using Parameter list and Run Product you can call report,
    see following procedure.
    /* This Procedure passes department number as a paramter to
    Report and displays Report.
    Author - Mr. Adinath R. Kamode
    Parameter - Deptname (p_dept)
    PROCEDURE CALL_REPORT (V_DEPT IN NUMBER)
              V_PLIST          PARAMLIST;               -
    - Parameter List and Name
              V_PLISTNAME           VARCHAR2
    (30) := 'RPTLIST';
    BEGIN
    -- Check existance of Parameter List
              V_PLIST := GET_PARAMETER_LIST(V_PLISTNAME);
              IF ID_NULL (V_PLIST) THEN
                   V_PLIST := CREATE_PARAMETER_LIST
    (V_PLISTNAME);
                   IF ID_NULL (V_PLIST) THEN
                             MESSAGE('Error in
    creating parameter list.');
                             MESSAGE('.');
                             RAISE
    FORM_TRIGGER_FAILURE;
                   END IF;
    -- Add parameter data , name must be same as in Report
         ADD_PARAMETER(V_PLIST,'P_DEPT',TEXT_PARAMETER,TO_CHAR
    (V_DEPT));     
    -- Don't display parameter Form
         ADD_PARAMETER(V_PLIST,'PARAMFORM',TEXT_PARAMETER,'NO');
    RUN_PRODUCT
    (REPORTS,'DEPT.RDF',ASYNCHRONOUS,RUNTIME,FILESYSTEM,V_PLIST,NULL)
    ELSE
              DESTROY_PARAMETER_LIST(V_PLIST);
    END IF;
    END;
    Adi

  • Extracting Request Parameters from a POST.

    A client is POSTING some request parameters as part of its POST request.
    My servlet is getting this as part of the getInputStream.
    The contents of the inputStream received is:
    username=someUserName&password=somePassword
    Now how do I extract this username and password which is in the Body
    of the POST?
    I am trying request.getParameter("username")
    but am not getting the value of the username.
    Can some please help me as to how to get the request parameters?
    Attached is my servlet
    public class DeviceLocation extends HttpServlet {
    private static final String CONTENT_TYPE = "text/html";
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    doPost(request,response);
    public void doPost(HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException {
    System.out.println("Servlet up and running...");
    InputStream requestInputStream = request.getInputStream();
    InputStreamReader isr = new InputStreamReader(requestInputStream);
    BufferedReader br = new BufferedReader(isr);
    String line = "";
    StringBuffer sb= new StringBuffer();
    while ((line = br.readLine()) != null)
    sb.append(line);
    br.close();
    System.out.println(sb.toString()); // display the input Stream
    // Display all the Request Parameters
    System.out.println("Request Method : " + request.getMethod());
    System.out.println("Host : " + request.getHeader("Host"));
    System.out.println("User Agent : " + request.getHeader("User-Agent"));
    } // End of servlet class.

    try doing it without reading in the requestInputStream first:
    public class DeviceLocation extends HttpServlet {
    private static final String CONTENT_TYPE = "text/html";
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    doPost(request,response);
    public void doPost(HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException {
    System.out.println("Servlet up and running...");
    // Display all the Request Parameters
    System.out.println("username Parameter : " + request.getParameter("username"));
    System.out.println("Request Method : " + request.getMethod());
    System.out.println("Host : " + request.getHeader("Host"));
    System.out.println("User Agent : " + request.getHeader("User-Agent"));
    } // End of servlet class.

  • Passing values as parameters from forms

    We are trying to use the On successful submission of a form area to forward to a report based on a value entered on the form.
    Is there a way to use a value from the form in the url?

    Here is the code I used. The code in bold allowed me to use the value entered on the form as a parameter for the report I am forwarding to.
    declare
    bidder_id number := 0;
    blk varchar2(10) := 'DEFAULT';
    begin
    bidder_id := p_session.get_value_as_number(p_block_name => blk,
    p_attribute_name => 'A_BIDDER_ID');
    go('PBR.SUM_REG_INFO.show?p_arg_names=pbr_bidder.bidder_id&p_arg_values='||bidder_id);
    end;

  • How to Pass User-defined Parameters from Forms to Reports

    Hi!I am trying to launch an existing report from a form then spool it into a PDF file. I have been successful in passing the report properties using SET_REPORT_OBJECT_PROPERTY built-in and I am also able to launch the report using RUN_REPORT_OBJECT built-in. My problem is, I cannot seem to pass the user defined parameters from my form to the report eventhough I am using the same variable names.
    this is a part of my code:
    repid := Find_Report_Object('ACPPRACS');
    Set_Report_Object_Property(repid, REPORT_EXECUTION_MODE,BATCH);
    Set_Report_Object_Property(repid, REPORT_DESTYPE,FILE);
    Set_Report_Object_Property(repid, REPORT_DESNAME,'C:\TMP\ACS01.PDF');
    Set_Report_Object_Property(repid, REPORT_DESFORMAT,'PDF');
    Set_Report_Object_Property(repid, REPORT_OTHER,'PF_NBO_CD='&#0124; &#0124;'"'&#0124; &#0124;:acs.nbo&#0124; &#0124;'"');
    v_rep := RUN_REPORT_OBJECT(repid);
    Hope you can help me soon. Thanks!

    first of all u will create a paramlist
    then add_paramter to this list
    and then pass this list to the report
    by using run_product.
    i think this is all.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jenny ([email protected]):
    Hi!I am trying to launch an existing report from a form then spool it into a PDF file. I have been successful in passing the report properties using SET_REPORT_OBJECT_PROPERTY built-in and I am also able to launch the report using RUN_REPORT_OBJECT built-in. My problem is, I cannot seem to pass the user defined parameters from my form to the report eventhough I am using the same variable names.
    this is a part of my code:
    repid := Find_Report_Object('ACPPRACS');
    Set_Report_Object_Property(repid, REPORT_EXECUTION_MODE,BATCH);
    Set_Report_Object_Property(repid, REPORT_DESTYPE,FILE);
    Set_Report_Object_Property(repid, REPORT_DESNAME,'C:\TMP\ACS01.PDF');
    Set_Report_Object_Property(repid, REPORT_DESFORMAT,'PDF');
    Set_Report_Object_Property(repid, REPORT_OTHER,'PF_NBO_CD='| |'"'| |:acs.nbo| |'"');
    v_rep := RUN_REPORT_OBJECT(repid);
    Hope you can help me soon. Thanks!<HR></BLOCKQUOTE>
    null

  • New infotypes from form are displaying in black font instead of red

    Good day,
    I recently created a new form where a manager can submit a form to change their employee's work schdule infotypes in MSS.
    The form can be successfully processed through workflow and the new infotypes from the form are populated in PA40 when executing the corresponding PA40 action.
    The issue is, for all other forms when a new infotype is pulled into PA40 in SAP ECC the data is displayed in red font (making it easy for the data processor to see which feilds have been updated by processing the form). For my new form, the data is successfully pulling in but the font is black.
    How do I change the font of the new infotypes to pull in as red instead of black? Is there a setting/config somewhere that I have missed?
    Thanks,
    Christine

    Hello,
    Is this a workflow question? If not, you may get a quicker and better answer in another SDN forum.
    regards
    Rick Bakker
    hanabi technology

  • Calling report user parameters from forms

    If I run the report from report builder, it will prompt me the user parameters for input, however if I create a mouse click trigger in a form to call the report, the parameters won't prompt, how can I make it prompt ?
    I want to create a text field on the form for user to input the user parameter values.
    thanks.

    create a text-field or drop-down or what ever object that you want to in the form ...
    and then use run_report_object to run the report by passing parameters from your form (from the text field or drop-down) to the report..

  • Accessing Request Parameters from ActionRequest with form/multipart

    Hi,
    I have a weblogic producer portlet which has form enctype="multipart/form-data". Now although I have correctly set the action according to JSR 168 standards like:
    <form name="Checkin" method="POST" enctype="multipart/form-data"
    action='<abcportlet:createURI><abcportlet:URIAction value="active.document.doUpdate"/></abcportlet:createURI>'>
    but in my processAction method, I am not able to retrive the action parameter. Infact actionRequest's getParameter returned null.
    On further investigation, I found that this is occurring due to enctype and some solutions suggested to use commons file upload. I have used the commons upload and retrieve the parameters but am not able to retrieve the action parameters that is embedded in wsrp-interactionState.
    Is there any way of how I can get hold of the portlet action parameter?
    Thanks,
    Ansuman
    Edited by: anshuman.roy on Dec 11, 2008 10:18 AM

    Hello Ansuman,
    Unfortunately, you have found a bug in WLP's implementation of the JSR168 form decoding- there is no way for you to get the form parameters and the action parameters at the same time. We already have a fix for the next version of WLP- if you open a support case to get a patch issued, please refer to CL (not CR) 1169718. If you would like for me to open a change request for you, which might speed up the support process, please let me know what version of WLP you are using.
    Kevin

  • How to call view requests window from forms

    I have a custom form in which i am running a concurrent program using FND_REQUEST.SUBMIT_REQUEST. after I submit the request, I manually go to the view -> requests -> viewoutput to see the report output. Is there any function which can be used in the form to skip this manual step and go directly to the view requests screen?

    Hi,
    You can use fnd_function.execute to open any form from another form. For instance, using fnd_function.execute('FND_FNDCPQCR') should open the Requests form. You can play with the parameters of the form (or use a different function) until you get what you actually need.
    Hope it helps.

  • Passing parameters from Forms to Reports - Unhandled exception error

    Hi there,
    I am passing parammeters to my Reports through Forms. I am using the built-in RUN_REPORT_OBJECT to invoke and run my report.
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    BEGIN
    repid := FIND_REPORT_OBJECT('MY_REPORT');
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_OTHER,
    'p1='&#0124; &#0124;to_char(:block.p1_field)&#0124; &#0124;
    ' p2='&#0124; &#0124;to_char(:block.p2_field)&#0124; &#0124;
    ' p3='&#0124; &#0124;to_char(:block.p3_field)&#0124; &#0124;
    ' paramfrom=no');
    v_rep := RUN_REPORT_OBJECT(repid);
    EXIT_FORM;
    END;
    In one of my reports, after the report was invoked on the previewer window and I closed it, an unhandled exception error message appears.
    Are there any restrictions on the length of REPORT_OTHER parameters/value, as in this form, there are quite a number of parameters set to passed into the reports?
    I did not encounter this problem when running the report using the default REPORTS PARAMETER FORM to pass in the parameter. It is only when I pass in through FORMS using SET_REPORT_OBJECT_PROPERTY, then the error appears.
    I did not encounter this error with other reports which have little parameters.
    Regards,
    Hon Koat

    Pang,
    Not sure it this will make the problem go away, but you could try to send the parameters in a parameter list, instead of setting the REPORT_OTHER values.
    The syntax is the same you use to pass parameter list from one form to another:
    declare
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    v_list paramlist;
    c_listname constant varchar2(30) := 'my_list';
    begin
    repid := FIND_REPORT_OBJECT('MY_REPORT');
    v_list := get_parameter_list(c_listname);
    if not id_null(v_list) then
    destroy_parameter_list(v_list);
    end if;
    v_list := create_parameter_list(c_listname);
    add_parameter(v_list, 'P1', text_parameter, to_char(:block.p1_field));
    add_parameter(v_list, 'P2', text_parameter, to_char(:block.p2_field));
    v_rep := RUN_REPORT_OBJECT(repid, v_list);
    end;Hope this solves your problem,
    Pedro

  • Error in passing parameters from Form to Report

    Hi All
    I am using 9ids
    I want to run report from a form
    From one procedure as
    vc_runformat:= 'htmlcss'; vc_reportserver:=:Global.repsrv;
    set_report_object_property(rep_id,REPORT_EXECUTION_MODE,BATCH);
    set_report_object_property(rep_id,REPORT_COMM_MODE,SYNCHRONOUS);
    set_report_object_property(rep_id,REPORT_DESTYPE,CACHE);
    set_report_object_property(rep_id,REPORT_DESFORMAT,vc_runformat);
    set_report_object_property(rep_id,REPORT_SERVER,vc_reportserver);
    set_report_object_property(rep_id,REPORT_OTHER,'comp_code='||:global.vc_comp_code||' vc_name='||cust_name||' inv='||inv||' invoice_no='||inv_no||' invoice_date='||inv_dt||' Paramform=no');
    vc_reportserverjob:=RUN_Report_Object(rep_id);
    vjob_id:=substr(vc_reportserverjob,length(vc_reportserver)+2,length(vc_reportserverjob));
    vc_rep_status :=REPORT_OBJECT_STATUS(vc_reportserverjob);
    if vc_rep_status='FINISHED' then
    web.show_document('/reports/rwservlet/getjobid'||vjob_id||'?
    server='||vc_reportserver,'_blank');
    else
    set_alert_property('alert_ok',alert_message_text,'Report failed with error message '||vc_rep_status||' !');
    al:=show_alert('alert_ok');
    end if;
    END;
    Report does not run
    now what i have found while rnd that
    when i pass a lot of userdefined argument
    it gives error.
    and if passed one,two,three userdefined argument than it works.
    in this example only
    when i passed
    inv='10016'
    dt='06-09-2003'
    inv_no='010016'
    comp_code='01'
    vc_name='PRODIMPEX'
    with these reports run fines but
    when i increase name data with one caharacter also it gives error
    say
    vc_name='PRODIMPEXR'
    report does not run.
    vc_name in report has character type with length 100
    but a lot of argument is to be passed more.
    I have also checked variable length. its fine
    i think there would be some setting in some report system file having the length of parameters
    which can be passed.
    please help me if u know this.
    thanks in advance

    Hi,
    this sounds familiar. Didn't you post exactly the same question a couple of weeks ago ? Don't remember what I replied to you, possibly to use varchar2 instead of character and give it a try. If this doesn't work, I remember that there is a way to use serverside command files for common parameters that needs to be passed. At least I can not find any bug filed against this. If the behavior doesn't change to teh better I therefore suggest to talk to customer support and file a bug.
    Frank

  • Passing Parameters from Forms to Reports

    I created a report and a form. Create a param list. I'm trying to pass the parameters to the report when I'm doing run_product. The report comes up with the parameter screen.
    My problem is, as I am passing all the values what I need from the form, my report query should automatically query against these parameters and bring me the result.
    For example form is passing dept 49. My report should not display a parameter form asking me to type the dept number. It should take dept 49 in it's where clause for the query and return the result set.
    Can any one give me some suggestions ASAP. Very urgent.
    Thanks in advance.
    Asha

    ugandhar,
    please start looking at Run_Report_Object as using Run_Product to run Reports is desupported in Forms9i
    Frank

  • Passing Parameters from Forms to package

    I want to pass parameters to a package .The package inserts records into 10 tables.on click of a button in my form it should insert the record.it should display a conformation message. I need a solution.
    Kaimal Prasad.T

    Hi,
    I don't have 10g right now, so can't test it...
    Isn't it possible to just put the params you won't show to your users 'behind' other objects on the param form?
    Strange behaviour anyway, in 6i Reports does not seem to care wether the params are on the form or not.
    Rgds,
    Guido

Maybe you are looking for

  • 2 Shopping Cart items with same item number

    Hi experts, We are facing a problem I never heared before : a shopping cart has been created with total of 51 items in SRM but some of them have the same item number in BBP_PD (2 items nr 16, 17...). For example, the 2 items nr 16 have a different Gu

  • APPS Adapter (ESB) error while reading standard business event

    Hi, I tested the sample services on TEST (myhost:7780) to consume the standard business event (oracle.apps.ar.hz.PartySite.create). Following exceptions are logged in j2ee log files (Section-1). The business event message is also rejected (see sectio

  • How describe model data and  get select in DB throw topLink.

    Hello, I have table from code create table t_tree id int primary key, parent_id int, value varchar2(255) Alter table t_tree add constraint constr_id_parent foreign key (parent_id) references t_tree (id) I must get query select level as lv,lpad('-@-',

  • Firefox won't run once I download it

    I went on the Mozilla website to download Firefox. I clicked "Run" on the popup box and it downloaded. I then clicked "Run" again to begin installation, and nothing happened. The little box went away, and there's no Mozilla files on my computer. I tr

  • How to make a simple polynomial calculating component

    Hi all, I am looking for a component which could calculate a polynomial formula like shown in the attached picture. I think I must make my own component but I don't know how to do that. Best, Antoine Attachments: component.jpg ‏23 KB