Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » problem using pageContext in jsp page
problem using pageContext in jsp page [message #168433] Wed, 03 May 2006 13:59 Go to next message
Eclipse User
Originally posted by: lcchan.temp.gmail.com

When accessing any pageContext variable in my JSP page such as:

<c:out value="${pageContext.request.serverName}"/>, I got the following
error:

"javax.servlet.jsp.PageContext cannot be resolved to a type"

I only enountered this problem inside eclipse/WTP. The problem disappears
when I run the applicaiton outside of Eclipse. Anyone experienced similar
problem?

Thanks.

Lucie
Re: problem using pageContext in jsp page [message #168451 is a reply to message #168433] Wed, 03 May 2006 14:28 Go to previous messageGo to next message
Eclipse User
Originally posted by: merks.ca.ibm.com

Lucie,

Try to avoid asking the same questions in multiple newsgroups
independently. Cross post them if they are appropriate for multiple
newsgroup so that an answer on any newsgroup will be an answer for all
of the cross postings as well. It will save the people helping some time...


Lucie wrote:

> When accessing any pageContext variable in my JSP page such as:
>
> <c:out value="${pageContext.request.serverName}"/>, I got the
> following error:
>
> "javax.servlet.jsp.PageContext cannot be resolved to a type"
>
> I only enountered this problem inside eclipse/WTP. The problem
> disappears when I run the applicaiton outside of Eclipse. Anyone
> experienced similar problem?
>
> Thanks.
>
> Lucie
>
Re: problem using pageContext in jsp page [message #168554 is a reply to message #168451] Thu, 04 May 2006 13:38 Go to previous message
Eclipse User
Originally posted by: lucie.chan.gmail.com

Ed,

Thanks. I'll keep that in mind in the future when posting.

Anyway, I answered my own question. In case anyone else encounters
something similar, the following seems to fix the problem:

${pageContext['request'].serverName}

Lucie



Ed Merks wrote:

> Lucie,

> Try to avoid asking the same questions in multiple newsgroups
> independently. Cross post them if they are appropriate for multiple
> newsgroup so that an answer on any newsgroup will be an answer for all
> of the cross postings as well. It will save the people helping some time...


> Lucie wrote:

>> When accessing any pageContext variable in my JSP page such as:
>>
>> <c:out value="${pageContext.request.serverName}"/>, I got the
>> following error:
>>
>> "javax.servlet.jsp.PageContext cannot be resolved to a type"
>>
>> I only enountered this problem inside eclipse/WTP. The problem
>> disappears when I run the applicaiton outside of Eclipse. Anyone
>> experienced similar problem?
>>
>> Thanks.
>>
>> Lucie
>>
Previous Topic:jBoss org.xml.sax.SAXException: No deserializer for [...]
Next Topic:Where does WTP look for "Web App Libraries"?
Goto Forum:
  


Current Time: Thu Apr 24 11:28:56 EDT 2014

Powered by FUDForum. Page generated in 0.09483 seconds