Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2007

Tip: Looking for answers? Try searching our database.

How to pass parameters to another web page from a java applet?

Thread view: 
iherage@gmail.com - 13 Sep 2007 12:41 GMT
Hi,

I have a java applet program in one web page, after processing some
data, I want to the applet to open a new web page and pass parameters
to that page too.

Does anyone know how to archive this?

Thank you!
Andrew Thompson - 13 Sep 2007 13:11 GMT
...
>I have a java applet program in one web page, ..

Bad idea.

>..after processing some
>data, I want to the applet to open a new web page and pass parameters
>to that page too.
>
>Does anyone know how to archive this?

// might work, if the browser feels the heck like it..
applet.getContext().showDocument(URL)

(And that word is 'achieve', which is quite distinct
from the meaning of 'archive'.)

Signature

Andrew Thompson
http://www.athompson.info/andrew/

Roedy Green - 13 Sep 2007 14:05 GMT
>I have a java applet program in one web page, after processing some
>data, I want to the applet to open a new web page and pass parameters
>to that page too.
>
>Does anyone know how to archive this?

There is no mechanism I know of to pass parameters to an HTML web page
other than to embed them in that page.  

Getting some help from a servlet may be needed.  Your Applet sends the
parameters back to the servlet which them embeds them in a web page
and sends it back.
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

Real Gagnon - 13 Sep 2007 22:58 GMT
> I have a java applet program in one web page, after processing some
> data, I want to the applet to open a new web page and pass parameters
> to that page too.

"Send a message from an Applet to another Applet on a different page"
http://www.rgagnon.com/javadetails/java-0041.html

Bye.
Signature

Real Gagnon  from  Quebec, Canada
* Java, Javascript, VBScript and PowerBuilder code snippets
* http://www.rgagnon.com/howto.html
* http://www.rgagnon.com/bigindex.html

Richard Maher - 14 Sep 2007 00:15 GMT
> "Send a message from an Applet to another Applet on a different page"
> http://www.rgagnon.com/javadetails/java-0041.html

Cool!

FWIW, if the OP was using Framesets then the original Applet and and
Javascript variables/functions would still be available to the new page in a
different Frame.

Cheers Richard Maher.

> > I have a java applet program in one web page, after processing some
> > data, I want to the applet to open a new web page and pass parameters
[quoted text clipped - 4 lines]
>
> Bye.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.