Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » problem using pageContext in jsp page
problem using pageContext in jsp page [message #168433] Wed, 03 May 2006 17:59 Go to next message
Eclipse UserFriend
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 18:28 Go to previous messageGo to next message
Eclipse UserFriend
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 17:38 Go to previous message
Eclipse UserFriend
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: Tue Mar 19 10:05:50 GMT 2024

Powered by FUDForum. Page generated in 0.02887 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top