Solved

From Applet to jsp page

Posted on 2004-04-08
4
158 Views
Last Modified: 2010-03-31
Hello

How do i send parameters from a java applet to a jsp page and then in the jsp page how do i display them??? Please please please can some1 help and also provide me with simple code that i need to put in both the applet and in the jsp page

Many Thanks
0
Comment
Question by:djsingh81
4 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 25 total points
ID: 10782368
You can use this. Of course the applet will have to have come from that web server in order to connect to it without being signed:

http://javaalmanac.com/egs/java.net/Post.html?l=rel
0
 
LVL 92

Assisted Solution

by:objects
objects earned 25 total points
ID: 10787552
applet.getAppletContext().showDocument("http://www.objects.com.au/index.jsp?param1=a&param2=b", "_blank");

In your jsp get the valu of parameters using:

<%
   String param1 = request.getParameter("param1");
   String param2 = request.getParameter("param2");
%>
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now