Re: [OT] how do i get context-param

2004-11-24 Thread Struts User
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

Re: [OT] how do i get context-param

2004-11-24 Thread Erik Weber
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

Re: [OT] how do i get context-param

2004-11-24 Thread Craig McClanahan
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

Re: [OT] how do i get context-param

2004-11-24 Thread Erik Weber
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

Re: [OT] how do i get context-param

2004-11-24 Thread Erik Weber
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

Re: how do i get context-param

2004-11-24 Thread Bill Siggelkow
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

Re: how do i get context-param

2004-11-24 Thread Erik Weber
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,

Re: how do i get context-param

2004-11-24 Thread Bill Siggelkow
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

how do i get context-param

2004-11-24 Thread Nishant
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