|
Re: Servlet in Dynamic Web Project [message #851911 is a reply to message #851665] |
Sat, 21 April 2012 12:52 |
|
On 2012.04.21 0:53, roy lou wrote:
> Environment: Eclipse SR2 + Tomcat 7.0.26 + SE JDK 1.7
> Description:
> I created a servlet under a Dynamic Web Project in Eclipse and specified
> initialized parameter(s) in [Create Servlet] pane. After the new servlet
> is created, I couldn't locate <init-param> section in web.xml. Instead,
> the initialized parameters were found to be declared in the code as the
> form of annotation: @WebServlet(initParams = { @WebInitParam(name =
> "USD_CAD", value = "1.06")}) above servlet class definition.
> Question:
> 1. Is there a way to create servlets within Dynamic Web Project without
> Eclipse using annotation approach? So that they will be showing in
> web.xml's <init-parm> sections? Thanks!
> 2. Does it take to configure somewhere in the Eclipse? Thanks!
Questions about Eclipse Dynamic Web Project are asked and answered in
the Eclipse web tools forum.
|
|
|
Powered by
FUDForum. Page generated in 0.07798 seconds