web.xml problems

admin

Administrator
Staff member
Hello,
I am new to web development and recently built my own webpage for a Co-op resume and profile at <!-- m --><a class="postlink" href="http://patrickmriley.net">http://patrickmriley.net</a><!-- m -->. The problem I am having is getting an applet to work on one of my webpages. I compiled a java file containing an applet and then inserted it into an html page. The html page displayed the applet when I viewed it from my local computer, however when I uploaded it to the server, it displayed a box with a red X and the java console said cannot locate class file. I tried multiple paths (<!-- m --><a class="postlink" href="http://patrickmriley.net/Sudoku_Solver.class">http://patrickmriley.net/Sudoku_Solver.class</a><!-- m --> and <!-- m --><a class="postlink" href="http://patrickmriley.net/WEB-INF/classes/Sudoku_Solver.class">http://patrickmriley.net/WEB-INF/classe ... lver.class</a><!-- m -->) under the codebase and code parameters and this did not solve the problem. I contacted my hosting company (GoDaddy) and they told me the problem was that my WEB-INF directory did not contain a web.xml file. I have no idea how to write one of these files to correctly display my applet file when the html page is viewed at <!-- m --><a class="postlink" href="http://patrickmriley.net/SudokuSolver.html">http://patrickmriley.net/SudokuSolver.html</a><!-- m -->. The html file looks like this:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Sudoku Solver</title>
</head>
<body bgcolor="#ffffff">
<center>
<applet width=500 height=500 code="http://patrickmriley.net/Sudoku_Solver.class"> </applet>
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<br>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="550" height="70" id="links" align="middle">
<param name="allowScriptAccess" value=http://www.webdeveloper.com/forum/archive/index.php/"sameDomain" />

<param name="movie" value="links.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="links.swf" quality="high" bgcolor="#ffffff" width="550" height="70" name="links" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</body>
</center>
</html>

I am predicting another issue may evolve later when the applet displays. One of the buttons generates sudoku puzzles within the applet which are stored as text in text files also on the server. Will there be a problem reading these text files into the applet as well? Solutions to any of these problems would be greatly appreciated. I need to finish this as soon as possible as my resume is going out this week. I would be glad to offer someone small payment if they could quickly resolve this issue.
 
Back
Top