Good call, I focused on the wrong part of the question, i.e. why the value
that was presented to the browser was wrong, not why the value wasn't being
used by the browser.
  (*Chris*)

On Fri, May 20, 2011 at 9:30 AM, Jason Pyeron <jpye...@pdinc.us> wrote:

>
> > -----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 people to be
> > able to randomly grab files of anyone's machine without user
> > interaction.  The closest you're likely to get is Flash or an
> > Applet (like Dave suggested).
> >   (*Chris*)
>
> While the OP did not ask for an "automated" upload, the only reason for
> providing a value for the path, is so the end user does not have to change
> it
> before the submit. Lets call that semi automatic.
> As such a browser may disregard any value put there... It has been a while
> since
> I dealt with these issues.
>
> >
> > On Fri, May 20, 2011 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 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"
> > > > <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="${parecRequestForm.attachPath}" />
> > > > >
> > > > > (*Chris*)
> > > > >
> > > > > On Thu, May 19, 2011 at 9:04 AM, 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: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-unsubscr...@struts.apache.org
> > > For additional commands, e-mail: user-h...@struts.apache.org
> > >
> > >
> >
>
>
>
> --
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> -                                                               -
> - 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-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

Reply via email to