Refresh page problem

Answered Question
Jan 17th, 2008
User Badges:

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!



Attachment: 
Correct Answer by stephan.steiner about 9 years 6 months ago

Here's the java code I'm using and I've never had any problems with it:


response.setHeader("Refresh", + refreshDelay +"; URL=" + url);


Correct Answer by dstaudt about 9 years 6 months ago

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.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
Correct Answer
dstaudt Thu, 01/17/2008 - 07:57
User Badges:
  • Cisco Employee,

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.

Correct Answer
stephan.steiner Mon, 01/21/2008 - 00:21
User Badges:
  • Silver, 250 points or more

Here's the java code I'm using and I've never had any problems with it:


response.setHeader("Refresh", + refreshDelay +"; URL=" + url);


Actions

This Discussion