Change the <url-pattern> tag.


                      "Peters, Jim"
                      <[EMAIL PROTECTED]>        To:       
[EMAIL PROTECTED]
                      Sent by: "A mailing         cc:
                      list for discussion         Subject:  web.xml
                      about Sun
                      Microsystem's Java
                      Servlet API
                      Technology."
                      <SERVLET-INTEREST@JA
                      VA.SUN.COM>


                      05/01/2002 08:23 AM
                      Please respond to "A
                      mailing list for
                      discussion about Sun
                      Microsystem's Java
                      Servlet API
                      Technology."






Hello,

I recently upgraded our Java IDE from WebGain VCEE 4.1 to VCEE 4.5.2.
4.5.2
comes bundled with BEA WebLogic Server 6.1.  With 4.1, I used the following
style of URL to launch my app
http://127.0.0.1:8000/servlet/TableMaint.TableMaint where the
TableMaint.class was in a TableMaint directory.  I never understood where
the /servlet/ part of the URL came from - I just took it as a given, never
understanding why there was no directory named servlet.

Now on WebLogic server, I must use a different style of URL,
http://127.0.0.1:7001/TableMaint .  What happened to the /servlet/ part of
the URL ?  I think the reason is the web.xml file (generated by VCEE 4.5.2)
for the app, partially pasted here:

<servlet>
<servlet-name>TableMaint_TableMaint</servlet-name>
<servlet-class>TableMaint.TableMaint</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>TableMaint_TableMaint</servlet-name>
<url-pattern>TableMaint</url-pattern>
</servlet-mapping>

My goal is to use the exact same URL I used to use, as I have a 4 apps
deployed that use a similar architecture.
I think I could modify the
<url-pattern>/servlet/TableMaint.TableMaint</url-pattern>, but I don't want
to manually change the web.xml file for every servlet in my apps.

Sorry about the rambling message, questions here:
- How did /servlet/ get in the original URL ?
- How can I make WebLogic use the same style of URL for every servlet
without manual intervention ?

Thanks in advance,

Jim Peters
EDS-GM Global Programme Delivery/Michigan Solution Centre
* 248.265.0796
* [EMAIL PROTECTED]

___________________________________________________________________________
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

___________________________________________________________________________
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

  • web.xml Peters, Jim
    • Jeremy W. Redmond

Reply via email to