CS1401 - Internet Programming
CS1401 - Internet Programming
27. What are ISAPI (Internet Server API) and NSAPI (Netscape Server API)
ISAPI (Internet Server API): An API for Microsoft's IIS (Internet Information Server)
Web server. ISAPI enables programmers to develop Web-based applications that run much
faster than conventional CGI programs because they're more tightly integrated with the Web
server. In addition to IIS, several Web servers from companies other than Microsoft support
ISAPI.
NSAPI -Netscape Server API: An API for Netscape's Web servers. NSAPI enables
programmers to create Web-based applications that are more sophisticated and run much
faster than applications based on CGI scripts.
There are a variety of standard protocols from which programmers can choose.
Each has particular advantages and disadvantages; for example, some are simpler than
others, some are more reliable, and some are faster. The protocol can be implemented
either in hardware or in software.
66. Write down the Socket object methods to get information about a socket.
1. getInetAddress ()- displays which remote host the Socket is connected to
2. getPort () -displays which port the Socket is connected to on the remote host.
3. getLoca1Port ()- to find the port number for the local end of a connection
4. getLocalAddress () -tells you which network interface a socket is bound to.
71. What are the style precedence rules when using multiple approaches?
Inline styles override both linked style sheets and style information stored in the document
head with <STYLE> tag.
Styles defined in the document head override linked style sheets.
Linked style sheets override browser defaults.
77. What are the XML rules for distinguishing between the content of a document and the
XML markup element?
1.The start of XML markup elements is identified by either the less than symbol (<) or
the ampersand (&) character
2.Three other characters, the greater than symbol (>), the apostrophe or single quote (‘)
and the double quotation marks (“) are used by XML for markup.
3.To use these special characters as content within your document, you must use the
corresponding general XML entity.
85. Write down the various attributes for the page directives in JSP.
The page directive defines information that will be globally available for that Java Server
Page,
1. language
2. extends
3. import
4. session
5. buffer
6. contenttype
89.Define SSI.
Server Side Includes (SSI) gives you a way to insert the content of another file into a
file before the web server processes it.