Alternative for File Button

Hi all,
I have a situation in which i need to use a TextBox and a Button in jsp/Html and the desired functionality is like this , "If i click the button , File Browse window should open and once if i choose a file and click open then the selected file location should be placed as the TextBox value".
For this I can Use a File Buuton but situation is like "the Browse button is not near the assosiated TextBox as in the case of File Button".
Any Solution is greatly appriciated.
Regards
Siva Kumar Reddy P

Hi
I have already tried the trick that u told
but to my surprise when i click on the upload button (i mean submit button) for the FIRST time , the file object is being set to null (getting resetted) and for SECOND click it is being submitted with null in the file object.
The code that i am using here is
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<html:html locale="true">
<head>
<title>Struts File Upload Example</title>
<script language="javascript">
<!--
function promptForFile(theForm){    
// popup the dialog prompt for a file
theForm.theFile.click();
// copy the value into a text field
theForm.fileLabel.value = theForm.theFile.value ;     
//-->
</script>
<html:base/>
</head>
<body bgcolor="white">
<html:form action="/FileUpload" method="post" enctype="multipart/form-data">
<table>
<tr>
     <td align="center" colspan="2">
          <font size="4">Please Enter the Following Details</font>
</tr>
<tr>
     <td align="left" colspan="2">
     <font color="red"><html:errors/></font>
</tr>
<tr>
     <td align="right"> File Name </td>
     <td align="left"> <html:file property="theFile" style="position:relative;top:250px;right:-250px;"/> </td>
</tr>
<tr>
     <td align="center" colspan="2">
     <html:text property="fileLabel"/>
     <br>
     <br>
     <html:button onclick="promptForFile(this.form);" property="UPLOAD" > Browse </html:button>
     <html:button onclick="form.submit();" property="UPLOAD1">Upload </html:button>
</td>
</tr>
</table>
</html:form>
</body>
</html:html>
Please can u help
Regards
Siva Kumar Reddy P

Similar Messages

  • After choosing a jpg for upload, the "Upload File" button on the organization's receiving site of does not respond. The second problem: it's impossible to highlight more that one file at a time.

    Clicking the first file, holding down shift and clicking the last file doesn't work. I've tried all manner of command, control, shift combos without success.  This one-at-a-time attachment problem also happens in web mail.  Are these two issues related?  Thanks for non-techie solutions for both issues.  I have Safari 5.0.6 (5533.22.3) and Leopard.

    Thanks for your response.  I do have javascript turned on (not java).  To answer your question,
    I was trying to upload 3 jpgs to the submissions page of a visual arts website. I could only highlight one jpg at a time in the "Choose File" option, and then the "Upload File" button of the submissions page would not respond.
    It's an ongoing problem with this site (I'm the only one with this issue and there are a lot of submissions). I have to send the images as email attachements to the administrator of the site.  When doing this via webmail, I still the one attachment at a time problem, but the images get to the administrator.  Thanks for helping.

  • Problem in embedding a png file for a button's skin

    I am trying to embed a png graphic as a skin for a button using actionscript class for a custom component. It has an error: "unable to resolve 'btn.png' for transcoding" - see method 1 code below. However, it works fine in method 2. Code are all shown belown. Can someone help regarding why this happens and how to make method 1 work?
    Got error in method 1:
    package net.abc.free
        import mx.core.BitmapAsset;
        public class myComp extends Canvas {
            [Embed(source="assets/btn.png")]
            [Bindable]
            public var clasBtn:Class;
        public function myComp() {
            super();  
    Successful in method 2: 
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
        <mx:Script>
            <![CDATA[
                import mx.core.BitmapAsset;
                [Embed(source="assets/btn.png")]
                [Bindable]
            public var clasBtn:Class;
            ]]>
        </mx:Script>
        <mx:Panel id="mainPanel" width="400" height="300" backgroundAlpha="0">
            <mx:HBox width="100%" height="100%" horizontalAlign="center" horizontalGap="100">
                <mx:Button id="myBtn" upSkin="{clasBtn}"/>           
            </mx:HBox>
        </mx:Panel>
    </mx:Application>

    If you don't put "/" in front of the path Flex will look for the file in the relative path of the file you refer it from.
    Your first example will look for the png file in:
    /net/abc/free/assets/  -- wrong path
    Your second example will look for it in:
    /assets/ -- since the application mxml file is at root level
    but if you put /assets/  it will look for it in /assets/ no matter where the MXML/AS file is

  • Can only choose attachments one at a time for webmail and for entries to an art organization website.  And the site's "Upload File" button will not respond, so I can't even upload the one jpg I have chosen.

    I am the only one who can't upload to the submissions page. Javascript is turned on, not java, with Safari 5.0.6 and Leopard. Thanks for helping.

    Thanks for your response.  I do have javascript turned on (not java).  To answer your question,
    I was trying to upload 3 jpgs to the submissions page of a visual arts website. I could only highlight one jpg at a time in the "Choose File" option, and then the "Upload File" button of the submissions page would not respond.
    It's an ongoing problem with this site (I'm the only one with this issue and there are a lot of submissions). I have to send the images as email attachements to the administrator of the site.  When doing this via webmail, I still the one attachment at a time problem, but the images get to the administrator.  Thanks for helping.

  • Upload button for files

    Hi there,
    I want an upload button for files in my form. Is this possible and if so how do I get it there?
    THank you so far.

    Theroyalfam wrote:
    I want an upload button for files in my form. Is this possible and if so how do I get it there?
    From page 976 of the Developer's Guide:
    <!--- 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">
      Please upload an image:
      <cfinput type="file" name="image">
      <cfinput type="submit" value="Send Image" name="Submit">
      </cfform>

  • No OK Button For File Extension In Preferances! Help!

    I have an external hard drive, which I put all of my media on. However, whenever I put a CD or download from the Itunes music store it doesnt save on this hard drive. I found a way to change where the files go for when I download or import through Itunes (Edit, Preferances) but there is no OK button at the bottom of the screen so the only thing I can do is X it out and it doesnt save any changes. Please help, my computer is too old, it holds 9 gigs, I can't save the music I listen to on it, so please help, thanks.

    Hello,
    please see the answer in
    http://stackoverflow.com/questions/17757248/error-there-is-no-script-engine-for-file-extension-vbs-when-using-git-bash
    "make sure that .vbs files have Microsoft Windows Based Script Host set as the current default program."
    Best regards
    Meinolf Weber
    MVP, MCP, MCTS
    Microsoft MVP - Directory Services
    My Blog: http://blogs.msmvps.com/MWeber
    Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
    Twitter:  

  • I can't erase my personal history for files which I saw.

    Hi, I cannot erase my personal history for files which I saw.
    Does anyone know how to erase it?
    Thank you in advance.

    When you reinstalled Yosemite did you create a new initial admin account? If so, then after you migrated your old account did you log into it?
    If you need to you can reset permissions for your user account:
    Reset User Permissions and ACLs in Lion/Mountain Lion
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    From the Utilities menu select Terminal. At the Terminal prompt enter: resetpassword. Press RETURN. When the window opens select your startup drive where it says "Select the volume containing the user account:" At the bottom of the window you will see, "Reset Home folder permissions and ACLs." Click on the Reset button.

  • Is there a capability to save/export the time capsule settings file when using the iphone/ipad airport utility. the "file" button does not exist on the latest airport utility app.

    is there a capability to save/export the new airport 2TB time capsule settings file when using the iphone/ipad airport utility. set-up wasn't a problem but the "file" button does not exist on the latest airport utility app v6.3 to save the configuration file.

    the "file" button does not exist on the latest airport utility app v6.3 to save the configuration file.
    Sounds like you are a bit confused with version numbers.
    Latest AirPort Utility version for the iPhone / iPad is 1.3.3.  There is no option or capability to export/import settings on the iOS version(s) of AirPort Utility.....although you could take a series of screen shots and save them for future reference.
    AirPort Utility 6.3.x is found on a Mac.....not on iPhone / iPad. Export and Import options are found under the File menu in 6.3.x.

  • How do i transfer itunes from one hard drive to another.i don,t have a file button in the new itunes and cannot find a way to consolidate my files with the latest version of itunes

    i do not have a file box in the latest version of itunes,and so cannot consolidate my files to be able to move itunes from one extarnal hard drive to another.i have tried tutorials but all say to use the file button which i do not have and when i go to library it does not open the consolidate file box.can anyone please advise or point me to a tutorial for the latest version of itunes guide to be able to do this as i'm going mad here.is there a step by step guide i can follow?

    i do not have a file box in the latest version of itunes,and so cannot consolidate my files to be able to move itunes from one extarnal hard drive to another.i have tried tutorials but all say to use the file button which i do not have and when i go to library it does not open the consolidate file box.can anyone please advise or point me to a tutorial for the latest version of itunes guide to be able to do this as i'm going mad here.is there a step by step guide i can follow?

  • My home network has an Airport Extreme w/Time Capsule as the base and then an Airport Express and a second Airport Extreme to reach different areas of the house.  Is there a way to use the second Airport Extreme for file storage on this network?

    My home network has an Airport Extreme w/Time Capsule as the base and then an Airport Express and a second Airport Extreme to reach different areas of the house.  Is there a way to use the second Airport Extreme for file storage on this network?  Network is administered through an iMac running OS X Yosemite 10.10.2.  Ideally, would like for the second Airport Extreme hard drive to appear on the list of devices in the Finder window.

    Ok.. gottcha
    The problem is network wise.. Yosemite is about equal to tin cans and string.. pathetic.
    Here is my usual set of instructions to get anything working on Yosemite.
    The best way to fix problems is a full factory reset of all the AE in the network.
    Factory reset universal
    Power off the AE.. ie pull the power cord or power off at the wall.. wait 10sec.. hold in the reset button.. be gentle.. power on again still holding in reset.. and keep holding it in for another 10sec. You may need some help as it is hard to both hold in reset and apply power. It will show success by rapidly blinking the front led. Release the reset.. and wait a couple of min for the AE to reset and come back with factory settings. If the front LED doesn’t blink rapidly you missed it and simply try again. The reset is fairly fragile in these.. press it so you feel it just click and no more.. I have seen people bend the lever or even break it. I use a toothpick as tool.
    Then redo the setup from the computer with Yosemite.
    1. Use very short names.. NOT APPLE RECOMMENDED names. No spaces and pure alphanumerics.
    eg AEgen5 and AEwifi for basestation and wireless respectively.
    Even better if the issue is more wireless use AE24ghz and AE5ghz with fixed channels as this also seems to help stop the nonsense.
    2. Use all passwords that also comply but can be a bit longer. ie 8-20 characters mixed case and numbers.. no non-alphanumerics.
    3. Ensure the AE always takes the same IP address.. this is not a problem for AE which is router.. it is a problem for AE which is bridged.. you will need to set static IP in the main router by dhcp reservations or use static IP in the AE which is tricky.
    4. Check your share name on the computer is not changing.. make sure it also complies with the above.. short no spaces and pure alphanumeric..
    5. Make sure IPv6 is set to link-local only in the computer. For example wireless open the network preferences, wireless and advanced / TCP/IP.. and fix the IPv6. to link-local only.
    6. Now mount the disk of the second AE in finder... manually.
    Use Go, Connect to Server and type in the AE ip address.
    SMB://10.0.1.2
    Where you will replace that address with the actual address. The network resource should be discovered and then it will request the password.. type that in and make sure you tick to save it in your keychain.
    There is a lot more jiggery pokery you can try but the above is a good start.. if you find it still unreliable.. don't be surprised.
    Do as much as you want of the above... not all of it is necessary.. only if you want it reliable.. or as reliable as Yosemite in its current incarnation can manage.
    The most important thing is point 6.. mount the disk using direct IP address and not names.. dns in Yosemite is fatally flawed.
    See http://arstechnica.com/apple/2015/01/why-dns-in-os-x-10-10-is-broken-and-what-yo u-can-do-to-fix-it/

  • Ver.9.5 The volume for file name cannot be found

    HI,
    My work Mac Book pro was recently upgraded to Mavericks from 10.6.8, with iPhoto 11 (ver. 9.5) also an included upgrade. One album of photos is no longer accesible - clicking on each thumbnail provokes the following window "The volume for <file name> cannot be found. The "Try again" option doesn't work, and the alternative, which is to use the finder to locate the file is useless, as the files are buried in a library spare bundle. When I copy the file name, and search on the volume with the library via finder, it pulls up tiny thumbnail size files.
    I have a primary iphoto library on a dedicated USB external drive, which I back up not everytime I update the library (200 gbs spare bundle over USB2!), but regularly. I fear these recently imported files, have not been backed up before up erasing cards, and upgrading system OS, have gone.
    Is there any way of getting into the library via finder, or elsewhere in iphoto to refind the original master files which are in there somewhere? These files opened perfectly in iphoto before the recent upgrade.

    Thanks for the fast response. I've followed your directions and can't find the file in there, in Masters, Originals, or Modified folders. I found files in Thumbnails folder though. Some of the files from the same event are fine, so its not consistent. I'm also noticing that another file in the event has a totally blurred preview (Its a 24mbs Jpg from a Nikon D800) - not sure if this is at all connected.
    The positive news is that my NeoFinder database of drives indicates I should have the 'missing' files on another computer in the office, but I'm still scratching my head on this.

  • Where is the file button on itunes, i am trying to do this File   LIbrary Organize Library Consolidate Files

    I cannot find the file button to do this for the old ipod library and new library to work togetherFile >  LIbrary > Organize Library > Consolidate Files

    Press the CTRL+B keys and the top bar menu will appear. File/Library/... etc. is on that menu.

  • Alert Configuration for File to IDoc scenario

    I have followed Alerts : Step-by-Step /people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions
    and configured Alerts for file to IDoc scenario.
    But the problem is, I did not notice any alerts being generated. I could notice the IDocs being posted to destination system. So I was going through Alerts-Troubleshoute Guide. In intension to maintain monitoring level, I clicked Configuration tab. But I did not notice my sender and receiver system there to maintain.
    Can any body help me to detail out the procedure to add sender and receiver systems to maintain the monitoring level?
    Regards,
    Suraj Kumar

    hi Suraj,
    WHich SP version are you on??
    If you are on Sp14 or above, then unfortunately, Michal's Trouble Shooting for Alerts will not help.
    From SP14 onwards, activation of end to end monitoring is not needed for Alerting. Refer to this note <b>870232</b> for this info.
    Next, to test if your Alerts have been defined correctly, go to SE38. In the program , type RSALERTTEST and then click on EXECUTE button ( F8 ). In the next window, it will ask you for your ALERTCATEGORY. Just give the name of your ALERT CATEGORY and click EXECUTE.
    If you have configured your alerts correctly, you will receive a message that tells ALERT IS GENERATED and will give the ALERT ID.
    Now, go to your Run TIme workbench and then select ALERT INBOX and see if you have got the ALERT message in your ALERT INBOX.
    If this is working fine, then the last step, implement the note 913858.
    Regards,
    Bhavesh

  • Drop-down Menu to Open URL for File Download

    I am using Adobe Captivate 5.5 and was wondering if it is possible to create a drop-down menu that can be used to open different URLs for file downloads, kind of like the Attachments button Presenter has. Captivate seems to have a dropdown widget available but I can't tell if this would work for this purpose.

    Hi Theo
    You can use any composition to create a menu with setting for show target on rollover and then link targets to specific pages.
    Adobe Muse CC 7.0 Tutorial | Beautiful Graphic Navigation - YouTube
    Thanks,
    Sanjit

  • JSF error message: Automatic prompting for file download

    This is a weird problem. I have a JSF application wherin I popup a new window on a submit button.
    The window opens a test.jsf page that redirects the output to a servlet1.
    Servlet then based on some parameters does a sendRedirectI() to different servlets out of context.
    Now the issue is that when the output is redirected to out of context servlet, that returns a file download.
    If in IE browser, if one does not do a setting of "Automatic prompting for file download", this window that I had opened on submit buttton vanishes in a jiffy. If the IE setting is done, it shows the file download correctly.
    I would want to show the user some kind of message by which he/she understands that this IE setting has to be done.
    I have tried several ways:
    1. Javascript: window.onbeforeunload on the test.jsf so that when the window unloads i can show some message. But since test.jsf forwards to servlet1, the html page generated does not show my script.
    2. I also tried checking if some windows registry can help me understand the setting.
    3. I tried writing in response object the javascript and then redirecting it to servlet out of context. But I guess sendRedirect() does a new request, so this did not help.
    Can anyone help? I am not sure if I am able to explain my problem correctly.
    Yani

    Here is the result.I used your code and it worked fine with IE setting Enabled. But when I tried to access the download servlet after opening a new window, it doesnt download the file.

Maybe you are looking for

  • Only Essbase read access for a Planning App

    A user needs access only to read data values from essbase for a planning application. Similar to "View User" in Planning roles except doesn't need access to Planning. How can this be achieved? Thanks

  • Blurring the entire screen in a WinForms application

    Hello, I am trying to come up with a way to blur the entire screen (all forms visible) on a WinForms program. I am using C# in VS2005. I have tried the code from this link: .net - C# dialog form with blur background - Stack Overflow ...and it works q

  • Save as Draft causing duplication of document

    Dear All, We are facing an issue where user updating the draft document and save it as a draft again will causing duplication of the document.  This problem occurs for most of the draft document (not every document).  So i would like to know if this

  • Can I use View Link in ADF Creation Forms Jdev 10.1.3

    Hi... I created a view link of two tables. Then I created a ADF form with Master Object to show some informations.. and I created a ADF Creation form with the detail Object I'm trying to submit the informations added in the Detail forms. but no recor

  • Generation of k type PR  and service through maintenance order

    dear all, i require help from all of you , how i can book service and  k type purchase requition  cost on the maitntenance order. raghav