expire.
>
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/How-to-write-an-HTTP-header-to-detect-cookie-disablement-tp4397827p4413526.html
Sent from the Users forum mailing list archive at Nabble.com.
nse) then it will be written to the browser. You can verify
>> that by investigating the request in Firebug's Net panel.
>>
>> If you want to send a cookie you should either use #addCookie() or
>> set/addHeader("Set-Cookie"). Check in google for more info.
>
#addCookie() or
> set/addHeader("Set-Cookie"). Check in google for more info.
> So you set the cookie in the current response and if not expired it
> should be available in the next *request* (HttpServletRequest or
> Wicket's WebRequest).
>
--
View this message in context
> following
>>> code in my "About us" page.
>>>
>>> public PageAbout()
>>> {
>>> super();
>>>
>>> Form frmForm = new Form("frmForm")
>>> {
>>> private static final long serialVersionUID = 1L;
>>>
;>protected void onSubmit()
>>{
>> setResponsePage(PageHome.class);
>>
>> WebResponse wrResponse = (WebResponse)getResponse();
>> wrResponse.addHeader("X-MyApp-NotFirstPageBase-1", "true");
>>
);
> wrResponse.setHeader("X-MyApp-NotFirstPageBase-2", "true");
> }
> };
> add(frmForm);
>
> ...
>}
>
> Again no such header appeared.
>
> Can anyone see what I am doing wrong?
>
> Regards,
>
> Ian Marsha
};
add(frmForm);
...
}
Again no such header appeared.
Can anyone see what I am doing wrong?
Regards,
Ian Marshall
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/How-to-write-an-HTTP-header-to