How can I NOT put fully qualified URL in link value in call to my applet?

Posted on 2003-03-24
Medium Priority
Last Modified: 2010-04-01
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

Accepted Solution

damonf earned 100 total points
ID: 8197519
I'm assuming you didn't write the applet, otherwise you could just change it to build a relative link.  Without changing the applet, you have to dynamically change the value of param "link3".

Try this:

String preLink =
request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath();
<param name=link3 value="<%=preLink%>/qryelem.jsp">

Author Comment

ID: 8197794
thank you very much!  this works perfect.

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introducing Priority Question, our latest feature.
Active Directory can easily get cluttered with unused service, user and computer accounts. In this article, I will show you the way I like to implement ADCleanup..
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses

770 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