-
1. Re: question about the directory?
petertje Nov 15, 2002 8:30 AM (in response to arcus)> I want to show a image in the url as
> http://localhost:8080/image.jpg,
Put it in a .war file. If your war is called frank.war, the url of your image will be http://localhost:8080/frank/image.jpg - i.e. the name of the war file will be used as context. To deploy in the root context (so that the image will show up on the url you want), you'll have to pack the war file in an .ear file and supply an application.xml file (in the ear) with the following contents:
<!DOCTYPE application
PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
"http://java.sun.com/dtd/application_1_3.dtd">
<display-name>the name of your web app</display-name>
<web-uri>frank.war</web-uri>
<context-root>/</context-root>
Hth,
Peter. -
2. Re: question about the directory?
arcus Nov 17, 2002 9:37 PM (in response to arcus)Thanks lot.
And now I'm using the JBuilder7.0, how can package the project into the .ear files, and where can I find the application.xml file.
Thx.
Frank -
3. Re: question about the directory?
itchiban Feb 18, 2004 9:10 AM (in response to arcus)I have the same problem did you deal with!!!