Architecture of the Java Server Pages

You can directly start an editor like notepad to create a jsp page। It has got certain directives such as @page, using this we can specify the language has been used to build the page. It has got several attributes such as import etc., It can an be used to import other java classes which you want to use in your JSP page.

Client Interaction

When a Java Server Page accepts a call from a client, it stores information in two objects:

· Request object, which encapsulates the communication from the client to the server.

· Response object, which encapsulates the communication from the JSP back to the client.

The request and response and are from HttpServletRequest and HttpServletResponse interfaces defined by the javax.servlet.http package.

The request Object:

The request Object allows a JSP page access to:

· Information such as the names of the parameters passed in by the client, the protocol (scheme) being used by the client, and the names of the remote host that made the request and the server that received it.

The response Object:

The Response object gives the JSP page certain methods for replying to the client. It:

· Allows the JSP page to set the content length and MIME type of the reply.

This object gives the JSP Page to do more protocol-specific capabilities. For example, the response object contains methods that allow the JSP page to manipulate HTTP-specific header information

ONLINE TRAINING

Dear friends we are happy to announce that we entered in corporate training. For the past two years we trained many students, Employees as per industrial requirements. Now we are started online training session for who dont have enough time and who dont want to waste time to come to institutes for learning. We are offering online sessions for Windows server 2003, windows server 2008, MCSE, .NET, Java. MS SQL Server and many more. For more details about course and fee structure please



Followers

Google Pagerank Powered by  MyPagerank.Net