?
Solved

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

Posted on 2003-03-24
2
Medium Priority
?
225 Views
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>
0
Comment
Question by:g118481
2 Comments
 
LVL 7

Accepted Solution

by:
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">
0
 
LVL 1

Author Comment

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

Featured Post

Independent Software Vendors: 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

Dropbox has a relatively new feature called Smart Sync.  This feature allows Dropbox Professional (not plus) and Dropbox Business (if enabled) users to store information in Dropbox WITHOUT storing any files on their computer.
This blog will spread awareness about Dropbox. We have given the statements based upon our experience. Along with this, there is a section of some new plans that should be added in Dropbox this year. This will make the storage service enhanced from …
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…

569 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