Has anyone been using JRun 3.0 or JRun 2.3.3 to setup a wireless website.
I'm having a helluva time trying to figure out how to get Cookies to work.
For some reason, when I send a cookie with JRun, I can only access that
cookie from the same exact JSP page.  Other JSP pages just don't detect it.

I have tried a similar test with ColdFusion, and it works like a champ.
Other cfm pages are able to see a cookie I sent from an original cfm page.

I am using the Phone.com UP.Browser 4.1 simulator to test the site out.  Can
anyone help me out?  Here is the code:

----Send the cookie----
<%
Cookie testcookie = new Cookie("thecookie","thecookievalue");
testcookie.setMaxAge(10000000);
response.addCookie(testcookie);
%>

----Retrieve all cookies and display them----
<%
Cookie CookieArray[] = request.getCookies();

if (CookieArray != null) {
        for (int i=0;i < CookieArray.length; i++) {
                out.println(CookieArray[i].getName() + ":" + 
CookieArray[i].getValue());
        }
}
%>



Joe Alapat



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to