Dear Dave,

thanks on response.


newton.dave wrote:
> 
> The <s:file.../> tag is for uploading files. Period. It's not a
> general-purpose "enter a filename here" tag.
> 
> We just went through this (or at least tried to) with somebody else.
> You're getting the enctype message because a file upload demands a
> multipart encoding.
> 

Thats is O.K.! I'm asking if S2 have some file chooser tag for this ?


newton.dave wrote:
> 
> There is no tag for *downloading* a file. That's handled by the browser.
> There are any number of tutorials on the web for how to download a file
> from a web application. Struts 2 provides the "stream" response, or it can
> be done manually. The browser opens the save-or-open dialog box.
> 

O.K. Can you post here any link for S2 "stream" response that I can see ?
Just one more thing, I need to enable "download" for 2 files in the same
time.

--
Best regards, Milan.


newton.dave wrote:
> 
> 
> Dave
> 
> --- On Mon, 12/22/08, Milan Milanovic wrote:
> And one more thing, when I click submit button on the form which contains
> <s:file/> it doesn't redirect to the page I defined in struts.xml for that
> form action, it just remain on the page with the form?
> 
> --
> Thx, M.
> 
> 
> Milan Milanovic wrote:
>> 
>> Hi,
>> 
>> I need to use <s:file/> tag just to select file in the system, but not to
>> upload this file, I just want to get path to it, so that I can parse it
>> in
>> my action class. However when I put this tag in the <s:form/> tag and try
>> to select file, file was selected but I get an error in console about
>> "missing multipart/form-data for enctype"! How can I remove this error ?
>> 
>> One another question, I want to user that he can enter new filename in a
>> directory for exporting data, but I cannot use <s:file/> for this because
>> in that case I need existing file. Which tag should I use ?
>> 
>> --
>> Thx, Milan
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/-S2--Using-%3Cs%3Afile-%3E-tag-for-choosing-file-%28no-uploading%29-tp21125988p21133123.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-S2--Using-%3Cs%3Afile-%3E-tag-for-choosing-file-%28no-uploading%29-tp21125988p21133637.html
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to