Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JSP 2.0 Expression Language not working

Status
Not open for further replies.

cgreynes

Programmer
Feb 28, 2003
29
US
Hi,

I am learning JSP. I cannot make the Expression Language to work. For example: ${1+1} should equal 2. It turns out it only prints "${1+1}".

I followed the book and I installed SDK 1.4.2 and modified web.xml (see below). Is there anything else I should do?

<web-app xmlns=" xmlns:xsi=" xsi:schemaLocation=" web-app_2_4.xsd" version="2.4">

Thanks
clark
 
Hi,

The syntax is <c:eek:ut value="${1+1}"/>, you need to have jstl core taglibrary and the ref to the lib in your web.xml.

Cheers
Venu
 
I thought I replied back. Maybe I forgot to click the submit button.

Anyways, I am not familiar with JSTL but I have seen a sample code for it. I will use venur's sample code when I reach that chapter.

I encountered this problem when I am using JRun 4 and SDK 1.4.2. Maybe I set it up incorrectly. But it works when using Apache 5.5 and JDK 5.0.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top