Problem in reading the form parameter.

Hi All,
I have made a HTML with Following Tag
<form name="uploadForm" action="upload.jsp" enctype="multipart/form-data" method="post">
as i made the enctype="multipart/form-data" i am not able to read the Form parameter that i got in the File tag of the HTML page.
Task is to :
Upload 4 images from the HTML page and the uploading Code is present in the JSP that has to read the File name and Upload the Images.
While making request.getParameter("File1");
Dosen't work here.
can Any one provide the Solution for that.
regards

Hello Ankur,
If you make a 'where used list' on this function, you will see that this parameter is never used in the standard. You will always see something like :
CALL FUNCTION 'CRM_SCHEDLIN_CONVERT_TZTF_IO'                  
EXPORTING
IV_FROM_TIME     = LS_SCHEDLIN_WRK-FROM_TIME        
IV_FROM_TIMEZONE = LS_SCHEDLIN_WRK-FROM_TIMEZONE    
IV_TO_TIME       = LS_SCHEDLIN_WRK-TO_TIME          
IV_TO_TIMEZONE   = LS_SCHEDLIN_WRK-TO_TIMEZONE      
IMPORTING
EV_FROM_IO       = LS_SCHEDLIN_WRK-FROM_TIME_IO     
EV_TO_IO         = LS_SCHEDLIN_WRK-TO_TIME_IO.  
So I think you can do the same.
Regards,
Frédéric

