Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 26th, 2001, 04:45 PM
wgblackmon wgblackmon is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 2 wgblackmon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Angry

I need a simple way to move to a generated page and have it REFRESHED - like using the 'refresh' button. I was given the following code and it doesn't work (though the guy who gave it to me swears it 'should'). The page is being output by a Java servlet.

"<input type=button value=Back onClick='.location.replace(sReferringPage)'>");

OR
//out.println("<input type=button value=Back onClick='.location.replace('URL')'>");

What's the EXACT syntax?

I get a 'page error' message when I run it in IE 5.5.
Any help would be greatly appreciated. It would be idea if I could capture the calling pages URL into a variable and use it rather than hardcoding the 'URL' portion of the method.

Any pointers to books that explain these seemingly tasks would be greatly appreciated.
Comments on this post
JimmyGosling agrees!

Reply With Quote
  #2  
Old January 29th, 2001, 05:15 PM
merkinmuffley's Avatar
merkinmuffley merkinmuffley is offline
film at 11
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: Portland, OR
Posts: 413 merkinmuffley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 13
You need this HTML:
<input type="button" value="Back" onClick="parent.location='mypage';">

Wrap that in an out.println(). An easy way to make sure it's not cached is to include the system time in the request:
Code:
out.println("<... onClick=\"parent.location='mypage?time="+System.currentTimeMillis()+"';\">");

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > REFRESH using servlets

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap