struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Li Ying <>
Subject Re: Running external Javascript files through Struts/Freemarker -- access to ActionContext and ValueStack?
Date Sat, 13 Nov 2010 03:40:25 GMT
My suggestion:

(1)Reference your js file as a static resource.

(2)If the js need some dynamic information from your action.
You can put js variables or hidden tags in your jsp,
and retrieve these variables or hidden tags in your js.

The js can be static outside resource, but [dynamic information] will
be inlined in your jsp.
This is a little ugly, but i think it is very simple.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message