Code No: 37047
R05
Set No - 1
in
IV B.Tech I Semester Regular Examinations,Nov/Dec 2009 WEB TECHNOLOGIES Computer Science And Engineering Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ?????
ld .
1. Develop a JSP to act as a simple search engine with the support of necessary database. Web page will accept the topic name and JSP will be activated by a “submit” button click. JSP will open relevant page with a set of relevant URLs for that topic. [16] 2. Discuss about of session scope- manually and automatically with suitable examples. [16] 3. (a) Explain how would you create an Ordered list.
or
(b) Create a HTML table with columns for a country-name, national sport, national flower, national animal and national tree. There must be at least five states as rows in the table. [6+10] 4. Discuss how servlets can be used to extend a web server’s functionality.
[16]
uW
5. (a) Differentiate between servlets and JSPs.
(b) Write a JSP expression to insert current date and time in to a web page.[8+8] 6. (a) Define a Java bean. Explain how can you prepare a java bean class. (b) With relevant examples explain the different types of beans properties. [8+8] 7. (a) Compare and contrast HTML and DHTML.
nt
(b) Write a javascript to validate a form consisting of a username. Also navigate to another web page after validation. [8+8]
8. (a) What is produced by the SAX parser? (b) What are the advantages of a SAX parser over the DOM parser?
Aj
(c) Explain why XML uses both streaming and tree-based parsing. ?????
1
[4+7+5]
Code No: 37047
R05
Set No - 2
in
IV B.Tech I Semester Regular Examinations,Nov/Dec 2009 WEB TECHNOLOGIES Computer Science And Engineering Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ?????
ld .
1. Create an Interactive SQL tool, which will - Enable the user to enter and execute an SQL command. - Display the result set from an SQL query. - Display error information when appropriate.
[16]
or
2. Given six short paragraphs of text that describes your college and your department where you are studying. Write CSS rule such that there are three different paragraph styles p1, p2 and p3. p1 style must use left and right margins of 20 pixels, a background color of pink, and foreground color of blue. The p2 style must use left and right margins of 30 pixels, a background color of black, and a foreground color of yellow. The p3 style must use a text indent of 1 centimeter, a background color of green and a foreground color of white. The first and fourth paragraph must use p1, the second and fifth must use p2 and the third and sixth must use p3. [16]
uW
3. (a) List and explain the steps followed to test the servlet program. (b) Describe in detail ServletResponse interface of javax.servlet package.
[8+8]
4. (a) What are constrained properties related to a bean? Give an instance of it. (b) Explain persistence of a bean with an example. (c) Describe how customizers can be provided for the bean component. [6+5+5]
nt
5. (a) Write a javascript to display the denomination of the amount deposited in the bank in terms of 100’s, 50’s, 20’s, 10’s, 5’s, 2’s & 1’s. (Eg: If deposited amount is Rs.163, the output should be 1-100’s, 1-50’s, 1- 10’s, 1-2’s & 1-1’s) (b) What is function? Explain how parameters are passed to functions in javascript. [8+8]
Aj
6. (a) Write a JSP to output any given string ten times. (b) Give a note on Testing Tomcat server.
[8+8]
7. (a) Develop a JSP with a Bean in the application scope. (b) What is a scriplet? Write about scriplet elements.
[8+8]
8. (a) Give the syntax of an XML document and explain how a basic XML document is created with an example. (b) Explain the following terms related to Document Type Definition: i. elements 2
Code No: 37047
R05
Set No - 2
ii. attributes & entities iii. internal & external entities.
[8+8]
Aj
nt
uW
or
ld .
in
?????
3
Code No: 37047
R05
Set No - 3
in
IV B.Tech I Semester Regular Examinations,Nov/Dec 2009 WEB TECHNOLOGIES Computer Science And Engineering Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ?????
ld .
1. (a) Develop an HTML document that collects the following information from the user: last name, first name, middle initial, age (restricted to be greater than 17) and weight (restricted to the range of 80-300). Event handlers have to be written for the form elements that collect this information that check the input data for correctness. Messages in alert windows must be produced when errors are detected. (b) Write about the various Objects used in javascript.
[8+8]
uW
or
2. Create a HTML document that has two rows of frames with two frames in each row. The two left frames must occupy 25 percent of the width of the display. The bottom two frames must occupy 40 percent of the height of the display. The top left frame must display heading “Subjects in III B.Tech I Semester” followed by the subjects. The bottom left frame must display the heading “Subjects in III B.Tech II Semester” and the subjects. Each subject in the left frames must be a link to a document that is displayed in the right frame when the link is selected. The documents in the right frames are short descriptions of the subjects. [16] 3. (a) What is BeanInfo Interface? Explain the importance of a BeanInfor Interface. (b) Create a simple code which utilizes the BeanInfo interface effectively.
[8+8]
4. Write a JSP to display the results of a student by accepting studentid in a text box. Results will be maintained in a database table. [16]
nt
5. (a) Explain the Document object model tree structure. Also explain how XML DOM provides effective document manipulation. (b) Create an XML schema for library information management.
[8+8]
Aj
6. (a) Explain the method of reading the names and values of parameters that are included in a client request. Illustrate with an example program. (b) Discuss the methods defined by ServletRequest interface.
[8+8]
7. (a) Write a JSP that handles empty form values. (b) Give a detail note on JSP action used for Java Bean manipulation.
[8+8]
8. Write a JSP that allows the user to select an item from a list and to press submit button later prints the item on web page. [16] ?????
4
Code No: 37047
R05
Set No - 4
1. (a) Develop a servlet that handles HTTP POST request. (b) HTTP is a stateless protocol. Substantiate the statement.
in
IV B.Tech I Semester Regular Examinations,Nov/Dec 2009 WEB TECHNOLOGIES Computer Science And Engineering Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ?????
[10+6]
ld .
2. Create a HTML document that has two frames in one column. The top frame, which must be 20 percent of the column, must have at least four links to other documents; the bottom frame will display those documents. The links must be names of the departments in your college; the documents must be at least five-line description of the departments. [16]
IntrospectionException EventSetDescriptor. BeanDescriptor FeatureDescriptor.
uW
i. ii. iii. iv.
or
3. (a) Explain the following given classes and their usage:
(b) “EJB is a managed, server-sided component for modular construction of enterprise applications” -Justify this statement and explain the cause. [8+8] 4. (a) Develop a JSP to accept users first name and then welcome the user by name. (b) Discuss about javax.servlet.jsp.tagext package.
[10+6]
5. (a) Discuss the important features of XML which make it more suitable than HTML for creating web related services.
nt
(b) Explain how styling XML with cascading stylesheets is done for the library information domain. [8+8]
6. Explain JSP scripting components with examples.
[16]
Aj
7. (a) How does Javascript fare as an object-oriented language? Would it be correct to say that javascript is object-based rather than object-oriented? (b) Explain how events are handled in Javascript. (c) Write a script that reads an integer and displays whether it is a prime number or not. [5+5+6]
8. What is a framework? Why is it useful for application development? Explain in detail struts framework. [16] ?????
5