Search:

Type: Posts; User: barni120

Search: Search took 0.34 seconds.

  1. Re: [jsp/jsf] Send string(file name) to other class

    a take relative path something like this


    ExternalContext context=FacesContext.getCurrentInstance().getExternalContext();
    String mainpath=context.getRealPath("WEB-INF/upload/");
    i have...
  2. Re: [jsp/jsf] Send string(file name) to other class

    ok display work correct but i run it on server tomcat
    and now when i open this web application on other computer
    http://localhost:8080/jee/faces/index.jsp

    and i upload image
    then we are go...
  3. Re: [jsp/jsf] Send string(file name) to other class

    thx for help :)
    but next problem... i can't display uploaded file on side
    i do something like this

    side.jsp

    <h:graphicImage id="up" value="C:/upload/#{uploadclass.ImgBeforeFilter}" >...
  4. Re: [jsp/jsf] Send string(file name) to other class

    ok thx for help it was working corectly but i wrong understend code :)
    but now i have other problem

    I have read image to two-dimensional array

    File file = new File("C:/upload/1.bmp");
    ...
  5. Re: [jsp/jsf] Send string(file name) to other class

    sry my bad there is a:
    public void setName(String name) {
    this.name = name;
    System.out.println(name+"setname");
    }
  6. Re: [jsp/jsf] Send string(file name) to other class

    here i creat a new file on disk file = File.createTempFile(prefix , "." + suffix, new File("c:/upload"));
    and then fileName = file.getName();

    examlpe i upload Desert.jpg file
    then in fileName i...
  7. [jsp/jsf] Send string(file name) to other class

    Hi i have a little problem
    I have a two class Upload - class upload file to server and class filter
    but now in class filter i need name uploaded file i try something like this:

    class upload:
    ...
Results 1 to 7 of 7