struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Nenning <Christoph.Nenn...@lex-com.net>
Subject Re: variable substitution in html:textarea
Date Fri, 31 Oct 2014 08:05:43 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 %>


Try to put it into a page scrope attribute and use JSTL.

Could look like this:


<c:set var="lastName"><%=Literals.LAST_NAME %></c:set>
<html:textarea value="${lastName}"></html:textarea>




regards,
Christoph

This Email was scanned by Sophos Anti Virus

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