M
Marcin Okraszewski
Hi,
I want to make a web app that would use a default servlet. But when I
set it I can't access images, css, etc.
Is there any way to avoid this problem?
Or, maybe you have a better idea to make an completely dynamic site what
would have human-readable URLs? I mean something like nukes that you
define whole site by a web page but in this case I want to make it look
like a site with a directory structure.
I'm using Tomcat 4.1.24. Here is my web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>DefaultServlet</servlet-name>
<jsp-file>/index.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>DefaultServlet</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>
index.jsp
</welcome-file>
</welcome-file-list>
</web-app>
Regards,
Marcin Okraszewski
I want to make a web app that would use a default servlet. But when I
set it I can't access images, css, etc.
Is there any way to avoid this problem?
Or, maybe you have a better idea to make an completely dynamic site what
would have human-readable URLs? I mean something like nukes that you
define whole site by a web page but in this case I want to make it look
like a site with a directory structure.
I'm using Tomcat 4.1.24. Here is my web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>DefaultServlet</servlet-name>
<jsp-file>/index.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>DefaultServlet</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>
index.jsp
</welcome-file>
</welcome-file-list>
</web-app>
Regards,
Marcin Okraszewski