Help with fully qualified URL in call to applet.

Posted on 2003-03-24
Medium Priority
Last Modified: 2010-03-31
In the link value for the applet call below, if I put in "/app/qryelem.jsp" the applet doesn't create a fully qualified link and it doesn't work.

How can I do this without putting the full URL?

<!-- here is my call to applet -->
<applet codebase="/java" code="vtsjava" width="375" height="50" align="middle">
<param name=link3 value="http://my.url.com/app/qryelem.jsp"> </applet>
Question by:g118481
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 86

Expert Comment

ID: 8197411
Is your applet being served from the same server?

Author Comment

ID: 8197688
yes it is being served by the same server.
LVL 86

Accepted Solution

CEHJ earned 200 total points
ID: 8197781
Try this:

include it as a relative html, as in:

<param name=link3 value="./app/qryelem.jsp"> </applet>

and do the following:

URL url = new URL(getCodeBase(), getParameter("link3"));


Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Suggested Courses
Course of the Month9 days, 17 hours left to enroll

762 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