File upload sendmail not displaying user input

Hello ive set up the upload example from     http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Images_01.html
i added a textarea field and a sendmail function.  all is working well but the email does not contain any of the data from the fields on the form that the user submits. its just white space where that data should be.....Could someone please check this code and see what i am doing wrong ...thanks, kevin
---------------------------Here is the form page:---------------------------------
<cfparam name="FORM.image" default="" />
<cfparam name="FORM.comments" default="" />
<!--- Create an empty error string --->
<cfset strError = "">
<!--- This code creates a form with one field where the user enters the image file to upload. --->
<cfform action="makeThumbnail.cfm" method="post" enctype="multipart/form-data">
<p>Please upload an image:
  <cfinput type="file" name="image" required="yes" id="image" value="#Trim(FORM.image)#" message="Please enter an image!">
</p>
<p>
  <cftextarea name="Comments" cols="20" rows="4" required="yes" id="Comments" message="Please enter your Comments!" enabled="no" value="#Trim(FORM.comments)#" maxlenght="160" visable="no" />  </p>
<p>
  <cfinput type="submit" value="Send Image" name="Submit">
</p>
<cfif IsDefined( "FORM.image" )>
<cfif IsDefined( "FORM.comments" )>
<cfmail
from="[email protected]"
to="[email protected]"
subject="Visitor Email."
server="outgoing server"
username="usernam"
password="pass">
                File uploaded.
   <cfoutput> image: #Trim(FORM.image)#, comments: #Trim(FORM.comments)#, #Now()#</cfoutput>
</cfmail>
    </cfif>
  </cfif>
</cfform>
-----------this is the makethumbnail.cfm which i made no changes ---------------------
<cfset thisDir = expandPath(".")>
<!--- Determine whether the form is uploaded with the image. --->
<cfif structKeyExists(form,"image") and len(trim(form.image))>
    <!--- Use the cffile tag to upload the image file. --->
    <cffile action="upload" fileField="image" destination="#thisDir#" result="fileUpload"
        nameconflict="overwrite">
    <!--- Determine whether the image file is saved. --->
    <cfif fileUpload.fileWasSaved>
    <!--- Determine whether the saved file is a valid image file. --->
        <cfif IsImageFile("#fileUpload.serverfile#")>
    <!--- Read the image file into a variable called myImage. --->
            <cfimage action="read" source="#fileUpload.serverfile#" name="myImage">
            <!--- Determine whether the image file exceeds the size limits. --->
            <cfif ImageGetHeight(myImage) gt 480 or ImageGetWidth(myImage) gt 360>
                <!--- If the file is too large, delete it from the server. --->
                <cffile action="delete"
                    file="#fileUpload.serverDirectory#/#fileUpload.serverFile#">
                <cfoutput>
                <p>
                The image you uploaded was too large. It must be less than 480 pixels wide
                    and 360 pixels high. Your image was #imageGetWidth(myImage)# pixels wide
                    and #imageGetHeight(myImage)# pixels high.
                </p>
                </cfoutput>
                <!--- If the image is valid and does not exceed the size limits,
                    create a thumbnail image from the source file that is 75-pixels
                    square, while maintaining the aspect ratio of the source image.
                    Use the bilinear interpolation method to improve performance.
                    --->
            <cfelse>
    <cfset ImageScaleToFit(myImage,100,100,"bilinear")>
                <!--- Specify the new filename as the source filename with
                    "_thumbnail" appended to it. --->
                <cfset newImageName = fileUpload.serverDirectory & "/" &
                    fileUpload.serverFilename & "_thumbnail." &
                    fileUpload.serverFileExt>
                <!--- Save the thumbnail image to a file with the new filename. --->
                <cfimage source="#myImage#" action="write"
                    destination="#newImageName#" overwrite="yes">
                <cfoutput>
                <p>
                Thank you for uploading the image. We have created a thumbnail for
                    your picture.
                </p>
                <p>
                <!--- Display the thumbnail image. --->
                <img src="#getFileFromPath(newImageName)#">
                </p>
                </cfoutput>   
            </cfif>
        <!--- If it is not a valid image file, delete it from the server. --->
        <cfelse>
            <cffile action="delete"
                file="#fileUpload.serverDirectory#/#fileUpload.serverFile#">
            <cfoutput>
            <p>
            The file you uploaded, #fileUpload.clientFile#, was not a valid image.
            </p>
            </cfoutput>
        </cfif>
    </cfif>
