One problem, which could arise, is the URL from which is the graph.class loaded. When you've got your applet page on http://server.com/page/applet.html, browser JVM willl try to load graph.class from http://server.com/page/graph.class URL. Also make sure that you have a correct case (Java classes should start with an uppercase letter, therefore I think it is better to have <applect code="Graph.class".. and class called "Graph").
However, if you specify the JAR files in the archive attribute, your classes will be loaded from the specified JARs. There can be another hiccup dealing with URL mounting. In our project we have mounted the Wicket webapplication on the <url-pattern>/app/*</url-pattern>. Therefore our applet page has URL http://[servername]:8080/[appname]/app?wicket:bookmarkablePage=:uinf.wid.tools.UserProfileApplet, which means that the JAR files are loaded from the http://[servername]:8080/[appname] directory, i. e. from JAR files which are located in the directory just above the WEB-INF. If your webpage is mounted (for example to http://[servername]:8080/[appname]/app/userprofile), you could come across JAR loading problems, because JVM will try to load JAR/CLASS file from that http://[servername]:8080/[appname]/app/userprofile, which does not correspond to any server directory, therefore it will not find your JARs/CLASSes. edward durai wrote: > > Hi to all, > > I have one graph.java file. In HTML I can display like > > <APPLET CODE="graph.class" WIDTH=900 HEIGHT=400> > <PARAM name="title" value="Date Vs Average Speed"> > <PARAM name="X_axis_description" value="Average Speed"> > <PARAM name="Y_axis_description" value="Date"> > <PARAM name="variation_series" > value="1/4/2007,2/4/2007,3/4/2007,4/4/2007,5/4/2007,6/4/2007,7/4/2007,8/4/2007,9/4/2007"> > <!-- Dynamic --> > <PARAM name="data_set_1" value="13,27,50,70,10,30,30,20,80"><!-- Dynamic > --> > <PARAM name="description_1" value="item1"> > </APPLET> > > > In Wicket, how can I display this applet file? Please explain me. > > Thank you for answering.... > > > -- View this message in context: http://www.nabble.com/How-to-display-applet-in-wicket--tf3725676.html#a10445420 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user