Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

Refresh page problem

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

Re: Refresh page problem

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.

Re: Refresh page problem

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

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

3 REPLIES
Cisco Employee

Re: Refresh page problem

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.

Re: Refresh page problem

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

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

Community Member

Re: Refresh page problem

thanks a lot, that was the problem!

119
Views
0
Helpful
3
Replies
CreatePlease to create content