Community Sites
Create your own community website and start earning today !
It's Free !
Forum
Resources
Mentors
Projects
Entrance Exams
Question Papers
Colleges
Courses
Universities
Schools
Make Money
Communities
Members
Bookmarks
Polls
Fresher Jobs
Funny Pictures
MCA Projects
New Member FAQ
My Profile
Sign In
Register
AdSense Revenue
Active Members
Today
Shanthi M
(235)
Ron
(144)
Genius
(92)
Last 7 Days
Satyanarayana ...
(2603)
Ramesh Gupta
(2443)
Sriram
(1100)
more...
Awards & Gifts
Online Exams
Aptitude Questions
General Aptitude Tests
Medical Entrance
Engineering Entrance
Bank Tests
TOEFL & IELTS Questions
Fresher Jobs
Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian cities including Bangalore, Chennai, Hyderabad, Pune or Kochi
Resources
Find educational articles, blogs, discussion threads and other resources.
Colleges
Find details about any college in India or search for courses.
Software Development JSP – Frequently Asked Questions with answers
Posted Date:
28 Jan 2008
Total Responses:
1
Posted By:
Salma
Member Level:
Gold
Points
: 4
1.) What is wrong with using JSP scriptlet tags?
Java code embedded within scriptlet tags is ugly and obtrusive.
A non-Java developer cannot modify the embedded Java code, nullifying a major benefit of JSP: empowerment of designers and business people to update page content.
Other JSP pages cannot reuse Java code within JSP scriptlet, so common logic snippets end up being re-implemented in multiple pages.
Retrieving objects out of the HTTP request and session is cumbersome. Casting to the object’s class is required. This then requires that the object’s class be known to the JSP by importing or fully qualifying the class name.
2.) Which one is thread safe?
A) Arraylist
B) Vector
C) Map
D) Table
Ans: B) Vector.
3.) The set Secure (Boolean) method of the Cookie class is used to:
A) Encrypt a cookie so that the user can not read the stored cookies.
B) Specify whether the cookie is sent over a secure protocol such as SSL.
C) Specify whether the cookie is not violating any security rules.
D) Gather security related information about a user.
Ans: B)
4.) Which element enables JSP to integrate with JavaBeans?
A) Scriptlets.
B) Directives.
C) Declarations.
D) Actions.
Ans: D)
5.) Can a interface be implemented in a jsp file?
A) Yes.
B) No.
C) Only when static pages are included.
D) Only when dynamic pages are included.
Ans: B)
6.) What is a Scriplet?
Scriptlet can contain any number of language statements, variable or method declarations, or expressions that are valid in the page scripting language.
7.) What is the purpose of Jsp forward method?
This method will forward the control to another resource available in the same web application on the same container.
8.)What are the implicit objects used in JSP?
The various implicit objects are
a.request
b.response
c.pageContext
d.session
e.application
f.out
g.config
h.page
i.exception
Responses
Author:
supreme
31 May 2008
Member Level:
Gold
Rating:
Points
: 2
Great collection of questions and answers. Keep Going
Post Reply
This thread is locked for new responses. Please post your comments and questions as a
separate thread
.
If required, refer to the URL of this page in your
new post
.
Next :
Software Development JMS – Frequently Asked Questions with answers
Previous :
Software Development LINUX – Frequently Asked Questions with answers
Return to Discussion Forum
Post New Message
Category:
General
Related Messages
what is use for me?
Who founded the famous Parker Pen Co.?
Countries with most births per year
Knowledge and its application
How to Make the Most of Your Study Time
Watch TV Channels
Watch Asianet TV online
Kairali TV in Internet
Surya TV online
Amritha TV Channel
Contact Us
Privacy Policy
Terms Of Use
SpiderWorks Technologies Pvt Ltd. 2006 - 2007 All Rights Reserved.