You are on page 1of 4

1)Why do we use @ symbol in the first line of jsp

Ans : These are directives use for including files , defines page-dependent attributes, such
as scripting language, error page, and buffering requirements & declares a tag library,
containing custom actions, used in the page.
2)What are the advantages of jsp
Ans : The advantage of JSP is that the programming language used is JAVA, which is a
dynamic language and easily portable to other operating systems. It is platform independent
and easy to maintain
3)What is jsp expression language
Ans : JSP Expression Language (EL) makes it possible to easily access application data
stored in JavaBeans components. JSP EL allows you to create expressions both (a) arithmetic
and (b) logical.
4)What code we used for connecting the backend
5)Difference between DoGet and dopost
Ans (a) In doGet Method the parameters are appended to the URL and sent along with header
information whereas In doPost, parameters are sent in separate line in the body
(b)Maximum size of data that can be sent using doget is 240 bytes There is no maximum size
for data
6)Why do we use Cookies
Ans : Cookies are small files which stores unique identifiers, that are sent by web servers to
web browser. It is used t
o identity and track users as they navigate different pages on a website,
7)Java beans
Ans : A JavaBean is a specially constructed Java class written in the Java and coded
according to the JavaBeans API specifications.
8)Url rewriting
Ans : URL rewriting allows URLs to be more easily remembered by the user. When the
URL is entered into the Web server, the URL rewrite engine modifies the syntax behind the
scenes to enable the appropriate Web page or database item to be retrieved.
9)Difference between jsp and servlets
Ans : (a) Servlet is developed on Java language whereas JSP is primarily written in HTML
language
(b) Servlets can accept and process all type of protocol requests whereas JSP on the other
hand is compatible with HTTP request only.
10)Types of servlet
Ans : Generic and HTTP
11)What are the different http status
Ans : 400 bad request
401 unauthorised
403 forbidden
404 page not found
12)Predefined variables in js
Ans : Number
String
Array
BigInt
13)Jsp session
Ans : The session object is used to track a client session between client requests
14)Types of request for server
Ans :doget , dopost, put
15)What is redirect in jsp
Ans : Page redirection is generally used when a document moves to a new location and we
need to send the client to this new location. This can be because of load balancing, or for
simple randomization.
16)DNS
17)Session Tracking
Ans : Session tracking is a mechanism that servlets use to maintain state about a series of
requests from the same user (that is, requests originating from the same browser) across some
period of time. Sessions are shared among the servlets accessed by a client.
18)JQuery
Ans : jQuery is a free JavaScript library. With jQuery you can write powerful JavaScript
apps using fewer lines of code. jQuery is great for things like animations, Ajax requests,
DOM manipulation, image effects, and user interface elements.
19)Search engine components
Ans : A search engine normally consists of four components i.e. search interface,
crawler,indexer, and database
20)What happens between <% %>
Ans : We can write any logic and will print the output
21)Popular search engines
22)What code we used for connecting the backend
Ans : con.mysql.jdbc.driver
23)What is DOM ?
Ans : The Document Object Model (DOM) is a programming interface for HTML and XML
documents. It represents the page so that programs can change the document structure, style,
and content.
24) MIME stands for Multi-Purpose Internet Mail Extensions. As the name indicates, it is
an extension to the Internet email protocol that allows it's users to exchange different kinds
of data files over the Internet such as images, audio, and video

You might also like