-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Kerotan,

On 5/24/2011 1:28 PM, kerotan wrote:
> Tomcat 7.0.14

> My servlet programs with "@WebServlet" annotation have three problems as 
> follows:
> 1. A servlet program with "@WebServlet" 
> annotation(@WebServlet(name="HelloServlet", urlPatterns={"/hello"}))
>  cannot be called from a browser with "http://localhost:8080/test/hello";.

What is the result? Is this webapp deployed into the /test context path?

> 2. When there are two servlet programs which have the same file name in the 
> different packages, a servlet program cannot work with the different 
> urlPatterns in "@WebServer" annotation. In order to make the program work, 
> the different file name is required.

A different file name, or a different "name" attribute chosen in the
@WebServlet annotation? The former makes no sense, while the latter
makes perfect sense.

> 3. A servlet program can be called by JSP program and it can call the same 
> JSP program. However, the same JSP program cannot call the same servlet 
> program again because "urlPatters" of the servlet program cannot be read.

Can you explain this in more detail? I do not understand.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3b9YMACgkQ9CaO5/Lv0PAT4gCgnWNIh8YPMuxarAHFJWerLRvn
vF0An1yFTXb3/SniQpO9c1D4i9mHjyss
=szFj
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to