CS506 Web Design and Development Current Final Term Paper Fall 2014
MCQ's were newWrite a JSP page that gets the value of “amount” from an html page, calculate Zakat on it and display the calculated Zakat.
Note: Use the following overall format of the program.
<html>
<body>
<!-- JSP to calculate Zakat-->
<%-- Declaration --%>
<%!
<body>
<!-- JSP to calculate Zakat-->
<%-- Declaration --%>
<%!
//your code here
%>
%>
<%-- Scriptlet --%>
<%
//your code here
%>
<%
//your code here
%>
<%-- expression used to display Zakat --%>
<h3>Zakat value is:
<%
// your code here
%>
</h3>
</body>
</html>
2. When we set CATALINA_HOME while configuration. What does this refers to?
3. In url rewriting which method is required to override
4.What is use of dot(.) operator in EL (expression language)? Give one example.
5. How do we define and use error pages in JSP?
6. Write a single line to include a page “vuHome.java” using custom tags. You can use any name for tags but mention which name you have chosen for which tag element:
7.Write a scriptlet that is equivalent to following fragment of code?
<c:out value = “${param.id}” default = “null” />
8.Three techniques that can be used for session tracking are as follows:
9.Suppose you are to develop program that keep watching on the new files shared by the user so that we may verify and add them in required destination. For keep watching which approach you will use.Briefly explain how you will use this?
10. In JSP useBean action element an attribute scope is used. What are possible values of scope attribute? If we will omit scope attribute then which default value will be used?11.difference between doGet() and doPost()?
12. Write Core Actions tags that are available in the Core tag library for the following
<h3>Zakat value is:
<%
// your code here
%>
</h3>
</body>
</html>
2. When we set CATALINA_HOME while configuration. What does this refers to?
3. In url rewriting which method is required to override
4.What is use of dot(.) operator in EL (expression language)? Give one example.
5. How do we define and use error pages in JSP?
6. Write a single line to include a page “vuHome.java” using custom tags. You can use any name for tags but mention which name you have chosen for which tag element:
7.Write a scriptlet that is equivalent to following fragment of code?
<c:out value = “${param.id}” default = “null” />
8.Three techniques that can be used for session tracking are as follows:
9.Suppose you are to develop program that keep watching on the new files shared by the user so that we may verify and add them in required destination. For keep watching which approach you will use.Briefly explain how you will use this?
10. In JSP useBean action element an attribute scope is used. What are possible values of scope attribute? If we will omit scope attribute then which default value will be used?11.difference between doGet() and doPost()?
12. Write Core Actions tags that are available in the Core tag library for the following
To set the value of variable "name".
To display the value of variable ”studentId”
To set the id “21” for the studentBean id=“std”
variable name is required to be removed from page scope
To display a message “a less then b” if a strings a < b are equal
To display the value of variable ”studentId”
To set the id “21” for the studentBean id=“std”
variable name is required to be removed from page scope
To display a message “a less then b” if a strings a < b are equal








0 comments:
Post a Comment