0

Servlet Mapping

asked 2010-10-19 07:53:08 +0800

lusabo gravatar image lusabo
12

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

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2010-10-19 10:04:06 +0800

caclark gravatar image caclark
1753 2 5
http://clarktrips.intltwi...

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>

and
<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?

link publish delete flag offensive edit

answered 2010-10-19 11:26:16 +0800

lusabo gravatar image lusabo
12

Hi Cary,

Is there some way to do this? Mapping a extension (*.wsp) to 2 different servlets, like the filters from Struts2.

Sds, Luciano

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-10-19 07:53:08 +0800

Seen: 212 times

Last updated: Oct 19 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More