Roux A
Roux A

Reputation: 11

When to name file to JS or JSP?

What type of files should I give the JS and JSP extensions? What happens if I name a file into a JS file when it should be a JSP and vice versa?

Also, how to know if the file is a servlet?

Upvotes: 0

Views: 31

Answers (1)

Abhinav Kumar
Abhinav Kumar

Reputation: 3036

.jsp contains html,java,javascript as well where .js contains only javascript code.

Any java file that extend HttpServlet class and its necessary methods

Upvotes: 1

Related Questions