From: "M4RC0" <[EMAIL PROTECTED]> > But, a newbie question: whitch are the beneficts of using Struts-EL > instead standar struts taglibs or JSTL???
These aren't mutually exclusive, typically you'll use the original Struts taglib alone, or Struts-EL and JSTL 1.0 together [in a Servlet 2.3/JSP 1.2 container]. (Then when you move to Servlet 2.4/JSP 2.0, you go back to the original Struts tags, plus JSTL 1.1.) > After reading documentation, i really don't understand why, when and > where to use Struts-EL. What typically happens is that you discover JSTL, and then get frustrated by the fact that you _can't_ use expressions in the Struts taglibs [with JSP 1.2]. Enter Struts-EL, which gives you that ability. In your example, that runtime expression will not be able to "see" variables set with JSTL, such as the status of a loop inside <c:forEach> or anything set with <c:set>. Try this: <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> <c:set var="myval" value="125000" /> <%= myval %> (It won't even compile...) The flip side of that is: JSTL cannot "see" scripting variables. This is intentional. :) If you're going to use JSTL 1.0, then you should use Struts-EL along with it. -- Wendy Smoak --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]