can I prevent DoS (Denial of Service) Attacks in JSP?

2005-08-02 Thread Ben Bookey
Dear List, I have been asked if its possible to prevent DoS attacks inside Java (JSP/Servlet). I guess it is ... is this something however that TC would be configured to deal with, or must I do something myself. Whats normal ? Many thanks in advance! Best wishes Ben Bookey

Putting JNDI configurable info. inside of a properties file only

2005-07-14 Thread Ben Bookey
Dear List, In the example docs on the Apache web-site, all the JNDI info. is configured inside of the server.xml and web.xml. Is it possible or better said usual to make a data source, with the Oracle configurable JDBC URL connection info. in a separate properties file. This would mean

Re: Using Single Sign on to access another webapp.

2005-07-12 Thread Ben Bookey
Hi Everyone, Thanks for the replies. If i understand correctly, then the SSO should work between Tomcat and another j2EE type servlet container? The other app. in question is websphere. regards, Ben Bookey From: Tim Funk [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user

Using Single Sign on to access another webapp.

2005-07-08 Thread Ben Bookey
Dear List, We are using Tomcat 4.1.xx. We are NOT using the built in security framework which comes with TC. In the login.jsp page the user/password is validated by an external organisation wide process, which returns simply true or false. If the user is valid, the user is forwarded to the

icon, EJB's and Tomcat?, Login-valves, Realms with Oracle.. and other silly questions

2005-02-08 Thread Ben Bookey
Dear Tomcat users, 1. what exactly should the icon tags inside the web.xml do ? Is it simply a central reference for components within the webapp or does it have more powerful implications. i.e. the small icon will be used as an favicon type icon, whenever a user bookmarks a page from the

Login filter

2005-02-03 Thread Ben Bookey
Dear List, I would like to perform an action after the user logs in to our app. We are using the tomcat Realm security model, with an Oracle database. So therefoer I am trying to implement a filter in Tomcat 4.1.27, which checks for all requests on the url /j_security_check I know my filter is

AW: Login filter

2005-02-03 Thread Ben Bookey
got this idea from a ibm websphere help doc, where it is possible ! -Ursprungliche Nachricht- Von: Tim Funk [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 3. Februar 2005 12:41 An: Tomcat Users List Betreff: Re: Login filter Filters cannot be run on j_security_check. -Tim Ben Bookey

global variables inside a Tomcat JSP-Servlet app.

2005-01-03 Thread Ben Bookey
Dear List, I hope someone can give some hints to a none java/TC -specialist. We have a jsp-servlet app, which has some important app variables inside the web.xml. Because the validation for these parameters is quite complex we have a single public class with public static setters and getters

xml processing inside Tomcat

2004-10-27 Thread Ben Bookey
Dear List, We are using java sdk 1.4.2 which includes dom objects and a xml transformer - EVERYTHING I need for my code to work. ALL my code imports begin with javax.xml.* [interfaces] and org.w3c.dom [xml API] and javax.trasform [for xslt processing]. I want my code ALWAYS -SPECIFICALLY to

RE: xml processing inside Tomcat

2004-10-27 Thread Ben Bookey
Hi Yoav, Why are the classes in the lib/endorsed path better ? Surely the sun sdk is better to use !! I tried removing. But it uses crimson instead of xalan (as it should see below), and it doesnt work. I would like it to use the xalan api provided also inside of the JDK1.4.2 package. Based on

GZip compression in 4.1.27 ..

2004-10-25 Thread Ben Bookey
Dear Ladies and Gentlemen, This is a follow-on for a question from last week, but as its now on a different-page of the mailing list. I decided to post another new questions, so no-one misses it. 1) Below is an original extract of my tomcat 4.1.27 server.xml. I want to enable compression in my

Re: Including Zip functionality in a filter...

2004-10-22 Thread Ben Bookey
HI Tim // Don't worry about writing a compression filter - tomcat comes with one on its HTTP connector. // Or if your using apache - use mod_gzip. I here the latest IIS also has compression support. Thanks ALOT for the suggestion. We are just using Tomcat 4.1 and Tomcat 5, is this still

Re: Tomcat classloading...a theory question..

2004-10-21 Thread Ben Bookey
Dear Mathew, Thanks for the link. http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html I am afraid I dont understand the paragraph below, regarding the class patterns In addition, for the following class patterns, the classloader will always delegate first (and load the

Including Zip functionality in a filter...

2004-10-20 Thread Ben Bookey
html file, with the mime type set correctly and the browser will display the page, reducing drastically the bandwidth) i) Is this technique recommended at all ? could this lead to a bottleneck at the filter ? ii) IS this limited to html pages or graphics ? etc. Kind regards Ben Bookey

Tomcat classloading...a theory question..

2004-10-20 Thread Ben Bookey
), inside my webapp and these will be hopefully used by my app. rather than it using possibly older versions that have been placed inside of the common/lib or even the jre\lib path. I would really appreciate any insight. regards Ben Bookey

Using request.getLocale() inside of the sessionListener event

2004-09-24 Thread Ben Bookey
Dear List, We are using a sessionlistener to count users. Is it possible for us to use the request object somehow inside of the sessionCreated event? We want to determine the client.locale and then store this in the session object. This would therefore mean, we can determine the language GUI

Workaround for using JNDI sources in the web.xml instead of the server.xml?

2004-09-15 Thread Ben Bookey
'=== = regards. Ben Bookey - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Does Tomcat 4.* recognise /META-INF/context.xml at all ?

2004-09-15 Thread Ben Bookey
PROTECTED] Gesendet: Mittwoch, 15. September 2004 18:15 An: Ben Bookey Betreff: RE: Workaround for using JNDI sources in the web.xml instead of the server.xml? Hi, I don't know if you customizing context.xml would cause any problems. Frankly, I don't care to support TC4. It's old, TC5 is much

AW: Setting JVM == file.encoding = Cp1252

2004-09-08 Thread Ben Bookey
this in the startup scripts for TC. You could even try within Java code System.setProperty(file.encoding, Cp1252); ADC -Original Message- From: Ben Bookey [mailto:[EMAIL PROTECTED] Sent: 08 September 2004 10:44 To: Tomcat User List Subject: Setting JVM == file.encoding = Cp1252 Dear list, I

AW: Setting JVM == file.encoding = Cp1252

2004-09-08 Thread Ben Bookey
or database encoding aligns. why don't you email me your web.xml, your jsp, your servlet, your JNDI or database connectivity config and I will take a look. ADC -Original Message- From: Ben Bookey [mailto:[EMAIL PROTECTED] Sent: 08 September 2004 11:12 To: Allistair Crossley Subject: AW

Real problem posting Euro symbol from jsp page, using TC 5.0

2004-09-06 Thread Ben Bookey
Dear TC profis, (allistair and Nikola) I have had this problem for a week (aaahhh!), and would really appreciate ANY help or pointers to what I may be doing wrong. When I post a € value from a form from either Netscape 6.0 or IE 6.0, and do a system.out.println in my test servlet there is

RE: Real problem posting Euro symbol from jsp page, using TC 5.0

2004-09-06 Thread Ben Bookey
Message- From: Ben Bookey [mailto:[EMAIL PROTECTED] Sent: 06 September 2004 11:19 To: Tomcat User List Cc: Allistair Crossley; [EMAIL PROTECTED] Subject: Real problem posting Euro symbol from jsp page, using TC 5.0 Dear TC profis, (allistair and Nikola) I have had this problem

????? +++ problem saving Euro symbol character to database from my JSP form using TC5

2004-09-03 Thread Ben Bookey
HI Nikola. et. al., thanks for your help. I really appreciate it !! 1. I have a Windows-1250 oracle database, and I am using TC 5. and jsp/html pages to perform updates/inserts. Despite using iso-8859-15 in my jsp/html, the client is still posting a ? (question mark symbol) instead of a Euro

++ Best practive ?? ++ (JSP--Servlet--Database) character encoding.

2004-09-02 Thread Ben Bookey
=ISO8859-15% %@ page pageEncoding=ISO8859-15% it sounds to me like the encoding is still being switched incorrectly somewhere. ADC -Original Message- From: Ben Bookey [mailto:[EMAIL PROTECTED] Sent: 01 September 2004 14:37 To: Tomcat User List Cc: Allistair Crossley Subject: AW: ++ Best

WG: ++ Best practive ?? ++ (JSP--Servlet--Database) character encoding.

2004-09-02 Thread Ben Bookey
or something else? you could just for the sake of it try %@ page contentType=text/html;charset=ISO8859-15% %@ page pageEncoding=ISO8859-15% it sounds to me like the encoding is still being switched incorrectly somewhere. ADC -Original Message- From: Ben Bookey [mailto:[EMAIL PROTECTED

How to pre-determine the browser request character encoding type

2004-09-01 Thread Ben Bookey
knows this Cheers! -Original Message- From: Ben Bookey [mailto:[EMAIL PROTECTED] Sent: 31 August 2004 17:06 To: Allistair Crossley Cc: Tomcat User List Subject: AW: JSP/HTML Encoding Hi Allistair +++ Many thanks for your help. +++ I apologise when I ask some stupid questions

++ Best practive ?? ++ (JSP--Servlet--Database) character encoding.

2004-09-01 Thread Ben Bookey
individually (in theory allowing many character encodings to be used in each HTML frame), or as one unit. I LOOK very much forward to any reply on this matter. Sincerely, Ben Bookey - To unsubscribe, e-mail: [EMAIL PROTECTED

AW: ++ Best practive ?? ++ (JSP--Servlet--Database) character encoding.

2004-09-01 Thread Ben Bookey
this clears up your issue! Alles gut, ich wuensche Dir Glueck! ADC. -Original Message- From: Ben Bookey [mailto:[EMAIL PROTECTED] Sent: 01 September 2004 09:37 To: Allistair Crossley Cc: Tomcat User List Subject: How to pre-determine the browser request character encoding type Hi

JSP/HTML Encoding

2004-08-31 Thread Ben Bookey
a page within a frameset, and it could be that the parent frame HTML page might be incorrectly pre-determining the encoding of the whole frameset overriding the child frame settings. kind regards, Ben Bookey - To unsubscribe, e

AW: JSP/HTML Encoding

2004-08-31 Thread Ben Bookey
PROTECTED] Gesendet: Dienstag, 31. August 2004 17:08 An: Tomcat Users List; [EMAIL PROTECTED] Betreff: RE: JSP/HTML Encoding make sure also that you set file.encoding=utf8 in tomcat's startup options so that the jvm also operates in that mode. ADC -Original Message- From: Ben Bookey [mailto

AW: JSP/HTML Encoding

2004-08-31 Thread Ben Bookey
. * * @param request The servlet request we are processing */ protected String selectEncoding(ServletRequest request) { return (this.encoding); } } ADC -Original Message- From: Ben Bookey [mailto:[EMAIL PROTECTED] Sent: 31 August 2004 16:28

Tomcat Realm-- pasword encryption servlet location in a webApp

2004-08-05 Thread Ben Bookey
Dear list, 2 questions 1) I think I remember reading somewhere that there was a .bat batch file which we could run on production machines, so that passwords are encrypted. Can anyone enlighten ? 2) Whats the best configuration mechanism for my servlets? I think its better to add the the

SUN or APACHE, xml parser -- How do I know which is used ?

2004-08-03 Thread Ben Bookey
. documentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); regards Ben Bookey - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

AW: SUN or APACHE, xml parser -- How do I know which is used ?

2004-08-03 Thread Ben Bookey
-to. The former specifically discusses how to use different XML parsers with tomcat. Yoav Shapira Millennium Research Informatics -Original Message- From: Ben Bookey [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 03, 2004 11:28 AM To: Tomcat User List Subject: SUN or APACHE, xml parser -- How

Does the ready-to-go realm always have to use a cookie ?

2004-06-28 Thread Ben Bookey
Dear List, Does the REALM security feature in Tomcat, always have to store a cookie JSESSION in the client ? Is there an easy-work-around so that a cookie is not stored ? Please help! Ben - To unsubscribe, e-mail: [EMAIL

Determination if a client has sessions enabled or not.

2004-06-25 Thread Ben Bookey
Dear List, I would like to check if a client has cookies/sessions enabled in the start page of my webapp. whats the best way of doing this? regards Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

How to handle client session information if client has sessions disabled?

2004-06-25 Thread Ben Bookey
Dear list, What is the normal way of persisting session type information if the client has sessions/cookies disabled. I guess if he's got sessions switched off, then session.getId() will return null ? The userID must therefore be invented somehow on the server, and passed between the

Re: How to handle client session information if client has sessions disabled?

2004-06-25 Thread Ben Bookey
suprised that storing objects in the session object works, when the client has sessions switched off hence app.setAttribute() ?? Help !!! regards, Ben - Original Message - From: Mike Fowler [EMAIL PROTECTED] To: Ben Bookey [EMAIL PROTECTED] Sent: Friday, June 25, 2004 5:41 PM Subject: Re: How

How to configure a Realm in the server.xml which doesnt ask the browser to store a session.

2004-06-25 Thread Ben Bookey, GIStec GmbH
Dear List, We have implemented the Realm with Oracle. It works fine. (see below from TC sample server.xml) !-- Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=oracle.jdbc.driver.OracleDriver

Subject: Re: How to handle client session information if client has sessions disabled?

2004-06-25 Thread Ben Bookey, GIStec GmbH
Is it possible to use this sort of session handling (passing the SESSION ID over HTTP) when using the Realm security feature within TC ? I have noticed that there is a cookie saved, JSESSIONID which stores the SessionID. Would appreciate any info. Ben

Tomcat Logging.. whats the best way ?

2004-06-22 Thread Ben Bookey
Dear List, We have written a webapp, and now I want to add some logging inside. The app has jsp pages, servlets and a java package of classes for jdbc database interaction. O.k. as I understood Tomcat does support logging via, catalina.out etc. The logfile can even be configured based on each

Tomcat-- web.xml -- context -- element query

2004-06-18 Thread Ben Bookey
-specific redirection syntax, such as 21 /dev/null or whatever. Yoav Shapira Millennium Research Informatics -Original Message- From: Ben Bookey [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 11:14 AM To: Tomcat User List Subject: Override the system.outs so that no Tomcat

myapp's problems with 4.0.*

2004-06-17 Thread Ben Bookey
this might not be working with 4.0.* ? This is not so bad it is an older version, but it would be nice to explain why it doesnt work ;) I would really appreciate (again) any pointers. regards Ben Bookey

Override the system.outs so that no Tomcat Logfile is produced.

2004-06-16 Thread Ben Bookey
Is it possible with a single server.xml (or web.xml) paramter, to overide all the System.out's in my webApp so that no logfile is produced. Many thanks in advance. BB - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

pre-loading normal java classes..

2004-06-14 Thread Ben Bookey
Hello Mailing list, I know its possible to pre-load jsp pages, and servlets in the web.xml. How would one go around pre-loading simple java classes ? Can I add these to the web.xml too? regards Ben Bookey. - To unsubscribe

Tmcat 4.1.27 Access Logs. Switching on the the Access logs.

2004-06-10 Thread Ben Bookey
Dear List, In my NetBeans environment which has Tomcat integrated, I can find logs which show the individual requests for each HTML file. Where can I switch this on/off in my real installation of Tomcat for just my application (i am sharing a tomcat instance) with other apps.? I

What is the latest version of Tomcat ?

2004-06-10 Thread Ben Bookey
Dear List, On 9th May 2004 - Tomcat 5.0.24 Stable was released. Which version would you all recomend for a critical commercial product ? regards Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

AW: Tmcat 4.1.27 Access Logs. Switching on the the Access logs.

2004-06-10 Thread Ben Bookey
. Switching on the the Access logs. Hi, In the server.xml file, comment the AccessLogValve element in or out as you need. Yoav Shapira Millennium Research Informatics -Original Message- From: Ben Bookey [mailto:[EMAIL PROTECTED] Sent: Thursday, June 10, 2004 8:52 AM To: Tomcat User List

RFC and j_security_checks

2004-06-06 Thread Ben Bookey
Dear List, Q.1 We implement the integrated security model inside our app context [defined in server.xml ]. Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=oracle.jdbc.driver.OracleDriver connectionURL=jdbc:oracle:thin:@ 100.100.100.60:1521:ingeo

Frames vs Tables, I think Tables are the future! HTML examples please !

2004-05-26 Thread Ben Bookey
Dear list, I think most of us need to have a mechanism where we can have multiple elements, or jsp pages in our jsp solutions. We have a web solution based on frames, (and tomcat) and have realised that on a normal sesion time-out, we get 404 on some of the frames, and could lead to major

Tomcat 4.* compilation of the WEB-INF classes

2004-05-18 Thread Ben Bookey
Dear List, I am using tomcat 4.0. My experience sofar is that when I put my uncompiled .java files inside the WEB-INF\classes directory, and do a restart the java files will ALL be compiled. This is not due to my web-xml settings, but default Tomcat 4. behaviour. However, later when I made a

Tomcat security

2004-05-17 Thread Ben Bookey
Partner für GIS - Technologie | | | | Ben Bookey| | [EMAIL PROTECTED] Fraunhoferstraße 5 | | Tel 0 61 51 / 155 - 254 D-64283

AW: Tomcat security

2004-05-17 Thread Ben Bookey
/ROOT/index.jsp), and many other locations. Where did you look or what made it difficult to find? Yoav Shapira Millennium Research Informatics -Original Message- From: Ben Bookey [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 9:12 AM To: [EMAIL PROTECTED] Subject: Tomcat security

Catalina.out

2004-05-17 Thread Ben Bookey
Dear List, I have specified for my app in the web.xml context a logging file. I thought this would therefore result in ALL System.out.println(); messages to be printed to my app_.txt file. Instead, my app continues to log all output to the catalina.out file. Is there anyway of printing content