This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes Applet not loaded in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Applet not loaded in jsp" Watch "Applet not loaded in jsp" New topic
Author

Applet not loaded in jsp

Binny Tulabandu
Greenhorn

Joined: Jul 05, 2008
Posts: 1
Hi

The below code is present in my jsp for loading applet.
In my jsp there is a link and when we click on the link applet should be loaded along with the data.

But i am getting empty applet with out any data inside.
Below is my code.

Actually when i debug, the control is going out of jsp:plug in tag.so the condition that i wrote in jsp:plug is not satisfied i think.
pl.help me how to check this.

Is it browser problem can also be the reason for applet not loading?



<jsp:plugin
type="applet"
code="com.dcx.mpi.mdos.applet.XmlTableApplet.class"
codebase="/pages"
archive="/mdos/pages/mdos-applet.jar,/mdos/pages/aelfred.jar"
jreversion="1.4"
align="center" width="10" height="10">

<jsp:params>

<jsp:param name="MAYSCRIPT" value="TRUE"/>

<jsp:param name="base-server-url" value="<%=baseURL%>" />

<jsp:param name="save-server-url" value="<%=saveURL%>" />

<jsp:param name="get-url" value="<%=baseURL%>" />

</jsp:params>

<jsp:fallback><p align="center">Unable to start Java Plug-in.</p></jsp:fallback>

</jsp:plugin>


Thanks&Adavance
binny
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

In the archive attribute of your jsp:plugin tag, are you adding the contextPath?

Our JSP FAQ contains two articles that explain the ins and outs of building links that are relative to the contextPath of a web application.
Give them a read and see if it helps.

-Ben


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applet not loaded in jsp
 
Similar Threads
Remove Java Loader in jsp page
how to pass values from jsp to applet
getting java home or jvm version??
Including an Applet in a JSP and specifying the jreversion dynamically
jsp:plugin using applet & mayscript