Hello everyone,
I have been researching on the web on how to call javascript from Struts
tag.
I am using struts 2 to develop JSP. Following is the piece of code in JSP,
which calls javascript
<td class="nowrap">
<script type="text/javascript">
document.write(shortenTextLength('${defaultReturnReason}',
'${displayLength}'))
</script>
</td>
The script returns a shortened value of defaultReturnReason based
displayLength
I want to use struts tag to call javascript shortenTextLength(). In other
words, I want to embed javascript inside struts tag.
Please suggest how I can achieve this.
--
View this message in context:
http://www.nabble.com/How-to-call-javascript-from-Struts-tag-tp15641406p15641406.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]