Re: Apache Default Document is .jsp?

2001-06-18 Thread Jason Koeninger

Dig through the documentation on mod_rewrite and/or 
look at the Redirect command for Apache.  One or both 
of those two should be capable of accomplishing what 
you want.  

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Mon, 18 Jun 2001 17:40:02 -0700, Scott Jones wrote:

Hello,

I'm getting ready to setup tomcat and Apache on seperate machines.  Before
getting started on that project, on my development machine, I set the
default DocumentRoot for apache to a different directory (for static
content) than my webapp (which will eventually sit on a different machine).

I'd like to have my login.jsp be my default document, but was only able to
get it to work by putting a dummy login.jsp in the HTML directory...
Otherwise, Apache would just show a normal index of the directory...

Is this the only way to get this to work?  Or am I missing somthing?  BTW,
I'm on Tomcat 3.2.1 and Apache 1.3.19...

Thanks for any ideas.

Cheers,

Scott







Re: Apache Default Document is .jsp?

2001-06-18 Thread Dmitri Colebatch

I would have thought that if you change the DirectoryIndex instruction (I 
think thats it) in the httpd.conf to use index.jsp first, and you have 
mounted *.jsp to go to tomcat then it should work.  haven't done it myself 
though.

cheers
dim

On Tue, 19 Jun 2001 10:40, you wrote:
 Hello,

 I'm getting ready to setup tomcat and Apache on seperate machines.  Before
 getting started on that project, on my development machine, I set the
 default DocumentRoot for apache to a different directory (for static
 content) than my webapp (which will eventually sit on a different machine).

 I'd like to have my login.jsp be my default document, but was only able
 to get it to work by putting a dummy login.jsp in the HTML directory...
 Otherwise, Apache would just show a normal index of the directory...

 Is this the only way to get this to work?  Or am I missing somthing?  BTW,
 I'm on Tomcat 3.2.1 and Apache 1.3.19...

 Thanks for any ideas.

 Cheers,

 Scott



Accessing Base Document Directory from JSP

2001-05-22 Thread Jeff Trent



I would like to use absolute URLs to get to another 
page in my app. However, I don't want to burn in 'MyApp'. Instead, I 
would like to dynamically get the name that was assigned via the sysadmin. 
How can I do this from within a JSP?

Thanks,
Jeff



RE: Accessing Base Document Directory from JSP

2001-05-22 Thread Pernica, Jan

application.getContextPath() returns the path to the current context

On Tuesday, May 22, 2001 2:42 PM, Jeff Trent [SMTP:[EMAIL PROTECTED]]
wrote:
 I would like to use absolute URLs to get to another page in my app.
However, I don't want to burn in 'MyApp'.   Instead, I would like to
dynamically get the name that was assigned via the sysadmin.   How can I do
this from within a JSP?
  
 Thanks,
 Jeff
  


__
Tato komunikace je urcena vyhradne pro adresata a je duverna. 
This communication is intended solely for the addressee and is confidential.






Re: Accessing Base Document Directory from JSP

2001-05-22 Thread Jeff Trent

HttpServletRequest.getContextPath() do you mean?  If so, this returns the
path to get to the current servlet.  This is not what I want.  I want to get
the base context.  So for example, if I deploy a solution to the path
'custref' and I am within the servlet custref/admin/tools/whatever, I would
like to find the way to get simply custref back, not
custref/admin/tools/whatever.  I realize I can write my own function to do
this easily but I'd rather use something already built.

thanks,
jeff

- Original Message -
From: Pernica, Jan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 22, 2001 9:12 AM
Subject: RE: Accessing Base Document Directory from JSP


 application.getContextPath() returns the path to the current context

 On Tuesday, May 22, 2001 2:42 PM, Jeff Trent [SMTP:[EMAIL PROTECTED]]
 wrote:
  I would like to use absolute URLs to get to another page in my app.
 However, I don't want to burn in 'MyApp'.   Instead, I would like to
 dynamically get the name that was assigned via the sysadmin.   How can I
