Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumsproblem using pageContext in jsp page
https://www.eclipse.org/forums/index.php/mv/msg/52754/168433/#msg_168433
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]]>2006-05-03T17:59:34-00:00Re: problem using pageContext in jsp page
https://www.eclipse.org/forums/index.php/mv/msg/52754/168451/#msg_168451
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
>]]>2006-05-03T18:28:27-00:00Re: problem using pageContext in jsp page
https://www.eclipse.org/forums/index.php/mv/msg/52754/168554/#msg_168554
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
>>]]>2006-05-04T17:38:56-00:00