01-17-2008 07:01 AM - edited 03-13-2019 04:52 PM
Hello, everyone!
Im trying to add header information to refresh page. Im programming services in JSP, so im using something like response.addHeader...
When i used this notation in ASP, there is no problem with that, but with this there are problems on phone. When i try to open this page in browser, it works, but when i open it on phone, it doesnt open requested page, but reloads itself (recursively).
I tried to catch traffic via wireshark and i dont see any problem there (see attachement).
Many thanks in any advance!
Solved! Go to Solution.
01-17-2008 07:57 AM
The refresh header format may not be quite right (missing 'url=' and some spacing)
Yours: Refresh: 1;http://www.example...
Example: Refresh: 1; url=http://www.example...
It's possible your browser may be more forgiving in parsing this field than the phone is, and since the phone doesn't parse out the alternate destination URL, it ignores that part and just refreshes the current page.
01-21-2008 12:21 AM
Here's the java code I'm using and I've never had any problems with it:
response.setHeader("Refresh", + refreshDelay +"; URL=" + url);
01-17-2008 07:57 AM
The refresh header format may not be quite right (missing 'url=' and some spacing)
Yours: Refresh: 1;http://www.example...
Example: Refresh: 1; url=http://www.example...
It's possible your browser may be more forgiving in parsing this field than the phone is, and since the phone doesn't parse out the alternate destination URL, it ignores that part and just refreshes the current page.
01-21-2008 12:21 AM
Here's the java code I'm using and I've never had any problems with it:
response.setHeader("Refresh", + refreshDelay +"; URL=" + url);
01-28-2008 02:09 AM
thanks a lot, that was the problem!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide