Uploaded image for project: 'Jetspeed (Retired)'
  1. Jetspeed (Retired)
  2. JS1-270

Cookies can not be set in jsp portlet

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Incomplete
    • 1.4b4-dev / CVS
    • None
    • Portlets
    • None
    • Operating System: Windows NT/2K
      Platform: PC
    • 18755

    Description

      hello,
      I want to change the value of a cookie recovered in a page jsp, this cookie is
      well recovered, but its value does not be seted.
      the code used here :
      val="NewValue";
      Cookie[] cookies = data.getRequest().getCookies();
      for(int i = 0 ; i < cookies.length ; i++)
      { if(cookies[i].getName().equals("MYCOOKIE"))

      { cookies[i].setValue(val); response.addCookie(cookies[i]); }

      }

      thank you in advance

      Attachments

        Activity

          People

            Unassigned Unassigned
            amine.kaid@caramail.com amin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: