Re: image loading problem in login page



Hi,

> if i hardcoded the path the image is diplaying, if i try
> dynamically (../images/menu/) not loading.
>
That sounds like the relative path is wrong. The relative path starts
from where you start your program and not where the files are.

To see which file is really loaded, add the following lines to your code:

File f = new File("path/to/image.gif");
System.out.println(f.getAbsolutePath());

HTH
.