/**
* The
servlet url is defined by the app server config files. The base url
* plus /servlet/ is the default in Orion.
*
* For example, if request.getRequestURI() returns "/videos/addvideos.jsp",
* the path returned will be "/videos/servlet/". (The relative path would be
* "servlet/VideoServlet)"
*
* @param request
* @return the
jsp document path plus the directory where the app server expects
* to find the servlets ending with a slash.
*/
public static
String getPathFromJSPToUnMappedServlet( HttpServletRequest request )
{
return getBasePath( request ) + "servlet/";
}
/**
This comes from the documentation in PathFinder.java. I'm working on getting the input from addvideo.jsp to VideoServlet, but for some reason VideoServlet remains hidden to my browser. If I understand the documentation here (!) the form in addvideo will post the input parameters to this location:
PathFinder.getPathFromJSPToUnMappedServlet( request ) + "VideoServlet"
which would be this on my system:
orion/applications/videos/servlet/VideoServlet.
The location of this servlet is actually: orion/applications/videos/WEB-INF/classes/com/javaranch/drive/videos/VideoServlet.java
Do I have everything set up right? The package statement in VideoServlet is:
package com.javaranch.drive.videos ;
Why can't my browser see this servlet?