Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / JavaBeans / April 2004

Tip: Looking for answers? Try searching our database.

newbie question about servlets and beans

Thread view: 
Stephanie Stowe - 06 Apr 2004 14:24 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.