_
Chat with friends online, try MSN Messenger: http://messenger.msn.com
the front 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
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:
action
*.html
So all the requests ending to .html are processed by the front-end
servlet.
2. All the valid URL
t starts up so that all 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: Servl
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() me
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 'config/global-web-applicatio
age-
> From: Magnus Stenman [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 21, 2001 1:33 AM
> To: Orion-Interest
> Subject: Re: How to do this servlet-mapping?
>
>
> What you describe is what we call the "filter pattern" (and
> we're pushing this for
;
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Tuesday, March 20, 2001 10:39 PM
Subject: How to do this servlet-mapping?
>
> Here's a challenge. It was for me.
>
> For all URLs that start with /app (e.g. /app/login, /app/mainmenu,
> /app/ball.gif), have a
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
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
p/ball.gif 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 , presumab
nique servlet. My questions are:
1. Is the servlet-mapping tag necessary. (I couldn't invoke a servlet
without it.)
2. How is Orion expecting this to be used?
snoop
SnoopServlet
snoop
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 lik
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?
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 O
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
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:
Reference to a
application - The name of the (enterprise-)application the web-app exists in.
load
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
tutorial?
You shouldn't need to modify the global application.xml. Here's how my
system is set up, gi
: hartmut wilms [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, January 17, 2001 5:16 AM
>To: Orion-Interest
>Subject: AW: Servlet Mapping and Access
>
>
>Hi Santosh,
>
>http://localhost/junitee/servlet/TestServlet didn't work, too.
>Do you know
>about an orion servlet ex
ge -
> 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
oot of your web-application. 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
&g
rvlet 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,
>
>
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.
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://localhost/gamsytest/TestServlet
- http://localhost/gamsytest/junitee/TestServlet
- http://localhost/junitee/TestServlet
- ...
apping.
>>>>All other strings are used as exact matches only<<<<
- Original Message -
From: "Trond Nilsen" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Monday, January 15, 2001 9:48 PM
Subject: Re: servlet mapping
>
Thanks - Tried that already, though, doesn't appear to help. My best solution
at the moment is a workaround - I put my component JSPs in a subdirectory, and
restrict access to this directory - they are only accessed by includes in the
'main' JSP.
> Try changing your url-pattern to "/*.jsp"...
>
Try changing your url-pattern to "/*.jsp"...
Thanks,
Ozzie Gurkan
--- Trond Nilsen <[EMAIL PROTECTED]> wrote:
> According to one of the FAQ's on www.jguru.com, I should be able to set
> up a
> mapping in my web application such that all attempts to request a file
> ending
> with .jsp are redirec
According to one of the FAQ's on www.jguru.com, I should be able to set up a
mapping in my web application such that all attempts to request a file ending
with .jsp are redirected to a file of my choice (main.jsp in this case). Below
is some code from the web.xml file which (I think) should give t
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
le, how do I use
> servlet-mapping ? Based on the following setting, the program always calls
> the UserManagerController.
>
>
> MainAdminController
> Main controller
> admin.servlet.MainAdminController
>
>
> MainAd
[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
On Thu, 23 Nov 2000, Edmund Cheung wrote:
> servlet-mapping ? Based on the following setting, the program always calls
> the UserManagerController.
>
> UserManagerController
> /
>
You've given both servlets the same mapping... which won't do.
Y
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.
MainAdminController
Main controller
admin.servlet.MainAdminController
I found an interesting situation, possibly a bug. I am using Orion 1.0.3b, and
in the WEB-INF/web.xml file I declare my in the following
manner:
Login
/Login/*
I have a Form that calls this servlet. Like:
rds,
>
>robert
>
>At 13:57 26.07.00 , Kit Cragin wrote:
>>Actually I have noticed that with servlet mappings security and pathinfo
>>stuff seems to behave erratically (either that or I haven't discovered
>>exactly what the pattern is). Does anyone have a matrix of
it Cragin wrote:
>Actually I have noticed that with servlet mappings security and pathinfo
>stuff 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 securi
o
>stuff 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
Actually I have noticed that with servlet mappings security and pathinfo
stuff 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
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:
PrintPathInfo
/
URL: /testing/the/pathInfo
g
Hello, I have a servlet that gets some information out of the pathinfo,
calling
req.getPathInfo() it works fine by itself, but when I use a servlet-mapping
directive to redirect to it, i lose the pathInfo. It's still in the
address bar, but getPathInfo() is returning null.
Is this suppos
Yes, this was unfortunately broken in 0.8.1. It is fixed in the latest developer core
build though which
can be found at http://www.orionserver.com/orion/orion.jar. The fix will be included
in the 0.8.2 release
due in one to two days. Sorry for any inconvenience caused.
/Magnus Stenman, the Ori
well I've got my workaround, add the root for servlet-webdir
/servlet/
/
but this breaks /servlet mapping. the app works now anyway,
but /servlet/snoop is 404, while /snoop works. /snoopy still doesn't work.
-R
> -Original Message-
> From: Kuce
This code used to work under 0.8.0, but not under 0.8.1. I get a 404:
snoop
/snoopy
My app depends on this kind of mapping, Is there a new rule or a
workaround?
TIA
-R
43 matches
Mail list logo