aspose file tools
The moose likes Servlets and the fly likes Servlet with url problems Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Servlet with url problems" Watch "Servlet with url problems" New topic
Author

Servlet with url problems

Lars Christian Hansen
Greenhorn

Joined: May 05, 2005
Posts: 9
Hi, kind of a newbie question - but causing me headaches

Given the following file structure:

My servlet needs access to the applet: PhWebLogon.class

Have the following in a web definition file:
<h1>Logon Page </h1>
<applet code="PhWebLogon.class" width="@screenwidth" height="@screenheight" >
No Logon Applet? </applet>

But can't seem to get the url code="PhWebLogon.class" right.
(Sevlet can't find applet)

Any help is much appreciated

/Lars
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35258
    
    7
Servlets can use classes that are in the classes directory (and lib etc.), not from just anywhere in the web hierarchy. Applets of course can't use classes inside of WEB-INF, so I think you need to duplicate the class files.


Android appsImageJ pluginsJava web charts
Lars Christian Hansen
Greenhorn

Joined: May 05, 2005
Posts: 9
Thanks Ulf, seems like that worked.

/Lars
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Servlet with url problems
 
Similar Threads
JSF Newbie
LogonView.jsp Displays A Blank Page
submit button
A problem in executing the servlet
Possible to pass a run time param?