가장 많이 묻는 면접 질문과 답변 & 온라인 테스트
면접 준비, 온라인 테스트, 튜토리얼, 라이브 연습을 위한 학습 플랫폼

집중 학습 경로, 모의고사, 면접 준비 콘텐츠로 실력을 키우세요.

WithoutBook은 주제별 면접 질문, 온라인 연습 테스트, 튜토리얼, 비교 가이드를 하나의 반응형 학습 공간으로 제공합니다.

Prepare Interview

모의 시험

홈페이지로 설정

이 페이지 북마크

이메일 주소 구독

JSP 면접 질문과 답변

Test your skills through the online practice test: JSP Quiz Online Practice Test

관련 차이점

관련 차이점

JSF vs JSPJSP vs ServletsJSP vs ASP
PHP vs JSP

Ques 16. What is the difference between JSP and Servlets?

JSP is used mainly for presentation only. A JSP can only be HttpServlet that means the only supported protocol in JSP is HTTP. But a servlet can support any protocol like HTTP, FTP, SMTP etc.

도움이 되었나요? Add Comment View Comments
 

Ques 17. Difference between GET and POST.

In GET your entire form submission can be encapsulated in one URL, like a hyperlink. query length is limited to 255 characters, not secure, faster, quick and easy. The data is submitted as part of URL.

In POST data is submitted inside body of the HTTP request. The data is not visible on the URL and it is more secure.

도움이 되었나요? Add Comment View Comments
 

Ques 18. What is a output comment?

A comment that is sent to the client in the viewable page source.The JSP engine handles an output comment as uninterpreted HTML text, returning the comment in the HTML output sent to the client. You can see the comment by viewing the page source from your Web browser.

JSP Syntax:

<! comment [ <%= expression %> ] >

Example 1

<! This is a commnet sent to client on

<%= (new java.util.Date()).toLocaleString() %>

>

도움이 되었나요? Add Comment View Comments
 

Ques 19. What is a Hidden Comment?

A comments that documents the JSP page but is not sent to the client. The JSP engine ignores a hidden comment, and does not process any code within hidden comment tags. A hidden comment is not sent to the client, either in the displayed JSP page or the HTML page source. The hidden comment is useful when you want to hide or "comment out" part of your JSP page.

You can use any characters in the body of the comment except the closing %> combination. If you need to use %> in your comment, you can escape it by typing %>.

JSP Syntax

<% comment %>

Examples

<%@ page %>

<html>

<head><title>A Hidden Comment </title></head>

<body>

<% This comment will not be visible to the colent in the page source %>

</body>

</html>

도움이 되었나요? Add Comment View Comments
 

Ques 20. How do I include static files within a JSP page?

Static resources should always be included using the JSP include directive. This way, the inclusion is performed just once during the translation phase. Do note that you should always supply a relative URL for the file attribute. Although you can also include static resources using the action, this is not advisable as the inclusion is then performed for each and every request.

도움이 되었나요? Add Comment View Comments
 

Most helpful rated by users:

Copyright © 2026, WithoutBook.