William Norman
14 years ago
Hello,
I have written some jsp's using Netbeans 7.0. In a self-referencing jsp
I want to perform a test to do further processing on the submitted page
like this:
<c:if test="${pageContext.request.method=='POST'}">
<!-- some sql insert code -->
</c:if>
My problem is that the IDE does not recognize
pageContext.request.method. When I try to use code completion, method is
not available. Also, if I type in the complete statement I see a warning
on the page that states 'Unknown property "method"'.
Running the code bypasses the conditional and a adding simple
<c:out value="${pageContext.request.method}"/>
statement to the page produces no output text.
I have tried this same code in Eclipse using the same jstl libs and web
server environment and it works fine. I tried searching the web for this
issue but could not find any postings. I could not get it work using
Netbeans 6.9 either.
I must be referencing an incorrect library somewhere, but I'll be darned
if I can see the problem.
Any thoughts?
Thanks
I have written some jsp's using Netbeans 7.0. In a self-referencing jsp
I want to perform a test to do further processing on the submitted page
like this:
<c:if test="${pageContext.request.method=='POST'}">
<!-- some sql insert code -->
</c:if>
My problem is that the IDE does not recognize
pageContext.request.method. When I try to use code completion, method is
not available. Also, if I type in the complete statement I see a warning
on the page that states 'Unknown property "method"'.
Running the code bypasses the conditional and a adding simple
<c:out value="${pageContext.request.method}"/>
statement to the page produces no output text.
I have tried this same code in Eclipse using the same jstl libs and web
server environment and it works fine. I tried searching the web for this
issue but could not find any postings. I could not get it work using
Netbeans 6.9 either.
I must be referencing an incorrect library somewhere, but I'll be darned
if I can see the problem.
Any thoughts?
Thanks
--
Bill
Bill