Hallo Dan,
Thursday, January 31, 2002, 10:27:28 PM, you wrote:
DA Ok,
DA I've tried to add a servlet-mapping with a
DA url-pattern/test/url-pattern to web.xml for all my servlets, but I
DA cannot get it to work - how do you specify a different URL for your servlets
DA to be accessed
_
Chat with friends online, try MSN Messenger: http://messenger.msn.com
Ok,
I've tried to add a servlet-mapping with a
url-pattern/test/url-pattern to web.xml for all my servlets, but I
cannot get it to work - how do you specify a different URL for your servlets
to be accessed?!?!
I just want to say http://localhost/test/MyServlet
I've tried setting the web
In my web.xml I set up the servlet mapping, for a (front) servlet to handle
all requests for the web app, to '/'. This works to the extent that all requests
are passed to the servlet. BUT... if I do a forward to another resource from the
servlet, the servlet's doGet() method is invoked
of your path mapping, rewritting
works like apache.
Regards,
The
elephantwalker
-Original Message-From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Bill
WinspurSent: Thursday, May 10, 2001 8:51 AMTo:
Orion-InterestSubject: Servlet Mapping Recursion
Problem
Hi Bill!
I am using a front servlet pattern with Orion. I use Struts but I
suppose this approach should work in any framework.
1. The front servlet mapping in web.xml:
servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.html/url-pattern
/servlet-mapping
So all the requests
servlet truly
generic. Also, the *.html servlet-mapping hides *.gif resource mapping, etc.
from the servlet.. And reason number four to like this approach is: it
should work on any webserver.
After my previous post I discovered that recursion doesn't just happen if
the '/' is mapped to your front
Hi,
I've deployed the Apache Cocoon Servlet as Web App into orion. Works great.
:-)
This Servlet can handle different mime-types such as xml, xsl, html and so on.
Now I've the problem, that If the servlet returns XML to the browser a chained
servlet from within the
Probably you should use /images/app/ball.gif
Balazs
I've tried using the servlet-mapping of /app/* and
pointing this to the
servlet. While this makes requests go to the servlet,
if, within that
servlet, I try to get a request dispatcher
to /app/ball.gif and forward
there, I get
I don't understand how Orion has implemented the servlet-mapping tag for
the web.xml file. According to the documentation, I need to declare a
pattern /*.thePattern. When I do something like the following, it works.
However, I need a separate pattern for each servlet in order for Orion
to the user.
I've tried using the servlet-mapping of /app/* and pointing this to the
servlet. While this makes requests go to the servlet, if, within that
servlet, I try to get a request dispatcher to /app/ball.gif and forward
there, I get back into the servlet again , presumably because /app
Why not have your servlet "forward" any request that it does not recognize
to another namespace. In other words, using your example, you would forward
"/app/ball.gif" to "/images/ball.gif", thus eliminating the "/app" mapping.
tim.
I've tried using th
Okay, I have a web app that maps "/" to servlet X. According to the Servlet
spec, this is supposed to make X the default servlet. Also, according to the
spec, the container is supposed to do a recursive search for the longest
matching path.
Here's the problem, when requests come in for things
Title: SV: Servlet Mapping and Access
Hi
Magnus,
You're right.
I must have missed that line
name - The name of the
web-application inside the (enterprise-)application.
But:
Some pieces are missing in the online docs. Sometimes the information about
orion config files just stops
I'm not sure if there was any new information regarding the servlet mapping
and jsp-files for web applications. I checked the archive... there was a
little bit of info regarding the topic, but it was rather dated. For some
reason, the jsp mappings in my webapp don't seem to work for Orion 1.4.4
Just to clarify, I was mapping a specific filename to the jsp. I changed
the url-pattern to /mytest and it worked, so I guess the question is one
regarding the ambiguity of the servlet specifications. In what instances
would case 3: "All other strings are used as exact matches only" apply?
at calls the TestRunner bean/description
servlet-classcom.itellium.aeservices.junit.htmlui.TestServlet/servlet-cla
ss
/servlet
servlet-mapping
servlet-nameTestServlet/servlet-name
url-pattern/TestServlet/url-pattern
/servlet-mapping
...
application.xml
...
module
try http://localhost/junitee/servlet/TestServlet
- Original Message -
From: hartmut wilms [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Wednesday, January 17, 2001 2:17 PM
Subject: Servlet Mapping and Access
Hi there,
I'm really lost. I can't figure out how to access
Mapping and Access
try http://localhost/junitee/servlet/TestServlet
- Original Message -
From: hartmut wilms [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Wednesday, January 17, 2001 2:17 PM
Subject: Servlet Mapping and Access
Hi there,
I'm really lost. I can't figure
ion. Just like in the URLs you tried.
Stas.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Santosh Kumar
Sent: Wednesday, January 17, 2001 12:12 PM
To: Orion-Interest
Subject: Re: Servlet Mapping and Access
try http://localhost/junitee/servl
wilms [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Wednesday, January 17, 2001 2:17 PM
Subject: Servlet Mapping and Access
Hi there,
I'm really lost. I can't figure out how to access
a mapped servlet from a
Web-Browser. I tried several URLs, like:
- http
="similarity-test-web"
root="/test" /
similarity-web's web.xml:
servlet
servlet-name JUnitTestServlet /servlet-name
description JUnit test harness /description
servlet-class TestServlet /servlet-class
/servlet
what was wrong. Thanks, again.
Hartmut
-Ursprngliche Nachricht-
Von: Jeff Schnitzer [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 17. Januar 2001 22:09
An: Orion-Interest
Betreff: RE: Servlet Mapping and Access
Have you successfully installed the sample junitee test in the JUnitEE
Title: SV: Servlet Mapping and Access
Did you check the doc at
http://www.orionserver.com/docs/web-site.xml.html
(refered to in the documentation outline) ?
It says the following on this:
web-app application=default load-on-startup=false max-inactivity-time=123 name=defaultWebApp root
this effect.
servlet
servlet-nameAdminEntryPoint/servlet-name
jsp-filemain.jsp/jsp-file
/servlet
servlet-mapping
servlet-nameAdminEntryPoint/servlet-name
url-pattern*.jsp/url-pattern
/servlet-mapping
I've successfully done this for files that start with some pattern (such as
kb
I have a JSP page that I map to /* using servlet-mapping, so that all
requests to anything within my application go through it. When I tried to
get the path info (getPathInfo()), I found that I always get an empty
string regardless of the URL that I hit the application with. Everything
do I use
servlet-mapping ? Based on the following setting, the program always calls
the UserManagerController.
servlet
servlet-nameMainAdminController/servlet-name
descriptionMain controller/description
servlet-classadmin.servlet.MainAdminController/servlet-class
Hi,
If I have more than one servlet defined in the web.xml file, how do I use
servlet-mapping ? Based on the following setting, the program always calls
the UserManagerController.
servlet
servlet-nameMainAdminController/servlet-name
descriptionMain controller/description
On Thu, 23 Nov 2000, Edmund Cheung wrote:
servlet-mapping ? Based on the following setting, the program always calls
the UserManagerController.
servlet-mapping
servlet-nameUserManagerController/servlet-name
url-pattern//url-pattern
/servlet-mapping
You've given both
[150 - 3263]
* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
-Original Message-
From: Edmund Cheung [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, November 23, 2000 7:44 AM
To: Orion-Interest
Subject:how to use servlet-mapping
Hi
Ok, I've determined that I don't always lose my pathInfo. It's only when i
try to map my servlet as the default servlet.
How do i do a getPathInfo() on my default servlet? Here is the entry in my
web.xml file. what am i doing wrong?
When I use:
servlet-namePrintPathInfo/servlet-name
seems to behave erratically (either that or I haven't discovered
exactly what the pattern is). Does anyone have a matrix of url-pattern in
the servlet-mapping, url-pattern in a security-constraint, servlet-name, and
what pathInfo() returns and how they all interact? It would be useful.
Thanks...
Kit
This code used to work under 0.8.0, but not under 0.8.1. I get a 404:
servlet-mapping
servlet-namesnoop/servlet-name
url-pattern/snoopy/url-pattern
/servlet-mapping
My app depends on this kind of mapping, Is there a new rule or a
workaround
33 matches
Mail list logo