Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[servlet-dev] Cookie.setAttribute() and session-config/cookie-config in web.xml

Hi all,

With the addition of the generic get/set attribute to Cookie we need to think about what, if anything, to add to the <cookie-config> element in web.xml.

I'd like to propose the following modelled on filter/servlet init-param

...
<cookie-config>
  <attribute>
    <attribute-name>name1</attribute-name>
    <attribute-value>value1</attribute-value>
  </attribute>
  <attribute>
    <attribute-name>name2</attribute-name>
    <attribute-value>value2</attribute-value>
  </attribute>
  ...
</cookie-config>
...

Once we have agreement, I'll put together a PR for the jakarta-schema project.

Mark


Back to the top