JSP Standard Tag Libraries, Part 1
Subject:   How to refer java variable inside tag
Date:   2008-11-14 05:09:10
From:   arulman
I want to refer java variable or anyutility method inside jstl tag,

For example, please see the below code.I want to refer baseURL java varibale value inside tag iteration.

<!-- include core JSTL taglibs -->
<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>

<!-- make sure EL is enabled for this page -->
<%@ page isELIgnored="false" %>
<%@ page import="java.util.*" %>
<%@ page import="*" %>
String baseURL = "http://localhost:8080/test";
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<c:forEach var="test" items="${TestAccounts}">
<c:out value="${test.accountID}"/>
<c:out value="<a href=${baseURL}/TestControllerServlet?command=${test.accountName}>${test.accountName}"/>