I will reply to Malcolm Davis in two parts:
Cookies, then (later) Clusters:
Cookies:
Yes, my presentation of the DHTML and JS stuff was
a bit confusing. And unnecessary.
Let me boil it down.
What I was musing about was a hack (??) I had just
seen in a non-Struts MVC app whereby the current page gets updated, in
situ, through the cookie(s) that head-up an SC_NO_CONTENT
page just sent from the server. The JavaScript in the current page reads
the cookie(s) and updates its own document model. No screen
flash. Very smooth. A nice MVC screen effect. Think of the
Color Chooser, the canonical MVC application. Smooth
updates.
Is it a hack? Would we consider such a
technique for Struts?
Of course, having the client code read cookies
might be considered weird. But why not. This is the web. We
survived the frameset mish-mash. Many B2B apps have captive clients
on dedicated PCs. If the app wants cookies, he should get cookies,
right? These are session cookies, not persistent cookies. Privacy is
not a big concern. If the browser is loading up on cookies from other apps
and maxes out, he gets a nice warning to quit screwing around.
I did not write this MVC-ish app that I am talking
about. I am merely testing it, aggresively, looking for hacks.
I don't have access to the servlet code but I can see the cookies
arriving at the browser. No JSESSIONID there. Just 4k of encoded
state. You ask, does this app use HttpSession? Apparently
not. It bakes its own cookies, complex cookies.
Bad. Bad. Bad.
But I like it. It contributes to
MVC. Why not do it, do it, do it??????
|
- RE: newbie question Anderson, Jessica
- RE: newbie question Deadman, Hal
- RE: newbie question Jesse Vitrone
- RE: newbie question Craig R. McClanahan
- RE: newbie question Martijn Spronk
- Newbie question Steven Williams
- NewBie question Irfan Mohammed
- newbie question David Lieberman
- Cookies and Clusters \(Home\) Dan Connelly
- RE: Cookies and Clusters malcolm davis
- newbie question \(Home\) Dan Connelly
- newbie question Jonathan Yang
- RE: newbie question Kevin McLain
- Re: newbie question Jonathan Yang
- Re: newbie question Peter Alfors
- newbie question Debasish Ghosh
- RE: newbie question Rick Hightower
- RE: newbie question Debasish Ghosh
- RE: newbie question Martin Cooper
- RE: newbie question Debasish Ghosh
- Re: newbie question Rama Krishna