Servlet, Frame and...jpg!
Hello to everybody! :-)
Please Help Me! I Have a problem!
So...I have a Servlet that open a Frame:
***
PannelloPrincipale a = new PannelloPrincipale(connessione); <-- the frame!
a.setDefaultCloseOperation(a.EXIT_ON_CLOSE);
a.setSize(1200,924);
a.setVisible(true);
***
....and that is OK, the Frame is OPEN!
But, the frame needs of a image (a jpeg), so I have this in thye frame:
**
public void setFoto(String nomeFoto){
Toolkit toolkit=Toolkit.getDefaultToolkit();
img=toolkit.getImage("foto\\"+nomeFoto);
repaint();
}
**
Now...if the frame is in a desktop application, the folder "foto" is
accessible by it
(the folder "foto" is under the principal folder of the project and it's go
ok!),
but in the web application I don't know where i must put the folder!!!!
Because the frame don't see it! (don't see the image)
What can I do?!?!
If my servlet calls a Frame and a Frame needs of a Image, where can I put
the
image?
Please help me!
Andrea
p.s.
Excuse for my bad english, I'm Italian, I'm from Roma.
good weekend to everybody!