Hello,
thanks for your class. I'm not usig it (and I guess its partially wrong,
because you can't simply append the welcome-file the the path-info), but
it inspired me to create a better way: Through a filter. I attached the
filter-class, you would integrate it in the web.xml as follows
Hello,
I tried to put the following into web.xml:
welcome-file-list
welcome-fileindex.faces/welcome-file
/welcome-file-list
But obviously, this doesn't work, because there is no file index.faces,
but index.jsp. However, if the index.jsp isn't called through
index.faces
Create a dummy index.faces file.
I did it this wy with Struts and index.do so I assume it should work
with faces, too.
hth,
Christoph
Marten Lehmann wrote:
Hello,
I tried to put the following into web.xml:
welcome-file-list
welcome-fileindex.faces/welcome-file
/welcome-file-list
It took me a while to get welcome files working with the SpringMVC web
framework.
I created the attached servlet to get things working properly. It requires
servlet spec 2.4, and it works by mapping the welcome file to a servlet,
WelcomeFileServlet, rather than direct to a JSP
Hi
I've a simple JSF application. As long as I can remember, it was possible
to specify
a logical URI instead of as a physical file in the welcome file list in
the 2.4 spec.
I have specified the index.jsf page to be the welcome page, but I'm
presented with
the directory listing when I
Behrang Saeedzadeh wrote:
Hi
I've a simple JSF application. As long as I can remember, it was
possible to specify
a logical URI instead of as a physical file in the welcome file list
in the 2.4 spec.
I have specified the index.jsf page to be the welcome page, but I'm
presented
ActionServlet's
mapping was something like *.do or /do/* and putting index.do in the
welcome file list
was working (I'm not sure, I've to check it once again...)
Thanks,
--
Behrang Saeedzadeh
http://www.jroller.com/page/behrangsa
Using Opera's revolutionary e-mail client
-pattern
/servlet-mapping
I think this is not true. I remember when I was using Struts, my
ActionServlet's
mapping was something like *.do or /do/* and putting index.do in the
welcome file list
was working (I'm not sure, I've to check it once again...)
Thanks
Hi
Question: Does it return a page if you request the index.jsf page
directly?
Yes. It renders the index.jsp JSF page successfuly on the screen.
- Behrang
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Hi, this is probably a basic question but I could really use a hand.
Is there a way to simply read/display www.mydomain.com without
redirecting to index.jsp?
I found out how to do the opposite in web.xml
welcome-file-list
welcome-fileindex.jsp/welcome-file
welcome
Hello All,
We had problems with welcome-file handling after Tomcat upgrade. The welcome
file points to page like /dir1/dir2/index.jsp. The page is found despite the
fact that the servlet specification says leading / is not allowed, this is
valid in all Tomcat versions I know.
The exact
://java.sun.com/jstl/core; %
c:url value=dir1/dir2/index.jsp/).
Tim
Jureczky Bálint wrote:
Hello All,
We had problems with welcome-file handling after Tomcat upgrade. The welcome
file points to page like /dir1/dir2/index.jsp. The page is found despite the
fact that the servlet specification says
.
Balint
-Original Message-
From: Tim Diggins [mailto:[EMAIL PROTECTED]
Sent: 2005.május 26. 12:18
To: Tomcat Users List
Subject: Re: welcome file handling
Don't know about the difference, but a couple of potential workarounds:
1) could be to have your welcome page just be the default
Hello everyone,
I'm using Tomcat 5.0 and Servlet Spec 2.4.
I have defined a servlet mapping all *.html and a standard welcome file,
as follows:
servlet
servlet-nametest/servlet-name
servlet-classTest/servlet-class
/servlet
servlet-mapping
servlet-nametest/servlet-name
See bugzilla and search for welcome-files - I believe this was talked about a
few times.
-Tim
Andreas Schildbach wrote:
Hello everyone,
I'm using Tomcat 5.0 and Servlet Spec 2.4.
I have defined a servlet mapping all *.html and a standard welcome file,
as follows:
servlet
servlet-nametest
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:
http://www.purcell.com/index.jsp
Is there anyway to remove the index.jsp, but display
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
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:
http
Hello:
I am interested in hiding the welcome file from my webapp.. Assume I am
connecting to http://www.mysite.com http://www.mysite.com/ . Tomcat
4.1.29 and 5.0 will show that as http://www.mysite.com/index.jsp
http://www.mysite.com/index.jsp . How do I go about hiding the index.jsp
without
Your dtd is for the 2.3 spec, try using 2.4.
-Tim
R A wrote:
Here is a copy of my web.xml. I am using struts 1.1 and using an action(index.do) in the welcome-file/. This should be ok, since every request goes through the ActionServlet. When I point to the web app via a browser, it displays
DTD http://java.sun.com/dtd/web-app_2_3.dtd does not exist at java.sun.com. Any ideas??
Tim Funk [EMAIL PROTECTED] wrote:Your dtd is for the 2.3 spec, try using 2.4.
-Tim
R A wrote:
Here is a copy of my web.xml. I am using struts 1.1 and using an action(index.do) in
the . This should be ok,
From: R A [mailto:[EMAIL PROTECTED]
Subject: Re: WebSphere suuports servlets in /welcome-file does Tomcat?
DTD http://java.sun.com/dtd/web-app_2_3.dtd does not exist at
java.sun.com. Any ideas??
Assuming you meant 2_4, I think the new reference is:
http://java.sun.com/xml/ns/j2ee
I mean web-app_2_4.dtd does not exist at http://java.sun.com
R A [EMAIL PROTECTED] wrote:
DTD http://java.sun.com/dtd/web-app_2_3.dtd does not exist at java.sun.com. Any ideas??
Tim Funk wrote:Your dtd is for the 2.3 spec, try using 2.4.
-Tim
R A wrote:
Here is a copy of my web.xml. I am
Try:
web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
version=2.4
-Tim
R A wrote:
I mean web-app_2_4.dtd does not exist at
-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
/servlet-mapping
session-config
session-timeout30/session-timeout
/session-config
!-- The Welcome File List --
welcome-file-list
welcome-fileindex.do/welcome-file
/welcome-file-list
jsp-config
Here is a copy of my web.xml. I am using struts 1.1 and using an action(index.do) in
the welcome-file/. This should be ok, since every request goes through the
ActionServlet. When I point to the web app via a browser, it displays a directory
listin; however, when I type index.do on the url
. Is there any other way i can do this.
-Shanmugam-
Tim Funk wrote:
Security constraints are in the incoming URL.
[
Also welcome files *should*(but not required) be single files - not
files buried under a directory.
Good: welcome-filecowbell.jsp/welcome-file
Bad: welcome-filemore/cowbell.jsp
Found out the problem. Changing the welcome-file from */jsp/test.jsp*
to *jsp/test.jsp *solves the issue. The additional / causes some changes
in the url pattern and as a result the request was not considered to be
secured one. Thanks for your effort.
-Shan-
Tim Funk wrote:
Make your welcome
Security constraints are in the incoming URL.
[
Also welcome files *should*(but not required) be single files - not files
buried under a directory.
Good: welcome-filecowbell.jsp/welcome-file
Bad: welcome-filemore/cowbell.jsp/welcome-file
]
-Tim
shanmugampl wrote:
Hi,
I am using 5.0.19 I
Hi,
I am using 5.0.19 I have the following definition in my web.xml file
welcome-file-list
* welcome-file/jsp/test.jsp/welcome-file*
/welcome-file-list
security-constraint
web-resource-collection
web-resource-nameSecured Core Context/web-resource-name
* url-pattern
Uma,
I have set the web.xml welcome file to index.jsp and then in index.jsp(which the user
never sees) I do a
%response.sendRedirect(https://myDomain.com:8443/sslIndex.jsp;);%
For your needs you could just have the user logon on the http page.
On the html page set the form action=https
Hello,
I am wondering if it is possible to specify a Welcome-file for an
https request. If I am using port 443 how can I configure Tomcat 4.1 so that
when the user types in https://myIPAddress or https://myDomainName they
will be directed to https://myIPAddress/myFirstPage.jsp.
Thanks
Corrected subject, any takers.
Thanks!!
-Original Message-
From: Forte, Graham
Sent: Tuesday, March 16, 2004 7:20 AM
To: 'Tomcat Users List'
Subject: web.xml Welcome -file and for SSL
Hello,
I am wondering if it is possible to specify a Welcome-file for an
https request. If I
Should do. This works for me with TC4 and the default welcome list.
Mark
-Original Message-
From: Forte, Graham [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 16, 2004 3:33 PM
To: 'Tomcat Users List'
Subject: RE: web.xml Welcome-file for SSL
Corrected subject, any takers
Hi Forte,
I am also having similar type of problem. When the user types
http://www.mysite.com it should first go to the default .html page (that is
using 80 port) that I have set in the welcome-file-list in web.xml file.
Its working fine. But once the user logs in from the home page, he should
- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 16, 2004 10:16 PM
Subject: Re: web.xml Welcome -file and for SSL
Hi Forte,
I am also having similar type of problem. When the user types
http://www.mysite.com it should
,
It looks like your setup is correct, you just use the welcome file. But you
have to have tomcat listen on port 443 rather than 8443. It sounded in your
original post like Tomcat was just listening on 8443...
hth,
Adrian
- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List
:[EMAIL PROTECTED]
Sent: Monday, January 19, 2004 9:25 PM
To: [EMAIL PROTECTED]
Subject: tomcat webapp welcome file
Hi:
I created a webapp as ROOT under tomcat 4.1.27, and set the welcome
file as index.jsp for the webapp. And I start the tomcat server and open
my IE go to localhost. In the IE
To: Tomcat Users List
Subject: RE: tomcat webapp welcome file
The easiest way to do this would probably be to use hidden html frames.
This might help:
http://insights.iwarp.com/advanced/hiddenframe.html
That way no matter where a user goes in your site, all they see in the
address bar is http://localhost
Actually Yoav, more like *visceral hatred and copious bilious rage*
;)
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 20, 2004 10:24 AM
To: Tomcat Users List
Subject: RE: tomcat webapp welcome file
Howdy,
The knock
Howdy,
The knock on that is that users can't bookmark their exact
page. It may not be an issue for you but some users hate this ;)
Actually Yoav, more like *visceral hatred and copious bilious rage*
;)
Ain't that the truth... ;) It's amazing how often basic things (from
the user's
Hi:
I created a webapp as ROOT under tomcat 4.1.27, and set the welcome
file as index.jsp for the webapp. And I start the tomcat server and open
my IE go to localhost. In the IE address bar, it changes to
http://localhost/index.jsp. Is there a way to config the tomcat to let
it not display
It's possible with TC 3.3.x (with non-default config options), and with TC
5.0.x (with the default config options), but not with TC 4.1.x.
Denis [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi:
I created a webapp as ROOT under tomcat 4.1.27, and set the welcome
file as index.jsp
In a webapp on which I work, we could specify a welcome file with the
following syntax:
welcome-file-list
welcome-file
jsp/myLogin.jsp
/welcome-file
/welcome-file-list
This worked in Tomcat 4.x without problems. I yesterday installed
Tomcat 5.0.16 and am
Howdy,
Welcome file behavior was changed because the spec was changed to allow
servlets as welcome files. There could be a bug in the code, or it
could be that your relative path to welcome file is no longer legal in
servlet specification 2.4 containers. I don't know which one is true,
as I
by an internal forwards so the browser sees as the URL
http://myserver.mydomain.com:8080/myapplication/
It is generally a bad idea to have a / in a welcome file.
-Tim
David Ramsey wrote:
In a webapp on which I work, we could specify a welcome file with the
following syntax:
welcome-file-list
/root/url-pattern
/servlet-mapping
welcome-file-list
welcome-fileroot/welcome-file
/welcome-file-list
The problem on this was that tomcat checks for the very existence of the
file root, before actually invoking the servlet. The trick is to simply
have an empty file root in the applications
Hello.
I'm using tomcat 4.1.29 on debian and I have the following problem:
I need to get / handled by my Servlet myPackage.Root, but I do not want
to change the mapping of ordinary files.
Just as a welcome file would, but welcome-file does not apply to servlets,
right?
My solutions so far
edit the $CATALINA_HOME/ROOT/WEB-INF/web.xml if you want the root
application to show an custom welcome-file
and put
welcome-file-list
welcome-filemyFile.jsp/welcome-file
/welcome-file-list
to the web-app tag.
This works on my tomcat 5.0
Rainer
Servlet 2.4 (implemented by Tomcat 5) allows you to use a servlet as a welcome file.
If you're using Servlet 2.3, here is a trick:
- Create a JSP page that forwards to the servlet.
- Specify the JSP page as the welcome-file.
budi.
---Original Message---
gt; From: SH Solutions lt
not want
to change the mapping of ordinary files.
Just as a welcome file would, but welcome-file does not apply to servlets,
right?
My solutions so far is to map / to my servlet an map any other folder
with distinct context's, what surely is'nt what it was meant to be.
I did search the web
Hi all,
I tried to get a page from my Struts application as default page in the
welcome file list (see below) but it doesn't work, it keeps going to
index.html. Am I doing something wrong or is it simply not possible?
I did this:
welcome-file-list
welcome-filestart.do/welcome-file
As part of the servlet 2.2/2.3 spec, you are not allowed to use a
servlet/action as a welcome-file - only .html or .jsp (I think). This is
changing in the servlet 2.4 spec.
Matt
-Original Message-
From: Jeroen Breedveld [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 8:28 AM
Hello,
I'm using apache tomcat 4.1 + mod_jk + Apache 1.3.27.
My webapp has the welcome file set to index.jsp.
As far as i know, the requests to /fooapp/ are redirected to
/fooapp/index.jsp.
Is there any apache HTTPD workaround to do instead of redirect some kind of
forward ?
Catalin Constantin
what can you tell me about option 3)
i have apache 1.3.27, tomcat4 and mod_jk !
what should i DO to make it not Redirect !
Catalin
- Original Message -
From: Bill Barker
To: [EMAIL PROTECTED]
Sent: Friday, January 10, 2003 8:32 AM
Subject: Re: tomcat welcome-file
1) Use Tomcat 3.3.2
How can i configure tomcat not to send 302 Moved Temporarily
when i access the ROOT of my webapp ?
Eg:
http://localhot:8080/testapp/
it gets redirected to
http://localhot:8080/testapp/welcome.html
i want to skip the redirect step and to load
the welcome file or a default file (tomcat conf
to skip the redirect step and to load
the welcome file or a default file (tomcat conf specified or some)
on request.
Catalin
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Is it possible to have a servlet be the welcome-file parameter in a
welcome-file-list? If so, how do I invoke the servlet?
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Users List' [EMAIL PROTECTED]
Sent: Monday, November 18, 2002 2:35 PM
Subject: welcome-file-list
Is it possible to have a servlet be the welcome-file parameter in a
welcome-file-list? If so, how do I invoke the servlet?
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional
, will allow you to specify a servlet directly as the welcome file
for your webapp.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Anderson, M. Paul [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 18, 2002 9:35 AM
To: 'Tomcat Users List'
Subject: welcome-file-list
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
Hi!
when i specify a welcome file, and hit the root of a webapp, i'm automatically
redirected to the
welcome file- ie, i see in the browser address bar http://www.domain.com/index.jsp;
does anyone know how to make it so that tomcat will forward to the welcome-file, so in
the browser
address
Hi,
when i specify a welcome file, and hit the root of a webapp, i'm automatically
redirected to the
welcome file- ie, i see in the browser address bar http://www.domain.com/index.jsp;.
Does anyone know how to make it so that tomcat will forward to the welcome-file, so in
the browser
address
garrett smith wrote:
Still having troubles?
On Mac OS, the OS will add an extra extension based on file type. This is done
to make the computer more user-friendly, although it is exactly the opposite:
it is counter-intuitive.
I had to check Show Info on right-click menu and remove the
web.xml(in both the conf directory and in the
WEB_INF
of out application) the definition of the welcome-file-list, we cannot
get
the index.html when we type http://myhost:8080; in the browser, we have
to
explicitly type http://myhost:8080/index.html;. Does anybody has a
solution to this
try using index.htm
Filip Lou
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 30, 2002 11:41 PM
Subject: Index.html/default welcome file
We are running tomcat
index.html, index.htm, index.jsp, welcome.do,
If welcome-file-list really does work, then it is not necessary to name your
file index.htm from index.html.
welcome-file-list really does work, so it is not necessary to name your file
index.htm from index.html.
I don't have a solution, though
know if your OS does this, but you may want to check it out.
Also, consider waiting for five seconds between startup and shutdown. I get
mixed results when I don't wait.
I changed my welcome-file-list in the web.xml file below and successfully
navigated to the url below. I changed server.xml to make
We are running tomcat/catalina as a thread/embedded. For some reason even
though we have in the web.xml(in both the conf directory and in the WEB_INF
of out application) the definition of the welcome-file-list, we cannot get
the index.html when we type http://myhost:8080; in the browser, we have
Hi, I have a problem with apache -- mod_webapp --tomcat:
http://myhost/jsp -- (apache) don´t work. don´t display welcome file .
tomcat display error status code 302 Moved Temporarily
http://myhost:8008/jsp -- (tomcat standalone) ok display the welcome file.
http:/myhost/jsp/index.html
Hi there,
I am using tomcat4 and want to setup a servlet as
welcome file. How can I do this? Using / as
servlet-mapping would not work (IMHO:). If I then
try to access http://myhost/something.html then my
servlet would be invoked with something.html as
PathInfo, right?
Please help! Thanks
\AlveoleDev
reloadable=false crossContext=true
Parameter name=HD_Data value=D:\PastelData\AlveoleDev
override=false /
/Context
/Host
/Engine
/Service
In the Tomcat's file : web.xml
welcome-file-list
welcome-filejsp/Appli/hdi_index.jsp/welcome-file
/welcome-file
:\AlveoleDev conn /alveoledev/
...
/snip
RS
Elisabeth Julg [EMAIL PROTECTED] on 03/11/2002 04:34:58 AM
Please respond to Tomcat Users List [EMAIL PROTECTED]
To: Tomcat-User [EMAIL PROTECTED]
cc:
Subject: Apache + Tomcat : Welcome-file
Hi,
I would like integrate a Tomcat's
-mapping
session-config
session-timeout
30
/session-timeout
/session-config
welcome-file-list
welcome-fileindex.html/welcome-file
/welcome-file-list
/web-app
when I try to hit the page: http://localhost/multipart/
I get a page cannot be displayed error in IE 5.5, saying
My web-app is set with a welcome-file-list, index.xml is the first
welcome-file entry.
Tomcat [4.0b2] does a HTTP 302 (temporary redirect) to the welcome-file
for requests that do not specify a file. This is contrary to the behavior
of almost every web server, ever. E.g. Apache et al
.)
-Ursprüngliche Nachricht-
Von: Guy McArthur [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 6. Februar 2002 09:29
An: Tomcat Users List
Betreff: welcome-file behavior
snip/
Tomcat [4.0b2] does a HTTP 302 (temporary redirect) to the
welcome-file
snip/
So, is it possible to change
4.0.1 or whatever the current stable release is
-Original Message-
From: Joel Rees [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 12:44 AM
To: Tomcat Users List
Subject: Re: Servlet as default file (welcome-file)
I think this varies from version to version. I figured
How do I set up a servlet as the file tomcat returns when as the default
index file?
Can specifty a jsp just fine, but no idea how to do servlet.
Oh yeah, one other thing - is it possible to let tomcat serve up
servlets out of the / webapp directory, as opposed to the /servlet/
directory?
I think this varies from version to version. I figured out 3.3, but my
manager tells me we have to go back to 3.2, and it looks different.
Discussion of v. 4 sounds like yet another one.
Which version?
- Original Message -
How do I set up a servlet as the file tomcat returns when as
The same situation was for me,but I overcame it using default index.jsp
redirecting to Servlet File.In index.jsp I wrote :
html
head
meta http-equiv=refresh content=0;url= your servlet...
/head
/html
But I know this trick is not I really wanted
Does somebody have other solutions?
Clay
My webapp recognizes only index.jsp as the welcome file. How can I get
it to use either index.jsp or index.html?
Right now, if I go to the docs directory within my webapp (javadocs are
all html) I get a directory listing instead of index.html.
I tried adding a welcome-file-list element
://localhost:8080/
and the welcome-file for the default webapp is set to index.html, tomcat
does not redirect to:
https://localhost:8443/index.html as i would expect, the client just hangs
until the connection times out.
following are the welcome-file and security-constraint entries in my
$CATALINA_HOME
hi,
i am using tomcat 3.2.3 and apache 1.3.20 on windows 2000 with mod_jk
i have setup the welcome file in the web.xml of my web application as
follows:
welcome-file-list
welcome-file
index.jsp
/welcome-file
welcome-file
login.html
/welcome-file
/welcome
I want a virtual host to forward to a different welcome file.
For example, i have a tomcat server running at http://www.foo.com
I want http://www.foobar.com to go to
http://www.foo.com/friends/foobar.html.
What would be the most straight forward way for me to implement this?
Thanks,
Patrick
Hi Saritha,
Yep, I understand how to set up my web.xml - if you look at the bottom of the
mail I sent, you'll see it there...
Works fine if I call index.jsp directly, BUT if I place it as my welcome page
using
welcome-file-list
welcome-fileindex.jsp/welcome-file
/welcome-file-list
it there...
Works fine if I call index.jsp directly, BUT if I place it as my welcome page
using
welcome-file-list
welcome-fileindex.jsp/welcome-file
/welcome-file-list
it doesn't work!
Any suggestions?
Dave
Saritha Pula [EMAIL PROTECTED] on 08/21/2001
04:40:41 PM
To: [EMAIL
Hi everyone,
I am pre-compiling my jsp's in my struts web app, and everything works fine,
except specifying the welcome file in the web.xml.
If I do not pre-compile everything, having index.jsp as the first page works
great. However, when I pre-compile index.jsp it doesn't work. Putting
/url-pattern
/servlet-mapping
When you refer to /index.jsp it calls pre-compiled JSP(i.e servlet)using
mapping in web.xml
--Saritha
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 21, 2001 12:00 PM
To: [EMAIL PROTECTED]
Subject: welcome file
welcome-file-list
welcome-filetechSupp.html/welcome-file
/welcome-file-list
servlet
--line 18
servlet-nametechSup...
without the welcome-file-list tags the
deploying - is no problem. but with it i get a the parse error.
but i don´t know why.
please help
thx christian kuehrt
That is easy. Look into conf/web.dtd.
welcome-file-list need not preceede the servlet.
Regards
Jan
On Monday, May 28, 2001 1:57 PM, christian kuehrt
[SMTP:[EMAIL PROTECTED]] wrote:
everytime i try to deploy my application i get the following message:
PARSE error at line 18 column -1
thanks for your help
i´didnt know that the order of the tags plays an important role
ciao
curt
- Original Message -
From: Pernica, Jan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, May 28, 2001 2:02 PM
Subject: RE: Problems with XML parsing: welcome-file-list (web.xml
1 - 100 of 136 matches
Mail list logo