Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 23rd, 2006, 07:36 AM
Registered User
Join Date: Feb 2006
Location: Redcliffe, Queensland, Australia.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default JSP2 EL/JSTL being ignored

After reading 'Beginning Java Server Pages'
I recently upgraded from j2sdk 1.4 to j2se 1.5.0_06
and Tomcat from 4.0 to 5.5.15
I am still using j2sdkee 1.3

I have built a system to the MVC architecture and now want to write all new JSP using EL/JSTL.

As a test I wrote the following jsp2Test.jsp and it appears the core tags are ignored. Then I added ...


... to my deployment descriptor, which resulted in no change.

In this jsp2Test.jsp file only the last two lines(+) of template data are output as follows without any EL translation, with or without a request param:

buyer = ${buyer}
param.buyer is ... [${param.buyer}]

I imagine JSP is bundled with j2ee and not j2se.
Do I need to upgrade my j2ee ????
or am I missing something else.
Would appreciate some help here.

  File: jsp2Test.jsp
  Author: Ron Masters
  Date: 22-Feb-2006
  Description: test JSP 2, EL & core taglib
               under Tomcat 5.5 and J2SE 1.5.0_06

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

 <c:if test="${empty param.buyer}">
   test.jsp - param.buyer is empty
   <br> setting pageScope param buyer to "Ron"
   <c:set var="buyer" value="Ron" />

 <c:if test="${empty buyer}">
   test.jsp - previous set pageScope param buyer is empty ... setting to "Alan"
   <c:set var="buyer" value="Alan" />

buyer = ${buyer}
<br>param.buyer is ... [${param.buyer}]


Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
JSP2 EL / JSTL ignored ronMasters BOOK: Beginning JavaServer Pages 2 November 6th, 2008 07:09 AM
Problem with EL in JSP IronStar JSP Basics 1 January 31st, 2007 11:54 PM
EL Syntax error savoym JSP Basics 0 November 2nd, 2006 04:48 PM
About EL motofree Java Basics 0 March 1st, 2006 05:07 AM
BEGINNING JSP2.0 sourav_banerjee JSP Basics 1 September 14th, 2004 01:42 AM

All times are GMT -4. The time now is 05:25 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.