Hi all

I have a set of Servlets and JSPs running on NewAtlanta's ServletExec
servlet engine. I am currently porting them to WebLogic. I am facing a
few problems. I do not want to change any of my HTML/JSP/Java files
immediately. I want the same files to work in WL as it is. Pl help.


  1. The servlets in ServletExec used to be invoked as
     http://host/servlet/servletName. But in weblogic they are  invoked
     as http://host/servletName. I tried registering the servlet names
     in weblogic.properties as

          weblogic.httpd.register.servlet/XServlet=com.foo.XServlet
          weblogic.httpd.initArgs.servlet/XServlet=param=value

     Now I can call this servlet as http://host/servlet/XServlet and so
     I dont have to change any html/JSP files. Will this cause any
     problems in the future?

  2. Since we used to run ServletExec on IIS, we created a virtual
     directory called /jsp in IIS under which we had all the html and
     JSP files. Our servlets will get the http requests, get data from
     database, put the results in session/request variables and dispatch
     it to appropriate JSP page. So, all our servlet code looks like
     this:

          RequestDispatcher dispatcher =
            getServletContext().getRequestDispatcher("/jsp/test.jsp");
          dispatcher.forward(request, response);

     How do I make this code work with WebLogic? Is there any way to
     create virtual directory and make it work like in IIS?

Thanks for any help.
--
shiv
[EMAIL PROTECTED]



__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to