Java JSB Servlets Question and Answers
45. | What is session ID? |
---|---|
A session ID is an unique identification string usually a long, random and alpha numeric string, that is transmitted between the client and the server. Session IDs are usually stored in the cookies, URLs ( in case url rewriting) and hidden fields of Web pages. | |
46. | What is session tracking? |
---|---|
HTTP is stateless protocol and it does not maintain the client state. But there exists a mechanism called "session tracking" which helps the server to maintain the state to track the series requests from the same user across period of time. | |
47. | What are Page directives? |
---|---|
|
|
48. | What are include directives? |
---|---|
The include directive informs the JSP engine to include the content of the resource in the current JSP page. Below is the syntax for include statement. <%@ include file = "Filename" % > Below is a code snippet which shows include directive in action <html > <head > <title>Directives in action> </head > <%@ include file = "/ companyname.html" %> <body><h1>Directive in action </h1> </body > </html > |
|