answersLogoWhite

0

Can insert javascript coding in servlet?

Updated: 8/16/2019
User Avatar

Wiki User

14y ago

Best Answer

No. Javascript code can be present inside a JSP but not inside a servlet. A Servlet is a pure java class.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can insert javascript coding in servlet?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What serves as the basic for coding?

small basic is the basic version of Javascript


Can you insert a cookie using javascript?

modify document.cookie


How to Tetris?

Go learn C++ and python and javascript coding languages and change the scripts and go from there


How do you insert an image in javascript?

<script type="text/javascript"> var image = new Image; image.src = "imageurl.png"; document.body.appendChild(image); </script>


How to hack Tetris?

Go learn C++ and python and javascript coding languages and change the scripts and go from there


How do you get the image file from the database with JSP?

You can retrieve an image file from a database in JSP by writing a servlet that fetches the image from the database and streams it to the JSP page. The servlet will set the content type to "image/jpeg" or the appropriate image format and write the image data to the response output stream. In the JSP page, you can then display the image by setting the source attribute of the img tag to the servlet URL.


Would you recommend Khan academy to learn coding?

The coding is limited to JavaScript, HTML/CSS and SQL and is really nothing more than an introduction to web-based programming.


Which of the following occupations requires knowledge of HTML or JavaScript to produce a website?

web designer


Does java script coding mean using it for Java programs only Can you use it for Unity or Game-maker?

Java and JavaScript are different, and quite unrelated, languages. JavaScript is not "for Java"; basically you use JavaScript to create special effects on Web pages (HTML pages).


Insert date on a webpage using javascript?

Just use new Date(); to get the current date and then use document.getElementById to insert it on the webpage. <div id="example"></div> <script type="text/javascript"> document.getElementById('example') = new Date(); </script>


The most widely used coding scheme used to represent data?

Binary is the base for all coding in a PC.


What are types of servlet?

Http servlet and Generic servlet