• Ask Question
  • Propose Category
  • Interview eBook
  • Geek Forums
  • Online Learning
  • Online Quiz
  • Site Updates
  • User Login
    • Login



      Lost Password
      Click here to get activation email.

  • 06-13-2025
GeekInterview.com
  • Interview Questions
    • Fundamentals
      • Concepts
      • General
      • Management
      • Accounting
    • Operating System
      • Operating System
      • Android
      • iOS
      • Microsoft
    • Coding
      • Programming
      • J2EE
      • Languages
    • Database
      • Database
      • Data Warehousing
      • Oracle
    • Applications
      • Applications
      • Clarify CRM
      • Oracle Apps
      • Peoplesoft
      • Siebel
    • Software Testing
      • Testing
      • Testing Tools
    • Miscelleanous
      • Helpdesk
      • Mainframe
      • Networking
      • SAP R/3
      • Web
  • Interview Coaching
    • Career Counseling
    • Job Interview
  • Interview eBooks
    • Accounting eBook
    • C eBook
    • Citrix eBook
    • Job Interview eBook
  • Career Advice
    • Career Change
    • Jobs Help
    • Projects
    • Requests
    • Resume Help
    • Training Advice
  • Engineering
    • Chemical Engineering
    • Civil Engineering
    • Electrical Engineering
    • Electronics Engineering
    • Micro Processor
    • Mechanical Engineering
  • By Company
  • Ask Question
  • Home
  • spring Answers

Answered Questions

  • Dec 29 2006
    06:57 PM

    3694
    6



    <%
    PrintWriter print = request.getWriter();
    print.println("Welcome");
    >%



    Suppose you access this JSP file, Find out your answer.
    a) A blank page will be displayed.
    b) A page with the text Welcome is displayed
    c) An exception will be thrown because the implicit out object is not used
    d) An exception will be thrown because PrintWriter can be used in servlets only


    ">

    Write the following code for a JSP page:<%@ page language = "java" %> <%PrintWriter print = request.getWriter();print.println("Welcome");>%Suppose you access this JSP file, Find out your answer.a) A blank page will be displayed.b) A page with the text Welcome is displayedc) An exception will be thrown because the implicit out object is not usedd) An exception will be thrown because PrintWriter can be used in servlets only

    • abhinav_saraswat

    A page with the text Welcome is displayed

    spring

    profile Profileanswers Answers by springquestions Questions by spring

    • Apr 6th, 2009

    This code will print "Welcome"request does't have any getWriter() defined, only response has.<%@ page language = "java" %><%java.io.PrintWriter print = response.getWriter();print.println("Welcome");%>

    bharaniprasanth

    profile Profileanswers Answers by bharaniprasanthquestions Questions by bharaniprasanth

    • Mar 11th, 2008

    I think we have to use Jsp Writer as a part of specification ...PrintWriter is for servlets exclusively..

    Answer Question  Select Best Answer

Subscribe To RSS Feed

Tags Cloud

Company Interviews
  • Accenture (52)
    • Aptitude Interview Questions
    • Group Discussions Topics
    • Placement Assistance
  • Adobe (7)
    • Placement Assistance
  • AMD (1)
    • Placement Assistance
  • AMDOC (2)
    • Placement Assistance
  • Axes-Technologies (25)
    • Computer Awareness Questions
  • Aztec-Systems (15)
    • Aptitude Interview Questions
    • C Interview Questions
  • BirlaSoft (26)
    • Languages Interview Questions
  • Cisco (35)
    • Micro Processor Interview Questions
  • Cognizant (1)
    • Placement Assistance
  • Dell (22)
    • Aptitude Interview Questions
  • GE (2)
    • Placement Assistance
  • HAL (1)
    • Placement Assistance
  • Infosys (212)
    • Challenging Puzzles
  • ISRO (6)
    • Placement Assistance
  • Mphasis (1)
    • Placement Assistance
  • Oracle (206)
    • Aptitude Interview Questions
    • Java Interview Questions
    • SQL Interview Questions
  • Sonata (65)
    • Analytical Ability Interview Questions
    • C Interview Questions
  • TCS (396)
    • Aptitude Interview Questions
    • C FAQs
    • COBOL Interview Questions
    • Critical Reasoning Questions
    • Quantitative Aptitude Questions
  • Wipro (217)
    • Analytical Ability Interview Questions
    • Languages Interview Questions
    • Verbal Ability Questions

Interview Questions PDF Files

Accounting Interview Questions PDF
Citrix Interview Questions PDF
Best Questions and Answers From C PDF
Job Interview Questions and Answers PDF
Oracle Apps Technical Interview Questions and Answers PDF
Siebel Interview Questions PDF

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.

Latest News

Tags

AccentureWiproAMDAMDOCAxes-TechnologiesAztec-SystemsBirlaSoftCiscoCognizantDellGEHALInfosysISROTCSSonataAdobeOracleMphasis

Contact Us

Geekinterview.com

  • About US
  • Privacy Policy
  • Terms & Conditions
  • DMCA
  • Contact Us

© Copyright 2014-2025 GeekInterview.com | All Rights Reserved


 

It looks like you are using an AD Blocker!

 

 

Please Turn OFF your ad blocker

- OR -

LOGIN to continue using GeekInterview website.

 

 

 

Disable
Ad Blocker

 

Learn More

Login
GeekInterview

 

Login

Create your
GeekInterview account

 

Signup

Continue Reading after Disabling

 

Refresh