answersLogoWhite

0

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

∙ 17y ago

What else can I help you with?

Related Questions

Can you insert a cookie using javascript?

modify document.cookie


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 Tetris?

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


How to hack Tetris?

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


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.


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>


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).


Does java script coding mean using it for Java programs only?

No. JavaScript coding does not mean writing programs only for Java. JavaScript and Java are two different programming languages. JavaScript is mainly used to create interactive websites and web applications, such as menus, forms, animations, online shopping features, and dashboards. It can also be used for server-side development, mobile apps, desktop applications, and more. In simple terms: Java is a programming language, while JavaScript is primarily a web-development language. Despite their similar names, they are not the same. visit now : Excellence Technology 9317788822, 9357788822


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


What is different between jsp and servlets?

A JSP is typically oriented more towards displaying information, and a servlet is more oriented towards processing information. For example, a JSP might display a report, while a servlet would process a user submitted form. These uses are not exclusive, but they are optimized more for performing tasks in this manner. It is much easier to incorporate HTML coding into a JSP than a Servlet. It is also easier to write more complex Java code in a servlet.