</cfif>

Hello ive set up the upload example from     http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Images_01.html
i added a textarea field and a sendmail function.  all is working well but the email does not contain any of the data from the fields on the form that the user submits. its just white space where that data should be.....Could someone please check this code and see what i am doing wrong ...thanks, kevin
---------------------------Here is the form page:---------------------------------
<cfparam name="FORM.image" default="" />
<cfparam name="FORM.comments" default="" />
<!--- Create an empty error string --->
<cfset strError = "">
<!--- This code creates a form with one field where the user enters the image file to upload. --->
<cfform action="makeThumbnail.cfm" method="post" enctype="multipart/form-data">
<p>Please upload an image:
  <cfinput type="file" name="image" required="yes" id="image" value="#Trim(FORM.image)#" message="Please enter an image!">
</p>
<p>
  <cftextarea name="Comments" cols="20" rows="4" required="yes" id="Comments" message="Please enter your Comments!" enabled="no" value="#Trim(FORM.comments)#" maxlenght="160" visable="no" />  </p>
<p>
  <cfinput type="submit" value="Send Image" name="Submit">
</p>
<cfif IsDefined( "FORM.image" )>
<cfif IsDefined( "FORM.comments" )>
<cfmail
from="[email protected]"
to="[email protected]"
subject="Visitor Email."
server="outgoing server"
username="usernam"
password="pass">
                File uploaded.
   <cfoutput> image: #Trim(FORM.image)#, comments: #Trim(FORM.comments)#, #Now()#</cfoutput>
</cfmail>
    </cfif>
  </cfif>
</cfform>
-----------this is the makethumbnail.cfm which i made no changes ---------------------
<cfset thisDir = expandPath(".")>
<!--- Determine whether the form is uploaded with the image. --->
<cfif structKeyExists(form,"image") and len(trim(form.image))>
    <!--- Use the cffile tag to upload the image file. --->
    <cffile action="upload" fileField="image" destination="#thisDir#" result="fileUpload"
        nameconflict="overwrite">
    <!--- Determine whether the image file is saved. --->
    <cfif fileUpload.fileWasSaved>
    <!--- Determine whether the saved file is a valid image file. --->
        <cfif IsImageFile("#fileUpload.serverfile#")>
    <!--- Read the image file into a variable called myImage. --->
            <cfimage action="read" source="#fileUpload.serverfile#" name="myImage">
            <!--- Determine whether the image file exceeds the size limits. --->
            <cfif ImageGetHeight(myImage) gt 480 or ImageGetWidth(myImage) gt 360>
                <!--- If the file is too large, delete it from the server. --->
                <cffile action="delete"
                    file="#fileUpload.serverDirectory#/#fileUpload.serverFile#">
                <cfoutput>
                <p>
                The image you uploaded was too large. It must be less than 480 pixels wide
                    and 360 pixels high. Your image was #imageGetWidth(myImage)# pixels wide
                    and #imageGetHeight(myImage)# pixels high.
                </p>
                </cfoutput>
                <!--- If the image is valid and does not exceed the size limits,
                    create a thumbnail image from the source file that is 75-pixels
                    square, while maintaining the aspect ratio of the source image.
                    Use the bilinear interpolation method to improve performance.
                    --->
            <cfelse>
    <cfset ImageScaleToFit(myImage,100,100,"bilinear")>
                <!--- Specify the new filename as the source filename with
                    "_thumbnail" appended to it. --->
                <cfset newImageName = fileUpload.serverDirectory & "/" &
                    fileUpload.serverFilename & "_thumbnail." &
                    fileUpload.serverFileExt>
                <!--- Save the thumbnail image to a file with the new filename. --->
                <cfimage source="#myImage#" action="write"
                    destination="#newImageName#" overwrite="yes">
                <cfoutput>
                <p>
                Thank you for uploading the image. We have created a thumbnail for
                    your picture.
                </p>
                <p>
                <!--- Display the thumbnail image. --->
                <img src="#getFileFromPath(newImageName)#">
                </p>
                </cfoutput>   
            </cfif>
        <!--- If it is not a valid image file, delete it from the server. --->
        <cfelse>
            <cffile action="delete"
                file="#fileUpload.serverDirectory#/#fileUpload.serverFile#">
            <cfoutput>
            <p>
            The file you uploaded, #fileUpload.clientFile#, was not a valid image.
            </p>
            </cfoutput>
        </cfif>
    </cfif>
