struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Albert Kao <albertk...@yahoo.ca>
Subject variable substitution in html:textarea
Date Thu, 30 Oct 2014 22:17:10 GMT
How to do variable substitution in html:textarea? e.g. Java code
package util;
public interface Literals {    public static final String LAST_NAME = "lastName";}
my.jsp
<%@ page import="util.Literals" %>

<html:textarea rows="20" cols="100" property="buffer" value='<%=Literals.LAST_NAME %>'></html:textarea>

I try to make "lastName" to appear at my.jsp but get the following instead:<%=Literals.LAST_NAME
%>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message