Win a copy of React Cookbook: Recipes for Mastering the React Framework this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

I have two classes one contains fileupload method and save file ... I want from MB call this class,

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Follow my fileupload class:


#---------------------------

 
Bartender
Posts: 1210
25
Android Python PHP C++ Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sandro,

First of all, a warm welcome to CodeRanch!

I'll move this to the JSF forum since it's JSF related.

Also in future, please enclose all code snippets in code tags as shown here. I've done if for you this time.

 
Saloon Keeper
Posts: 24188
166
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Sandro!

What is "MB"?

JSF interjects itself heavily into the form submit process, so normal J2EE file upload logic is difficult. The easiest way to do file upload in JSF is either to use one of the extension tagsets such a Apache Tomahawk, RichFaces, PrimeFaces, and so forth. An alternative is to upgrade your webapp to use JSF version 2.2 (which may require a server upgrade). In JSF 2.2 an h:fileUpload tag was finally added to the core JSF tagset.

Incidentally, here's a recommendation for coding:



The advantages are that you don't risk getting hurt by accidentally mis-matched backslashes and that your code becode less dependent on which OS you are running your webapp under.
 
All that thinking. Doesn't it hurt? What do you think about this tiny ad?
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic