Alen Ribic wrote:
What I whish to avoid is that a file does not get loaded as a property each
time the value object is needed but only when a image viewing is required.
(e.g. a "view image" link is clicked in manager role view)
Store a reference to the file (perhaps a String pathname) rather tha
Hi everyone
I know that this question might have been asked in the past, but the mailing
list archive returns no results for me with keywords "file upload".
I just wanna know the best, preferred, way of uploading a file in Struts.
My scenario
I have simple products for a B2C system that have inp
> > Assume I have a 4 page form which gathers user information, address
> > information and company information. I would like to give the user
> > the opportunity to upload a logo while filling out the form. If I
> > do this in the natural place, which would be in step 2, I am not
> > sure how t
Dan Allen wrote:
> Assume I have a 4 page form which gathers user information, address
> information and company information. I would like to give the user
> the opportunity to upload a logo while filling out the form. If I
> do this in the natural place, which would be in step 2, I am not
> su
I set this to off topic since it really isn't limited to struts, but
I was interested in the advice this community could provide.
Assume I have a 4 page form which gathers user information, address
information and company information. I would like to give the user
the opportunity to upload a logo
I'm not sure if I understand you right, but is it because the upload example simply
displays the
contents of the files you upload directly to the browser (using out.print)? Because
the image is a
binary file it won't display nor would any other binary file...
I haven't had any troubles uploadin
Hi,
Just a quick question.
Why do I get garbage when I upload a jpeg or gif image file when using
the upload example in struts? I can see the image if I navigate to it in
my local fs using my browser but not by using the example upload war app.
Cheers
jfc
--
To unsubscribe, e-mail:
I apologize for the following post, I forget the whole abstract/extend
thing that java does ;-)
| -Original Message-
| From: Jacob Hookom [mailto:[EMAIL PROTECTED]]
| Sent: Wednesday, August 14, 2002 4:09 PM
| To: 'Struts Users Mailing List'
| Subject: Quick Upload Quest
I checked the mail-archive for a solution, but I was wondering if I have
an Action receive an upload request, do some processing, then forward it
off to another action to actually handle the file writing, is there
going to be an issue?
ProjectResourceUpload.do
//do processing
retu
Hi,
I am using struts' upload package to implement file upload feature. However I have a
question about the temp dir. say I use java.io.tmpdir as the temp dir for
MultipartIterator.
What happend if multiple users upload the same file at the same time, will the
previous
file be overwrittern by
ot;Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Subject: Re: Upload question
>Date: Wed, 14 Nov 2001 19:42:09 +0530
>
>Hi Daniel,
>
>I got the similar problem with. The problem is eliminated becau
Hi Daniel,
I got the similar problem with. The problem is eliminated because of two
things:
1) Just check whether you have two form elements. Use only one struts form tag
2) It is a must that you have to handle that file. That is getting its
input stream and read it to somewhere.
Hope this he
So could you telle me what can mean a "ServletException BeanUtils.populate"
because it's the error I got as soon as I click on the upload button and how
do I can get a ride on it ?
Thanks for help,
Daniel WAMARA
_
Téléchargez MSN
Hi,
Yes, it works very satisfying.
Stefan
- Original Message -
From: "Daniel WAMARA" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 14, 2001 9:05 AM
Subject: Upload question
> Does anyone has ever made an upload via Struts and this ha
Does anyone has ever made an upload via Struts and this has worked ? Because
I've tried y myself and got always failure, and even my Struts-Uplod Example
doesn't work.
Daniel WAMARA
_
Téléchargez MSN Explorer gratuitement à l'adre
iday, October 26, 2001 11:44 PM
Subject: Upload Question
> In the process of uploading images to the server I need to determine the
> location of my application on the server so that I can write to an
absolute
> location on the drive that I can acess from my webapp. In the past
> (pre-
In the process of uploading images to the server I need to determine the
location of my application on the server so that I can write to an absolute
location on the drive that I can acess from my webapp. In the past
(pre-Struts) I used the Servlet Context to determine where the web-app was
located
Jon,
I don't think you need to use DiskMultipartRequestHandler directly from
your action class. Have you looked at the example that comes with Struts?
Look for a file called 'struts-upload.war'.
If this doesn't help let me know. I have been able to upload files to the
server using Struts.
Ho
All,
I am trying to upload a file to the server using the input type file and
setting enctype="multipart/form-data" in the form. I've tried using the
DiskMultipartRequestHandler in my action class, but keep getting a null
pointer exception when I call the handleRequest method. Apparently it
happe
19 matches
Mail list logo