Simple Question -- Please reply

I have a web page where i have to upload test.jpg evey time. So instead of
giving <input type=file name=filnename> & browse the file
everytime i wrote
< input type =file name=filename value="c:\test.jpg> but is it not working.
Still i have to browse the c:\test.jpg for uploading.
so is there any way to set the value (as a string or whatever) to <input type=file name=filename value="test.jpg">
please help
amitindia

You are posting in the wrong forum. This is a java forum not a htm/javascript/any other.
Besides that, you should not use uri pointing to local hard drivers for the could will run in the cliente machine where you do not know where things are.
May the code be with you.

Similar Messages

  • A Lot of Question: PLEASE REPLY TO THIS THREAD

    Hi, I am a 16 year old teen that is about to wait for the right moment to have my dream of starting a youtube channel. Ive done a lot of research comparing how any type of laptop will compare when I record and play my games, because i mostly want to get into gaming youtube channel. Although i might want to do just gaming ive also wanted to do videos of unboxing and music covers. My friend that knows a lot about computers told me that i should get a mac if i want to do mainly editing, or if i want to just game and record i should buy a pc laptop. He recommended that i should buy a laptop from IBUYPOWER that has better specs than that of the mac book pro retina 15" and is cheaper. That moves onto my next question asking why are macs so overpriced? I did all my research on that too, and it most likely seems it is almost a brand name expense like louis vuotton. Next question is, how is the cheapest way I can get the 15" retina mac book pro for the cheapest price possible, should i wait until black friday for sales to lower, or should i wait until the next year to get the next 2015 model. Is the newer progressing years of MacBook pros that much better that i should wait until the next year to get it. Next question, say i wanted to play a game that is only on windows platform, ex. Skyrim. Should i play a cracked version that has been reformatted to the mac, or should i just download windows on my mac so that i can play it with more ease of use that way, instead of having to use everything in the mac side when it was originally formatted for Windows. Anyway thank you for your time, and even if you dont know the answer to these questions, PLEASE ANSWER ANYWAY, THANK YOU!
    MacBook Pro with Retina display, PLEASE REPLY TO THIS THREAD

    yellowfelow wrote:
    That moves onto my next question asking why are macs so overpriced?
    There is no such thing as overpriced. Apple is the most profitable company in the world. It sells all of the Macs it makes - every single one. Not everyone can afford a Mac, but such is life.
    I did all my research on that too, and it most likely seems it is almost a brand name expense like louis vuotton.
    That is incorrect. According to Forbes, Apple is the #1 most valuable brand, while Louis Vuitton is #10.
    Next question is, how is the cheapest way I can get the 15" retina mac book pro for the cheapest price possible, should i wait until black friday for sales to lower, or should i wait until the next year to get the next 2015 model.
    Machines may get more powerful every year, but they never get cheaper. You may be able to save more money the longer you wait. If you can't afford a 15" retina, consider a refurbished unit (buy directly from Apple only - see babowa's link), a 13" model, or an Air.
    Is the newer progressing years of MacBook pros that much better that i should wait until the next year to get it.
    They get better every year. If you wait forever, then the machine you never buy will be infinitely powerful.
    Next question, say i wanted to play a game that is only on windows platform, ex. Skyrim. Should i play a cracked version that has been reformatted to the mac, or should i just download windows on my mac so that i can play it with more ease of use that way, instead of having to use everything in the mac side when it was originally formatted for Windows.
    There is no such think as a "cracked version that has been reformatted to the Mac". If you want to run Windows software, buy a PC and run Windows. Most people do. You may be able to play that game on a Mac using Bootcamp, but it isn't guaranteed.

  • All who replied to my earlier questions please reply to this  thread ?

    hi, i have posted many questions and got them answered correctly. The members who replied to my questions posted previously,please reply to this post as "hi" or even an empty message. I want to add as many dukestars as possible for them. I am so sorry that i havent even responded or thanked anyone who provided the correct answers or replied to my post. So atleast let me add some duke stars for you. I remember the members who replied me. Thank you so much.Please provide me an opportunity to serve you.
    Thank You

    Your 23 posts are all here: [~suryakiran_s]. Award them there.

  • A simple question please help.

    Hi
    I have 2 textfields and a button. I want to input a number( diameter) in the first textfield  ( inputField) and by clicking on the button (myButton), I want to get the result (circonference) in the second textfield ( inputField1). diameter*3.14. I know it is a simple question, but it comes from a very simple mind. So have mercy on me.
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.text.TextFieldAutoSize;
    import flash.text.TextFormat;
    import flash.text.TextFormatAlign;
    import flash.events.MouseEvent;
    var inputField:TextField = new TextField();
    var myFormat:TextFormat = new TextFormat();
    myFormat.size = 44;
    inputField.defaultTextFormat = myFormat;
    inputField.restrict = "0-9";
    inputField.maxChars = 6;
    inputField.multiline = false;
    inputField.textColor = 0x000000;
    inputField.border = true;
    inputField.width = 150;
    inputField.height = 50;
    inputField.x = 75;
    inputField.y = 50;
    inputField.borderColor = 0xFF0000;
    inputField.type = "input";
    addChild(inputField);
    var inputField1:TextField = new TextField();
    var myFormat1:TextFormat = new TextFormat();
    myFormat1.size = 44;
    inputField1.defaultTextFormat = myFormat;
    inputField1.maxChars = 1;
    inputField1.multiline = false;
    inputField1.textColor = 0x000000;
    inputField1.border = true;
    inputField1.width = 150;
    inputField1.height = 50;
    inputField1.x = 275;
    inputField1.y = 50;
    inputField1.borderColor = 0xFF0000;
    addChild(inputField1);
    myButton.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_2);
    function fl_MouseClickHandler_2(event:MouseEvent):void
       trace("Mouse clicked");

    use:
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.text.TextFieldAutoSize;
    import flash.text.TextFormat;
    import flash.text.TextFormatAlign;
    import flash.events.MouseEvent;
    var inputField:TextField = new TextField();
    var myFormat:TextFormat = new TextFormat();
    myFormat.size = 44;
    inputField.defaultTextFormat = myFormat;
    inputField.restrict = "0-9";
    inputField.maxChars = 6;
    inputField.multiline = false;
    inputField.textColor = 0x000000;
    inputField.border = true;
    inputField.width = 150;
    inputField.height = 50;
    inputField.x = 75;
    inputField.y = 50;
    inputField.borderColor = 0xFF0000;
    inputField.type = "input";
    addChild(inputField);
    var inputField1:TextField = new TextField();
    var myFormat1:TextFormat = new TextFormat();
    myFormat1.size = 44;
    inputField1.defaultTextFormat = myFormat;
    inputField1.maxChars = 1;
    inputField1.multiline = false;
    inputField1.textColor = 0x000000;
    inputField1.border = true;
    inputField1.width = 150;
    inputField1.height = 50;
    inputField1.x = 275;
    inputField1.y = 50;
    inputField1.borderColor = 0xFF0000;
    addChild(inputField1);
    myButton.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_2);
    function fl_MouseClickHandler_2(event:MouseEvent):void
    inputField1.text=String(Math.PI*Number(inputField.text));

  • Tons of Questions: PLEASE REPLY TO THIS THREAD

    Hi, I am a 16 year old teen that is about to wait for the right moment to have my dream of starting a youtube channel. Ive done a lot of research comparing how any type of laptop will compare when I record and play my games, because i mostly want to get into gaming youtube channel. Although i might want to do just gaming ive also wanted to do videos of unboxing and music covers. My friend that knows a lot about computers told me that i should get a mac if i want to do mainly editing, or if i want to just game and record i should buy a pc laptop. He recommended that i should buy a laptop from IBUYPOWER that has better specs than that of the mac book pro retina 15" and is cheaper. That moves onto my next question asking why are macs so overpriced? I did all my research on that too, and it most likely seems it is almost a brand name expense like louis vuotton. Next question is, how is the cheapest way I can get the 15" retina mac book pro for the cheapest price possible, should i wait until black friday for sales to lower, or should i wait until the next year to get the next 2015 model. Is the newer progressing years of MacBook pros that much better that i should wait until the next year to get it. Next question, say i wanted to play a game that is only on windows platform, ex. Skyrim. Should i play a cracked version that has been reformatted to the mac, or should i just download windows on my mac so that i can play it with more ease of use that way, instead of having to use everything in the mac side when it was originally formatted for Windows. Anyway thank you for your time, and even if you dont know the answer to these questions, PLEASE ANSWER ANYWAY, THANK YOU!

    Mac is not overpriced...
    You pay for seamless Software/Hardware integration. Superior build and workmanship. And of course the OS X experience.
    As far as laptops go I believe apple has the best offerings on the market by a longshot.
    I am however not a big fan of buying a Mac and using it with windows... It kind of defeats the point, unless you are a developer, or need it occasionally for certain activities only Windows can perfrom.
    You stated you want to however start a youtube gaming channel, I think its better to buy a desktop for this type of activity. Obviously you will game for hours on end if you want to create some sort of feedback/opinion or reviews for different games.
    Also you will have to run windows to review the latest and best platforms/games. Many current games are not available on OSX platform. So your review channel would not be very good if you can only review OSX selected games.
    That said there could also be a niche on youtube for reviewing exclusively OSX games. I mean you could review different games from the apple app store etc.
    It really depends on what you want to do...
    There are many good windows based machines too to do this sort of thing... In your case it may be the better option.
    There are certainly Windows based laptops that do a much better job in the gaming compartment than a Macbook pro. In fact to play top end games you will need a top of the line 15 inch MBP with Discreet Graphics (Anything else only has Integrated graphics, games still playable, but there are limitations). You can get a much more affordable/powerfull laptop that is Windows based... Or more  practically a more affordable and powerful Desktop...
    I must however add.
    Coming from Windows environment... My first Macbook Pro and OSX experience put all previous windows machines to shame...
    I am a very pleased consumer, and personally I am sticking with my macbook pro
    Also if a game is not available for MAC. You can't get a "cracked reformated version".... It does not work that way.... It involves serious programming.
    You would need to install windows on the MAC
    Answered some of the questions. Your mutiple questions, lack of punctuation, and paragraphs was a nightmare to read.
    If you expect help please make your questions easier to read. Maybe even number your multiple questions.

  • Help with Forte: very simple question, please help!

    I recently downloaded the community version of Forte (Sun One) but can't seem to get any new empty class programs to execute properly. I know something is probably not set up right, which is why I really need a little help to get started. Regardless of the code I try to execute, the output error is always:
    "java.lang.NoClassDefFoundError: (name of program)
    Exception in thread "main" "
    Please let me know what I'm not doing right. I would really appreciate anybody's thoughts on this problem because I would love to get Forte working so I can start learning Java. Thanks for your input!

    I would tell you that Forte is not a tool for the beginner. you should look at something simpler. Forte is a fully integrated development environment. I would look at a simple editor like emacs, available at gnu.org. The commands of this editor are quite difficult to get use to.
    As for setting the class varialbe. It depends on the O/s that you are using. win98/me is different than NT/xp. Need to know one or the other before explaining.
    email me if you have question. email address is in my profile.

  • Simple Question Please URGENT

    Hello All,
    I'm having a little problem in witting an SQL statement.
    I'm sure there is a simple solution for it but its just not clicking with me!.
    Anywayz,
    I'm trying to write a statement that in the FROM clause, there is a formula, and i would like to assign conditions to this formula in the WHERE Clause
    Ex:
    SELECT DateValue(FLD_AS_STRING) FROM Table1 WHERE ???
    I want the statement to convert the FLD_AS_STRING field (which is in string format) to Date format, and in the same time i want to only view fields that it's FLD_AS_STRING is greater than today's date (after it is converted to Date)?
    How can i do that in this statement?
    Thanks in advance,
    Best Regards

    who do you mean "we"?Forum members that are quite fed up with people declaring their matters (more) urgent then other people's questions. I'm also one of them.
    I just wanted to grab people's attention for helpA simple thread with an appropriate subject line that describes the problem in short and a message that includes enough information to develop a solution for said problem would suffice.
    in the same time, it IS urgent, because my work is
    based on the solution for this issue...So what about everybody's else work? Not as important as your task?
    BTW, i dont see how rude that could be, could you plz
    explain!?Just imagine if everyone that wants to grab attention in this forums uses urgent in the subject line. Do you really consider that the way to go?
    C.

  • Nobody answering my question,Please reply its very urgent???

    Hello Experts,
    I want to fecth the Supplier information from SAP server to PDM server (non sap) using RFC call.But the LFA1 have some customised fields..
    1) I want the RFC or BAPI which Gives the supplier details with customised fields in LFA1.
    2) How Can I code In the PDM server??I mean How can I call In the PDM script??
    Please send me how to write a script and code of the script??
    I know that Bapi_vendor_getdetails,but it will not give the customized LFA1..
    Please Help...
    Thanks In Advance
    Preethi

    hi,
    try fm TABLE_ENTRIES_GET_VIA_RFC
    look here
    /people/gregor.wolf3/blog/2004/09/05/access-sap-r3-from-external
    A.
    Message was edited by:
            Andreas Mann

  • Real simple question, please!

    I want to record podcasts on my G5 (with or without the built in mike) but want to use theme music which I own (purchased, commissioned) as an intro and then again at the end when I'm done.
    Is there an idiot proof software that lets me do this with no learning curve to speak of? I saw the tutorial on Garage Band and it seemed easy if you use the built in music loops, but what about mp3 files I own that are currently on itunes?
    Can anyone tell me the best way to make these kinds of simple podcasts?
    Thanks so much!
    dr. Jonny

    The text will be in the template file somewhere.
    I assume you are searching the elements on the stage, try
    searching the elements in the library. Double check the
    actionscript as well just in case the text is dynamically produced
    through that. Rest assured, the text will be there somewhere.
    Good luck.

  • Simple question please

    Hi All
    I'm new to Generics but not new to Java.
    Let A and B represent classes or interfaces
    why the following is true:
    A<B's subclass> is subclass of A<? super B>
    I don't udnderstand why the above is correct
    please help me
    Thank u in advance

    JAddicted wrote:
    A<B's subclass> is subclass of A<? super B>It's not, who says so?
    Easy check (let C <: B):
    A<? super B> a = new A<C>();won't compile.
    Concrete example that does not compile:
    ArrayList<? super Number> a = new ArrayList<Integer>();What is true, though: If C <: B, then A<B> <: A<? super C>
    More on subtypes in Generics:
    http://www.angelikalanger.com/GenericsFAQ/FAQSections/TechnicalDetails.html#Which%20super-subset%20relationships%20exist%20among%20wildcards?

  • Simple question, please help

    I just need to know right now can SSL be used for secure FTP to send commands and data over separate channels, and if so, how? I want to replace a simple FTP socket connection with a secure one, nothing fancy. I don't want to use HTTP unless I absolutely have to. Any advice would be appreciated.

    Has anyone evaluated all the different options available and found the better alternatives? I have found SSH Communications Security's SSH Secure Shell, RSA Security's BSafe SSL-J, ValiCert's SecureTransport (a.k.a. FileDrive) and others. I haven't compared them in detail yet and was hoping to get some advice from others out there who are doing the same sort of thing.

  • Help with a simple question-please

    Forgive me if this has been covered already, it seems like such a simple request but I can not find any simple answers...
    I am currently using the trial version of acrobat 9.. I am considering buying. I want to create fillable PDF forms(for personal use). When I fill them them out I want to be able to email the filled out form, and save a copy of the filled out form. Can I do this? If yes how?
    Basically, i want to take all my personal forms that I now send out via snail mail(some are order forms, some are claim forms that I send to my insurance co, etc...). I want to make them into fillable pdf's so i can fill them out on my computer and then email them to whoever I choose. Can I do this? How?

    Do you want them to be filled0in with Reader, or Acrobat? To create a form in the first place, you'll need Acrobat. Once you've added the fields and entered the form data, you just have to save it as a new document. You can then attach the document to an email as you would any other type of file. You can also set up a "submit" type button to partially automate the process of saving and attaching a document to an email.
    If you want to create a form that Reader users can fill-in and save, you will have to Reader-enable the document. In Acrobat 9, you do this by opening the document in Acrobat and selecting "Advanced > Extend Features in Adobe Reader...".
    Regarding locking the document, you cannot do it securely with Reader, but you can set up the form so that the fields are set to read-only after it is filled-in but before it is saved. This may require a bit of programming in JavaScript, but it's not too complicated.
    George

  • A very simple question, please help.

    How would I output/print out a string in color rather then the standard black?
    If anyone can help me or point me in the right direction would be greatly appreciated.
    For example for extra clarification, if I want to print out a string "Hello World", how can I print it out in different colors such as in blue or red.
    Output to a JApplet ( TextArea)
    Thanks!
    Edited by: ff4930 on Nov 30, 2007 9:18 AM

    You can change the colour of all the text in a JTextArea by setting its foreground property:
    yourComponent.setForeground.setColor(Color.RED);If you just want have multiple colors in one JTextArea, that's not possible. You will have to use a more advanced component, like JEditorPane or JTextPane:
    http://java.sun.com/docs/books/tutorial/uiswing/components/editorpane.html
    In basic cases, if the text doesn't have to be editable by the user, you can use a JLabel and pass it simple html:
    String text = "<html><font color='red'>red text</font> " +
    "<font color='green'>green text</font> " +
    "<font color='blue'>blue text</font></html>";
    yourLabel.setText(text);

  • html:select and html:options simple question  - please help

    Hi Friends,
    I am having a problem, please help me .I want to run a query and display all the lastnames of all the users in my database.Here are my files:
    UserForm.java
    public class UserForm extends ActionForm{
         private name firstName;
         private name lastName;
         //all getter and setters
    viewuser.jsp
    <html:select property="lastName">
        <html:options collection="users" property="lastName" labelProperty="lastName" />
    </html:select>
    and my Java Utility class method
    public ArrayList getusers() throws Exception {
             ArrayList aList = new ArrayList();     
              Connection con = ConnectionUtil.getConnection();
              PreparedStatement stmt = null;
              try {
                   stmt = con.prepareStatement("select last_name from USERS);     
                   ResultSet rs = stmt.executeQuery();
                      if (rs.next()) {
                          aList.add(rs.getString(1));
                      }else {
                           return null;
                      rs.close();
                      return aList;
              } catch (SQLException e) {
                   e.printStackTrace();
                   throw new ServiceProcessingException(e.getMessage());
              } finally {
                   ConnectionUtil.closeStatement(stmt);
                   ConnectionUtil.closeConnection(con);
         }My problem is what i need to do in my Action class,so that it sets the "users" variable
    properly and i would be able to read that variable in my jsp and display the lastname
    of all the users.I am tryin this but failing badly:
    public class UserAction extends Action{
      ArrayList userssList = Utility_class_obj.getUsers();
      request.getSession().getServletContext().setAttribute("users", usersList);Please Please help,I would really appreciate your help.
    Thanks

    Thanks a lot friend...this time i made it work my style,next time i will use tha mehod.But I think I am not doing it the right way,please correct me:
    This is the method in my utility class where i run the query and I doubt I am not doing it right here:
    PreparedStatement stmt = null;
    ViewForm vForm = null;
    try {
    stmt = con.prepareStatement("SELECT LAST_NAME FROM   USERS_ADD");     \
    ResultSet rs = stmt.executeQuery();          
    while(rs.next()) {
           vForm = new ViewForm(rs.getString(1));          
          aList.add(vForm);          
       rs.close();
       return aList;          }
    }And I made this constructor in my viewForm class:
    public ViewForm(String lastName){          this.setLastName(lastName);     }I do this in my Action class then:
    ArrayList pList = csDAO.getUsers();  
         if(pList  != null){         
         request.getSession().getServletContext().setAttribute("plist", pList);      
    }And finally this in my jsp:
        <html:select property="lastName"> 
        <html: options collection="plist" property="lastName" labelProperty="lastName" /> And it works,but i don't think I can keep adding constructors to my form class like that,and moreoever if I want to search by first name ,there would be a conflict between 2 constructors,so can someone please tell me the right way to do this.
    Thanks
    Mick

  • PDF Viewer or Adobe Reader/QuickOffice Questions - PLEASE REPLY!

    Does the D Inc ship preinstalled with the "PDF Viewer" or Adobe Reader?
    Also, can you CREATE documents with Quickoffice, or does it only view doc/xls/ppt from attachments? I'm assuming you can also drag documents from the computer to the SD Card and view them on Quickoffice as well?
    Thanks!

    The Dinc with 2.1 had a pdf viewer but it was removed from the 2.2 update. You can download the Adobe pdf reader application from the Market for free.
    I believe that the QuickOffice installed on the Dinc is for viewing files only. The full paid version of QuickOffice has more options and is available on the market.
    Yes you can drag and drop documents into the sd card and they will be viewable by the QuickOffice application.

Maybe you are looking for

  • How to hane n no of detail in File(idoc to file )

    Hi Experts, I have a scenario where 10 idocs are collected at XI and then processed to give a single file. File should have 1 Header   ,1..n Detail and 1 trailer What FC(conversion contents parameters) should i specify for Detail...to have it n no. o

  • Button not visible in IE7 until clicked

    Perhaps not entirely ADF-related, but we have a login page in our ADF/WebCenter 11g PS5 application. In IE7, the submit button is not shown upon rendering the page, but suddenly appears when the form is submitted when pressing enter. Anyone seen this

  • CRM - Search for Business Transactions Screen

    Hi, When I go to the CRM - Search for Business Transactions Screen; in the second tab 'Search', when I click the Period dropdown it starts with a date in 1899 as default. Can anyone advise me on how to change this? Regards, Ravi.

  • The Quest for Delivered Web Services

    Does anyone know of a way to find a list of delivered web services? I've been browsing the Interactive Services Repository (ISR) but am not seeing a way of determining which have been exposed (as delivered) as web services. I'm trying to take an inve

  • Does JDBC support OS_Authentication (UNIX) to access database?

    Hi, I have an Oracle 9i database account with OS_authenticated password. The database server is running on Unix. I have a Unix account. The database access was set to be OS authenticated. As long as I am able to login the Unix system, I don't need to