You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Emerson Cargnin <em...@tre-sc.gov.br> on 2003/05/23 01:38:48 UTC
Re: simple question
it happens that the tomcat version of the prod server is 3.2.1, and the
method
getServletContext didn't exist at that point : )
i thing i will put the parameter before each call as a property of
request....
any other ideas?
Emerson
Filip Hanik wrote:
>request.getSession().getServletContext()
>
>believe should do it
>
>
>
>>-----Original Message-----
>>From: Emerson Cargnin [mailto:emerson@tre-sc.gov.br]
>>Sent: Thursday, May 22, 2003 1:49 PM
>>To: tomcat-user@jakarta.apache.org
>>Subject: simple question
>>
>>
>>I know this maybe a very simple question, but i didn't find the answer
>>anywhere :
>>
>>I have a parameter loaded from web.xml. in my servlet (from the time
>>when we din't have struts ), and my servlets call commands in a
>>proprietary mvc framework. it happens that the commands classes just
>>have access to request and response parameters. How do I acess a
>>parameter from web.xml using request or response or access an attribute
>>in the context of servlet?
>>
>>thanks un advance
>>
>>--
>>Emerson Cargnin
>>Analista de Sitemas
>>Setor de Desenvolvimento de Sistemas - TRE-SC
>>tel : (048) - 251-3700 - Ramal 3181
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>
--
Emerson Cargnin
Analista de Sitemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org