Solved

From Applet to jsp page

Posted on 2004-04-08
4
161 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¶m2=b", "_blank");

In your jsp get the valu of parameters using:

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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
servlet example 17 51
How do I remove an object from a 3 40
login form jsp example 2 37
maven disable workspace resolution 1 21
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

856 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