|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Web.xml problem
I am working in Eclipse to develop a sample wap site. I use Tomcat 4 as my server, testing for reponsiveness of my servlets through IE. The environment all seems to work fine.
My first servlet called TestWML, loads onto my wap emulator fine but it's the second servlet, Call, which is initiated by the first which fails to start. I have put the code from my web.xml below. Can anyone please offer any explanation as to why "Call" fails to start, please ? ************************************************ <?xml version="1.0" encoding="UTF-8"?> <web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <display-name>WMLApp</display-name> <servlet> <description></description> <display-name>TestWML</display-name> <servlet-name>TestWML</servlet-name> <servlet-class>TestWML</servlet-class> </servlet> <servlet-mapping> <servlet-name>TestWML</servlet-name> <url-pattern>/TestWML/*</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>/TestWML</welcome-file> </welcome-file-list> <servlet> <description></description> <display-name>Call</display-name> <servlet-name>Call</servlet-name> <servlet-class>Call</servlet-class> </servlet> <servlet-mapping> <servlet-name>Call</servlet-name> <url-pattern>Call</url-pattern> </servlet-mapping> </web-app> |
|
#2
|
|||
|
|||
|
Hello sazzie,
How you are calling "call" servlet from you TestWML servlet? Else your web.xml seems to be fine. What path it shows in URL when you call your Call servlet? You can call that servlet by /servlet/call there should not be problem but if you are calling from any jsp page then try to call like ../servlet/call i think it should work else it depends on how you call. -------- Vimal |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Mobile Programming > Web.xml problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|