Hi. I am making a little demo of a session bridge between our "legacy"
Active Server Pages apps and our soon to be new Java and JSP apps. I want a
bean with a UniqueID setter and a bunch of getters for a person. IN the
bean, I want to
- read a cookie
- write a cookie
- do some database stuff (no problem)
This is an ignorant question, I am sure. But what do I need in my bean to
access cookies?
Thanks
S
Stephanie Stowe - 06 Apr 2004 16:15 GMT
Nevermind... I figured it out.
Murphy's law states that as soon as you post to Usenet, you figure your own
answer...
S
> Hi. I am making a little demo of a session bridge between our "legacy"
> Active Server Pages apps and our soon to be new Java and JSP apps. I want a
[quoted text clipped - 11 lines]
>
> S
Kevin Arouza - 06 Apr 2004 20:43 GMT
If you are using HTTP servlets then cookies are supported by the
HTTPServletRequest and HTTPServletResponse class. Use the
getCookies() and the addCookie() methods.
Lookup the Servlet API for the detailed specs on these interfaces. If
you have a bean that needs to be able to do this then you can pass a
reference to the request and response objects.
Hope this helps :)
Kevin
> Hi. I am making a little demo of a session bridge between our "legacy"
> Active Server Pages apps and our soon to be new Java and JSP apps. I want a
[quoted text clipped - 11 lines]
>
> S