Why not just specify the name attribute in the html:textarea tag with
the attribute equal to the name of the bean, in your case requestDTO. 
That's what I do and it works well for me.

On Thu, 2003-07-24 at 20:45, Kelvin wu wrote:
> try to use html-el tag
> 
> <html-el:textarea property="comments" rows="4" cols="50"
>              value="${sessionScope.requestDTO.comments}"/>
> 
> ----- Original Message ----- 
> From: "Matt E" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, July 25, 2003 5:23 AM
> Subject: Writing values from javabeans to html tags.
> 
> 
> > 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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Keith Pemberton <[EMAIL PROTECTED]>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to