A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Arduino in Action
this week in the
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
problem with tag html:text value=...
Joined: Aug 03, 2005
Aug 03, 2005 09:15:00
I am getting exception for the tag
<html:text property="NewTitle" value="<bean:write name="OtherBean" property="title"/>" ></html:text >
page similar as follows
Title : <html:text property="NewTitle" value="<bean:write name="OtherBean" property="title"/>" ></html:text >
This code doesn't work. gives an exception ..
org.apache.jasper.JasperException: /Step1.jsp(24,69) equal symbol expected
/DisplayGraphStep2 is asoociated with some other Form which contains geter,setter for NewTitle
Title : <html:text property="NewTitle" /> This code works.
Joined: Feb 15, 2005
Aug 03, 2005 10:33:00
A feature of html:xxx tags that is not well documented is that if you put something in the
of the tag, it populates the value attribute.
In your example, this should work:
<html:text property="NewTitle"><bean:write name="OtherBean" property="title"/></html:text >
In my mind, though, the best way to handle this would be to have the action class set the value of myForm.newTitle to OtherBean.title before forwarding to the jsp.
I agree. Here's the link:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: problem with tag html:text value=...
Display:table tag in Struts application
html:text within Logic:iterate
How to set value in html:text using bean:write
Struts Validator Configuration
Display:table tag in Struts Application
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013