1.write statemet use TAG library Studentinfo.tld with prefix student
2.single line to include a page "vu home .java" you can use any name for tags but mention which have chosen for which tag element
3.servlet named as "myservlet " where we provide or name "myservlet "call response send redirect output.html will our name be accessible on the outpuut .html
4.define and use error pages in JSP
5.<student ;stydy> identity tag
6.display welcom to virtual university
7.JSP into equivalent xml format
8.Tag library student info .tld
My Todays CS506 paper..........
14 to 15 msqs from moaaz files...
1. Why Post method is better than Get method? (3marks)
2. When we should write a Generic servlet and http servlet? (2marks)
3. How web services communicate with each other?(2 marks)
4. Why do we use doGet() method in tag handler class?(2marks)
5. Is there a main method[] in applet? Support your answer with a reason. (2marks)
6. Write a method that displays a string "I am student" at rendom location on the screen having size 1200*1000. (3marks)
7. Write the following message in the from of HTML comment and JSP comment:
"JSP's are more usefull over servlets". (3marks)
8. Explain Object scopes for visibility point of view with the help of Diagram. (5marks)
9. Write an expression language equalent to following code:
If(cookies.getName().euqal("Name")){
String val = Cookies.getValue();
} (3marks)
10. 1 five numbr ka question tha jis main code dia howa tha jis main 2 loops use ho ry the multi threading k or wo class implement kr ri the interface runnable uscode ko interface se change kr k inheritance main likhna tha.
Remembr in prayer.
My CS506 Paper
Mostly MCQS From Past
Here some questions I remembered
What is core Program of AJAX?
Question About "wait" and "Task" Method??
How to apply same effect on all HTML Tags ??
How to refresh current page in WPF navigation based Application?
AJAX which type of Technology?
Ali want to hide all <P> TAGs From HTML. Give syntax for this in Java and Jquiry?
How a server respond to browser's request? Give at least 4 examples
How to prevent a window from automatically being activated when uts shown first ?
Write down event code on Click-Me event, and Raised Event ?
Question About Sort Description, with Ascending and Descending?
A question was about to write down at least 3 commands ?
40% mcqs are from Moaz file and 3 questions are from Subjective file.over all papers is not much difficult best of luck .... they took my xtra sheet so i cant share questions...mcqs were new
- Write 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 --%>
<%!
//your code here
%>
<%-- Scriptlet --%>
<%
//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
- 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
My tody paper:
50% past sy tha or long questions jsp sy thy
- how web services communicate with each other
- Explain MVC2 with diagram
- Arrange classes in packages
- Initialize two parameters: one for text (file.txt)and other for DSN(studentDSN)
baki jsp k lectures sy thy
>> How pages know about errors?
>> Write 1 advantage and 2 disadvantages of JSPs.
>> If Process A needs 19 iterations but has highest priority and process B needs only 2 iterations but has lowest priority. What problem will arise? explain with example.
>> Write java code that sets priority of a process to the highest
>> Why HTTP is set to stateless? explain with example?
>> Write two differences between web pages and web services.
>> Find the mistakes in the given java code and make corrections.
>> Explain the working of MCV1 with diagram
today my paper
mostly MCQS wss Moaaz file and question are as fellow
what is package?
write a servlet which display Hello world
i am a student.
Q3 difference b/w MVC1 AND MVC2?
what is alternative name of bossiness layer ?
what is difference b/w html and jsp?
0 Comments