struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tommy Pham <tommy...@yahoo.com>
Subject Re: Strut2 Picture Upload question: Please Help!
Date Thu, 03 Sep 2009 10:21:14 GMT
----- Original Message ----
> From: hisameer <cool_sameer_for_u@yahoo.com>
> To: user@struts.apache.org
> Sent: Wednesday, September 2, 2009 4:49:05 PM
> Subject: RE: Strut2 Picture Upload question: Please Help!
> 
> 
> Thanks for your comment. But my question is How can it be done using AJAX? I
> am using dojo plugin in my struts application. But if I use 
> type="file" name="docs" value="Brows" width="400px"/>
> then it also shows the brows location as well. But in my case its only a
> simple upload button.What should I do?
> 
> And initially there has to be a placeholder for those pictures as well. 
> 
> I am totally confused. Please help!
> 
> 
> 
> Lee Clemens-4 wrote:
> > 
> > Maybe have the Upload buttons refresh the page? And load the images from
> > the
> > action?
> > 
> > Otherwise it would have to be done client side (ajax?)
> > 
> > -----Original Message-----
> > From: hisameer [mailto:cool_sameer_for_u@yahoo.com] 
> > Sent: Wednesday, September 02, 2009 6:27 PM
> > To: user@struts.apache.org
> > Subject: Strut2 Picture Upload question: Please Help!
> > 
> > 
> > I am using Struts 2.1.6 and in my application I have a requirement where
> > the
> > user can upload four pictures of his vehicle.In my JSP, there will be four
> > upload buttons corresponding to those four pics(As shown in the below
> > image). After the user is done selecting the file it should be uploaded in
> > the JSP right away. 
> > 
> > Below image shows the actual display of the requirement. 
> > 
> > 
> > http://www.nabble.com/file/p25266760/picUploading.jpg 
> > 
> > 
> > Can somebody put some sample code for this kind of requirement or suggest
> > me
> > what should I do? I am sure this is just a simple requirement but I am not
> > able to crack it. 
> > -- 
> > View this message in context:
> > http://www.nabble.com/Strut2-Picture-Upload-question%3A-Please-Help%21-tp252
> > 66760p25266760.html
> > Sent from the Struts - User mailing list archive at Nabble.com.
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> > 
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> > 
> > 
> > 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/Strut2-Picture-Upload-question%3A-Please-Help%21-tp25266760p25267581.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org

I don't get what you're trying to achieve...

scenario 1:  something like youtube.com ajax uploads?  The user can upload multiple files
but only will be uploading while the rest in queue.  The user can modify the settings as necessary
(names, description, etc) while in the upload page and the files are uploading.

scenario 2:  the user selects a picture and ajax will show the picture dynamically on the
browser so the user is looking at the picture to confirm it's the right picture prior to upload
action??? NOT POSSIBLE!  If this was, every identity thief on the net would have field days...

scenario 3: the user select multiple files to be uploaded at once??  You might want to look
deeper into the commons FileUpload... it's very nice and powerful if you can implement it
correctly.  If you haven't noticed it by now, most of the java frameworks I've seen Struts
(1 & 2), JSF (Apache's MyFaces and Sun's Visual) uses the commons FileUpload.

Regards,
Tommy


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message