RSS

Category Archives: Assignment

WTAD Practical Sample Paper -3

WTAD Practical Sample Paper3

 
Leave a comment

Posted by on May 5, 2016 in Assignment

 

WTAD Practical Sample Paper -2

WTAD Practical Sample Paper2

 
Leave a comment

Posted by on May 5, 2016 in Assignment

 

WTAD Practical Sample Paper -1

WTAD Practical Sample Paper1

 
Leave a comment

Posted by on May 5, 2016 in Assignment

 

Servlet Practical Assignment -2

Servlet Practical Assignment -2
1) Develop a Servlet which will display different images based on the name of the html file.
2) Write a servlet that builds an Excel spreadsheet that display student name,mark1, mark2, mark3 and sum of three subjects mark.
3) Suppose we have three pdf files for the MCA-1 result, MCA-2 result and MCA-3 result respectively. Now write a Servlet which displays the appropriate PDF file to the client, by looking at a request parameter for the year (1, 2 or 3). (use response.sendRedirect() method )
4) Write a Servlet to show special welcome message for users who are not accessing Internet Explorer.
5) Write a Servlet to show special message when user comes from google, yahoo and MSN Search engine.
6) Write a servlet that returns a “page not found” error page (404) unless the user supplies a favourite Language request (form) parameter with a value of “Java.”

 
1 Comment

Posted by on February 23, 2013 in Assignment

 

Servlet Theory Assignment-1

1) Define servlet and Explain Servlet life cycle with Example                                                  07
2) What is the difference between HttpServlet and GenericServlet?                                         05
3) What are the major differences between doGet( ) and doPost( )?                                        02
4) Which interface must be implemented by all Servlets?                                                       01
5) Discuss all access methods of HttpServletRequest in detail                                               07
6) Explain the following methods of HttpServletResponse with examples.                                07
i) setContentType() ii) setStatus() iii) sendError()
iv) sendRedirect() v) setContentLength() vi) encodeURL() vii) isCommited()
7) Briefly discuss the following HTTP 1.1 request headers                                                      07
i) Accept ii) Accept-Charset iii) Host
iv) Accept-Language v) Authorization vi) Cookie vii) User-Agent
8) What is HttpServlet? Explain the methods of HttpServlet                                                   07
9) In servlet, _____ method is used with session object to store information in a session         01
10) Define ServletResponse term                                                                                        01

 
Leave a comment

Posted by on February 12, 2013 in Assignment

 

Servlet Practical Assignment -1

1)Write a Servlet to display “Hello World” on browser.
2)Create a Servlet which prints following output on the web browser. “My name is XYZ and I am studying in Atmiya Institute of Technology and science”.
3)Create a servlet file which takes two text boxes like name and age then print the information on that page only.
4)Take one Integer variable counter and print the following Message “ This Servlet has been accessed N times”
5)Do above program using init parameter method.
6)Write a servlet program which prints RemoteAddress and RemoteHostName in the web browser.
7)Write a Servlet program which prints QueryString() in the web browser.
8)Create a servlet file which takes two text boxes for User Name and Password. Check the validity, if username and password is valid send redirect to the HTML page, otherwise post back to the current page with appropriate error message.
9)Write a Servlet to display all the headers available from request.

 
Leave a comment

Posted by on February 11, 2013 in Assignment