JSP built-in object session error problem

Source: Internet
Author: User

Eclipse always prompts for errors when setting up a session for a user in a JSP, but the syntax is correct, so check out his error message:

A bit misleading me, I thought to not import which class, but think about, JSP nine large built-in objects are not required to import the class, it must be the wrong side,

I paste the code from other places about the session copy run, I found that can be used, I will step through the code and my Code side of the different,

Sure enough

At the beginning of the study when the page's session property is set to false, meaning that the page does not support the session, so it caused my page error.

Remove the session= "false" to make it.

JSP built-in object session error problem

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.