|
From: bryan h. <bry...@os...> - 2003-04-03 11:01:07
|
The APIAdapterApplet gets the cookie that it uses to communicate back
and forth with the servlet via javascript .... this has 2 problems
1) It's ugly and un-necessary :: It would be easier to write the sessionid
as a parameter to the applet ie
<applet name="APIAdapterApplet"
name="asddsaf"
class="dsafd"
>
<param name="sessionid" value="98789089080980">
</applet>
That would allow us to reduce the length of our code by
a couple of functions and a lot of lines.
2) It makes debugging the applet a bit of a cnt ( as we say in
Ireland ) as it relies on a cookie in its html page to do anything
If we substituted all that cookie crap for a simple parameter
all the cookie reading code could be reduced to the following line .....
String sessionid = getParameter("sessionid");
Thoughts ? Comments ? Is there anything I'm missing here ?
--B
--
Bryan Hunt
Systems Manager
Ossidian Technologies www.ossidian.com
17 Carysfort Avenue, Blackrock, Co Dublin IRELAND
|