struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt E <mgeuse...@yahoo.com>
Subject Writing values from javabeans to html tags.
Date Thu, 24 Jul 2003 21:23:10 GMT
Hello All!

I'm trying to give an inital value to one of the
fields in a form in an application of mine.

I had tried this:

<html:textarea property="comments" rows="4" cols="50"
value="<%=requestDTO.getComments()%>"

Since I had read that you couldn't use bean:write tag
in the value attribute of the html tags.  However this
gives me an error in tomcat:

org.apache.jasper.JasperException: Unable to compile
/int0/opt/tomcat/b331/work/DEFAULT/tir/pla/ReviewRequest_3.java:899:
Undefined variable or class name: requestDTO
           
_jspx_th_html_textarea_0.setValue(requestDTO.getComments());

The bean in question (requestDTO) is session scoped. 
I can use <bean:write> to write out the value, so I
know it's there.

What do I need to do so that
<%=requestDTO.getComments()%> works also?

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message