Servlet, Frame and...jpg!

I

Il Solco Vinilico

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top