hantsy.blogspot.it

hantsy.blogspot.it

jsf-22-file-upload

http://hantsy.blogspot.it/2013/08/jsf-22-file-upload.html

esempi su github

https://github.com/maurojava/ee7-sandbox

————————————-

 

http://www.oracle.com/webfolder/technetwork/tutorials/obe/java/JSF2.2FileUpload/JSF2.2FileUpload.html

 

come provare a annotare la servlet in web.xmlhttp://docs.oracle.com/javaee/6/tutorial/doc/gmhal.html

<multipart-config>
    <location>/tmp</location>
    <max-file-size>20848820</max-file-size>
    <max-request-size>418018841</max-request-size>
    <file-size-threshold>1048576</file-size-threshold>
</multipart-config>

oppure con annotazione

 

@MultipartConfig(location="/tmp", fileSizeThreshold=1024*1024, 
    maxFileSize=1024*1024*5, maxRequestSize=1024*1024*5*5)

 


 

http://dominikdorn.com/2009/12/fileupload-with-jsf-2-and-servlet-3-0/

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: