Stupid Question

2001-03-14 Thread Matthias Barmeier

Hi,


I have a stupid question:

What do I have to do to make JSP code work in *.htm files.
I would like to automatically add an authorization prefix to
any *.html and *.htm page of my old web. The java program works
fine but the % authorize this code % does not work.

I use IIS and Tomcat 3.1. 

Can anyone help ??

Ciao
Matze

My uriworkermap

#
# Simple worker configuration file
#

# Mount the servlet context to the ajp12 worker
/servlet/*=ajp12

# Mount the examples context to the ajp12 worker
/examples/*=ajp12

# Advanced mount of the examples context
# /examples/*.jsp=ajp12
# /examples/servlet/*=ajp12
/*.jsp=ajp12
/*.htm=ajp12


My web.xml
?xml version="1.0" encoding="ISO-8859-1"?

!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"

 web-app
 servlet
servlet-classorg.apache.jasper.runtime.JspServlet/servlet-class
servlet-namehtmtojsp/servlet-name
 /servlet

 servlet
servlet-classUploadManager.HttpFileReceiver/servlet-class
servlet-nameupload/servlet-name
 /servlet


servlet-mapping
servlet-namehtmtojsp/servlet-name
url-pattern*.htm/url-pattern
/servlet-mapping
/web-app


/*
Dipl.-Inform. Matthias BarmeierTel: +49 (0)30 79 70 72 87
bit-side GmbH  Fax: +49 (0)30 79 70 72 88
Salzufer 14a Aufgang D Email: [EMAIL PROTECTED]
10587 Berlin   WWW: http://www.bit-side.com
*/


 

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




AW: JSP, sessions: how to notify bean about the session end?

2001-03-14 Thread Matthias Barmeier

Hi,

if your bean implements HttpSessionBindungListener you can
code a ValueUnbound method that can do what you want.



-Ursprungliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag
von Sergey V. Udaltsov
Gesendet: Mittwoch, 14. Marz 2001 13:08
An: [EMAIL PROTECTED]
Betreff: JSP, sessions: how to notify bean about the session end?


Hello all

My JSPs uses some session-scoped bean. This bean, among other duties, is
responsible for logging in and out of some app server. I would like the
bean to perform autologout on the session end. Is it possible? How?
AFAIK usual finalize can be called ages after the object is really free
- so I do not like this way. Any ideas?

Regards,

Sergey

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


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




How to make tomcat parse a *.HTM File ??

2001-03-14 Thread Matthias Barmeier

Hi,


I have a question:

What do I have to do to make JSP code work in *.htm files.
I would like to automatically add an authorization prefix to
any *.html and *.htm page of my old web. The java program works
fine but the % authorize this code % does not work.

I use IIS and Tomcat 3.1. 

Can anyone help ??

Ciao
Matze

My uriworkermap

#
# Simple worker configuration file
#

# Mount the servlet context to the ajp12 worker
/servlet/*=ajp12

# Mount the examples context to the ajp12 worker
/examples/*=ajp12

# Advanced mount of the examples context
# /examples/*.jsp=ajp12
# /examples/servlet/*=ajp12
/*.jsp=ajp12
/*.htm=ajp12


My web.xml

I added this to ../conf/web.xml after teh *.jsp entry


servlet-mapping
servlet-namehtmtojsp/servlet-name
url-pattern*.htm/url-pattern
/servlet-mapping

/*
Dipl.-Inform. Matthias BarmeierTel: +49 (0)30 79 70 72 87
bit-side GmbH  Fax: +49 (0)30 79 70 72 88
Salzufer 14a Aufgang D Email: [EMAIL PROTECTED]
10587 Berlin   WWW: http://www.bit-side.com
*/


 

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




AW: RE: How to make tomcat parse a *.HTM File ??

2001-03-14 Thread Matthias Barmeier

Hi,

*.htm=ajp12 I have set this and tomcat delivers the html files, but
tomcat ignores all the %   % tags.

I use IIS 4.0 ... but as mentioned the tomcat already receives the html
files
but does not parse the content.

any Ideas ???


-Ursprngliche Nachricht-
Von: Christopher Kirk [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 14. Mrz 2001 18:22
An: '[EMAIL PROTECTED]'
Betreff: RE: How to make tomcat parse a *.HTM File ??



Have you tried setting  *.htm=ajp12, AND in httpd.conf move the mod_jk
higher up the list of modules (I believe that they are declared in a
'search' order)?

- Chris.


 -Original Message-
 From: Matthias Barmeier [mailto:[EMAIL PROTECTED]]
 Sent: 14 March 2001 17:01
 To: [EMAIL PROTECTED]
 Subject: How to make tomcat parse a *.HTM File ??


 Hi,


 I have a question:

   What do I have to do to make JSP code work in *.htm files.
   I would like to automatically add an authorization prefix to
   any *.html and *.htm page of my old web. The java program works
   fine but the % authorize this code % does not work.

   I use IIS and Tomcat 3.1.

 Can anyone help ??

 Ciao
   Matze

 My uriworkermap

 #
 # Simple worker configuration file
 #

 # Mount the servlet context to the ajp12 worker
 /servlet/*=ajp12

 # Mount the examples context to the ajp12 worker
 /examples/*=ajp12

 # Advanced mount of the examples context
 # /examples/*.jsp=ajp12
 # /examples/servlet/*=ajp12
 /*.jsp=ajp12
 /*.htm=ajp12


 My web.xml

 I added this to ../conf/web.xml after teh *.jsp entry


   servlet-mapping
   servlet-namehtmtojsp/servlet-name
   url-pattern*.htm/url-pattern
   /servlet-mapping

 /*
 Dipl.-Inform. Matthias BarmeierTel: +49 (0)30 79 70 72 87
 bit-side GmbH  Fax: +49 (0)30 79 70 72 88
 Salzufer 14a Aufgang D Email:
 [EMAIL PROTECTED]
 10587 Berlin   WWW:
http://www.bit-side.com
*/




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

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


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