This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Struts and the fly likes Creating a .js file dynamically Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Creating a .js file dynamically" Watch "Creating a .js file dynamically" New topic
Author

Creating a .js file dynamically

sudin prans
Greenhorn

Joined: Sep 02, 2005
Posts: 4
How can a javascript file be generated dynamically in a web application using Java?Pls help.
Stefan Evans
Bartender

Joined: Jul 06, 2005
Posts: 1018
The same was as JSP generates HTML dynamically.
A javascript file is just a text file at the end of the day.

You could probably do <script language="javascript" src="myDynamicScript.jsp">
 
 
subject: Creating a .js file dynamically