I would make it part of a custom tag. This will also avoid the
copy/paste of javascript in all the jsps.

Bala
http://groups.yahoo.com/group/OOAD_UML/

-----Original Message-----
From: Thai Dang Vu [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 14, 2005 8:59 AM
To: user@struts.apache.org
Subject: How to create on-the-fly javascript code?


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?

Thank you.


---------------------------------------------------------------------
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]

Reply via email to