Indeed...This is a good solution for creating html javascript
If you are using javascript for validation
(based on the validation rules loaded by the ValidatorPlugIn)
you can use the html:javascript Tag
documentation available here at
http://struts.apache.org/userGuide/struts-html.html#javascript
(This will cache your javascript if staticJavaScript attribute set to true
and dynamicJavaScript attribute set to false)
Martin-
----- Original Message -----
From: "Holshausen, Ron" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Wednesday, September 14, 2005 9:04 AM
Subject: RE: How to create on-the-fly javascript code?
Hi,
I have used the JSTL c:out tag to do this, e.g., <c:out
value="${some_bean.a_property}"/>;
-----Original Message-----
From: Thai Dang Vu [mailto:[EMAIL PROTECTED]
Sent: 14 September 2005 15:59
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]
E-Mail Disclaimer
Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene
Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung
reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach.
Beachten Sie bitte, dass jede Form der unautorisierten Nutzung,
Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser
E-Mail nicht gestattet ist. Diese Nachricht ist ausschliesslich fuer
den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie
nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein,
so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen.
For legal and security reasons the information provided in this e-mail is
not
legally binding. Upon request we would be pleased to provide you with a
legally
binding confirmation in written form. Any form of unauthorised use,
publication,
reproduction, copying or disclosure of the content of this e-mail is not
permitted.
This message is exclusively for the person addressed or their
representative.
If you are not the intended recipient of this message and its contents,
please
notify the sender immediately.
---------------------------------------------------------------------
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]