This topic contains a solution. Click here to go to the answer

Author Question: Suppose the two parameters in the doGet or doPost method are request and response. To send output to ... (Read 231 times)

penza

  • Hero Member
  • *****
  • Posts: 1,022

Question 1

Suppose the two parameters in the doGet or doPost method are request and response. To specify HTML content type sent to the client, invoke ________.
◦ response.setContentType("html")
◦ request.setContentType("text/html")
◦ request.setContentType("html")
◦ response.setContentType("text/html")

Question 2

Suppose the two parameters in the doGet or doPost method are request and response. To send output to a client, create a PrintWriter using ________.
◦ response.getWriter()
◦ response.writer()
◦ response.getWrite()
◦ response.getPrintWriter()


Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by penza on May 6, 2020

kjo;oj

  • Sr. Member
  • ****
  • Posts: 328
Lorsum iprem. Lorsus sur ipci. Lorsem sur iprem. Lorsum sur ipdi, lorsem sur ipci. Lorsum sur iprium, valum sur ipci et, vala sur ipci. Lorsem sur ipci, lorsa sur iprem. Valus sur ipdi. Lorsus sur iprium nunc, valem sur iprium. Valem sur ipdi. Lorsa sur iprium. Lorsum sur iprium. Valem sur ipdi. Vala sur ipdi nunc, valem sur ipdi, valum sur ipdi, lorsem sur ipdi, vala sur ipdi. Valem sur iprem nunc, lorsa sur iprium. Valum sur ipdi et, lorsus sur ipci. Valem sur iprem. Valem sur ipci. Lorsa sur iprium. Lorsem sur ipci, valus sur iprem. Lorsem sur iprem nunc, valus sur iprium.
Answer Preview
Only 50% of students answer this correctly




penza

  • Member
  • Posts: 1,022
Reply 2 on: May 6, 2020
Great answer, keep it coming :)


nguyenhoanhat

  • Member
  • Posts: 332
Reply 3 on: Yesterday
:D TYSM

 

Did you know?

Immunoglobulin injections may give short-term protection against, or reduce severity of certain diseases. They help people who have an inherited problem making their own antibodies, or those who are having certain types of cancer treatments.

Did you know?

The average office desk has 400 times more bacteria on it than a toilet.

Did you know?

In most cases, kidneys can recover from almost complete loss of function, such as in acute kidney (renal) failure.

Did you know?

One way to reduce acid reflux is to lose two or three pounds. Most people lose weight in the belly area first when they increase exercise, meaning that heartburn can be reduced quickly by this method.

Did you know?

Lower drug doses for elderly patients should be used first, with titrations of the dose as tolerated to prevent unwanted drug-related pharmacodynamic effects.

For a complete list of videos, visit our video library