Re: Unable to add value in html:file

2011-05-21 Thread vivek mishra
Yeh exactly it's my ownership .[?].. I was trying to find out if could acheive this using struts functionality.. Though I have a solution for this requirement already but that would be a hacky way. Many Thanks for your help ..:) Vivek On Fri, May 20, 2011 at 10:26 PM, Dave Newton

RE: Unable to add value in html:file

2011-05-21 Thread Jason Pyeron
- - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is copyright PD Inc, subject to license 20080407P00. _ From: vivek mishra [mailto:mishravive...@gmail.com] Sent: Saturday, May 21, 2011 5:05 To: Struts Users Mailing List Subject: Re: Unable to add value in html:file

Re: Unable to add value in html:file

2011-05-21 Thread Chris Pratt
20080407P00. _ From: vivek mishra [mailto:mishravive...@gmail.com] Sent: Saturday, May 21, 2011 5:05 To: Struts Users Mailing List Subject: Re: Unable to add value in html:file Yeh exactly it's my ownership ... I was trying to find out if could acheive this using struts functionality

RE: Unable to add value in html:file

2011-05-21 Thread Jason Pyeron
-Original Message- From: Chris Pratt [mailto:thechrispr...@gmail.com] Sent: Saturday, May 21, 2011 16:10 To: Struts Users Mailing List Subject: Re: Unable to add value in html:file I'm pretty sure javascript can't get the file path in modern browsers, only the name. (*Chris

Re: Unable to add value in html:file

2011-05-20 Thread Dave Newton
Why would the container matter? Isn't this a browser issue? Dave On May 20, 2011 12:31 AM, Chris Pratt thechrispr...@gmail.com wrote: Depending on what container you're using, you might try: html:file name=Form tabindex=11 property=attachment styleId=frmTxtAttachment style=width:300px value

RE: Unable to add value in html:file

2011-05-20 Thread Jason Pyeron
-Original Message- From: Dave Newton [mailto:davelnew...@gmail.com] Sent: Friday, May 20, 2011 7:35 To: Struts Users Mailing List Subject: Re: Unable to add value in html:file Why would the container matter? Isn't this a browser issue? Remember the file path is required

Re: Unable to add value in html:file

2011-05-20 Thread Chris Pratt
It seems to me that the problem is that you can't nest JSP tags (the bean:write) within JSP tags (the html:file), if the container supports EL then my solution should work around that problem. (*Chris*) On Fri, May 20, 2011 at 4:34 AM, Dave Newton davelnew...@gmail.com wrote: Why would

Re: Unable to add value in html:file

2011-05-20 Thread Chris Pratt
at 5:17 AM, Jason Pyeron jpye...@pdinc.us wrote: -Original Message- From: Dave Newton [mailto:davelnew...@gmail.com] Sent: Friday, May 20, 2011 7:35 To: Struts Users Mailing List Subject: Re: Unable to add value in html:file Why would the container matter? Isn't

RE: Unable to add value in html:file

2011-05-20 Thread Jason Pyeron
-Original Message- From: Chris Pratt [mailto:thechrispr...@gmail.com] Sent: Friday, May 20, 2011 12:21 To: Struts Users Mailing List Subject: Re: Unable to add value in html:file I must have missed the automated upload requirement somewhere, so no you would definitely not want

Re: Unable to add value in html:file

2011-05-20 Thread Chris Pratt
: Chris Pratt [mailto:thechrispr...@gmail.com] Sent: Friday, May 20, 2011 12:21 To: Struts Users Mailing List Subject: Re: Unable to add value in html:file I must have missed the automated upload requirement somewhere, so no you would definitely not want people to be able to randomly grab

Re: Unable to add value in html:file

2011-05-20 Thread vivek mishra
Thanks for all the suggestion guys.. Here is some more elaboration of the problem in steps: 1) First user select a file to upload .. I am using FormFile type variable in my formbean. html:file name=*Form* tabindex=*11* property=*attachment* styleId=* frmTxtAttachment* style=*width:300px

Re: Unable to add value in html:file

2011-05-20 Thread Dave Newton
I did, I suggested ActiveX, applets, and Flash. It was noted that these would need to be signed (trusted). The behavior you're seeing is just how browsers work. This is a requirement you cannot meet in the same timeframe as your original estimate. If it were me, I'd do two things: 1) Take

Unable to add value in html:file

