String getAttribute(String name)Retrieves an attribute value by name.Parameters: name: The name of the attribute to retrieve.Returns: The Attr value as a string, or the empty string if that attribute does not have a specified or default value.
但是在servlet使用session就报错啊?说什么session not found,请问要加载什么类吗?
The Attr value as a string, or the empty string if that attribute does not have a specified or default value.
看看你是否把它写为false了?