5 years ago in JSP And Servlet

Which method is used to specify before any lines that uses the PrintWriter?

[A] setPageType()
[B] setContextType()
[C] setContentType()
[D] setResponseType()
Loading...
Next Question

Overall Stats

Attempted 390
Correct 100
Incorrect 117
Viewed 173

Answers

Guest
Guest
Shamsa hafeez
Shamsa hafeez - 3 days ago

Shamsa hafeez from Lahore, Pakistan is saying setContentType() is correct answer

Ralph Bibera
Ralph Bibera - 2 weeks ago

Ralph Bibera from Philippines is saying setContentType() is correct answer

Davinder Singh
Davinder Singh - 4 weeks ago

Davinder Singh from Delhi, India is saying setPageType() is correct answer

Keerthana Keerthi
Keerthana Keerthi - 1 month ago

Keerthana Keerthi is saying setContextType() is correct answer

Sri Priyanka Avuthu
Sri Priyanka Avuthu - 1 month ago

Sri Priyanka Avuthu is saying setContextType() is correct answer

Related Questions

The getSession() method with 'true' as its parameter [ getSession(true) ] it will return the appropriate session object when

  • [A] the session is completed
  • [B] the session object is passed to another method
  • [C] the session does not exists
  • [D] the session is existing

Which of the following are the session tracking techniques?

  • [A] URL rewriting, using session object, using response object, using hidden fields
  • [B] URL rewriting, using session object, using cookies, using hidden fields
  • [C] URL rewriting, using servlet object, using response object, using cookies
  • [D] URL rewriting, using request object, using response object, using session object

The life cycle of a servlet is managed by

  • [A] servlet context
  • [B] servlet container
  • [C] the supporting protocol (such as http or https)
  • [D] all of the above

What are the mechanisms available in ServletContextListener interface?

  • [A] contextInit(), contextService(), contextDestroyed()
  • [B] contextInitialized((),contextDestroyed()
  • [C] contextInitialized(), contextService(), contextDestroyed()
  • [D] None of the above

A deployment descriptor describes

  • [A] web component response settings
  • [B] web component settings
  • [C] web component request objects
  • [D] All of the above