cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
487
Views
0
Helpful
3
Replies

Refresh page problem

venca.balak
Level 1
Level 1

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!

2 Accepted Solutions

Accepted Solutions

dstaudt
Cisco Employee
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.

View solution in original post

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

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

View solution in original post

3 Replies 3

dstaudt
Cisco Employee
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.

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

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

thanks a lot, that was the problem!

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: