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

Author Question: For a HttpSession, say session, how do you get its attribute? (Read 331 times)

james

  • Hero Member
  • *****
  • Posts: 573

Question 1

For a HttpSession, say session, how do you set an attribute pair with name lastName and value Smith?
◦ session.attribute("lastName", "Smith")
◦ session.setAttribute("lastName", "Smith")
◦ session.setValue("lastName", "Smith")
◦ session.value("lastName", "Smith")

Question 2

For a HttpSession, say session, how do you get its attribute?
◦ session.getValue("lastName")
◦ session.value("lastName")
◦ session.getAttribute("lastName")
◦ session.attribute("lastName")


Related Topics

Need homework help now?

Ask unlimited questions for free

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

dlook33

  • Sr. Member
  • ****
  • Posts: 344
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 49% of students answer this correctly




james

  • Member
  • Posts: 573
Reply 2 on: May 6, 2020
Gracias!


meow1234

  • Member
  • Posts: 333
Reply 3 on: Yesterday
Thanks for the timely response, appreciate it

 

Did you know?

The calories found in one piece of cherry cheesecake could light a 60-watt light bulb for 1.5 hours.

Did you know?

To combat osteoporosis, changes in lifestyle and diet are recommended. At-risk patients should include 1,200 to 1,500 mg of calcium daily either via dietary means or with supplements.

Did you know?

About 600,000 particles of skin are shed every hour by each human. If you live to age 70 years, you have shed 105 pounds of dead skin.

Did you know?

Computer programs are available that crosscheck a new drug's possible trade name with all other trade names currently available. These programs detect dangerous similarities between names and alert the manufacturer of the drug.

Did you know?

The average person is easily confused by the terms pharmaceutics and pharmacology, thinking they are one and the same. Whereas pharmaceutics is the science of preparing and dispensing drugs (otherwise known as the science of pharmacy), pharmacology is the study of medications.

For a complete list of videos, visit our video library