struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Pyeron" <jpye...@pdinc.us>
Subject RE: Unable to add value in <html:file>
Date Fri, 20 May 2011 12:17:38 GMT
> -----Original Message-----
> From: Dave Newton [mailto:davelnewton@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 to be ignored, so an automated upload of
files like /etc/shadow or c:\windows\win.ini, etc. can not be uploaded without
user intervention. Even an applet (and maybe some activeX controls) cannot
access the "unrestricted" file system unless they have been "trusted".

Googling the rest is your best solution, some keywords to get you started: 

automatic file upload 

And then one of ...

applet Firefox html http IE javascript jsp php 

You should be able to get the idea from that.

> Dave
>  On May 20, 2011 12:31 AM, "Chris Pratt" 
> <thechrispratt@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="${parecRequestForm.attachPath}" />
> >
> > (*Chris*)
> >
> > On Thu, May 19, 2011 at 9:04 AM, vivek mishra 
> <mishravivek85@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='parecRequestForm' 
> property='attachPath' 
> >> />"*
> >> ></html:file>
> >>
> >> I am getting value in *<bean:write name='parecRequestForm'
> >> property='attachPath' /> , but it's not getting set in*
> >>
> >> *as as value of <html:file>.*
> >>
> >> *Any help will be much appreciated !!*
> >>
> >> *Thanks and Regards,*
> >>
> >> *-- Vivek Mishra*
> >>
> >> * *
> >>
> 



--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.

 


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


Mime
View raw message