Filter problem

2005-06-23 Thread Jack Lauman
I have the following code for an access filter. If I log in with the role of admin everything works as expected. If I try to log in with the role of user I immediately get a permissions error that denies access. I've added ${sessionScope.USER} to the jsp pages as well as adding entries for

JNDI / web.xml question

2005-02-09 Thread Jack Lauman
I'm trying to clean up a few files that have JNDI data access. I want to move the datasource name to the web.xml for easier maintenance and to avoid having to hardcode it into the app. If I have a datasource in the context-param area of the web.xml file, how can it be called? context-param

Re: Tag libraries and JSPs

2005-02-04 Thread Jack Lauman
David: In JSTL v1.0.x it's: %@ taglib prefix=c uri=http://java.sun.com/jstl/core% In JSTL v1.1.x it's: %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core% It has never been what you indicated. Jack David Short wrote: I just upgraded from Tomcat 5.0.28 to 5.5.4 and now my taglib declaration

Help with JDBC query

2005-01-23 Thread Jack Lauman
I'm getting the following error in an insert, the update works fine. Is there a way to get a more informative error message about the error? Does anyone see a syntax error that I missed? I'm using MySQL 4.1.8 and Connector/J 3.0.16. 19:13:20,906 INFO [STDOUT] -SQLException- 19:13:20,906

JSP/JDBC question

2005-01-19 Thread Jack Lauman
I'm getting the following error when my JSP form POSTs: 17:15:23,500 INFO [STDOUT] -SQLException- 17:15:23,500 INFO [STDOUT] SQLState: 42000 17:15:23,500 INFO [STDOUT] Message: Syntax error or access violation message from server: You have an error in your SQL syntax; check the manual

JSTL/JSP/regexp Question

2004-12-01 Thread Jack Lauman
I'm using the following code to return results from drop down menues and user input text. It works fine as long as the text is an exact case sensitive match to the data record. What I want to do is evaluate the output the results of a user input search based on 'param.field' in figure 3. i.e.

Re: JSTL/JSP/regexp Question

2004-12-01 Thread Jack Lauman
{ public static boolean match(String s, String regex) { return s.matches(regex); } } -Tim Jack Lauman wrote: I'm using the following code to return results from drop down menues and user input text. It works fine as long as the text is an exact case sensitive match to the data record. What I

Re: JSTL/JSP/regexp Question

2004-12-01 Thread Jack Lauman
done for you. -Tim Jack Lauman wrote: Tim: This app is deployed with JBoss 3.2.7RC1/Tomcat 5.0.28. The JDK is 1.4.2_06. The custom tag libraries were developed using JSTL 1.0. I'm not sure how to convert them. Can you use a 1.0 tag in 1.1? Below is an example of an SMTP mail tag the I'm using

Filter Problem

2004-11-23 Thread Jack Lauman
I have an access control filter that is supposed to grant all access to users wirh the role of 'admin' and limited access to those with the role of 'user. Specifically a 'user' can only manipulate the data that belongs to them. It uses 'contextPath.startsWith' and the users 'id' (int) from

Re: Filter Problem

2004-11-23 Thread Jack Lauman
is /cowbell.jsp. -Tim Jack Lauman wrote: I have an access control filter that is supposed to grant all access to users wirh the role of 'admin' and limited access to those with the role of 'user. Specifically a 'user' can only manipulate the data that belongs to them. It uses 'contextPath.startsWith

Re: Filter Problem

2004-11-23 Thread Jack Lauman
Tim: Thanks for your help. It's fixed. Jack Tim Funk wrote: You probably want to ignore context path. Its servletPath you really care about. -Tim Jack Lauman wrote: Can you append the two together to get the desired result? Jack Tim Funk wrote: getContextPath is the path name of the webapp

JavaScript/JSP Question

2004-11-23 Thread Jack Lauman
I'm using the following JavaScript to create lists of restaurants by Location and Cuisine. Is there a way to modify the script to accept a value for the restaurant name that would be similar to a %LIKE% function in MySQL when the user hits the submit button? Thanks, Jack script

error: duplicate local variable

