-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi All,
I use a RAD Tool to developer Web Application in Java , the name of the tool is WebIntegrator (www.softwarepublico.gov.br).
I have this servlet mapping in the web.xml
<servlet>
<servlet-name>zk_wsp</servlet-name>
<servlet-class>br.com.itx.engine.Execute</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>zk_wsp</servlet-name>
<url-pattern>*.wsp</url-pattern>
</servlet-mapping>
I would call the servlet which is used to zul to my page wsp, I'm using this way:
<servlet>
<servlet-name>zkLoader</servlet-name>
<servlet-class>org.zkoss.zk.ui.http.DHtmlLayoutServlet</servlet-class>
<init-param>
<param-name>update-uri</param-name>
<param-value>/zkau</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>zkLoader</servlet-name>
<url-pattern>*.wsp</url-pattern>
</servlet-mapping>
Thus're giving error.
[]s,
Luciano
Thus're giving error.
...and the error would be????
You can't put 2 servlet mappings that map *.wsp to 2 different servlets:
<servlet-mapping> <servlet-name>zk_wsp</servlet-name> <url-pattern>*.wsp</url-pattern> </servlet-mapping>
<servlet-mapping> <servlet-name>zkLoader</servlet-name> <url-pattern>*.wsp</url-pattern> </servlet-mapping>
How would the web app dispatcher know which servlet to send a request that ends in ".wsp" to?
Asked: 2010-10-19 07:53:08 +0800
Seen: 212 times
Last updated: Oct 19 '10