2011-05-19 Thread vivek mishra
Hi list, I am trying to add some value in html:file but unable to do this. Here is my code: html:file name=*Form* tabindex=*11* property=*attachment* styleId=* frmTxtAttachment* style=*width:300px* ** value=*bean:write name='parecRequestForm' property='attachPath' /* /html:file I am getting

Re: Unable to add value in html:file

2011-05-19 Thread Dave Newton
Can't do that. Dave On Thu, May 19, 2011 at 12:04 PM, vivek mishra mishravive...@gmail.com wrote: Hi list, I am trying to add some value in html:file but unable to do this. Here is my code: html:file name=*Form* tabindex=*11* property=*attachment* styleId=* frmTxtAttachment* style=*width

Re: Unable to add value in html:file

2011-05-19 Thread vivek mishra
, I am trying to add some value in html:file but unable to do this. Here is my code: html:file name=*Form* tabindex=*11* property=*attachment* styleId=* frmTxtAttachment* style=*width:300px* ** value=*bean:write name='parecRequestForm' property='attachPath' /* /html:file I am

Re: Unable to add value in html:file

2011-05-19 Thread Dave Newton
in html:file but unable to do this. Here is my code: html:file name=*Form* tabindex=*11* property=*attachment* styleId=* frmTxtAttachment* style=*width:300px* ** value=*bean:write name='parecRequestForm' property='attachPath' /* /html:file I am getting value in *bean:write name

Re: Unable to add value in html:file

2011-05-19 Thread vivek mishra
mishra mishravive...@gmail.com wrote: Hi list, I am trying to add some value in html:file but unable to do this. Here is my code: html:file name=*Form* tabindex=*11* property=*attachment* styleId=* frmTxtAttachment* style=*width:300px* ** value=*bean:write name

[OT] Re: Unable to add value in html:file

2011-05-19 Thread Dave Newton
? -- Vivek On Thu, May 19, 2011 at 10:10 PM, Dave Newton davelnew...@gmail.com wrote: Can't do that. Dave On Thu, May 19, 2011 at 12:04 PM, vivek mishra mishravive...@gmail.com wrote: Hi list, I am trying to add some value in html:file but unable to do

Re: Unable to add value in html:file

2011-05-19 Thread Chris Pratt
Depending on what container you're using, you might try: html:file name=Form tabindex=11 property=attachment styleId=frmTxtAttachment style=width:300px value=${parecRequestForm.attachPath} / (*Chris*) On Thu, May 19, 2011 at 9:04 AM, vivek mishra mishravive...@gmail.comwrote: Hi list, I

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 html:file 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

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 there any way i can create the html:file

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

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

html:file tag

2007-08-18 Thread Sandip Gaikwad
hi, I want to know how I can use html:file tag to accept only Microsoft Word files. html:file property=theFile accept=application/msword/ But it is not working. Please help me. Thank you.

Re: html:file tag

2007-08-18 Thread Nuwan Chandrasoma
I think you should give the file extensions Thanks, Nuwan Sandip Gaikwad wrote: hi, I want to know how I can use html:file tag to accept only Microsoft Word files. html:file property=theFile accept=application/msword/ But it is not working. Please help me. Thank you

html:file tag

2007-08-18 Thread Sandip Gaikwad
hi, I want to know how I can use html:file tag to accept only Microsoft Word files. html:file property=theFile accept=application/msword/ But it is not working. Please help me. Thank you.

Re: html:file tag

2007-08-18 Thread Sandip Gaikwad
Should I write html:file property=theFile accept=*.doc/ I did so. But it is also not working. On 8/18/07, Nuwan Chandrasoma [EMAIL PROTECTED] wrote: I think you should give the file extensions Thanks, Nuwan Sandip Gaikwad wrote: hi, I want to know how I can use html:file tag to accept

Re: html:file tag

2007-08-18 Thread Laurie Harper
, or that it doesn't understand the specification you've supplied. Or the problem could be something else entirely. It's hard to say without more information about what's happening. L. Sandip Gaikwad wrote: Should I write html:file property=theFile accept=*.doc/ I did so. But it is also not working

HTML:FILE

2006-11-07 Thread Van Nguyen
Im trying to create a jsp page that can upload a file. Everything works, but I cannot apply my style to the Browse button: html:file property=theFile size=40 styleClass=browse_button / That displays the regular button I apply the same styleClass to the submit button and that works

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 regular

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

RE: Html:file - urgent

2006-09-20 Thread Raghuveer
: **/ function checkFile(fname){ fname.select(); alert( Please use the ' Browse... ' button to select the file ); } html:file property=theFile onkeydown=checkFile(this) / var filename = document.Form.theFile.value; var filename

