html:file, how to make image instead of bouton

2009-09-18 Thread jaljal
Hi, I want to modify the style of the button of the tag by puting an image. Can I do that ? Thanks for help -- View this message in context: http://www.nabble.com/html%3Afile%2C-how-to-make-image-instead-of-bouton-tp25507468p25507468.html Sent from the Struts - User mailing list archive at N

how to clear the "html:file " element value?

2009-07-21 Thread abhishek reddy
hi every one, how to clear the "html:file " element value? form is not submitting, until the "html:file" tag has a valid value.. Iam doing serverside validations, and "html:file" is the last element in the form. how to tackle this problem? Is

How to get the size of uploadded file before it is transferred from client to server with html:file tag of struts 1.2?

2007-12-05 Thread William King
We can use the validate method of actionform class to check whether the size of uploadded file has exceeded the max size.but,do we really have to upload that file completely before check? if i upload a very large file,maybe several g bytes,then it taks a very long time to transfer that file from cl

How to check whether the uploaded file exists when using html:file tag of struts 1.2?

2007-12-05 Thread ang jin
when i upload file with html:file tag of struts 1.2,how can i judge whether the inputted file path is a valid one? the development enviroment is tomcat+struts+eclipse. i once want to check it in the validate method of corresponding actionform.but in debug mode,after i input a invalid file path

Re: HTML:FILE

2006-11-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Van, > I’m trying to create a jsp page that can upload a file. Everything > works, but I cannot apply my style to the “Browse” button: Most browsers don't let you style the browse button for file input types specifically. > That displays the regula

HTML:FILE

2006-11-07 Thread Van Nguyen
I’m trying to create a jsp page that can upload a file.  Everything works, but I cannot apply my style to the “Browse” button:     That displays the regular button… I apply the same styleClass to the submit button and that works out fine:     Any ideas on why it my style won’t app

RE: Html:file - urgent

2006-09-20 Thread Patil, Sheetal
ailto:[EMAIL PROTECTED] Sent: Wednesday, September 20, 2006 1:19 PM To: Struts Mailing list Subject: Html:file - urgent Hi! Please tell me how can i use javascript to check that the user has not selected any file in the html:file tag.

Re: Html:file - urgent

