Re: initialise a form file

2008-12-11 Thread Dave Newton
--- On Thu, 12/11/08, Robert Graf-Waczenski wrote: > No, the absolute path is not available and also completely > irrelevant to a web application because the absolute path > as seen by the client who uploaded the file may or may not > be the same to another client who looks at the uploaded data.

Re: initialise a form file

2008-12-11 Thread Robert Graf-Waczenski
No, the absolute path is not available and also completely irrelevant to a web application because the absolute path as seen by the client who uploaded the file may or may not be the same to another client who looks at the uploaded data. Again, this is due to how file uploads via HTTP work. The

Re: initialise a form file

2008-12-11 Thread elyes sallem
s > details. > > HTH, > > Robert > > > elyes sallem wrote: > >> Hello, >> in a form, a define a > and i defined a form file as property >> i wanna initialise the path and display it in first access >> i have the value of the path by default >

Re: initialise a form file

2008-12-11 Thread Robert Graf-Waczenski
Hi, short answer: This is not possible. This restriction is not imposed by Struts but is instead due to a restriction of the html tag, for which the value can not be prefilled or changed programmatically. In our app we therefore have the pattern that when a file is currently already uploaded

Re: initialise a form file

2008-12-11 Thread Andras Balogh
Hi, A HTML input of type file can't have a default value. This is a security issue. BR, Andras elyes sallem wrote: Hello, in a form, a define a - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai

initialise a form file

2008-12-11 Thread elyes sallem
Hello, in a form, a define a

Re: form + file problem

2007-12-26 Thread Pablo Vázquez Blázquez
I have not found yet a solution to my problem. Any help would be grateful. If you need more information to help you solving my problem, please ask me. Thanks. Pablo Vázquez Blázquez escribió: I have the following form: http://www.w3.org/1999/xhtml"; xmlns:jsp="http://java.sun.com/JSP/Page

Re: form + file problem

2007-12-19 Thread Pablo Vázquez Blázquez
I suppose so, as the rest of the form works OK when there is no file field. The form loads part of its content via AJAX. When the loaded content includes a takes place the problem. Regards. Dave Newton escribió: Do you have the appropriate tag lib declarations in the included JSP file? --

Re: form + file problem

2007-12-19 Thread Dave Newton
Do you have the appropriate tag lib declarations in the included JSP file? --- Pablo Vázquez Blázquez <[EMAIL PROTECTED]> wrote: > I have the following form: > > http://www.w3.org/1999/xhtml"; > xmlns:jsp="http://java.sun.com/JSP/Page"; > xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"; >

form + file problem

2007-12-19 Thread Pablo Vázquez Blázquez
I have the following form: http://www.w3.org/1999/xhtml"; xmlns:jsp="http://java.sun.com/JSP/Page"; xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"; xmlns:c="http://java.sun.com/jsp/jstl/core"; xmlns:s="/struts-tags" version="2.0"> Why, if I have a field inside JobV

Re: Where Are Files Uploaded When Using Form File?

2006-05-02 Thread David Evans
the answer to your first question is here: http://struts.apache.org/struts-action/apidocs/org/apache/struts/upload/CommonsMultipartRequestHandler.html#getRepositoryPath(org.apache.struts.config.ModuleConfig) I think the answer to your second question depends on the servlet container being used, an

Where Are Files Uploaded When Using Form File?

2006-05-02 Thread Help My PC!
Hi, Simple question, when using the UploadFormBean and FormFile to upload files in struts, where are the files stored when uploaded? Is there an upload dir that accumulates? If I store files in a DB, will I have to manually clean the upload directory? Thanks.

Form File

2005-08-24 Thread dumbQuestionsAsker _
Hi everybody, Im redesigning a webapp and I got a weird problem with a FormFile object. Actually I got a FormFile into an ActionForm class, to make a better design I want to store this FormFile into a "File" class and access it modifiying the getters/setters content, the problem is when I want