This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes Javascript file to be loaded in the HTML code from servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Javascript file to be loaded in the HTML code from servlet" Watch "Javascript file to be loaded in the HTML code from servlet" New topic
Author

Javascript file to be loaded in the HTML code from servlet

Tushar Kansara
Ranch Hand

Joined: Aug 14, 2000
Posts: 38
Hi Guys,

We are creating a dynamic html form from the servlet.
We want to use JavaScript file which wil be on the server(Not-Server-Side Javascript, We want to use<script SRC = File_Name /script>).
we dont want to hardcode javascript functions as it will clutter the code.
How do i bget these working,
The Js is file is not getting loaded.

Regards
Tushar Kansara
------------------
Brett Knapik
Ranch Hand

Joined: Oct 15, 2000
Posts: 255
well if you are using a string buffer to add html code you could go

------------------
I wish there was a button on my monitor to turn up the intellegince.
Theres a button called 'brightness' but it doesn't work


"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Javascript file to be loaded in the HTML code from servlet
 
Similar Threads
Include HTML as static resource
Applet - Servlet Communication
Technique for same fragment shown in multiple tabs
how to store value from servlet to java script variable
Using gzip in jsp files