2004-09-11 Thread Jack Lauman
I have the following piece of code that changes a password. Eclipse gives the following error message for line 11: duplicate local variable 'values' Any help would be appreciated. Thanks, Jack else if(pathInfo.equals(/changePassword)) { sql.setSqlValue(SELECT * FROM User WHERE UserID = ? AND

DataSource Question

2004-08-29 Thread Jack Lauman
I'm using the following code in a servlet to get a JDBC connection: Context ctx = new InitialContext(); DataSource ds = (DataSource) ctx.lookup(java:comp/env/jdbc/DBNameDS); Connection conn = ds.getConnection(); It works fine... but I would like to be able to substitute DBNameDS with the actual

Repost... no response from numerous posts

2004-06-11 Thread Jack Lauman
I've posted this same question on the apache and tomcat lists for the past six weeks and gotten no answers. Not even an insult saying the question was stupid. If I could find the answer in the docs I wouldn't be asking. I have virtual host in apache 2.0.49 with mod_jk2 its DocumentRoot is

Re: Repost... no response from numerous posts

2004-06-11 Thread Jack Lauman
-Original Message- From: Jack Lauman [mailto:[EMAIL PROTECTED] Sent: Friday, June 11, 2004 5:08 PM To: Tomcat Users List Subject: Repost... no response from numerous posts I've posted this same question on the apache and tomcat lists for the past six weeks and gotten no answers. Not even an insult

Re: Error using taglibs - unable to find setter

2004-05-25 Thread Jack Lauman
I have a similar problem with a simpler situation. I have a simple JSTL tag and bean that alternate the colors in a table. If delpoyed under JBoss 3.0.7 with Tomcat 4.1.24 it works. If I deploy it under JBoss 3.2.3RC2 with Tomcat 5.0.24 I get the same Unable to find setter method for

Re: JK2 uri context question

2004-05-18 Thread Jack Lauman
This doesn't... http://www.domain.com/members/minutes/index.jsp In mod_jk and webapp it was possible to do this. How can it be done using mod_jk2? Thanks, Jack Nikola Milutinovic wrote: Jack Lauman wrote: I have a site where users enter the members area through a URL like this: http://www.domain.com

JK2 uri context question

2004-05-17 Thread Jack Lauman
I have a site where users enter the members area through a URL like this: http://www.domain.com/members/minutes.jsp My workers2.properties file [uri:/minutes/*] group:ajp13:localhost:8009 How do you remap the members directory so that jk2 know that it point to a tomcat app called minutes in the

JK2 equivalent of JkMount

2004-05-17 Thread Jack Lauman
Is there a JK2 equivalent of JkMount? If there is what is the JK2 syntax for: JkMount /members/minutes/*.jsp worker1 Are there any docs or examples for this? Jack - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: where to define path to workers2.properties

2004-05-06 Thread Jack Lauman
This worked for me just subsitiute your path to workers2.properties JkSet config.file /usr/local/apache2/conf/workers2.properties Jack Stefan Burkard wrote: hi tomcat-users i have installed and running apache/tomcat/jk2 on a linux-box. in the meantime i updated apache and because i use a

Syntax Question

2004-03-01 Thread Jack Lauman
I want to add a variable to the web.xml file and be able to call in from within a servlet, taglib or bean. In a JSP 2.0 page using JSTL 1.1 I can use: %=application.getInitParameter(variable_name)% Can this be done? If so, what's the correct syntax to do it. Thanks, Jack

JSP Error

2004-02-28 Thread Jack Lauman
I'm trying to deploy a simple JSP(2.0) page with JSTL(1.1) core tags using Tomcat 5.0.19. The project was build using eclipse(2.1.2) and builds and deploys without errors. Any help resolving this problem would be appreciated. type Exception report message description The server encountered

Re: Access static content ...

2003-11-07 Thread Jack Lauman
I'm using JBoss with Tomcat 4.1.27. I manipulate the URL by adding param-values that are parts of the actual URL to the web.xml file I think this will work with a stand alone Tomcat. It looks like 'commons-sandbox' project 'chains' is similar. i.e. web-app context-param

mod_jk problem

2003-10-05 Thread Jack Lauman
I'm trying to get apache 2.0.47, mod_jk-cvs to work with tc-4.1.27. I can successfully load and execute the tc examples. I have 3 webapps that are for a single url ie: www.java.com They are all accessed from a subdirectory called members which has a simple .htaccess .htpasswd scheme. When I

Re: How To: JkSet, JkSet2 JkUriSet

2003-10-03 Thread Jack Lauman
. Thanks, Jack Bill Barker wrote: Doing the easy part only (mind you, I haven't tested this) JkSet server.root /usr/local/apache Jack Lauman [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Are there ary docs for JkSet, JkSet2 JkUriSet? Also is ther a way to override {$server.root

Re: How To: JkSet, JkSet2 JkUriSet

2003-10-03 Thread Jack Lauman
without any problems. I believe the problem with mod_jk2 is that it doesn't inform apache2 where it's config file is. Jack Jack Lauman wrote: I think this is part of the problem. My server root is: /usr/lib/apache2 with a sym link from /usr/lib/apache2/conf to the actual config dir at /etc

mod_jk2 config question

2003-10-03 Thread Jack Lauman
to be set? Any help would be appreciated. Jack Lauman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

How To: JkSet, JkSet2 JkUriSet

2003-10-02 Thread Jack Lauman
file in /etc/httpd/conf/workers2.properties Any help would be appreciated. Jack Lauman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Errors with mod_jk v1.2.4

2003-06-10 Thread Jack Lauman
Im getting the following errors with mod_jk v1.2.4, apache v2.0.46, JBoss v3.0.7, RedHat v9.0 with the latest patches and j2sdk1.4.1_03. Contrary to the messages in /var/log/httpd/mod_jk.log , mod_jk is actually working. I would apprecate any help on resolving this. Regards, Jack Lauman [Tue

Re: Java_Home

2003-03-13 Thread Jack Lauman
Sandra: Get the J2SDK not the J2SDKEE Set JAVA_HOME to C:\j2sdk1.4.1_02 or jdk1.3.1_07 Set J2EE_HOME to C:\j2sdkee1.3.1 (Not needed to run Tomcat) Set CATALINA_HOME to C:\jakarta-tomcat-4.1.18 (or whatever you run) Regards, Jack Lauman nwcascades.com Birch Bay, WA Hunter, Sandra wrote: I

Tomcat 4.0 CVS won't start...

2002-04-07 Thread Jack Lauman
I get the following error in catalina.out with todays build from the cvs. Tomcat will not start as a result of this error. Ran fine yesterday. Would appreciate any suggestions on how to resolve it. Regards, Jack log4j:ERROR No appenders could be found for category

standardContext.namingInitFailed

2002-02-06 Thread Jack Lauman
I'm getting the following error in my log files after each webapp is loaded: StandardContext[/soap]: Cannot find message associated with key standardContext.namingInitFailed I assume this has something to do with JNDI... how can I fix it? Jack -- To unsubscribe: mailto:[EMAIL PROTECTED] For

Tomcat fails to start...

2001-12-25 Thread Jack Lauman
Tomcat 4.x (CVS 12-25-2001) fails to start. I'm using the following configuration: RedHat 7.0 (glibc 2.2.4-18.7.0.3) jdk1.3.1_02 commons-utils-1.1 commons-collections-1.0 commons-digester-1.1.1 commons-dbcp-20011222 commons-modeler-20011222 commons-pool-20011222 crimson-1.1.3 xerces-1.4.4 I

Re: Jikes Config and Tomcat 4.0

2001-12-10 Thread Jack Lauman
I asked the same question about 2 weeks ago and never got a response. The docs in web.xml are pretty vague, maybe a commented out example could be added the distributions web.xml to reduce the confusion. Regards, Jack Jakob Lemler wrote: Hi all, tried to install Jikes 1.15 and Tomcat

WEB.XML Syntax for using Jikes in TC-4.1-DEV

2001-11-29 Thread Jack Lauman
What is the correct syntax for setting Jikes as the default JSP compiler in Tomcat 4.1-DEV. (I'm cvs sources). I've tried adding the following initialization parameters, Tomcat starts and loads without errors but it doesn't seen to be using Jikes. servlet servlet-namejsp/servlet-name

Re: Urgent: Tomcat-3.2.3 doesn't compile pages jsp

2001-10-04 Thread Jack Lauman
Try the following, your're 'server-info' report does not indicate that mod_jk is configured: Make sure you have something like the following the Apache httpd.conf file: Include /usr/java/tomcat/conf/mod_jk-auto.conf JkWorkersFile /usr/java/tomcat/conf/workers.properties JkLogFile

Re: mod_webapp errors....

2001-08-31 Thread Jack Lauman
or you're using a RPM? Pier Jack Lauman [EMAIL PROTECTED] wrote: Apache 1.3.20, php 4.05, mod_perl 1.26, etc are all on the system. They and other thing also compile and execute just fine. I just don't have a clue whats causing this. Jack Roberto B. wrote: To compile

Re: mod_webapp errors....

2001-08-30 Thread Jack Lauman
in to your system APX ( Apache webserver development kit ), libtool v1.3.3 or newer and autoconf Roberto. - Original Message - From: Jack Lauman [EMAIL PROTECTED] To: Tomcat User List [EMAIL PROTECTED] Sent: Tuesday, August 28, 2001 2:16 AM Subject: mod_webapp errors

Re: mod_webapp errors....

2001-08-28 Thread Jack Lauman
), libtool v1.3.3 or newer and autoconf Roberto. - Original Message - From: Jack Lauman [EMAIL PROTECTED] To: Tomcat User List [EMAIL PROTECTED] Sent: Tuesday, August 28, 2001 2:16 AM Subject: mod_webapp errors I have been trying to compile mod_webapp from the cvs sources

mod_webapp errors....

2001-08-27 Thread Jack Lauman
-tc40b7/apache-1.3' make: *** [local-all] Error 2 Configuration: RedHat 7.0 on a P3 w/1Gb RAM GCC: 2.96 libtool: 1.3.5 automake 1.4 make: 3.79.1 bison: 1.28 JDK: 1.3.1 (Sun) I'd appreciate any help in resolving this. Thanks, Jack Lauman

[Fwd: Re: VOTE: HTML in Messages and politeness]

2001-07-29 Thread Jack Lauman
[X] +1 - Plain Text only. Strip HTML on the mailing list. I agree strip out the HTML. Original Message Subject: Re: VOTE: HTML in Messages and politeness On 29 Jul 2001 15:42:01 +0100, Pier P. Fumagalli wrote: One thing I can ask to you guys is, do you want me to strip

Re: PoolMan woes

2001-07-03 Thread Jack Lauman
Matt: I ran into the same problem several days ago. If I used the poolman.xml.example as poolman.xml... tomcat just plain died without warning. No errors, nothing. When I tried using the poolman.xml.template as poolman.xml... it worked flawlessly. Hope it helps, Jack Lauman Matt Barre

Re: openbsd and mod_jk.so build problem

2001-05-26 Thread Jack Lauman
I had the same problem with JDK1.3.1rc2... It's looking for jni.h and jni_md.h. I put them in /usr/include and the problem went away. Hope it helps, Jack joan wrote: hey, I tried to build mod_jk.so on openbsd but I failed... My environment is as follows: * OpenBSD 2.8 Current/ i386

Re: Cleaned virus file \' + userName + \');/EM/FONT/DIV DIVFONT face=Arial size=2That resultset would contain the first record.nbsp; But I can't seem to grab the data. Below is a sample of my code that I think pertains to my problem.nb

2001-05-15 Thread Jack Lauman
To all: You have my appologies... the damn thing was being configured when it received some questionable mail. It's been fixed. Regards, Jack Steve Downey wrote: Some HTML mail triggered the virus detection software on our mail system. The virus wall is set to return a message to the

mod_webapp configuration

2001-05-13 Thread Jack Lauman
Does anyone know the proper syntax for configuring mod_webapp in server.xml (tomcat 4.0dev5) and httpd.conf (apache 1.3.19)? The notes in server.xml referr to 'WebAppMount' which apparently doesn't exist. server-info provides the following: Module Name: mod_webapp.c Content handlers:

Re: Using SOAP on TOMCAT

2001-05-08 Thread Jack Lauman
It's looking for the IBM Bean Scripting Framework you can find it here: http://oss.software.ibm.com/developerworks/projects/bsf Jack Tommaso Righetti wrote: HI, I am finally able to deploy services. However, when I'm running the sample code which comes with the packet form apache (the

Compiling mod_webapp.c

2001-03-28 Thread Jack Lauman
I downloaded the tomcat v4.0 from CVS, how do I get the Apache module to compile under RedHat 7.0? Jack