Re: Html:file - urgent

2006-09-20 Thread Puneet Lakhina
: **/ function checkFile(fname){ fname.select(); alert( Please use the ' Browse... ' button to select the file ); } html:file property=theFile onkeydown=checkFile

RE: Html:file - urgent

2006-09-20 Thread Patil, Sheetal
YOU CANT CHECK B'COZ JAVASCRIPT DOSENT ALLOW U TO READ THE FILE ON DISC. You can do 1. html:file property= onkeydown=javascript:return false;/ //it causes that no user can enter data manually, rather he has to select using brows button 2. check in javascript wheather that field is empty

html:file with image for button

2006-05-22 Thread Raghuveer
Is it possiable to have the image instead of Browse button in file object ? Example : src../images/b_upload.gif html:file property=theFile titleKey=msg.select.file style=inputtype / rendered code in jsp input type=file name=theFile value= style=inputtype title=Select File

Re: File upload using html:file tag fails..java.lang.IllegalArgumentException:

2006-05-11 Thread siva sajja
hope you have given your form declaration as html:form action=/uploadFile method=post enctype=multipart/form-data kommineni Anita [EMAIL PROTECTED] 写道: David, U are right...But If I change that to post I get

re: File upload using html:file tag fails..java.lang.IllegalArgumentException:

2006-05-11 Thread kommineni Anita
Yeah it worked by just using the common_fileupload.jar and also by removing the commons 1.1 from all my other libs in the Websphere Appserver lib ext aswell. Thanks, Anita --- Kyle Wu [EMAIL PROTECTED] wrote: as far as I know, file upload issue just require commons-fileupload.jar which is

File upload using html:file tag fails..java.lang.IllegalArgumentException:

2006-05-10 Thread kommineni Anita
Hi, Trying to upload a file using html:file property=primaryFile. In my Action form I have the property defined as org.apache.struts.upload.FormFile and have appropriate getter and setter. It gives me this exception E SRVE0026E: [Servlet Error]-[BeanUtils.populate

re: File upload using html:file tag fails.. java.lang.IllegalArgumentException:

2006-05-10 Thread Kyle Wu
mayby you forgot to set the enctype attribute in the html:form ... tag, it should be html:form ... ... enctype=multipart/form-data kommineni Anita [EMAIL PROTECTED] Hi, Trying to upload a file using property=primaryFile. In my Action form I have the property defined as

Re: re�� File upload using html:file tag fails..java.lang.IllegalArgumentException:

2006-05-10 Thread kommineni Anita
Kyle, Thanks for the reply. But I ahve it declared. I have that defined in my html as follows html:form method=get action=/checkInNew enctype=multipart/form-data Appreciate any further insights.. --- Kyle Wu [EMAIL PROTECTED] wrote: mayby you forgot to set the enctype attribute in the

Re: reXXXXXX File upload using html:file tag fails..java.lang.IllegalArgumentException:

2006-05-10 Thread David Evans
Just a guess, as i don't use the struts html tags, but shouldn't that method=get be method=post? you can't get a multi part form. dave On Wed, 2006-05-10 at 11:59 -0700, kommineni Anita wrote: Kyle, Thanks for the reply. But I ahve it declared. I have that defined in my html as follows

Re: reXXXXXX File upload using html:file tag fails..java.lang.IllegalArgumentException:

2006-05-10 Thread kommineni Anita
David, U are right...But If I change that to post I get java.lang.NoClassDefFoundError:org/apache/commons/io/output/DeferredFileOutputStream, though I have the necessary jar's in place. Thanks, /Anita --- David Evans [EMAIL PROTECTED] wrote: Just a guess, as i don't use the struts html tags,

Re: reXXXXXX File upload using html:file tag fails..java.lang.IllegalArgumentException:

2006-05-10 Thread Wendy Smoak
On 5/10/06, kommineni Anita [EMAIL PROTECTED] wrote: David, U are right...But If I change that to post I get java.lang.NoClassDefFoundError:org/apache/commons/io/output/DeferredFileOutputStream, though I have the necessary jar's in place. If you're using Commons Fileupload 1.1, it requires

Re: reXXXXXX File upload using html:file tag fails..java.lang.IllegalArgumentException:

2006-05-10 Thread kommineni Anita
Yes I do have both... --- Wendy Smoak [EMAIL PROTECTED] wrote: On 5/10/06, kommineni Anita [EMAIL PROTECTED] wrote: David, U are right...But If I change that to post I get java.lang.NoClassDefFoundError:org/apache/commons/io/output/DeferredFileOutputStream, though I have the necessary

re: File upload using html:file tag fails..java.lang.IllegalArgumentException:

2006-05-10 Thread Kyle Wu
as far as I know, file upload issue just require commons-fileupload.jar which is already included in the struts-blank demo, why don't you just do as what is demostrated in the file upload demo? just a guess... kommineni Anita [EMAIL PROTECTED] 写道: David, U are right...But If I change

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, vijay

html:file OutOfMemoryError

2006-02-03 Thread Moreno Herranz, Jose Luis
//to refresh the page with the data of the html:file } html:form action=/calcularCuotas method=post enctype=multipart/form-data html:file property=ficheroImportar value=*.*/ html:submit onclick=javascript:refresh()Load File/html:submit /html:form The problem is that i can

Re: html:file OutOfMemoryError

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

html:file elements appearance

2005-10-28 Thread Anna Krajewska
Hi I have a problem with html:file tag. I want to set a styleclass or some style parameters for the button, but when I set styleClass=button and styleId=something (I did not manage to find what this attribute is for, and there is no difference beetween situations when it's present in the tag

Re: html:file elements appearance

2005-10-28 Thread Laurent
Anna Krajewska wrote: I have a problem with html:file tag. I want to set a styleclass or some style parameters for the button, but when I set styleClass=button and styleId=something (I did not manage to find what this attribute is for, and there is no difference beetween situations when

RE: Set the file name in html:file

2005-08-23 Thread Dharmendra . Sharan
: 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 security risk eg set file name to be c:\windows\someimportantfile.txt then get

RE: Set the file name in html:file

2005-08-23 Thread karthikeyan.varadarajan
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, In the JSP, I

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 PROTECTED

Re: Set the file name in html:file

2005-08-22 Thread Jason Lea
. 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] -- Jason Lea

html:file pre populating

2005-07-17 Thread dumbQuestionsAsker _
Hi everybody, Is there any mechanisme provided by struts to allow prepopulating html:file inputs in the case of iterating Form which retrives beans values ?(It seems that in the best case FormFile only return the file name not the whole path) Thanks in advance. best regards, Dumbo

Re: html:file pre populating

2005-07-17 Thread Martin Gainty
- From: dumbQuestionsAsker _ [EMAIL PROTECTED] To: user@struts.apache.org Sent: Sunday, July 17, 2005 6:14 AM Subject: html:file pre populating Hi everybody, Is there any mechanisme provided by struts to allow prepopulating html:file inputs in the case of iterating Form which retrives

Re: html:file pre populating

2005-07-17 Thread dumbQuestionsAsker _
YourActionForm yourActionForm=(YourActionForm)form; yourActionForm.setSpecificField(thevaluefromtheFile); Yes I did but that only returns the file name, not the whole path, and im not able to populate the html:file input with this only file name. The only solution I found is to populate a hidden

Re: html:file pre populating

2005-07-17 Thread Martin Gainty
, July 17, 2005 11:14 AM Subject: Re: html:file pre populating YourActionForm yourActionForm=(YourActionForm)form; yourActionForm.setSpecificField(thevaluefromtheFile); Yes I did but that only returns the file name, not the whole path, and im not able to populate the html:file input with this only

Re: html:file pre populating

2005-07-17 Thread dumbQuestionsAsker _
Mailing List user@struts.apache.org Subject: Re: html:file pre populating Date: Sun, 17 Jul 2005 11:46:39 -0400 the property you are instanting must of type org.apache.struts.upload.FormFile I guess I cant provide any specific help you unless the I see your code Martin- - Original Message

Re: html:file pre populating

2005-07-17 Thread Martin Gainty
Wasnt aware of any such restrictions with any Browser with respect to use of html:file When you get the chance please forward the link which contains the information with respect to Client Browser (Opera vs IE vs Netscape) Regards, M- - Original Message - From: dumbQuestionsAsker

Re: html:file pre populating

2005-07-17 Thread dumbQuestionsAsker _
it, but browsers don't. I hope this will be helpfull. Dumbo. From: Martin Gainty [EMAIL PROTECTED] Reply-To: Martin Gainty [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Subject: Re: html:file pre populating Date: Sun, 17 Jul 2005 14:47:26 -0400 Wasnt aware of any

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: 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

RE: Struts FormFile and html:file

2005-01-14 Thread Sullivan, Sean C - MWT
I am still searching for an answer. Thanks in advance. -Sean -Original Message- Sent: Monday, January 10, 2005 5:44 PM To: user@struts.apache.org Subject: Struts FormFile and html:file I read the documentation for the html:file tag http://struts.apache.org/userGuide/struts

Re: Struts FormFile and html:file

2005-01-14 Thread Kishore Senji
[EMAIL PROTECTED] wrote: I read the documentation for the html:file tag http://struts.apache.org/userGuide/struts-html.html#file According to the Struts documentation: WARNING: In order to correctly recognize uploaded files, the ActionForm bean associated with this form must include

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 input type='file' without breaking security.

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

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

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 upload the file

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 believe. You have to upload

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

html:file value

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

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 value in Action class without using

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 has no value

RE: html:file value

2004-12-20 Thread Slattery, Tim - BLS
How do I get html:file value in Action class without using javascript? html:file property=theFile / 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

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 using javascript

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 the values to the bean

html:file property='browse' style='display:none;'/ works only in Internet Explorer

2004-08-12 Thread Michael McGrady
The following works only in Internet Explorer, not in Mozilla, Netscape or Opera. Anyone have any idea how to fix it? html:form method='POST' enctype='multipart/form-data' action='/upload' html:file property='browse' value='' style='display: none;' / html:text property='file' value

RE: html:file property='browse' style='display:none;'/ works on ly in Internet Explorer

2004-08-12 Thread Slattery, Tim - BLS
The following works only in Internet Explorer, not in Mozilla, Netscape or Opera. Anyone have any idea how to fix it? html:form method='POST' enctype='multipart/form-data' action='/upload' html:file property='browse' value='' style='display: none;' / html:text property='file

RE: html:file

2004-08-10 Thread McCormack, Chris
rtexprvaluetrue/rtexprvalue /attribute 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 rendered by html:file

Re: html:file

2004-08-10 Thread Erik Weber
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 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

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 attributes seem

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

Re: html:file using an image button

2004-08-10 Thread Ovidiu EFTIMIE
Use something like this script function getNomFichier(){ document.forms[0].btnFichier.click(); document.forms[0].nomFichier.value=document.form[frmFichier].btnFichier.value; } /script input type=text name=nomFichier disabledimg src=../images/loupe.gif onclick=getNomFichier(); div

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 script function getNomFichier(){ document.forms[0].btnFichier.click(); document.forms[0].nomFichier.value=document.form[frmFichier].btnFichier.value; } /script input type=text name=nomFichier disabledimg src=../images/loupe.gif

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 copypaste 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 Tue, 10 Aug 2004 12:21

error with html:file

2004-08-02 Thread Hari Saptoadi
Hi all i've jsp form like this html:form action=ActionHome enctype=multipart/form-data method=POST html:file property=foto accept=image/jpeg / pnbsp;/p html:submit value=file / /html:form and after i click submit i've got this massage 500 Internal Server Error

Re: error with html:file

2004-08-02 Thread Hari Saptoadi
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- From: Hari Saptoadi [mailto:[EMAIL PROTECTED] Sent: Monday, August 02, 2004 10:55 AM To: Struts

Re: html:file tag

2004-05-21 Thread Henrique VIECILI
be more interesting to use some kind of SIGNED Applet or ActiveX Control. Explain what you wanna do and I can give you a better clue. Henrique Viecili - Original Message - From: praveen kulkarni To: [EMAIL PROTECTED] Sent: Friday, May 21, 2004 1:55 AM Subject: html:file tag

html:file tag

2004-05-20 Thread praveen kulkarni
hi all, Is it possible to select the folder or directory from html:file tag , or any other techniques please let me know. Thanks in advance, Praveen Do not follow where the path may lead. Go instead where there is no path and leave a trail. Yahoo! India Matrimony: Find your partner online.