2006-09-20 Thread Puneet Lakhina
} -Original Message- From: Abhimanyu Koul [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 20, 2006 1:19 PM To: Struts Mailing list Subject: Html:file - urgent Hi! Please tell me how can i use javascript to check that the user has not selected any file in th

RE: Html:file - urgent

2006-09-20 Thread Raghuveer
.select(); document.smiAttachmentForm.theFile.focus(); return; } } -Original Message- From: Abhimanyu Koul [mailto:[E

Html:file - urgent

2006-09-20 Thread Abhimanyu Koul
Hi! Please tell me how can i use javascript to check that the user has not selected any file in the html:file tag. Koul

html:file clears after validate returns error

2006-02-21 Thread R.Vijayaraghavan
Hello, The html:file field clears after there is an error in the form's validate() method. The user then has to again select the file for upload. How do I retain the file selected by the user even after a validate error. I searched the internet but could not find anything. regards,

Re: html:file OutOfMemoryError

2006-02-03 Thread Ext . Ilitia2
bcc: Subject: html:file OutOfMemoryError 03/02/2006 09:12

html:file OutOfMemoryError

2006-02-03 Thread Moreno Herranz, Jose Luis
is the same action that loads this jsp in order //to refresh the page with the data of the html:file } Load File The problem is that i can load an external file, call the same action that loads this page and reload this page with the data of the external file (an

RE: Set the file name in html:file

2005-08-23 Thread karthikeyan.varadarajan
iling List Subject: Re: Set the file name in html:file Browsers don't allow you to set a file name, as it could be a security risk eg set file name to be c:\windows\someimportantfile.txt then get the form to auto submit and send the file to the server Anuradha S.Athreya wrote: >Hello,

RE: Set the file name in html:file

2005-08-23 Thread Dharmendra . Sharan
f any!) HTH, Dharmendra ps: have a good day! -Original Message- From: Jason Lea [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 23, 2005 1:39 AM To: Struts Users Mailing List Subject: Re: Set the file name in html:file Browsers don't allow you to set a file name, as it could be a

Re: Set the file name in html:file

2005-08-22 Thread Jason Lea
e JSP. I'm using html:file taglib. I'm retrieving the file name (to be set) from a bean. What is the syntax for this? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Set the file name in html:file

2005-08-22 Thread Anuradha S.Athreya
Hello, In the JSP, I need to set the default file name in the JSP. I'm using html:file taglib. I'm retrieving the file name (to be set) from a bean. What is the syntax for this? - To unsubscribe, e-mail: [EMAIL

Re: Using html:file

2005-06-30 Thread Nitesh
The page expiring has probably nothing to do with the html:file. Try removing that html:file and then go through the same steps and verify if you get the same problem. Mostly this may have to do with the page you are going back to being a submitted reuqest which has expired Nitesh

Using html:file

2005-06-30 Thread vinod varghese
Hi, I have a particular issue using the html:file tag. The situation is that my jsp uses a html:file tag.First I submit the jsp which returns a validation error through the html:errors tag. I correct those errors and again submit the form which after processing in the action takes to another

Re: html:file value

2004-12-22 Thread Dakota Jack
To be fair, Derek, you are following a long tradition. I think there was even a challenge on the Internet to do this. However, you are wrong. I DO it all the time. You need to think out of the box. I have given you the solution. I can give you code, but it is interesting and instructive (to m

Re: html:file value

2004-12-22 Thread Derek Broughton
On Wednesday 22 December 2004 02:29, Dakota Jack wrote: > There actually are a lot of things you can do with this that are not > obvious and are consistent with what seems to be impossible. You can > actually get around almost all of the restrictions on type='file'> without breaking security. Yo

RE: html:file value

2004-12-21 Thread uma.k
Hi Jack, I finally got it to work. html:file doesn't get filled with a default value (thats a security concern), so I have passed the filename from display.jsp (preview) to my action and in my action class I am checking if the file exists, then I am renaming to another name for Submission an

Re: html:file value

2004-12-21 Thread Dakota Jack
> Uma, > > When your user submits the form that they've used to select the file > they want to upload, you'll have to upload it - right then. AFAIK, > there's not a way to, at some later point in time, poke a value into a > html:file input field -- per the HTML spec, I be

Re: html:file value

2004-12-21 Thread Eddie Bush
Uma, When your user submits the form that they've used to select the file they want to upload, you'll have to upload it - right then. AFAIK, there's not a way to, at some later point in time, poke a value into a html:file input field -- per the HTML spec, I believe. You have to

Re: html:file value

2004-12-21 Thread Dakota Jack
Hi, Uma, Let's start over. Forget about anything but telling me from a user's point of view what you want to do. You have a user using a browser and wanting to do something with files. If the file is on the server, then we are talking about a download. If the file is on the client (user machin

RE: html:file value

2004-12-20 Thread uma.k
Hi Jack, Thanks for the replies. I basically wanted to write a test programme where in I have few text fields and 3 html:file inputs. Before I send the "text" information and "images" to the server, I wanted to show a preview to the user. What I am planning to do is, pass th

Re: html:file value

2004-12-20 Thread Dakota Jack
Hi, Tim, If you have been following uma's posts, you will find that she has already discovered the Struts file upload classes. Jack On Mon, 20 Dec 2004 09:26:59 -0500, Slattery, Tim - BLS <[EMAIL PROTECTED]> wrote: > > How do I get html:file value in Action class without

RE: html:file value

2004-12-20 Thread Slattery, Tim - BLS
> How do I get html:file value in Action class without using javascript? > Have you looked at the struts-upload.jar in the Struts distribution zip file? That's a full-functional file upload application, all the details of using Struts to upload a file are there. In a nutshell,

RE: html:file value

2004-12-20 Thread uma.k
Hi Jack, I basically wanted the value from html:file to get it displayed in the html:img tag in another jsp. But can you tell me if we can get the value from the html:img tag again so that I can submit it to the db? Any example? This doesn't work for me, I get "Attribute image_path ha

Re: html:file value

2004-12-20 Thread Dakota Jack
This is just an input type in a form, Uma, so you need some sort of form submission which "references" an action class, usually something like "uploadAction.do". Jack On Mon, 20 Dec 2004 19:38:23 +0530, uma.k <[EMAIL PROTECTED]> wrote: > How do I get html:file

html:file value

2004-12-20 Thread uma.k
How do I get html:file value in Action class without using javascript? Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: html:file using an image button

2004-08-10 Thread Ovidiu EFTIMIE
I'm using html:file and it works just fine . In my previous reply I made a copy&paste from the generated html. The most important lines are these 2 document.forms[0].btnFichier.click(); document.forms[0].nomFichier.value=document.form["frmFichier"].btnFichier.value; On

Re: html:file using an image button

2004-08-10 Thread Michael McGrady
At 10:14 AM 8/10/2004, you wrote: Use something like this function getNomFichier(){ document.forms[0].btnFichier.click(); document.forms[0].nomFichier.value=document.form["frmFichier"].btnFichier.value; } Will this work with ?

Re: html:file using an image button

2004-08-10 Thread Ovidiu EFTIMIE
Use something like this function getNomFichier(){ document.forms[0].btnFichier.click(); document.forms[0].nomFichier.value=document.form["frmFichier"].btnFichier.value; } Ovidiu On Tue, 10 Aug 2004 08:27:49 -0700, Michael McGrady <[EMAIL PROTECTED]> wrote: > At 07:41 AM 8/10/20

Re: html:file using an image button

2004-08-10 Thread Michael McGrady
At 07:41 AM 8/10/2004, you wrote: Michael McGrady wrote: Is there a way to hide the standard browse button and use an image for the button instead? Michael, I don't believe this is part of the HTML spec, so in short, no. Every browser uses a different button for browsing. I don't believe that eve

Re: html:file using an image button

2004-08-10 Thread Ruth, Brice
Michael McGrady wrote: Is there a way to hide the standard browse button and use an image for the button instead? Michael, I don't believe this is part of the HTML spec, so in short, no. Every browser uses a different button for browsing. I don't believe that even CSS can control this. -- Brice

html:file using an image button

2004-08-10 Thread Michael McGrady
Is there a way to hide the standard browse button and use an image for the button instead? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: html:file

2004-08-10 Thread McCormack, Chris
Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: 10 August 2004 11:11 To: Struts Users Mailing List Subject: Re: html:file Hmm well I'll give that a try. I am confused because there are actually two objects involved -- the text field and the "browse" button, and the

Re: html:file

2004-08-10 Thread Erik Weber
lass false true styleId false true you can alter the style using css till your hearts content :) Chris -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: 10 August 2004 10:23 To: Struts Users Mailing List Subject: html:file The "browse . . ." button that is re

RE: html:file

2004-08-10 Thread McCormack, Chris
Users Mailing List Subject: html:file The "browse . . ." button that is rendered by html:file is sticking out like a sore thumb. How can I change the text and/or style of this particular button? Erik - To unsubscri

html:file

2004-08-10 Thread Erik Weber
The "browse . . ." button that is rendered by html:file is sticking out like a sore thumb. How can I change the text and/or style of this particular button? Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: error with html:file

2004-08-02 Thread Hari Saptoadi
t;[EMAIL PROTECTED]> Sent: Monday, August 02, 2004 9:26 PM Subject: RE: error with html:file > Make sure you have a Form Bean class with the following? > ... > FormFile getFoto () {} > Void setFoto (FormFile file) {} > .. > > --Erez > > > -Original Message- &g

RE: error with html:file

2004-08-02 Thread Erez Efrati
html:file Hi all i've jsp form like this   and after i click submit i've got this massage 500 Internal Server Error java.lang.IllegalArgumentException: type mismatch java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) n

error with html:file

2004-08-02 Thread Hari Saptoadi
Hi all i've jsp form like this   and after i click submit i've got this massage 500 Internal Server Error java.lang.IllegalArgumentException: type mismatch java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) native code