Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
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 June 3rd, 2003, 03:04 PM
bryanhughes bryanhughes is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 4 bryanhughes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Forwarding JSP to a Frame

I am a JSP newbie (although an expert in Java and PHP). I am trying to forward a JSP to a specific frame of a frameset.

Can anyone enlighten me on how to do this?

Thanks in advance!

Reply With Quote
  #2  
Old June 3rd, 2003, 03:29 PM
Nemi Nemi is offline
Clueless llama
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Feb 2001
Location: Lincoln, NE. USA
Posts: 2,353 Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Days 12 h 35 m 19 sec
Reputation Power: 111
The frame that submits the request is the frame that will be redirected. If you have one frame with some controls and another frame to show the data, there are several ways to get around this. If you are using a link or a form, you can use the 'target' attribute to let the browser know where to display the results. This is probably the easiest way.

Reply With Quote
  #3  
Old June 3rd, 2003, 03:34 PM
bryanhughes bryanhughes is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 4 bryanhughes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Very cool -- thank you. Now, what happens if I have a service that has a thread running that needs to post information to a frame.

Thanks again...

Reply With Quote
  #4  
Old June 3rd, 2003, 04:33 PM
Nemi Nemi is offline
Clueless llama
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Feb 2001
Location: Lincoln, NE. USA
Posts: 2,353 Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Days 12 h 35 m 19 sec
Reputation Power: 111
Just like with PHP, you cannot "push" information to the browser. The browser can only request info. This is a classic dilemma with web apps. There are several workarounds, none of them optimal.

You can make an applet to display the data. Applets can act like normal clients in a client/server architecture (where the client can receive updates from the server and vice versa). This takes a special kind of applet/server communication though.

Next best is to make the frame/browser request new information at certain intervals. You can do this using javascript or a meta tag. This is exactly the same as if a user was clicking refresh every so many seconds.

Supposedly IBM has come out with a "portal" technology based on servlets that addresses a situation similar to this. I know little to nothing about it. I believe you need a Portal server to run them though. I do not know how they get around pushing the data to the client. For all I know they use one of the two techniques I mentioned.

I think MS has something called DataBinding that you can do in IE, but I no nothing about it. It may not even address this problem.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Forwarding JSP to a Frame


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway