If I have correctelly understand the problem, to solve it u just have
to add in your web.xml a few lines like this:
welcome-file-list
welcome-file/index.jsp/welcome-file
/welcome-file-list
where u can change /index.jsp with any other page that you like to
Tomcat 5 hides index.jsp, tomcat 4 does not.
-Tim
Scott Purcell wrote:
Hello,
I have a web site that I want accessed using the dns name:
eg:
http://www.purcell.com
I have a welcome-file entry which says go to index.jsp.
Of course the page loads and the url looks like this:
Yes, it is, in as much as any .jsp file IS a servlet.
Why don't you describe more about what you want to achieve.
For example what URL do you want your users to type in and what do you want
served first?
Andoni.
- Original Message -
From: Anderson, M. Paul [EMAIL PROTECTED]
To: 'Tomcat
Hi,
Searching the archives would've yielded many answers to this question.
Not directly. You can have a JSP, which is compiled into a servlet.
Or you can have a JSP or plain HTML page which redirect to a servlet.
The next servlet specification, v2.4, which is getting very close to
final, will
and it seemed logical.
-Original Message-
From: Andoni [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 18, 2002 9:45 AM
To: Tomcat Users List
Subject: Re: welcome-file-list
Yes, it is, in as much as any .jsp file IS a servlet.
Why don't you describe more about what you want to achieve
-Original Message-
From: Anderson, M. Paul [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 18, 2002 10:10 AM
To: 'Tomcat Users List'
Subject: RE: welcome-file-list
ok...essentially I have a url of the form
www.whatever.org/MyServlet/ServletMappedName where the servlet is
titled
the
authenticator has authenticated the user? Does the authenticator and the
monitor both recieve a request when a user types www.whatever.org?
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 18, 2002 10:13 AM
To: Tomcat Users List
Subject: RE: welcome-file-list
PROTECTED]
Sent: Monday, November 18, 2002 3:09 PM
Subject: RE: welcome-file-list
ok...essentially I have a url of the form
www.whatever.org/MyServlet/ServletMappedName where the servlet is titled
MyServlet and is mapped to ServletMappedName in the web.xml file so that
I
can avoid the servlet
?
-Original Message-
From: Andoni [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 18, 2002 10:26 AM
To: Tomcat Users List
Subject: Re: welcome-file-list
Have you tried to create a host element in Tomcat around your context and
thereby remove the need for anything after the www.whatever.org?
Andoni
Hi,
ok...bear with my skill level here...you're suggesting the
Authentication
filter and monitor filter would be separate servlets? Then when the
user
No. I'm suggesting they be proper filters, per the servlet spec v2.3.
Specifically, you'd have two things that implement javax.servlet.filter:
basic questions but I sincerely appreciate your help!!
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 18, 2002 10:36 AM
To: Tomcat Users List
Subject: RE: welcome-file-list
Hi,
ok...bear with my skill level here...you're suggesting
Howdy,
What do you think the learning curve is on using filters and would it
be
The learning curve for these types of filters (authenticators, loggers)
is short and not steep. This is a good place to start:
http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html
worth the effort
PM
To: Tomcat Users List
Subject: RE: welcome-file-list
Howdy,
What do you think the learning curve is on using filters and would it
be
The learning curve for these types of filters (authenticators, loggers)
is short and not steep. This is a good place to start:
http://www.javaworld.com
Andoni wrote:
Yes, it is, in as much as any .jsp file IS a servlet.
A servlet may not be specified as a welcome-file. I suppose
you could re-write your servlet as a JSP and then use that,
but that certainly wouldn't be my recommended course of
action.
There's a fairly simple way to solve this
Juan Pablo Goldfinger wrote:
Hi:
I have wrote in the web.xml of each tomca context, and nobody work!!!
How I can work the welcome-file-list of the web.xml?
Thanks,
juan
You will do much better asking a Tomcat-specific question on the TOMCAT-USER
mailing list, rather than here. To save
I want to execute a servlet as a welcome-file.
how do i do this?
i thought i'd put this in web.xml:
servlet-mapping
servlet-nametest/servlet-name
url-pattern*.do/url-pattern
/servlet-mapping
welcome-file-list
welcome-file
index.do
16 matches
Mail list logo