Similar Messages

  • Problem in reading the FROM_TIME from CRMD_SCHEDLIN

    HI ,
    I have problem in reading the dates from the table CRMD_SCHEDLIN .
    what I have noticed is that if the date is stored  as 2004.11.14 23:00:00 then in the display of the sales order Tx-CRMD_BUS2000115 the date is shown as one plus the date stored ie  in this case the date will be shown as 2004.11.15  but in some cases it is shown as same .
    So I am not able make a clear distinction when to show this date as stored and when to add one more to this date while showing the dates for each items.
    It would be nice if some one can advise me on some FM  which can read these dates correctly as shown in the TX CRMD_BUS2000115.
    Thanks  in advance .
    Regards,
    Ankur

    Hello Ankur,
    If you make a 'where used list' on this function, you will see that this parameter is never used in the standard. You will always see something like :
    CALL FUNCTION 'CRM_SCHEDLIN_CONVERT_TZTF_IO'                  
    EXPORTING
    IV_FROM_TIME     = LS_SCHEDLIN_WRK-FROM_TIME        
    IV_FROM_TIMEZONE = LS_SCHEDLIN_WRK-FROM_TIMEZONE    
    IV_TO_TIME       = LS_SCHEDLIN_WRK-TO_TIME          
    IV_TO_TIMEZONE   = LS_SCHEDLIN_WRK-TO_TIMEZONE      
    IMPORTING
    EV_FROM_IO       = LS_SCHEDLIN_WRK-FROM_TIME_IO     
    EV_TO_IO         = LS_SCHEDLIN_WRK-TO_TIME_IO.  
    So I think you can do the same.
    Regards,
    Frédéric

  • I have had my apple tv 2 for about 3 months which work perfectly fine when I use it with my iPad 3 ー all of the sudden I get the HDCP Error!  I read the forms and done everything!  Apple I name a loyal customer, please come out with an update soon!

    I have had my apple tv 2 for about 3 months which work perfectly fine when I use it with my iPad 3 ー all of the sudden I get the HDCP Error!  I read the forms and done everything!  Apple I name a loyal customer, please come out with an update soon!

    That's one of the weird things.. it recognizes it maybe 10% of the time. And usually, only after I do the two-button reset. Problem is.. since it won't charge above 2%, anytime I try to do a restore or anything like that using iTunes, my device shuts off and I lose whatever progress I'd made.
    So, an update... after reading through a bunch of similar complaints (there are literally 1000's of them so there's NO WAY this isn't somehow ios7 related, thanks a lot APPLE ) I decided to try a restore in recovery mode. After 3 hours and several disconnections... I ended up having to just set it up as a new iPad, as the restore did nothing. Weirdly though... as I was doing the restore in recovery mode.. I noticed I'd gotten up to a 10% charge.. higher than it's been since September, so after setting it up as a new device, I turned it off and plugged it in using the wall charger. 2 hours later and I was up to 38%. Still not great, as my iPad, before ios7 could've fully charged twice in the amount of time it took for me to now get 28% more of a charge. And that's with a fully cleaned out device.. so that really ***** and I'm now more confused than ever.
    But I'm gonna leave it overnight charging and see what I come up with tomorrow. Sadly, when I paid $600 for it in February, I never expected to have to play "wait and see" with it...

  • Problem in reading the JDK1.4Logger configuration file from java prog

    I have written a java program and want to log the messages in a log file , I'm using commons logging with JDK1.4logger as logging subsystem .
    I am facing the problem in reading the JDK1.4Logger configuration file which is commons-logging .properties file from my java program as a result my log messages are appearing directly on the screen while I try to run program , during compilation no error is shown . I have tried to set java.util.logging.config.file ="Path of my commons-logging .properties file " by setting system properties also.
    Please suggest the appropriate solution for this .

    Some webservers won't recognise the resource bundle provided in message-resources
    In that case, you need to specify that resource bundle information in web.xml at the time of specifying the action servlet like this. Check for the init-param application.
    <servlet>
        <servlet-name>action</servlet-name>
        <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
        <init-param>
          <param-name>application</param-name>
          <param-value>resource.ApplicationResource</param-value>
        </init-param>
        <init-param>
          <param-name>config</param-name>
          <param-value>/WEB-INF/struts-config.xml</param-value>
        </init-param>
        <init-param>
          <param-name>debug</param-name>
          <param-value>2</param-value>
        </init-param>
        <init-param>
          <param-name>detail</param-name>
          <param-value>2</param-value>
        </init-param>
        <init-param>
          <param-name>validate</param-name>
          <param-value>true</param-value>
        </init-param>
        <load-on-startup>2</load-on-startup>
      </servlet>In this, the drawback is, you can not specify the key for your resource bundle. In the JSP, you have to access the property like this.
    <bean:message key="label.fName"/>

  • Reading the form as XML, using WDJ

    Hello.
    I'm using WD for Java and ZCI layout.
    I've seen this thread-
    Re: Data in dynamic table not pass to webdynpro java
    about getting data from tables in the form by reading the form's XML data.
    I tried to search for a method to get the XML in IWDInteractiveForm, and other classes, but I didn't find anything.
    So how can I get the form's XML when the user clicks Submit?
    Best regards,
    Arik.

    Hi Kathy
    After loading a form over XML, we made the experince that in matrices link buttons will not appear everwehere they should. It's a tricky part and we made a work around by changing the columns order and then...the Link Buttons came up ok.
    regards
    Kurt

  • Problem of reading the content of this .txt files

    currently i have a problem of reading the content of this file castle.txt
    #Server Ready.
    Lee Siaw Kang 50256808:08:382004/03/15Abdul Rahman 60296008:13:242004/03/15Kenneth Lee 60299308:13:532004/03/15Ho Kid Peng 31337508:17:442004/03/15Tonny Sherbern 50271108:19:132004/03/15Frederick Foh 50257908:20:212004/03/15Jason Kho 61702908:21:312004/03/15Lois Lee Liarn Huee 61897408:22:522004/03/15Victor Palau Udih 31337308:23:202004/03/15Michelle Sim 61899008:27:412004/03/15Alan Hong 50262708:30:312004/03/15Frederick Foh 50257908:33:412004/03/15Douglas Aseng 50255808:36:442004/03/15Atika Abang 31347508:36:592004/03/15David Dzrandinuraidi 61239608:38:012004/03/15Sentia Brangking 61896808:39:502004/03/15Dinah Samuel 61704608:40:582004/03/15Dr. Anderson Tiong 61702508:42:102004/03
    it is something like this ...i want to break it into readable format ...i have tried vector with is the following code.
    import java.util.*;
    import java.io.*;
    public class parseCastle {
    public static Vector parseInfo(String str) {
    int recordSize = 59;
    Vector v = new Vector();
    for (int i=0; i<str.length(); i+=recordSize) {
    String str1 = str.substring(i, i+recordSize);
    Vector vi = new Vector();
    vi.addElement(str1.substring(0, 35));
    vi.addElement(str1.substring(35, 41));
    vi.addElement(str1.substring(41, 49));
    vi.addElement(str1.substring(49, 59));
    v.addElement(vi);
    return v;
    //constructor
    parseCastle(){
    try
    FileInputStream fin = new FileInputStream("castle.txt");
    File fprop = new File("castle.txt");
    byte[] data = new byte[(int)fprop.length()];
    int total = fin.read(data);
    if (total != data.length) {
    System.err.println("Error loading file");
    return;
    //System.out.println(data.length);
    Vector v = parseInfo(new String(data));
    for (int i=0; i<v.size(); i++) {
    Vector vi = (Vector)v.elementAt(i);
    for (Enumeration e = vi.elements(); e.hasMoreElements();)
    System.out.println(e.nextElement());
    System.out.println();
    //*** Alternative ***
    //for (int k=0; k<vi.size(); k++)
    // System.out.println(vi.elementAt(k));
    catch (IOException e)
         System.out.println("Error: "+e);
         e.printStackTrace();
    But it gave me error. like it exceeds array boundary...can someone expert help me out

    You should be aware that these kind of effort always involves certain amount of risk because the proper record format is not hundred percent guaranteed. So, make sure to use properly formatted file, or genuine database instead.
    import java.io.*;
    import java.util.regex.*;
    public class ParseCastle2{
      public static void main(String[] args) throws Exception{
        String line, data;
        BufferedReader br = new BufferedReader(new FileReader("castle.txt"));
        br.readLine(); //discard #Server Ready line
        line = br.readLine();
        Pattern pat = Pattern.compile("([ .A-Za-z]+)([/0-9:]+)");
        Matcher mat = pat.matcher(line);
        Pattern subPat = Pattern.compile("(\\d+):(\\d\\d:\\d\\d)(.+)");
        while (mat.find()){
          System.out.println(mat.group()); // if name only, use group(1) ... beware trailing space
          data = mat.group(2);
          Matcher subMat = subPat.matcher(data);
          while (subMat.find()){
            System.out.println(" cdID = " + subMat.group(1));
            System.out.println(" Time = " + subMat.group(2));
            System.out.println(" Date = " + subMat.group(3));

  • Problem in submiting the form onchange of html:select

    I am using WSAD 5.0 and working on a small application with struts.
    I have following code where I want to submit the form if user selects any option from the list. Problem is when i select any option it is giving error that this property is not supported. Following is my code
    <html:form action="/NewUserAction1">
    <tr>
                   <td>
                        <font color="Blue">
                             <b><bean:message key="NewUser1.CountryName" /></b>
                        </font>*
                   </td>
                   <td>
                        <html:select property="state" onchange="submit();">
                             <html:option value="default">select state</html:option>
                             <html:option value="bangalore">Bangalore</html:option>
                             <html:option value="delhi">Delhi</html:option>
                        </html:select>
                   </td>
              </tr>
         </html:form>
    Please help me someone why i am not able to submit the form on onchange event of <html:select>
    Thanks.

    I got the solution :)
    Finally I figured out that
    by default, struts gives <html:submit/> tags a name of
    "submit". Thus there was a namespace collision in the
    form object, with the submit button overriding the
    form's submit method. I fixed the problem by changing
    the name of the submit button. Something like this
    works great:
    <html:submit property="submitPage">
                        <bean:message key="NewUse1.Submit"/>
                   </html:submit></td>
    Now i am able to submit the form.
    Thanks alot.

  • Facing Problem While Opening the Form Builder 10g

    Hi Experts,
    I am Facing below Error while opening one of the developed forms in the form builder 10g. Operating system of my laptop is Window 7.
    Oracle Forms Designer Has stopped Working
    Windows can check online for a solution to the problem.
    ---> Check online for a solution and close the program
    ----> close the program
    Please provide any tips or solutions to resolve above Error.
    Thanks in advance

    Meher Irk wrote:
    Hi Experts,
    I am Facing below Error while opening one of the developed forms in the form builder 10g. Operating system of my laptop is Window 7.
    Oracle Forms Designer Has stopped Working
    Windows can check online for a solution to the problem.
    ---> Check online for a solution and close the program
    ----> close the program
    Try this..
    Open form builder.
    Make connection with database.
    Now open the form.
    Hope this works..

  • Problems with Submitting the form

    Hey Guys,
    I have a form with 7 different fields. my form is connected with the database. once the user fills out the information and clicks on submit the entry should be saved in the database.
    Everything is working fine. i can establish connection with the database. my only problem is that when i click on submit its not adding the entry in the database. I think i have problems with this command
    <form method = "post" > . Any helpo will be really appreciated. I am posting some part of the code.
    <%!
      public void jspInit() {
        try {
          Class.forName("org.apache.derby.jdbc.ClientDriver");
          System.out.println("JDBC driver loaded");
        catch (ClassNotFoundException e) {
          System.out.println(e.toString());
    <body>
    <%
    String name, unit, title, supervisor, region, dept, date;
    %>
    <p align="center"><b><font size="5" face="Arial">LOGIN REQUEST FORM </font></b>
    <form method="POST">
    <p align="left"><b><font size="2">                           
         </b>Name:<b> <input type="text" name="name" size="20">   </b>Title   <b>
         <input type="text" name="title" size="20">         </b> Dept <b>         
         <input type="text" name="dept" size="20"></b></font></p>
         <p align="left"><font size="2"><b>                 
         </b>Supervisor: <b> <input type="text" name="supervisor" size="20"> </b>Region<b> 
         <input type="text" name="region" size="20">  </b>Business Unit<b>
         <input type="text" name="unit" size="20"></b></font></p>
         <p align="left"><font size="2"><b>              </b>
         Effective Date:<b> <input type="text" name="date" size="20"></b></font></p>
         <input type = "reset">
         <input type = "submit">
         <%
         name = request.getParameter("name");
         unit = request.getParameter("unit");
         title = request.getParameter("title");
         supervisor = request.getParameter("supervisor");
         region = request.getParameter("region");
         dept = request.getParameter("dept");
         date = request.getParameter("date");
         boolean error = false;
         String message = null;
         try {
              Connection con = DriverManager.getConnection("jdbc:derby://localhost:1527/sample");
              System.out.println("Connection Established");
              Statement s = con.createStatement();
              String sql = "SELECT name FROM users" +
              "WHERE name='" + name + "'";
              ResultSet rs = s.executeQuery(sql);
              if(rs.next()) {
                   rs.close();
                   message = "The username <B>" + encodeHtmlTag(name) + "</B> has already been taken. Please select another name.";
                   error = true;
              else {
                   rs.close();
                   sql = "INSERT INTO user" +
                   "(name, unit, title, supervisor, region, dept, date)" +
                   "VALUES" +
                   "('" + name + "'," + " '" + unit + "'," + " '" + title + "'," + " '" + supervisor + "',"
                   + " '" + region + "'," + " '" + dept + "'," + " '" + date + "')";
                   int i = s.executeUpdate(sql);
                   if(i==1) {
                        message = "User Added";
              s.close();
              con.close();
         catch(SQLException e) {
              message = "Error " + e.toString();
         catch(Exception e) {
              message = "Error" + e.toString();
              error = true;
         %>
    </form>
    </body>
    </html>

    Even if there was an exception being thrown, you wouldn't see it because you're catching it but not doing anything with the message:
    catch(SQLException e) {
              message = "Error " + e.toString();
         catch(Exception e) {
              message = "Error" + e.toString();
              error = true;
         }Try changing this part to:
    catch(SQLException e) {
              message = "Error " + e.toString();
                    e.printStackTrace();
         catch(Exception e) {
              message = "Error" + e.toString();
              error = true;
                    e.printStackTrace();
         }

  • Problem with filling the forms in Nokia browser af...

    Hello,
     I updated my Nokia 808 to FP2 successfuly. But i realized one problem in web browser and the new keyboard. For example when i want to write into a form box i can only see virtual keyboard. I cannot see what i type. If you want to test this, please open your local nokia website and click on support / e mail us. You will see a form which will ask your phone model and OS etc. Try to type into the boxes. Yesterday i failed to write anything. Also reaction is very slow. You can see what i m talking about in the attachments.
      Also with the new update, videos are not working correctly. Sometimes video player is crashing. Sometimes i see strange and colourful images while it is trying to play the video. Then it turns to normal and i see the video clearly.
      Im satisfied with some new things in the update but there are problems and slow downs. Some features are not working such as Nokia Social. I hope Nokia Team will find a solution. Thank you.
    Attachments:
    Fotoğraf0001.jpg ‏183 KB
    Fotoğraf0150.jpg ‏179 KB

    HI ilkerol,
    Welcome to Nokia Support Discussions!
    Thanks for the feedback! I tested the support form with the same results, the page was slow and kept on moving up to the top when I was typing in the textbox.  I tried it with a Lumia device, and even though I was able to fill the textbox without problems, the drop down menus did not work. Based on that experience, it seems that the form is meant to be used with a personal computer, not a mobile device. I will, however, escalate this issue in case there is a possibility of a quick fix. 
    As for the video issue, does this happen with all videos or just certain ones? Colorful images etc. usually mean that the video file encoding is somehow broken and the player cannot read it properly.
    Hope this helps!
    Puigchild
    If you find this post helpful, a click upon the white star at bottom would always be appreciated.
    If it also solves your problem, clicking ACCEPT AS SOLUTION below it will benefit other users!

  • Problem while reading the file from FTP server

    Hi Friends,
    I have a problem while fetching files from FTP server.
    I used FTP_Connect, FTP_COMMAND function modules. I can able to put the files into FTP server.
    but I cant able to pick the files from FTP server.
    anyone have faced similar issues kindly let me know.
    Thanks
    Gowrishankar

    Hi,
    try this way..
    for reading the file using FTP you need to use different unix command ..
    Prabhuda

  • Problem in reading the excel file path in WINDOWs machine from UNIX environ

    Hello friends,
    My requirement is to read each row of the excel sheet and sent that row to the database. I have implemented it by using jxl and apache poi framework. locally in my WINDOWS machine it is working fine..
    But when i deploy the code in UNIX machine. My application runs on a Unix server , trying to read the excel file in WINDOWS environment. I am not able to retrieve the file path. for ex : C:\Documents and Settings\sabbanik\My Documents\KARUNAKAR\excel.xls
    I am getting error in this line
    workbook = Workbook.getWorkbook(filepath)
    Error message : input file not found.
    Thanks in advance..

    You said: I am getting error in this line workbook = Workbook.getWorkbook(filepath) >
    Based on this, I will assume you are trying to use OLE to access information about the Excel file. As mentioned by Andreas, your code will be executing on the server (Unix) and since Excel isn't on the server (and cannot be) an error will result. OLE can only be used in Windows environments (client or server). To access client side OLE calls and content, you need a java bean and Excel installed on the client machine. Oracle provides WebUtil as an option to writing your own Java Bean. To use this, you will need to be running Forms 10.1.2 or newer. Details can be found here along with a demo:
    http://www.oracle.com/technetwork/developer-tools/forms/webutil-090641.htm

  • I filled in a Word pdf document, sent it to a client who uses Word in Windows 7 and the form appears blank when they open it. They can read the form, but nothing that I filled in. Help!

    I was sent a lengthy pdf form that required me to enter data onto it. The sentences appeared compressed on my screen, but I could see everything that I entered. Next emailed it to my boss and when he opened it on his Windows 7 with Word, all of the data that I had entered appeared lost. It was as if I hadn't entered anything on the form. So I asked him to send it back to me. He did and when I opened it on my Mac Book Air, all of the information that I had filled in was there on my screen.
    This went back and forth a few times, but the result was always the same. I have been requested to complete the form on a Windows based computer, which will take me hours. Any ideas what causes this problem and how to fix it?

    What has this to do with Pages? You probably did this in Preview.
    Peter

  • Problem in reading the table entries using RFC_GET_TABLE_ENTRIES:

    Hi  All ,
    We are tryiong to  read the infocube /BIC/ACDPBARCO00 ( Table ) from BW using the above  FM . We are successful in reading the data but , last but one field is appearing as ####### . Actually that particular  filed has some data in BW side .
    Could you suggest  m,e what the problem is and how to correct that data ?
    Thanks ,
    Dharma .

    Hi ,
    Are you pulling entries by passing only Table Name or with field names.
    If it is based on field names, Please check all field names are correctly passed to this function module or not.
    If this FM doesn't work then try with RFC_READ_TABLE, which does the same task.
    Regards,
    Ravi Sankar,.Z

  • Problem in running the form

    I have installed Oracle 9i database and developer suite on my dual-core 1 mb ram , window XP3 , configration PC.
    There is no database connectivity problem and everything is working fine.But after developing the form in form builder
    then start OC4J..
    when i start oc4j instance it give me this message on dos
    C:\Documents and Settings\Tanya\desktop>E:\oracle\oradata\myoracle\jdk\bin\java -Dorg.omg.CORBA.ORBClass=com.inprise.vbroker.orb.ORB -Dorg.omg.CORBA.ORBSingletonClass=c
    om.inprise.vbroker.orb.ORB -Doracle.security.jazn.config=E:\oracle\oradata\myoracle\j2ee
    \Oracle9iDS\config\jazn.xml -Doracle.home=E:\oracle\oradata -DORACLE_HOME=E:\oracle\oradata\myoracle -jar E:\oracle\oradata\myoracle\j2ee\home\oc4j.jar -userThreads -config E:
    \oracle\oradata\myoracle\j2ee\Oracle9iDS\config\server.xml
    Oracle9iAS (9.0.2.0.0) Containers for J2EE initialized
    FormsServlet init():
    configFileName: E:\oracle\oradata\myoracle/forms90/server/formsweb.cfg
    testMode: false
    ListenerServlet init()
    After that when i am going to run the form in the internet explorer it is flashing that "The page cannot be displayed" .And in the address bar the following address is displayed..
    http://%%20"http://compu:8888/forms90/f90servlet?form=C:\MODULE1.fmx&userid=HR/HR@myoracle&buffer_records=NO&debug_messages=NO&array=YES&query_only=NO&quiet=NO&RENDER=YES"
    I am saving the file in the in the c drive directly and there is no space in the path.
    When i am removing http://%%20" from the begining of the address and the last --> ", mark then my form is running perfectly.
    Please help from where to set the path so that my forms runs smoothly.
    Thanks
    Tanya

    Hello tanya,
    Open the builder ->Edit preferences ->Runtime->Click on Reset to Default ->Click Ok.
    Rajesh Alex

Maybe you are looking for

  • Problem on WinXP / Labview 6.1 with VISA (serial port)

    There is a problem on WinXP / Labview 6.1 with VISA which i use to poll the state lines of the serial port. The only functions that i use are "VISA Open", "Find Resource", line state properties and "VISA close". On my own machine (WinME) it works fin

  • Many albums displayed for a single album

    I have read some discussion about this issue but have yet to find a suitable answer. Some of my albums, especially those with multiple artists, create multiple albums with one song or maybe a few songs each. I do not understand how to correct this. P

  • Product registration & Product installation problems

    I recently purchased the full version of LR2 after using the 30 day trail version of LR2. Mac Pro Dual-Core Intel Xeon 2.66 GHz OSX 10.5.7 LR2 accepts the software liscence upon initial setup (confirmation within prompt says product is registered) bu

  • How to wrap the heading text in alv.

    HI all,       I need help, how to wrap the heading text in alv. can any help ... plz.. Advanced Thanks Regards GUhapriyan

  • Date in sql server

    i have below stored proc, execute proc_First@date='03/05/2015',@la=36,@plan='AB' here @la will be always 36. the output is 3 years , 2012-03-01 00:00:00.000 to 2015-03-01. now i want to break this to ,by 1 year. whats changes i need to make here. exa