I had the same feeling that servlet spec. should be more specific when
I just started working with J2EE:)
But, my experience tells me that a specification tells you "What" you
need to have in a servlet container and not "How" to implement a
servlet container.
If I want to learn servlet programmin
Good point. I guess the J2EE tutorial would be the place for stuff like
that (I was trying to only speak of "official" documentation).
Erik
Craig McClanahan wrote:
It's important to remember that the Servlet Specification target
audience isn't application developers -- it's people that are
implem
It's important to remember that the Servlet Specification target
audience isn't application developers -- it's people that are
implementing servlet containers (such as the group that creates
Tomcat). It is about defining requirements, not illustrating use
cases.
For application level questions, a
Ack, here I go being a writing critic and leave in a glaring typo . . .
Erik Weber wrote:
Well, I have to criticize my own advice. I just read over the Servlet
2.4 spec. It doesn't explain this well at all, in my opinion. It still
uses the same old, nearly meaningless, obscure language like "used
Well, I have to criticize my own advice. I just read over the Servlet
2.4 spec. It doesn't explain this well at all, in my opinion. It still
uses the same old, nearly meaningless, obscure language like "used by
the Servlet container to communicate with a Servlet", and stuff like
that, which doe
Thanks for the clarification, Erik.
Erik Weber wrote:
I think you want ServletContext.getInitParameter here. That is used with
the "context-param" element (global to your web app).
ServletConfig.getInitParameter is used with the "init-param" element
(specific to one Servlet).
In addition to the
I think you want ServletContext.getInitParameter here. That is used with
the "context-param" element (global to your web app).
ServletConfig.getInitParameter is used with the "init-param" element
(specific to one Servlet).
In addition to the JavaDocs, you should read the Servlet specification,
MyServlet extends HttpServlet {
public void init (ServletConfig config) {
String paramValue = config.getInitParameter("myContextParamName");
}
}
Personally, I have found the JavaDocs invaluable for this kind of stuff;
you can find the Servlet 2.4 Javadocs online at
http://jakarta.apache.o
hi
can anyone tell me how can i get context-param parameter in my servlet .
thanks in advance
Regards
Nishant Patil
Software Engineer
Cybage Softwares Pvt. Ltd. (A CMM Level 3 Company)
West Avenue, Kalyaninagar
Pune - 411006
Ph. +91-20-4044700/4041700 Extn 355
[EMAIL PROTECTED]
www.cybage.com
"Th
9 matches
Mail list logo