answersLogoWhite

0

  • JavaScript
  • JSP and Servlets
  • HTML5

Can insert javascript coding in servlet?

User Avatar

Wiki User

βˆ™ 2009-06-08 07:25:05

Best Answer
Copy

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

2009-06-08 07:25:05
This answer is:
πŸ€“
🀯
πŸ€”
User Avatar

Your Answer

Loading...

Related Questions

What is a Javascript?

Javascript is a coding language that tells the computer to do things out of the usual HTML-e.g. pop-up windows.


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


Difference between jsp and servlet?

JSP:Front End or User Interface LayerCan contain HTML, Javascript and Java codeGets converted to a servlet before executionServlet:Back end or Server layerCan contain only Java code


what occupation requires knowledge of HTML or javascript to produce a website?

Website developers and engineers must be knowledgeable in HTML, Javascript, and other coding languages.


How to Tetris?

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


How can you insert javascript into an HTML document?

Here are two examples of internal and external calling of javascriptInternal Calling (Not Recommended)// Your javascript code ehreExternal Calling (Recommended)


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


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.


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

Follow the steps of this article: codejava.net/coding/upload-files-to-database-servlet-jsp-mysql.


How do you insert JavaScript into HTML Form?

You would need these tags either in the head or body part of the HTML document: <script type="text/javascript"> </script>


What is the correct JavaScript syntax to insert a comment that has more than one line?

The proper syntax to insert a multi-line comment into JavaScript is to surround the comment with /* and */ function useless() { /* This function doesn't do anything We should come back to it. Soon. */ }


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>


Why study javascript?

Javascript is useful for coding dynamic webpages. It allows you to make and interpret cookies, make simple animation, make pull down menus, and more. Javascript is used to add more power to HTML, which makes it very useful for webmasters to learn.


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


What are types of servlet?

Http servlet and Generic servlet


What is java servlet chaining?

Servlet Chaining means the output of one servlet act as a input to another servlet. Servlet Aliasing allows us to invoke more than one servlet in sequence when the URL is opened with a common servlet alias. The output from first Servlet is sent as input to other Servlet and so on. The Output from the last Servlet is sent back to the browser. The entire process is called Servlet Chaining.


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.


What are the disadvantages of disabling JavaScript and other active code in your browser?

In short: disabling JavaScript (and similar coding) in your browser will break the internet. A good section of the web uses JavaScript, either to enhance the experience of its users or to manage security (for instance, session control.) Some sites will have been built in a manner that "degrades gracefully" while others that rely on JavaScript simply won't function.


The most widely used coding scheme to represent data?

Can vary between different codes and what you're trying to do. Generally its C++, C and JavaScript.


Java projects which does not use database?

JavaScript is a computer language that is mostly used in web browsers. An example of JavaScript project without a database is called a login session, this requires a lot of hard coding and requires a lot of multiple ID comparison.


What kind of knowledge you need to make best websites?

You should learn basic coding languages such as HTML, CSS, and JavaScript. It also helps to know PHP.


What coding is used on Neopets?

User-created web pages use HTML and CSS, and TNT pages (owned by Neopets) use HTML, CSS, and JavaScript.


What does HTML only site mean?

All websites use HTML, but some sites use HTML in conjunction with one or more other coding languages like Javascript or CSS. HTML-only means it uses just the basic coding.