At 8:59 AM -0400 9/14/05, Thai Dang Vu wrote:
Hello,
I want to write something like this in a jsp file
<script language="javascript">
function f() {
return <bean:write name="some_bean" property="a_property"/>;
}
</script>
but the bean:write tag isn't processed. So how can I make it processed?
If the bean:write tag isn't being processed, have you checked to make
sure you have the necessary taglib declarations in your page? I do
this kind of stuff all the time, and it's not fundamentally a problem.
Don't forget that if some_bean.a_property is a string, you should
quote it. Also, as noted, you could just as well use
<c:out value="${some_bean.a_property}" />
or if you are able to use JSP 2.0, the much more concise
${some_bean.a_property}
Joe
--
Joe Germuska
[EMAIL PROTECTED]
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction" -The Ex
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]