Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: passing parameters from Applet to JSP

  1. #1
    Junior Member
    Join Date
    Feb 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post passing parameters from Applet to JSP

    Hi All,

    I have web application that has jsp contains jsp:plugin tag from applet type to invoke my applet code in jar file as the following :

    <jsp:plugin type="applet" code="ScanActionUsingApplet.class" archive="CustomizedScanning.jar" width = "200" height = "200">
    <jsp:fallback>
    <p>Unable to load applet</p>
    </jsp:fallback>
    </jsp:plugin>

    I need to pass parameters from ScanActionUsingApplet.class that's in CustomizedScanning.jar to my jsp; I have used the following code to pass parameters and make connection to my jsp, but it doesnt work (no make sense):

    URL url = new URL(documentBase, "index.jsp?filePath=testParam");
    status.setText("doc : " + documentBase.toString());

    URLConnection connection = url.openConnection();

    connection.setUseCaches(false);
    connection.setDefaultUseCaches(false);

    connection.connect();

    please, can anyone help me in this problem?

    Thanks all


  2. #2
    Junior Member
    Join Date
    Feb 2013
    Location
    India,cochin
    Posts
    1
    My Mood
    Cheerful
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: passing parameters from Applet to JSP

    <jsp:plugin type="applet"
    code="applet.PrintApplet"
    codebase="/myadmin"
    jreversion="1.6.0"
    archive="PrintApplet.jar"
    name="PrintApplet"
    width="520"
    height="520">

Similar Threads

  1. pass parameters from jsp to another jsp
    By chathura in forum JavaServer Pages: JSP & JSTL
    Replies: 1
    Last Post: March 24th, 2012, 12:50 PM
  2. Trouble passing parameters!
    By coffecupcake in forum What's Wrong With My Code?
    Replies: 1
    Last Post: January 21st, 2012, 07:51 PM
  3. Trouble passing array in parameters
    By AngryCrow in forum Collections and Generics
    Replies: 2
    Last Post: September 12th, 2011, 09:49 AM
  4. Objects passing to JSP
    By ober0330 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 28th, 2011, 03:19 PM
  5. New to vectors passing parameters
    By osmaavenro in forum What's Wrong With My Code?
    Replies: 3
    Last Post: September 30th, 2010, 04:32 PM