File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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