</cfif>

Similar Messages

  • Adobe form created in LiveCycle does not remember user input

    Adobe form created in LiveCycle does not remember user input when the file has been re-opened after it has been saved.
    Example:
    "Check box" that has been selected and who have registered Action script (may be that it should be disabled), seems to be reset when the file is re-opened, although it apparently is checked.
    Are there settings or script that can prevent this?

    Hi there,
    usually if the values are not kept in form after saving and re-opening the form, it would be because of your code... or because it is not Reader Extended PDF...
    If your code has a function which is to return a value to your field without it to be working based on your Design, it will reset any data..(variables)
    Which means...
    e.g.: You have an array/var/JSONobject which you populate varying on the data entered in the design, as long as you are in the actual form, without closing and re-opening the form, it will keep all values inside that array / variables / JSONobject. But, once the form closed and re-opened, if you have a function that returns a value to your field, whatever the field, from any variable in the script it will return nothing because every variables are reset. To avoid such a thing, you must repopulate all variables that were assigned previously before closing the PDF Form. To do so, I recommend to have a page(hidden) which contains every important values according to that function and you must repopulate those variables according to the values in the keepVar page...
    If you do not have any function that returns a value to a field based on your variables, this is not the solution you are looking for and I am not aware of the reason why it behaves like this... Maybe more information on the behaviour of your form would help locate the issue...
    Hope this help

  • BSP file path is not displayed

    Hi All,
    I have a web interface created in BPS using BSP application to upload a flat file from the portal .
    __Structure:__
    Cost Center Plan Upload
    Company Code      
    Currency      
    Version      
    Year      
    File Name      
    Here cost center, company code, currency, version and year are variables and File name is to select the text file from desktop.
    The actual issue is not showing the path under File Name to select the file. And not displaying upload and save buttons too.
    It is working fine in Quality and Production systems but not in Dev after the systems up-gradation.
    Any guidance on this issue would be really appreciated.
    Thanks & Regards,
    Ganesh.

    upgrade from what to what ???
    you should look into OSS notes for such a problem

  • Movie files (.mov) do not display "a plugin is needed to display this content"

    Mac user. Movie files (.mov) do not display "a plugin is needed to display this content". What plug-in is required and where can I find it?

    Aha, you already have QuickTime. Unfortunately, Firefox didn't find it. Can you try the method described in this thread (deleting a file and having Firefox re-generate it) and see whether it works for you?
    [https://support.mozilla.org/en-US/questions/954407 Firefox 19 will not load quicktime plugin.]

  • My .mov file thumbnails do not display in Bridge CC.

    My .mov file thumbnails do not display in Bridge CC. It worked previously with CS6. Mac Operating system 10.6.8
    Tried purging cache without any luck. Any suggestions.

    This forum is actually about the Cloud, not about using individual programs
    Once your program downloads and installs with no errors, you need the program forum
    If you start at the Forums Index http://forums.adobe.com/index.jspa
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says ALL FORUMS) to open the drop down list and scroll
    http://forums.adobe.com/community/bridge

  • The Japanese file name is not displayed.

    I'm using Mac OS 10.5.3(intel)/Adobe Media Player 1.0
    In "Personal Videos",The Japanese file name is not displayed.
    Example, "日本語.flv" is added, ".flv" is displayed in "Personal Videos".

    Thank you for reply.
    >Try this: Go to the Apple menu > System preferences > International > Languages. Add Japanese to the list of languages, if it does not appear there already. If you drag Japanese above English in the list, the finder and many other applications will open next time with Japanese menus. Even if you do not want Japanese menus, make sure Japanese appears somewhere in your list of languages. Just having it there unlocks Japanese features in certain software, like Japanese encoding in Apple's Mail application.
    When trying, the problem was not improved.
    >If the Japanese menus make things hard for you in certain applications, you can set the language of specific applications individually using the following method: First, select the application's icon in the finder and choose "Get Info"from the File menu.
    >
    >Expand the Languages section of the Get Info window, and you'll see the languages available for the application. If you check Japanese and uncheck English, you will get Japanese menus; if you check English and uncheck Japanese, you'll get English menus. If both are checked, the language is determined by the order of languages in the International Preferences Pane.
    In "Get Info" of the application based on Adobe AIR, "Languages section" is not found.

  • Displaying user input

    Hi all,
    Does anyone know how to display user input on a different panel, acitivated by a button press.
    For example in panel a, a textfield is declared to collect user input
    addForenametf = new JTextField(20);
              addForenametf.setFont(userInput);
              addForenametf.addActionListener(this);
              //postion button on grid bag
              c.gridx = 1;
              c.gridy = 1;
              addScreen.add(addForenametf, c);..then a button is pressed to take in the data (there are numerous textfields). When this happens the next screen, panel b appears and displays the values of the text field. Thus in the actionlistener...
    ...     else if(c.equals(confirmButton))
                               String forenameS = myContactMel6.getForename();
                             middle.removeAll();
                    middle.add(confirmScreen);
             }..then in the panel confirmScreen i try to display the string forenameS
         JLabel displayForename = new JLabel("");
              displayForename.setText(forenameS);
              //position button on grid bag
              c.gridx = 0;
              c.gridy = 2;
              confirmScreen.add(displayForename , c);     ...have also tried instead directly accessing the textfield as below but still doesn't print anything
         JLabel displayForename = new JLabel("");
              displayForename.setText(addForenametf.getText());
              //position button on grid bag
              c.gridx = 0;
              c.gridy = 2;
              confirmScreen.add(displayForename , c);Thank you ver much in advance!

    You need to pass in the information to your confirmation panel. One option would be to create a new instance of the confirmation panel each time the user selected the button. In this case you should pass in each value to be displayed to the constructor. Otherwise, you could have a method that accepts all the data needed and it fills the correct text fields. I am assuming that panel a has access to an instance of panel b so that it can pass the data in.

  • Adobe form not saving user-input data into saved pdf file

    Hi forumers,
    I'm a new abap developer and I'm tasked to create an interactive adobe form that will require the user to input data in the form.
    No data is passed and received from PDF, but PDF has to be u2018Fillableu2019. I am able to fill out the form but when I actually save the form, it will be saved as a blank form again. I've seen the relevance of the  LS_DOCPARAMS-FILLABLE = 'X' on this forum and I have incorporated it in my code. But how should I code the abap program to enable to save the user input as well into the form.
    DATA: GV_FMNAME TYPE FPNAME,
          LS_DOCPARAMS    TYPE SFPDOCPARAMS,
          LS_OUTPUTPARAMS TYPE SFPOUTPUTPARAMS.
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
      EXPORTING
        I_NAME                     = 'ZSC_ZRUFORREP'
    IMPORTING
       E_FUNCNAME                  = GV_FMNAME
    *   E_INTERFACE_TYPE           =
    *   EV_FUNCNAME_INBOUND        =
    CALL FUNCTION 'FP_JOB_OPEN'
      CHANGING
        IE_OUTPUTPARAMS       = LS_OUTPUTPARAMS
    EXCEPTIONS
       CANCEL                = 1
       USAGE_ERROR           = 2
       SYSTEM_ERROR          = 3
       INTERNAL_ERROR        = 4
       OTHERS                = 5
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LS_DOCPARAMS-FILLABLE = 'X'.
    LS_DOCPARAMS-DYNAMIC = 'X'.
    CALL FUNCTION GV_FMNAME
    EXPORTING
       /1BCDWB/DOCPARAMS        = LS_DOCPARAMS
    * IMPORTING
    *   /1BCDWB/FORMOUTPUT       =
    EXCEPTIONS
       USAGE_ERROR              = 1
       SYSTEM_ERROR             = 2
       INTERNAL_ERROR           = 3
       OTHERS                   = 4
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'FP_JOB_CLOSE'
    * IMPORTING
    *   E_RESULT             =
    EXCEPTIONS
       USAGE_ERROR          = 1
       SYSTEM_ERROR         = 2
       INTERNAL_ERROR       = 3
       OTHERS               = 4
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Thanks,
    dgrachee

    Not quite yet, I have to say...
    If you check the domain "FPINTERACTIVE", you'll see these values:
                   Print Form
    X     Interactive Form with Additional Usage Rights
    N     Interactive Form Without Additional Usage Rights
    F                                                                
    So, you are not providing "additional usage rights" (Adobe Form Credentials), meaning there could be a problem when you want to use those forms in a Production environment.

  • Help:simple file upload example not working

    Request input on what's wrong with this -
    Using JDeveloper 10G.
    1) I created a simple jsp file upload file using the OJSP
    File Access Tag library options. With empty JSP file,I
    dropped in the httpUploadForm and the httpUpload tags.
    Now when I run this I get the following error stack on
    the web page.
    javax.servlet.jsp.JspTagException: Posted content type isnt multipart/form-data at oracle.jsp.webutil.fileaccess.tagext.HttpUploadTag.doStartTag(HttpUploadTag.java:130)at test4.jspService(test4.jsp:10)[test4.jsp]
    2)Now if I use a simple JSP without the tag library - the
    page fails to display. Found that commenting out the
    line "upbean.upload()" lets the page run and atleast
    show me the upload form. What's wrong with this
    standard example from the OC4J documentation -
    <%@ page import =
    "javax.servlet.http.*,
    java.io.*,
    java.util.*,
    oracle.jsp.webutil.fileaccess.*;" language="java" session="true" contentType="text/html;charset=windows-1252"
    %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Upload</title>
    </head>
    <body>
    <% String userdir = "mydir"; %>
    <form action="pUpload.jsp" ENCTYPE="multipart/form-data" method=POST>
    <br>
    File to upload: <INPUT TYPE="FILE" NAME="File" SIZE="50" MAXLENGTH="120" >
    <br>
    <INPUT TYPE="SUBMIT" NAME="Submit" VALUE="Send">
    </form>
    <jsp:useBean id="upbean" class="oracle.jsp.webutil.fileaccess.HttpUploadBean" >
    <jsp:setProperty name="upbean" property="destination" value="<%= userdir %>" />
    </jsp:useBean>
    <% upbean.setBaseDir(application, request);
    //upbean.upload(request);
    %>
    </body>
    </html>

    It's not clear from your post, but are you aware that the
    documentation is really showing multiple files?
    The doc examples are based on the ones you can try out by downloading the ojspdemos.ear file.
    They use discrete steps. For example, the fileUploadIndex.html contains the following
    This will call the form and set the action in the form to call the tag upload jsp file. The form will do the multi-part post and the tag upload file does display the text after the <upload:httpUpload> tag. I just re-ran the example to be sure.
    The same basic mechanism applies to the upload bean. That is it is called via:
    This is the only way that these can work because the upload code (beans & tags) both require a multi-part post. I hope this helps

  • Capturing and displaying user input in Crystal Reports

    Hi all,
    Iu2019m creating a crystal report with SAP as data-source and want to capture user input and display it on the report.  I have defined parameters to capture the input and added them to the report header.   I have then created formula fields to capture user input using the JOIN statement to accommodate multiple values.   Everything works well when users enter values for all the parameters, but when they leave some blank I get an error message u201CParameter value is nullu201D.
    Has anyone encountered this type of problem;  Anyone knows how to resolve this?

    Hi
    In parameter window make the Optional prompt to True.  And change make change in your record selection formula like this :
    (not HasValue({?PrjMgr@SELECT Firstname,lastname FROM OHEM}) OR
    ISNULL({?PrjMgr@SELECT Firstname,lastname FROM OHEM}) OR
    ({?PrjMgr@SELECT Firstname,lastname FROM OHEM} = '') OR
    {OHEM.firstName} = {?PrjMgr@SELECT Firstname,lastname FROM OHEM})
    Regards

  • File Upload data not reflected in the Layout

    Hi,
    Using the following how to document, I have written the file upload functionality.
    The upload functionality works and the data is saved in the cube. We have a layout to display the uploaded data.
    Issue:- The data is not reflected in the layout soon after fileupload, even after saving the data in the cube.
    If i close existing webinterface and re-execute it. I see the uploaded data.
    Once the data is saved in the cube, we would like to see this data in our layouts.
    How do we achieve this ?
    Appreciate your help.
    Regards,
    Vinay.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/business-intelligence/g-i/how%20to%20load%20a%20flat%20file%20into%20bw-bps%20using%20a%20web%20browser.pdf

    Hi,
    When you click on Submit button the file data goes in the buffer and when you click on Save the data gets posted into cube and then the function module release the buffer.
    Comment the FM call API_SEMBPS_REFRESH in Save button and refresh the layout, check if you can see the new data in the layout.
    Please grant the points if this answer helps you.
    Regards,
    Deepti

  • Intel MacBooks not displaying users list from WGM

    Hello folks,
    I have a situation where all my Intel iMacs connect to my OD server fine, pulls down the WGM user lists and logs in fine. However I also have about 8 Intel MacBooks that are meant to connect wirelessly to this same server. For some reason I can not figure the MacBooks, connect fine, I can even bind them but they do not display the users list. I thought maybe the wireless connection may have something to do with it, so I plugged them directly into the data cable and still no luck. I ensured that on the local machine the user account is set to display as a list. I have created the computer list in WGM for the MacBooks, all to no avail. I have been scouring the forums but no breakthrough yet. Any ideas from anyone will be greatly appreciated.
    G5 Mac OS X (10.4.8)

    The list of users is a plist file and should be at at /Library/Preferences/com.apple.loginwindow.plist on the clients. See this thread for more information:
    http://discussions.apple.com/thread.jspa?messageID=2368769&#2368769
    If you've got a good plist from a client that sees the right users, you should be able to copy it over. If not, try backing up the file from one client and then deleting it and restarting.

  • FDF Returns the entire form not just user input

    Using the properties dialog box on a submit button I set my form actions to return 'FDF Include' which according to the help menu will only return the results of the user input and not the entire filled out form. I only want user input because I plan to embed each results file in a website.Unless I am misunderstanding what should happen, it is not working. It is returning the entire form.  I would appreciate any help or tips anyone has to offer. If I'm doing it wrong and there is another way, please let me know. I just want to see the answers in the form fields, not the entire form.  Thanks!
    http://help.adobe.com/en_US/acrobat/X/pro/using/WSBB6EF75F-BC3D-4094-B787-FB76DAE1EBDC.w.h tml

    Thanks so much for your assistance. I made a form, and then set the distrubuted settings to email me the form when submitted. I posted it to our intranet and then tested it. The form I posted is the 'distributed' form that Acrobat made from my original form. I posted it on a public site so you can have a look. Here is a link.  This should allow you to download it instantly. If not, remove everything from the question mark to the end and then paste that link into a browser. I checked and double checked everything, but maybe I am missing something.
    https://sites.google.com/site/ccpsgadgets/xml-documents/pbl%20form_distributed.pdf?attredi rects=0&d=1

  • File upload is not perform by weblogic 10

    Hello,
    I'm working a project my root folder name is "tcap1" in that folder "test" is another folder inside that folder I place "image" folder and develop a image file upload program in JSP. when user upload his/her photo that photo should be store in image folder. I'm tested that jsp file in tomcat7.0 i.e working good and image will store in image folder.
    Other hand side I'm using Weblogic10g. I crate a war file my project and deployed in weblogic10g and run my application it is working but my fileupload.jsp is not working.how is it possible to work my code working in Tomcat7.0 but not working in Weblogic10g.
    WebLogic10g exception come on console:_
    Releasing conn back to pool
    <May 26, 2012 10:46:28 AM IST> <Error> <HTTP> <BEA-101020> <[weblogic.ser
    ternal.WebAppServletContext@1cb1d37 - appName: 'tcap1', name: 'tcap1.war'
    xt-path: '/tcap1', spec-version: '2.5'] Servlet failed with Exception
    java.lang.NullPointerException
    at java.io.File.<init>(File.java:222)
    at com.braahmam.tcap1.test.AddImageServlet.doPost(AddImageServlet
    01)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAct
    (StubSecurityHelper.java:227)
    Truncated. see log file for complete stacktrace
    >
    In JSP page error comes_
    Error 500--Internal Server Error
    java.lang.NullPointerException
         at java.io.File.(File.java:222)
         at com.braahmam.tcap1.test.AddImageServlet.doPost(AddImageServlet.java:401)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Edited by: 936878 on May 25, 2012 11:34 PM
    Edited by: 936878 on May 25, 2012 11:35 PM
    Edited by: 936878 on May 26, 2012 12:04 AM

    I figured out the problem.
    I kept jce.jar file under bea\jdk131_06\lib\ext.
    Plus changed java.policy,java.security to look like jre1.4 poicies.
    Added local_policy.jar, US_export_policy.jar
    I found these suggestions from web for a search of "install sun JCE"
    Thanks

  • File Upload applet not opening in Query Mode

    File Upload Applet is opening in Query Mode in Siebel 7.5, where as in Siebel 7.8 its not opening in Query Mode.
    Should anything be changed in CFG? or siebel restricted this?

    Hi,
    There is a property called "Auto Query Mode" in the applet. Check whether this has been set to "New Query" in 7.5. If so the applet will be opening in Query Mode automatically. If this property is blank, in 7.8, the applet will not be opening in Query mode. Check and let me know.
    Regards,
    Joseph

Maybe you are looking for