I'm working on a project using servlets and JSP. I need to have a way of
referencing servlets from HTML links that is independent of the type of web
server or servlet engine being used; we plan to distribute this to
customers, who may be using any servlet/JSP engine. Right now I'm using JRun
and IIS for development, and simply putting the servlets in the servlets/
folder and referencing them by package name.servlet name. However, I'd like
to see them integrated into the rest of the web site a little better, and
ensure that I don't open new sessions navigating back and forth between
servlets and JSP. The JSP is doing all the UI stuff, and forms in the pages
have servlets as their actions.
Problem is, every servlet engine has their own implementation of aliasing,
so it would be a serious integration effort to install this product at the
customer if we used servlet aliasing. Is there another way of getting
servlets recognized as such, in a more standard-looking URL that looks like
part of the application?
Example:
http://hostname/appname/foldername/login.jsp contains a form, with the
following URL (a servlet) as its action:
http://hostname/servlet/com.company.appname.LoginAction, and I'd prefer that
this servlet be referenced as:
http://hostname/appname/foldername/LoginServlet
The one thing I considered is a JSP page for each servlet that simply
forwards to the servlet, but surely there's a more elegant solution, right?
(BTW we are trying to stay universal as possible so we are sticking to
Servlet API 2.1 and JSP API 0.92.)
Thanks,
Jeff
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html