do
 this from within a JSP?
 
  Thanks,
  Jeff
 


 __
 Tato komunikace je urcena vyhradne pro adresata a je duverna.
 This communication is intended solely for the addressee and is
confidential.








RE: Accessing Base Document Directory from JSP

2001-05-22 Thread Pernica, Jan

It returns only /custref string.

On Tuesday, May 22, 2001 3:55 PM, Jeff Trent [SMTP:[EMAIL PROTECTED]]
wrote:
 HttpServletRequest.getContextPath() do you mean?  If so, this returns the
 path to get to the current servlet.  This is not what I want.  I want to
get
 the base context.  So for example, if I deploy a solution to the path
 'custref' and I am within the servlet custref/admin/tools/whatever, I
would
 like to find the way to get simply custref back, not
 custref/admin/tools/whatever.  I realize I can write my own function to
do
 this easily but I'd rather use something already built.
 
 thanks,
 jeff
 
 - Original Message -
 From: Pernica, Jan [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, May 22, 2001 9:12 AM
 Subject: RE: Accessing Base Document Directory from JSP
 
 
  application.getContextPath() returns the path to the current context
 
  On Tuesday, May 22, 2001 2:42 PM, Jeff Trent
[SMTP:[EMAIL PROTECTED]]
  wrote:
   I would like to use absolute URLs to get to another page in my app.
  However, I don't want to burn in 'MyApp'.   Instead, I would like to
  dynamically get the name that was assigned via the sysadmin.   How can I
 do
  this from within a JSP?
  
   Thanks,
   Jeff
  
 
 
  __
  Tato komunikace je urcena vyhradne pro adresata a je duverna.
  This communication is intended solely for the addressee and is
 confidential.
 
 
 
 


__
Tato komunikace je urcena vyhradne pro adresata a je duverna. 
This communication is intended solely for the addressee and is confidential.






Re: Accessing Base Document Directory from JSP

2001-05-22 Thread skolski

Hi,

I don't know, if that helps you, but, I get the name in JavaScript. The
function

window.location.pathname;

gives you the local part of the url, so Myapp/myfile you can then easily
put this together with your absolute part of the url.

Sascha






Secured Document with Tomcat?

2001-01-30 Thread Lukman W. Kusuma

Dear All,

I am sorry if my question below are one of the FAQs, but I really
couldn't choose the keyword of my issue.
I am using Tomcat 3.1 (yes, only Tomcat, no Apache) with Caldera
OpenLinux 2.4, OpenSSL, and a database to store/modify/read secured
online documentation. It works fine for all newly created  documentation

that I need to put there, but not for the old ones.


The issue is for the existing big static HTML documents

 Some of the documentation is well written in .html with
 thousands of pages. I could put it in one of the Tomcat's web
 directory and write the servlet for the first index.html (this
 way I can verify the user's session).  But once I logged in, I
 could see the link for other pages. Subsequently I don't need
 to use that servlet anymore, instead, I will use those links
 to access those pages directly.
 How should I protect those pages? Can Tomcat do it? What is
 the best solutions? Can I put it in a protected access (with
 https auth), and let my servlet checked the session (so it
 could be accessed only after the servlet verify it)?


TIA

Lukman


begin:vcard 
n:Kusuma;Lukman W.
tel;cell:(65) 97431520
tel;fax:(65) 8832345
tel;work:DID : (65) 3305310, Office : (65) 8830800
x-mozilla-html:TRUE
url:www.commverge.com
org:CommVerge Solutions Pte Ltd;Network Integration  Design
adr:;;9 Temasek Boulevard, Suntec Tower Two, #27-03;;;038989;Singapore
version:2.1
email;internet:[EMAIL PROTECTED]
title:Integration Manager
x-mozilla-cpt:;0
fn:Lukman W. Kusuma
end:vcard



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


jsp document root

2001-01-16 Thread Regis Muller

Sorry to ask such a trivial question to all of you but how can I put my
.jsp files outside of the ROOT Directory of tomcat in e.g. in
apache\htdocs ?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: jsp document root

2001-01-16 Thread Jon Baer

How is it possible to create something without a context @ the *very* top
root level so you can say:

/

maps to things in directory /myapp

Thanks.

- Jon

"Simon Oldeboershuis, outermedia" wrote:

 Regis Muller schrieb:
 
  Sorry to ask such a trivial question to all of you but how can I put my
  .jsp files outside of the ROOT Directory of tomcat in e.g. in
  apache\htdocs ?
 
 you have to configure the position of the directory in the config file:
 tomcat/conf/server.xml
 there should be some example.

 Context path="/myapp"
  docBase="apache\htdocs\myappdocbase"
  crossContext="false"
  debug="0"
  reloadable="true" 
 /Context

 The docbase should probably given as an absolute path.

 simon

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: JSP as an XML Document

2001-01-08 Thread Craig R. McClanahan

Gregor Rayman wrote:

 Hi,

 does Tomcat support the XML syntax for JSP?


Tomcat 3.2 - No.  Tomcat 4.0 - yes (per the JSP 1.2 proposed final draft spec).


 I want to generate JSP from XML with XSL
 and it would be much nicer, if I could use
 e.g. jsp:expression istead of %=

 Thanks for any help

 --
 gR


Craig McClanahan



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Tomcat 3.2.1 not recognizing index document

2001-01-03 Thread Kitching Simon

Hi,

As has been stated many times in this email group,
tomcat 3.2 does *not* read the file
$TOMCAT_HOME/conf/web.xml any more.

I bet you defined your welcome-file there - you should
define the welcome-file entry in WEB-INF/web.xml
instead.

Note that the WEB-INF/web.xml file has always been
the *right* place for this definition (though using either 
file would have worked in the past). It makes more sense
to define the welcome-file entries at a webapp-specific
level rather than at a tomcat-wide level, as separate
webapps are likely to want different settings.

The tomcat 3.2 developers made a minor error (in my
opinion) by forgetting to take the old no-longer-used
global web.xml file out of the latest releases.

Tomcat developers - can you get rid of the global
web.xml file from the distribution, to avoid this confusion???
Or rename it to something else (like web.builtin.xml ;-)

Cheers,

Simon

 -Original Message-
 From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
 Sent: Tuesday, January 02, 2001 7:57 PM
 To:   [EMAIL PROTECTED]
 Subject:  Tomcat 3.2.1 not recognizing index document
 
 Recently I upgraded to Tomcat 3.2.1 from 3.1 and everything seems to have
 gone well except for one thing:
 
 If i try to go to my URL at http://www.somesite.com/ it cannot handle it,
 and maps to http://http/index.jsp
 
 However, if i type in http://www.somesite.com/index.jsp it loads
 perfectly.
 
 I've messed with the httpd.conf files with apache, and have determined
 that
 somehow, whenever you don't type in a filename, it has problems. My
 previous
 copy of Tomcat 3.1 was working great, so it has to be with the handoff
 from
 apache to tomcat. I've checked, and Apache handles regular .html
 DirectoryIndex files perfectly!
 
 This one is really bugging me, please help!
 
 
 
 
 
 
 
 
 ___
 Send a cool gift with your E-Card
 http://www.bluemountain.com/giftcenter/
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Tomcat 3.2.1 not recognizing index document

2001-01-02 Thread nykoping

Recently I upgraded to Tomcat 3.2.1 from 3.1 and everything seems to have
gone well except for one thing:

If i try to go to my URL at http://www.somesite.com/ it cannot handle it,
and maps to http://http/index.jsp

However, if i type in http://www.somesite.com/index.jsp it loads perfectly.

I've messed with the httpd.conf files with apache, and have determined that
somehow, whenever you don't type in a filename, it has problems. My previous
copy of Tomcat 3.1 was working great, so it has to be with the handoff from
apache to tomcat. I've checked, and Apache handles regular .html
DirectoryIndex files perfectly!

This one is really bugging me, please help!








___
Send a cool gift with your E-Card
http://www.bluemountain.com/giftcenter/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Is the document tomcat-netscape-howto.html on NT platform?

2000-12-03 Thread Yan Peng

Dear Sir:

I wonder if there is some document on UNIX platform in the WEB site 
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/?


Thanks!





architecture document

2000-11-27 Thread Mahati



hai all,
 any of u pl. help me. Where can i get a 
document related to architecture of
tomcat .Also Can any of u give me the 
download url of Servlet specification 2.2

thanx.


Re: architecture document

2000-11-27 Thread Stefan Woithe

For the latter:

http://java.sun.com/products/servlet/download.html#specs

 Mahati wrote:
 
 hai all,
   any of u pl. help me. Where can i get a document related to architecture of
  tomcat .Also Can any of u give me the download url of Servlet specification 2.2
 
 thanx.

Stefan




Re: architecture document

2000-11-27 Thread Craig R. McClanahan

For Tomcat 4.0, there are some basic diagrams and other information in the

catalina/docs/dev

and

jasper/doc/dev

directories of the "jakarta-tomcat-4.0" CVS repository.  You can download via
anonymous CVS, or grab nightly snapshots, as documented at
http://jakarta.apache.org.

Craig McClanahan


Mahati wrote:

 hai all,  any of u pl. help me. Where can i get a document related to
 architecture of tomcat .Also Can any of u give me the download url of Servlet
 specification 2.2 thanx.




Re: architecture document

2000-11-27 Thread Mahati

thank u stefan
- Original Message -
From: Stefan Woithe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 28, 2000 3:20 AM
Subject: Re: architecture document


 For the latter:

 http://java.sun.com/products/servlet/download.html#specs

  Mahati wrote:
 
  hai all,
any of u pl. help me. Where can i get a document related to
architecture of
   tomcat .Also Can any of u give me the download url of Servlet
specification 2.2
 
  thanx.

 Stefan




in-process document

2000-11-16 Thread Bruce Knipe


I've been attempting to configure IIS to use Tomcat 3.2. This is fairly
easy to do when it isn't in-process, but when I tried to configure it
using the in-process-howto.html document I ran into a problem that maybe
someone on this list might be able to help me with.

The in-process doc states:

 On IIS you will have to modify your worker mount file to mount
contexts to the JNI
 worker. For example: /examples/*=jni

My question is what the heck is an IIS working mount file? I've tried to
find it, but no luck. Can someone please clarify the above statement for
me?

Thanks.

-Bruce




Custom Error Document

2000-10-31 Thread Fredrik Stenberg

Is it possible to redirect to a custom error page when recieving an Error
500 from Tomcat?

Eg. something equal to Apache's ErrorDocument directive.

/Fred



RES: Custom Error Document

2000-10-31 Thread Sergio Stateri Jr

Yes, but only if there's a web server calling Tomcat (Apache). Put the
ErrorDocument command in Apache's httpd.conf :

VirtualHost 192.168.0.13:80
ServerName www.fotoptica.com.br
DirectoryIndex index.jsp index.html
ApJServMount / ajpv12://192.168.0.13:8007
ErrorDocument 500 /erros/error500.html
/VirtualHost



Sergio Stateri Jr
[EMAIL PROTECTED]
Tesla Tecnologia
Sao Paulo (SP) Brazil

-Mensagem original-
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]Em nome de Fredrik Stenberg
Enviada em: Terça-feira, 31 de Outubro de 2000 07:04
Para: '[EMAIL PROTECTED]'
Assunto: Custom Error Document

Is it possible to redirect to a custom error page when receiving an Error
500 from Tomcat?

Eg. something equal to Apache's ErrorDocument directive.

/Fred
___
tomcat-users mailing list
[EMAIL PROTECTED]
https://mailman.real-time.com/mailman/listinfo/tomcat-users




AW: Custom Error Document

2000-10-31 Thread Amrhein, Thomas

Hi,

I want to do the same.

Belong the Servlet-Spec 2.2 we have to edit web.xml like this:

...
web-app
...
error-page
error-code404/error-code
location/404.html/location
/error-page
/web-app

But my tomcat hangs in an endless loop. He does not find 404.html. In my
system it's 
located in path_to_web_app/404.html 
Do you know where it has to be located?
How does your system behave? I use Tomcat 3.2beta5 under NT.

regards

Thomas


-Ursprüngliche Nachricht-
Von: Fredrik Stenberg [mailto:[EMAIL PROTECTED]]
Gesendet am: Dienstag, 31. Oktober 2000 11:04
An: '[EMAIL PROTECTED]'
Betreff: Custom Error Document

Is it possible to redirect to a custom error page when recieving an Error
500 from Tomcat?

Eg. something equal to Apache's ErrorDocument directive.

/Fred



RE: Custom Error Document

2000-10-31 Thread Fredrik Stenberg

I am using apache but I can not get it to serve my custom Error

I have included the:

ErrorDocument 500 "The server made a boo boo.
in my httpd but still I only get the stack-trace from tomcat with Error: 500

/Fred

 -Original Message-
 From: Sergio Stateri Jr [SMTP:[EMAIL PROTECTED]]
 Sent: den 31 oktober 2000 12:34
 To:   [EMAIL PROTECTED]
 Subject:  RES: Custom Error Document
 
 Yes, but only if there's a web server calling Tomcat (Apache). Put the
 ErrorDocument command in Apache's httpd.conf :
 
 VirtualHost 192.168.0.13:80
 ServerName www.fotoptica.com.br
 DirectoryIndex index.jsp index.html
 ApJServMount / ajpv12://192.168.0.13:8007
 ErrorDocument 500 /erros/error500.html
 /VirtualHost
 
 
 
 Sergio Stateri Jr
 [EMAIL PROTECTED]
 Tesla Tecnologia
 Sao Paulo (SP) Brazil
 
 -Mensagem original-
 De: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]Em nome de Fredrik Stenberg
 Enviada em: Terça-feira, 31 de Outubro de 2000 07:04
 Para: '[EMAIL PROTECTED]'
 Assunto: Custom Error Document
 
 Is it possible to redirect to a custom error page when receiving an Error
 500 from Tomcat?
 
 Eg. something equal to Apache's ErrorDocument directive.
 
 /Fred
 ___
 tomcat-users mailing list
 [EMAIL PROTECTED]
 https://mailman.real-time.com/mailman/listinfo/tomcat-users



[tomcat-user] Re: AW: Custom Error Document

2000-10-31 Thread kenneth topp


Yes, I consider tomcat to be broken, in this regard.

But I make it .jsp and it works fine.

Also, if you have virtual hosts, this hangs (as opposed to a loop),
so I just made an default context to one of the virtual hosts, so it would
pick up the WEB-INF/web.xml... probably causes some other issues, but
fixes this problem.

This means I have apache have ErrorDocument 500 and 404 that are .html
not jsp, since apache handles recursive errors with a builtin string, 
so I have two copyies of my 404 html page...

Also, as a note, I strongly recommend against ajp13 as I've run into
issues.  Will post more when I'm on the other side of the launch.

Kenneth Topp
---
 to unsubscribe: [EMAIL PROTECTED]
 for more info: http://jakarta.apache.org/getinvolved/mail.html

On Tue, 31 Oct 2000, Amrhein, Thomas wrote:

 Hi,
 
 I want to do the same.
 
 Belong the Servlet-Spec 2.2 we have to edit web.xml like this:
 
 ...
 web-app
 ...
 error-page
 error-code404/error-code
 location/404.html/location
 /error-page
 /web-app
 
 But my tomcat hangs in an endless loop. He does not find 404.html. In my
 system it's 
 located in path_to_web_app/404.html 
 Do you know where it has to be located?
 How does your system behave? I use Tomcat 3.2beta5 under NT.
 
 regards
 
 Thomas
 
 
 -Ursprüngliche Nachricht-
 Von: Fredrik Stenberg [mailto:[EMAIL PROTECTED]]
 Gesendet am: Dienstag, 31. Oktober 2000 11:04
 An: '[EMAIL PROTECTED]'
 Betreff: Custom Error Document
 
 Is it possible to redirect to a custom error page when recieving an Error
 500 from Tomcat?
 
 Eg. something equal to Apache's ErrorDocument directive.
 
 /Fred
 




<    1   2   3