Hello, I am having some problems running the program below (it does not run the way it should).
*****************The output I get is******************* before a a is null after a *****************The desired output is******************** before a init after a I'm not sure why "${a}" is evaluating to null instead of "init". any help appreciated, Anna Program: <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ page import="java.lang.String" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <HTML> <% String a = "init"; %> <html:text property="var" value="<%= String.valueOf(a) %>" /><br> <c:out value="before a" /> <c:out value="${a}" default="a is null"/> <c:out value="after a" /> </HTML> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]