Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 191
  • Last Modified:

Help with fully qualified URL in call to applet.

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
g118481
Asked:
g118481
  • 2
1 Solution
 
CEHJCommented:
Is your applet being served from the same server?
0
 
g118481Author Commented:
yes it is being served by the same server.
0
 
CEHJCommented:
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"));

0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now