RE: Tomcat - 4.1 - SSL redirect only works on ports 80 and 443

2004-11-11 Thread khanaz
Dave-
Please post the non-ssl and ssl connector fields from your server.xml file

Azam Khan

-Original Message-
From: David Austin [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 10, 2004 9:53 AM
To: [EMAIL PROTECTED]
Subject: Tomcat - 4.1 - SSL redirect only works on ports 80 and 443

Good Morning,
   This is my first post to this site, so please go easy on me...

I am running a tomcat 4.1 standalone server and I am trying to implement an
SSL connector.  I followed the instructions and was able to successfully get
it to work with one problem:  For some reason the redirect only works when i
set the non-SSL port to 80 and the SSL port to 443. When I try any other
ports (including the default ports 8080, and 8443), it fails to redirect. 

When I type https://localhost:8080 i get a page not found or other browser
error.  

When I change the ports to 80 and 443 respectively, and type in
https://localhost/  it works fine.

I am running Fedora linux

Any ideas?

Thanks,
Dave


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

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



RE: Problem Enabling SSL in Tomcat 4.1.27

2004-10-27 Thread khanaz
Mousami:
I have a similar issue before.  What I did to resolve it was go through the
DOS command prompt and rename mousami.keystore to just .keystore
(Windows Explorer can't do it)

I am not sure as to why it wouldn't take the full file name but the
.keystore worked for me.

Good luck!

Azam Khan


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 27, 2004 1:34 PM
To: [EMAIL PROTECTED]
Subject: Problem Enabling SSL in Tomcat 4.1.27 

Hi ,
I did the following steps to enable SSL in tomcat 4.1.27 ( with jdk 1.4.2)
1. uncommented the SSL Connector in the server.xml
!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=true 
   acceptCount=10 debug=0 scheme=https 
secure=true
  Factory 
className=org.apache.catalina.net.SSLServerSocketFactory
   clientAuth=false protocol=TLS 
 keystoreFile=C:\tomcat4.1.27\jakarta-tomcat-4.1.27\mousami.keystore 
   keystorePass=mm/
/Connector
2.  stored the keystore file in the directory mentioned.
3. started tomcat.
When I hit the url https://localhost:8443 , it seems like the browser is 
waiting. After waiting for sometime , it returns a page cannot be found 
error.
I dont see any error logs or any kind of exception , which can tell me 
what is going wrong.
Please help.
Thanks
Mousami Bhattacharya
The server.xml looks something like this :
Service className=org.apache.catalina.core.StandardService debug=0 
name=Tomcat-Standalone
Connector className=org.apache.coyote.tomcat4.CoyoteConnector 
acceptCount=100 
   bufferSize=2048 compression=off connectionLinger=-1 
connectionTimeout=2 
   connectionUploadTimeout=30 debug=0 
disableUploadTimeout=true 
   enableLookups=true maxKeepAliveRequests=100 maxProcessors=75 
   minProcessors=5 port=8080 
protocolHandlerClassName=org.apache.coyote.http11.Http11Protocol 
   proxyPort=0 redirectPort=8443 scheme=http secure=false 
serverSocketTimeout=0 
   tcpNoDelay=true useURIValidationHack=false
  Factory 
className=org.apache.catalina.net.DefaultServerSocketFactory/
/Connector
Connector className=org.apache.coyote.tomcat4.CoyoteConnector 
acceptCount=10 
   bufferSize=2048 compression=off connectionLinger=-1 
connectionTimeout=0 
   connectionUploadTimeout=30 debug=0 
disableUploadTimeout=false enableLookups=true 
   maxKeepAliveRequests=100 maxProcessors=75 minProcessors=5 
port=8009 
   protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler 
proxyPort=0 
   redirectPort=8443 scheme=http secure=false 
serverSocketTimeout=0 tcpNoDelay=true 
   useURIValidationHack=false
  Factory 
className=org.apache.catalina.net.DefaultServerSocketFactory/
/Connector
!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=true 
   acceptCount=10 debug=0 scheme=https 
secure=true
  Factory 
className=org.apache.catalina.net.SSLServerSocketFactory
   clientAuth=false protocol=TLS 
 keystoreFile=C:\tomcat4.1.27\jakarta-tomcat-4.1.27\mousami.keystore 
   keystorePass=mm/
/Connector
 


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



RE: Problem Enabling SSL in Tomcat 4.1.27

2004-10-27 Thread khanaz
Mousami:
There are two other differences I see between my configuration and yours..

1) my Factory classname is
org.apache.coyote.tomcat4.CoyoteServerSocketFactory not
org.apache.catalina.net.SSLServerSocketFactory 

2) my keystoreFile path uses FORWARD slashes instead of BACKSLASHES.  That
may be a potential parsing issue.  Try to change your path to BACKSLASHES
and see how it goes..

I have included my connector declaration below (ofcourse mine is listening
on 443 not 8443 which shouldn't affect anything):

Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=443 minProcessors=5 maxProcessors=75
   enableLookups=true
   acceptCount=100 debug=0 scheme=https secure=true
   useURIValidationHack=false disableUploadTimeout=true
  Factory
className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
   clientAuth=false protocol=TLS
keystoreFile=webapps/ROOT/WEB-INF/keystore/.keystore /
/Connector

Azam Khan


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 27, 2004 2:01 PM
To: Tomcat Users List
Subject: RE: Problem Enabling SSL in Tomcat 4.1.27

Thanks Azam,
I tried your solution. But unfortunately , its still not working for me. I 
even put the .keystore file in the default user home directory. 
Is there some way to debug this issue ? 
Here's my tomcat server log ,
Oct 27, 2004 1:58:09 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Oct 27, 2004 1:58:10 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8443
Oct 27, 2004 1:58:19 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
Oct 27, 2004 1:58:19 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Oct 27, 2004 1:58:19 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=21/50 
config=C:\tomcat4.1.27\jakarta-tomcat-4.1.27\conf\jk2.properties
Oct 27, 2004 1:58:19 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8443
[EMAIL PROTECTED] 
10/27/2004 01:39 PM
Please respond to
Tomcat Users List [EMAIL PROTECTED]
To
[EMAIL PROTECTED]
cc
Subject
RE: Problem Enabling SSL in Tomcat 4.1.27
Mousami:
I have a similar issue before.  What I did to resolve it was go through 
the
DOS command prompt and rename mousami.keystore to just .keystore
(Windows Explorer can't do it)
I am not sure as to why it wouldn't take the full file name but the
.keystore worked for me.
Good luck!
Azam Khan
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 27, 2004 1:34 PM
To: [EMAIL PROTECTED]
Subject: Problem Enabling SSL in Tomcat 4.1.27 
Hi ,
I did the following steps to enable SSL in tomcat 4.1.27 ( with jdk 1.4.2)
1. uncommented the SSL Connector in the server.xml
!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=true 
   acceptCount=10 debug=0 scheme=https 
secure=true
  Factory 
className=org.apache.catalina.net.SSLServerSocketFactory
   clientAuth=false protocol=TLS 
 keystoreFile=C:\tomcat4.1.27\jakarta-tomcat-4.1.27\mousami.keystore 
   keystorePass=mm/
/Connector
2.  stored the keystore file in the directory mentioned.
3. started tomcat.
When I hit the url https://localhost:8443 , it seems like the browser is 
waiting. After waiting for sometime , it returns a page cannot be found 
error.
I dont see any error logs or any kind of exception , which can tell me 
what is going wrong.
Please help.
Thanks
Mousami Bhattacharya
The server.xml looks something like this :
Service className=org.apache.catalina.core.StandardService debug=0 
name=Tomcat-Standalone
Connector className=org.apache.coyote.tomcat4.CoyoteConnector 
acceptCount=100 
   bufferSize=2048 compression=off connectionLinger=-1 
connectionTimeout=2 
   connectionUploadTimeout=30 debug=0 
disableUploadTimeout=true 
   enableLookups=true maxKeepAliveRequests=100 maxProcessors=75 
   minProcessors=5 port=8080 
protocolHandlerClassName=org.apache.coyote.http11.Http11Protocol 
   proxyPort=0 redirectPort=8443 scheme=http secure=false 
serverSocketTimeout=0 
   tcpNoDelay=true useURIValidationHack=false
  Factory 
className=org.apache.catalina.net.DefaultServerSocketFactory/
/Connector
Connector className=org.apache.coyote.tomcat4.CoyoteConnector 
acceptCount=10 
   bufferSize=2048 compression=off connectionLinger=-1 
connectionTimeout=0 
   connectionUploadTimeout=30 debug=0 
disableUploadTimeout=false enableLookups=true 
   maxKeepAliveRequests=100 maxProcessors=75 minProcessors=5 
port=8009 
   

RE: Problem Enabling SSL in Tomcat 4.1.27

2004-10-27 Thread khanaz
Sorry I meant try changing your path to FORWARD slashes

Azam Khan


-Original Message-
From: Khan, Azam 
Sent: Wednesday, October 27, 2004 2:13 PM
To: [EMAIL PROTECTED]
Subject: RE: Problem Enabling SSL in Tomcat 4.1.27

Mousami:
There are two other differences I see between my configuration and yours..

1) my Factory classname is
org.apache.coyote.tomcat4.CoyoteServerSocketFactory not
org.apache.catalina.net.SSLServerSocketFactory 

2) my keystoreFile path uses FORWARD slashes instead of BACKSLASHES.  That
may be a potential parsing issue.  Try to change your path to BACKSLASHES
and see how it goes..

I have included my connector declaration below (ofcourse mine is listening
on 443 not 8443 which shouldn't affect anything):

Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=443 minProcessors=5 maxProcessors=75
   enableLookups=true
   acceptCount=100 debug=0 scheme=https secure=true
   useURIValidationHack=false disableUploadTimeout=true
  Factory
className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
   clientAuth=false protocol=TLS
keystoreFile=webapps/ROOT/WEB-INF/keystore/.keystore /
/Connector

Azam Khan


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 27, 2004 2:01 PM
To: Tomcat Users List
Subject: RE: Problem Enabling SSL in Tomcat 4.1.27

Thanks Azam,
I tried your solution. But unfortunately , its still not working for me. I 
even put the .keystore file in the default user home directory. 
Is there some way to debug this issue ? 
Here's my tomcat server log ,
Oct 27, 2004 1:58:09 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Oct 27, 2004 1:58:10 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8443
Oct 27, 2004 1:58:19 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
Oct 27, 2004 1:58:19 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Oct 27, 2004 1:58:19 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=21/50 
config=C:\tomcat4.1.27\jakarta-tomcat-4.1.27\conf\jk2.properties
Oct 27, 2004 1:58:19 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8443
[EMAIL PROTECTED] 
10/27/2004 01:39 PM
Please respond to
Tomcat Users List [EMAIL PROTECTED]
To
[EMAIL PROTECTED]
cc
Subject
RE: Problem Enabling SSL in Tomcat 4.1.27
Mousami:
I have a similar issue before.  What I did to resolve it was go through 
the
DOS command prompt and rename mousami.keystore to just .keystore
(Windows Explorer can't do it)
I am not sure as to why it wouldn't take the full file name but the
.keystore worked for me.
Good luck!
Azam Khan
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 27, 2004 1:34 PM
To: [EMAIL PROTECTED]
Subject: Problem Enabling SSL in Tomcat 4.1.27 
Hi ,
I did the following steps to enable SSL in tomcat 4.1.27 ( with jdk 1.4.2)
1. uncommented the SSL Connector in the server.xml
!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=true 
   acceptCount=10 debug=0 scheme=https 
secure=true
  Factory 
className=org.apache.catalina.net.SSLServerSocketFactory
   clientAuth=false protocol=TLS 
 keystoreFile=C:\tomcat4.1.27\jakarta-tomcat-4.1.27\mousami.keystore 
   keystorePass=mm/
/Connector
2.  stored the keystore file in the directory mentioned.
3. started tomcat.
When I hit the url https://localhost:8443 , it seems like the browser is 
waiting. After waiting for sometime , it returns a page cannot be found 
error.
I dont see any error logs or any kind of exception , which can tell me 
what is going wrong.
Please help.
Thanks
Mousami Bhattacharya
The server.xml looks something like this :
Service className=org.apache.catalina.core.StandardService debug=0 
name=Tomcat-Standalone
Connector className=org.apache.coyote.tomcat4.CoyoteConnector 
acceptCount=100 
   bufferSize=2048 compression=off connectionLinger=-1 
connectionTimeout=2 
   connectionUploadTimeout=30 debug=0 
disableUploadTimeout=true 
   enableLookups=true maxKeepAliveRequests=100 maxProcessors=75 
   minProcessors=5 port=8080 
protocolHandlerClassName=org.apache.coyote.http11.Http11Protocol 
   proxyPort=0 redirectPort=8443 scheme=http secure=false 
serverSocketTimeout=0 
   tcpNoDelay=true useURIValidationHack=false
  Factory 
className=org.apache.catalina.net.DefaultServerSocketFactory/
/Connector
Connector className=org.apache.coyote.tomcat4.CoyoteConnector 
acceptCount=10 
   bufferSize=2048 compression=off 

RE: Problem Enabling SSL in Tomcat 4.1.27

2004-10-27 Thread khanaz
No problem Mousami.. I'm glad you are up and running.

Thanks,
 
Azam Khan
Network Data Support Center
Verizon Wireless
866-222-7114
http://ndsc.eng.vzwcorp.com

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 27, 2004 2:37 PM
To: Tomcat Users List
Subject: RE: Problem Enabling SSL in Tomcat 4.1.27

It Works :)) thanks a ton Azam,
changing the path and the className did the trick.
My SSL Connector now looks like this.
!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=true 
   acceptCount=10 debug=0 scheme=https secure=true
   useURIValidationHack=false 
disableUploadTimeout=true
  Factory 
className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
 keystoreFile=C:/tomcat4.1.27/jakarta-tomcat-4.1.27/.keystore 
   keystorePass=changeit
   clientAuth=false protocol=TLS/
/Connector
Thanks
Mousami Bhattacharya
[EMAIL PROTECTED] 
10/27/2004 02:13 PM
Please respond to
Tomcat Users List [EMAIL PROTECTED]
To
[EMAIL PROTECTED]
cc
Subject
RE: Problem Enabling SSL in Tomcat 4.1.27
Mousami:
There are two other differences I see between my configuration and yours..
1) my Factory classname is
org.apache.coyote.tomcat4.CoyoteServerSocketFactory not
org.apache.catalina.net.SSLServerSocketFactory 
2) my keystoreFile path uses FORWARD slashes instead of BACKSLASHES.  That
may be a potential parsing issue.  Try to change your path to BACKSLASHES
and see how it goes..
I have included my connector declaration below (ofcourse mine is listening
on 443 not 8443 which shouldn't affect anything):
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=443 minProcessors=5 maxProcessors=75
   enableLookups=true
acceptCount=100 debug=0 scheme=https 
secure=true
   useURIValidationHack=false disableUploadTimeout=true
  Factory
className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
   clientAuth=false protocol=TLS
keystoreFile=webapps/ROOT/WEB-INF/keystore/.keystore /
/Connector
Azam Khan
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 27, 2004 2:01 PM
To: Tomcat Users List
Subject: RE: Problem Enabling SSL in Tomcat 4.1.27
Thanks Azam,
I tried your solution. But unfortunately , its still not working for me. I 
even put the .keystore file in the default user home directory. 
Is there some way to debug this issue ? 
Here's my tomcat server log ,
Oct 27, 2004 1:58:09 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Oct 27, 2004 1:58:10 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8443
Oct 27, 2004 1:58:19 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
Oct 27, 2004 1:58:19 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Oct 27, 2004 1:58:19 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=21/50 
config=C:\tomcat4.1.27\jakarta-tomcat-4.1.27\conf\jk2.properties
Oct 27, 2004 1:58:19 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8443
[EMAIL PROTECTED] 
10/27/2004 01:39 PM
Please respond to
Tomcat Users List [EMAIL PROTECTED]
To
[EMAIL PROTECTED]
cc
Subject
RE: Problem Enabling SSL in Tomcat 4.1.27
Mousami:
I have a similar issue before.  What I did to resolve it was go through 
the
DOS command prompt and rename mousami.keystore to just .keystore
(Windows Explorer can't do it)
I am not sure as to why it wouldn't take the full file name but the
.keystore worked for me.
Good luck!
Azam Khan
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 27, 2004 1:34 PM
To: [EMAIL PROTECTED]
Subject: Problem Enabling SSL in Tomcat 4.1.27 
Hi ,
I did the following steps to enable SSL in tomcat 4.1.27 ( with jdk 1.4.2)
1. uncommented the SSL Connector in the server.xml
!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=true 
   acceptCount=10 debug=0 scheme=https 
secure=true
  Factory 
className=org.apache.catalina.net.SSLServerSocketFactory
   clientAuth=false protocol=TLS 
 keystoreFile=C:\tomcat4.1.27\jakarta-tomcat-4.1.27\mousami.keystore 
   keystorePass=mm/
/Connector
2.  stored the keystore file in the directory mentioned.
3. started tomcat.
When I hit the url https://localhost:8443 , it seems like the browser is 
waiting. After waiting for sometime , it returns a 

RE: Tomcat, JNDI, Active Directory

2004-10-15 Thread khanaz
Hey Ron-

I recently built a web interface for users to reset their own AD passwords.
I am using Novell's libraries to connect to AD LDAP.

I have included Novell's sample GetAuthenticated.java code that shows a
few different says of Binding to an LDAP database. 

You can download the libraries right off their site.

Works great for me!

Good Luck,

Azam Khan

-- BEGIN GetAuthenticated.java --
/***

 * $Novell: GetAuthenticated.java,v 1.13 2002/07/29 21:17:42 $
 * Copyright (c) 2000 Novell, Inc. All Rights Reserved.
 *
 * THIS WORK IS SUBJECT TO U.S. AND INTERNATIONAL COPYRIGHT LAWS AND
 * TREATIES. USE AND REDISTRIBUTION OF THIS WORK IS SUBJECT TO THE LICENSE
 * AGREEMENT ACCOMPANYING THE SOFTWARE DEVELOPMENT KIT (SDK) THAT CONTAINS
 * THIS WORK. PURSUANT TO THE SDK LICENSE AGREEMENT, NOVELL HEREBY GRANTS TO
 * DEVELOPER A ROYALTY-FREE, NON-EXCLUSIVE LICENSE TO INCLUDE NOVELL'S
SAMPLE
 * CODE IN ITS PRODUCT. NOVELL GRANTS DEVELOPER WORLDWIDE DISTRIBUTION
RIGHTS
 * TO MARKET, DISTRIBUTE, OR SELL NOVELL'S SAMPLE CODE AS A COMPONENT OF
 * DEVELOPER'S PRODUCTS. NOVELL SHALL HAVE NO OBLIGATIONS TO DEVELOPER OR
 * DEVELOPER'S CUSTOMERS WITH RESPECT TO THIS CODE.
 *
 * $name: GetAuthenticated.java 
 * $description:  GetAuthenticated shows different kinds of bind.
 *   -- anonymous bind 
 *   -- simple bind
 *   -- simple bind with connection method
 *   -- SSL bind
 

**/
import java.io.UnsupportedEncodingException;
import com.novell.ldap.LDAPConnection;
import com.novell.ldap.LDAPException;
import com.novell.ldap.LDAPJSSESecureSocketFactory;

public class GetAuthenticated
{
public static void main( String[] args ) {
if (args.length != 3) {
usage();
System.exit(1);
}

int ldapVersion   = LDAPConnection.LDAP_V3;
int ldapPort  = LDAPConnection.DEFAULT_PORT;
int ldapSSLPort   = LDAPConnection.DEFAULT_SSL_PORT;
String ldapHost   = args[0];
String loginDN= args[1];
String password   = args[2];
LDAPConnection conn = new LDAPConnection();

anonymousBind( conn, ldapHost, ldapPort );

simpleBind1( conn, ldapHost, ldapPort, loginDN, password );

simpleBind2( ldapVersion, conn, ldapHost, ldapPort, loginDN,
password );

/* A JSSE Security provider must be manually configured in
   security.properties, or do something like the following to
   dynamically set a provider.
*/
java.security.Security.addProvider(
new com.sun.net.ssl.internal.ssl.Provider());

/* The property javax.net.ssl.trustStore must be set to the path
of a
   keystore that holds the certificate of the server
*/
SSLBind( ldapVersion, ldapHost, ldapSSLPort, loginDN, password );

System.exit(0);

}

private static void usage() {
System.err.println(
  Usage:   java GetAuthenticated host Name login dn
password);
System.err.println(
  Example: java GetAuthenticated Acme.com \cn=admin,o=Acme\
secret);
System.err.println(
  To set the keystore for JSSE:  +
  java -Djavax.net.ssl.trustStore=/path/keystoreName.keystore
...);
}

private static void anonymousBind( LDAPConnection conn, String host,
 int port ) {
try {
System.out.println(\nanonymous bind...);
// connect to the server
conn.connect( host, port );

System.out.println((conn.isBound()) ?
\n\tAuthenticated to the server\n:
\n\tAnonymous bind to the server\n);
 
// disconnect with the server
conn.disconnect();
}
catch( LDAPException e ) {
System.out.println( Error:  + e.toString() );
}
return;
}

private static void simpleBind1(LDAPConnection conn, String host,
int port, String dn, String passwd ) {
try {
System.out.println(Simple bind...);
// connect to the server
conn.connect( host, port );
// authenticate to the server
try {
conn.bind( LDAPConnection.LDAP_V3, dn,
passwd.getBytes(UTF8) );
} catch (UnsupportedEncodingException u){
throw new LDAPException( UTF8 Invalid Encoding,
 LDAPException.LOCAL_ERROR,
 (String)null, u);
}

System.out.println((conn.isBound()) ?
\n\tAuthenticated to the server ( simple )\n:
\n\tNot authenticated to the server\n);

// disconnect with the server

Repost: Hiding welcome page

2004-10-12 Thread khanaz
Assuming my site is http://www.mysite.com/ http://www.mysite.com/ ,
whenever I go to the site, I see http://www.mysite.com/index.jsp
http://www.mysite.com/index.jsp . How do I enable tomcat 4.1 (preferably)
or 5 to hide the index.jsp portion of the URL so all I see is
http://www.mysite.com http://www.mysite.com/ ? I have been unable to find
a solution to this problem.

 

Azam Khan

 

 



RE: Tomcat 4 as an NT Service

2004-10-11 Thread khanaz
Hello Chris:
If you don't mind me asking, what args do you need to pass to enable SSL? My
implementation of SSL is all done through my {CATALINA_HOME}\conf\server.xml
file... 

In either case, if you wish to pass arguments to the Apache Tomcat service,
just go into computer management (right click my computer, properties) and
then scroll down to services, double click the Apache Tomcat service and you
can specify Start parameters towards the bottom of that dialog window.

Good luck

Azam Khan

-Original Message-
From: Hubble, Christopher [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 11, 2004 10:54 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 4 as an NT Service

I'm trying to install tomcat 4 as a service.  I can't use the exe as I need
to pass in jvm args for SSL.  I've tried multiple different args to
tomcat.exe.  I've seen several posts mentioning that the jvm's are
different.  I tried the one in java_home\jre\bin\server and the one in
client.  They both install without any errors, but when I go to start the
service, it tells me that it couldn't start and there was no error.  I tried
installing the service with the jvm.dll in program
files\java\j2re1.4.2_03\bin\client, and when I first started it, there was
no error, but it immediately stopped.  I then started it again and it gave
me the followingError 1607: The process terminated unexpectedly  Any help
would be appreciated.

Chris

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

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



RE: Tomcat 4 as an NT Service

2004-10-11 Thread khanaz
I see.. Why don't you try to modify the registry key directly.

Head over to HKLM\SYSTEM\CurrentControlSet\Services\[your tomcat service]\

Look for the ImagePath key.. You should be able to update that value to
whatever you want.

Thanks,
 
Azam Khan
Network Data Support Center
Verizon Wireless
866-222-7114
http://ndsc.eng.vzwcorp.com

-Original Message-
From: Hubble, Christopher [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 11, 2004 11:11 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4 as an NT Service

I'm doing client auth and need to provide the server with a truststore.

Your method only works for one initial run of tomcat.  As soon as you stop
the service, the parameter goes away, and upon starting again, it's back to
the default.

Chris

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Monday, October 11, 2004 11:16 AM
To: [EMAIL PROTECTED]
Subject: RE: Tomcat 4 as an NT Service


Hello Chris:
If you don't mind me asking, what args do you need to pass to enable SSL? My
implementation of SSL is all done through my {CATALINA_HOME}\conf\server.xml
file... 

In either case, if you wish to pass arguments to the Apache Tomcat service,
just go into computer management (right click my computer, properties) and
then scroll down to services, double click the Apache Tomcat service and you
can specify Start parameters towards the bottom of that dialog window.

Good luck

Azam Khan

-Original Message-
From: Hubble, Christopher [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 11, 2004 10:54 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 4 as an NT Service

I'm trying to install tomcat 4 as a service.  I can't use the exe as I need
to pass in jvm args for SSL.  I've tried multiple different args to
tomcat.exe.  I've seen several posts mentioning that the jvm's are
different.  I tried the one in java_home\jre\bin\server and the one in
client.  They both install without any errors, but when I go to start the
service, it tells me that it couldn't start and there was no error.  I tried
installing the service with the jvm.dll in program
files\java\j2re1.4.2_03\bin\client, and when I first started it, there was
no error, but it immediately stopped.  I then started it again and it gave
me the followingError 1607: The process terminated unexpectedly  Any help
would be appreciated.

Chris

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

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

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

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



RE: Multiple arguments in a GET URL

2004-10-03 Thread khanaz
Eric:
You're right, someone could spend a while constructing a URL to use up a lot
of memory.. I will go and hard code the index.jsp page to not allow
index.jsp to be an argument of mainFrame.. That should solve the nested
frameset issue. Anything else I should have accounted for before using this
strategy?

Thanks,
 
Azam Khan

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 01, 2004 5:18 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Multiple arguments in a GET URL

On Fri, Oct 01, 2004 at 04:51:47PM -0400, [EMAIL PROTECTED]
wrote:
 For example, my index.jsp is the frameset that takes an argument
mainFrame
 specifying the JSP/HTML to use as the center frame of the frameset.
 
 So for example I would have
 http://ndsc.eng.vzwcorp.com/index.jsp?mainFrame=blahblah.jsp

A word of caution:
What you're doing seems like a great way to allow anyone to crash
your app, or at least use up a lot of memory.  Think what happens if
someone sends you a url that looks like this:

http://ndsc.eng.vzwcorp.com/index.jsp?mainFrame=index.jsp

eric


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

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



RE: Multiple arguments in a GET URL

2004-10-03 Thread khanaz
Eric:
Thanks for your help.  Now that I think about it, it appears that is what is
happening.  I will modify the code tomorrow morning to pass the second
ampersand as an ASCII value. 

Thanks everyone for your input on this !!



Thanks,
 
Azam Khan
Network Data Support Center
Verizon Wireless
866-222-7114
http://ndsc.eng.vzwcorp.com

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 01, 2004 7:59 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Multiple arguments in a GET URL

On Fri, Oct 01, 2004 at 05:10:22PM -0400, [EMAIL PROTECTED]
wrote:
 it sees hello as expected
 
 -Original Message-
 From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 

http://ndsc.eng.vzwcorp.com/index.jsp?mainFrame=blahblah.jsp?arg1=helloarg2
 =helloagain
  
  In this scenario, I am able to perform a request.getParameter 
  on arg1 in blahblah.jsp but when I try to do it on arg2, I 
  receive a null pointer exception.
 
 For curiosity's sake, what value does blahblah.jsp see for arg1?

Oh, I bet I know what you're doing.  In index.jsp you're probably
using
the value of mainFrame directly as the url to load in the frame.  But the
value of the mainFrame arg is blahblah.jsp?arg1=hello, not just plain
blahblah.jsp.  That's why you can get arg1.  arg2 is just another
parameter being passed to index.jsp.
You need to either escape those 's so the whole thing after 
mainFrame= is the value of mainFrame, or index.jsp needs to explicitly
append any of _it's_ args (i.e. mainFrame and arg2) to the frame url.
(or rather, any that you think should be passed on)

eric

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

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



RE: configure tomcat for default index

2004-10-01 Thread khanaz
Didik:
Tomcat, by default, sources the ROOT folder of your CATALINA_HOME\webapps..
if you would like to make modifications to your ROOT content as you are
trying to do, you can change the Context docBase in the server.xml file of
CATALINA_HOME\conf directory.

!-- Tomcat Root Context --
Context path=  docBase=[change this from ROOT to your folder]
debug=0 reloadable=true/

You may want to put this in your
CATALINA_HOME\webapps\yourwebapps\WEB-INF\web.xml file:
  welcome-file-list
  welcome-fileindex.jsp/welcome-file
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file

/welcome-file-list


This will tell tomcat to your source index.jsp first before index.html or
htm.  

Thanks,
 
Azam Khan
Network Data Support Center
Verizon Wireless
866-222-7114
http://ndsc.eng.vzwcorp.com

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 01, 2004 8:12 AM
To: Tomcat Users List
Subject: RE: configure tomcat for default index


Hi,
You need a Context with path=.  Not sure what this means?  RTFM and
search the archives of this list.


Yoav Shapira
Millennium Research Informatics


-Original Message-
From: didik [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 30, 2004 11:52 PM
To: [EMAIL PROTECTED]
Subject: configure tomcat for default index

Hi..
I'm new entry for this mailing list.

I have a case, I'd like to make my index.jsp page become default
hompage in
tomcat (i use Tomcat 5), I mean if we open http://localhost:8080, it
will
appear our index.jsp not welcome file in tomcat.How and what can we
configure tomcat.

please help me and thanks.

didik



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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

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



RE: Does anybody have a JSP/Servlet example on MS SQLServer JDBC Connectivity?

2004-10-01 Thread khanaz
import java.sql.*;
import java.util.*;

public class Untitled7
{
  public static void main(String args[])
  {
Connection db;

String DriverName = com.microsoft.jdbc.sqlserver.SQLServerDriver;

   String DBUrl =
jdbc:microsoft:sqlserver://host:port;user=[username];password=[password];
  

try
{
  // Initialize the JDBC driver
  Class.forName(DriverName);

  //System.out.println(Opening connection to database!);
  db = DriverManager.getConnection(DBUrl);
  if (db == null)
  {
System.out.println(Unable to open connection to database!);
  }
  else
  {
System.out.println(Successfully opened connection to database!);
  }
}
catch (Exception e)
{
// screwed :)
}

  } // end main method

} // end class
-- Azam Khan

-Original Message-
From: Venkat  Radha Venkataramanan [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 01, 2004 10:08 AM
To: 'Tomcat Users List'
Subject: Does anybody have a JSP/Servlet example on MS SQLServer JDBC
Connectivity?

Hello:
 
I am a newbie trying to learn Tomcat.
 
I was successful in creating my first HelloWorld servlet.
 
However, I am unable to make a MS SQL Server 2000 database connection. Does
anybody have a quick sample application/tutorial that walks one through the
required steps?
 
Thanks.
 
Venkat
 
 

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



RE: Tomcat Question - HELP

2004-10-01 Thread khanaz
With your tomcat PID destroyed, try telneting to your listener ip/port and
see if you can get a connection.. something else may be bound to your
ip/port that is keeping tomcat from starting..

Thanks,
 
Azam Khan

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 01, 2004 1:01 PM
To: Tomcat Users List
Subject: RE: Tomcat Question - HELP

I know all those. I already have our web engineer looked at it and he 
found nothing from the log so I wouldn't post the log.
I guess between you and my web engineer, I will trust his judgement.
I am hoping that somebody has seen something like this before and would 
share what they did. Have you?
That's one of the issues with open source as you already know. No support 
so sometimes you have to rely on
user forums for open source stuff.
Thanks anyway.
Daniel Salud
(310)665-6583
Gerardo Juarez [EMAIL PROTECTED]
10/01/2004 09:48 AM
Please respond to Tomcat Users List
 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:RE: Tomcat Question - HELP
I think a UNIX admin should know how hard it is to debug a problem when it
is not accompanied by any other information. A UNIX admin should also know 
that novice users normally don't see anything abnormal in the logs. They 
have to list the output of a program for you to notice something. Ninety 
percent of the time the assertion 'the log says nothing' is false. UNIX 
admins know that.
Please post the log and any information that may give us more context.
Gerardo
On Fri, 1 Oct 2004 [EMAIL PROTECTED] wrote:
 First of all, let me tell you that I am not a big fan of tomcat and 
second 
 if you just want to annoy me, don't even reply to my question.
 Be professional man. I am soliciting for clue on where else to look. I 
am 
 a Unix admin and not a an app admin. I also managed Weblogic and it's a 
 lot
 easier for me to debug.
 
 Thanks.
 Daniel Salud
 (310)665-6583
 
 
 
 
 Shapira, Yoav [EMAIL PROTECTED]
 10/01/2004 08:35 AM
 Please respond to Tomcat Users List
 
 
 To: Tomcat Users List [EMAIL PROTECTED]
 cc: 
 Subject:RE: Tomcat Question - HELP
 
 
 
 Hi,
 So something went wrong, you looked at the logs and didn't see anything
 to help you debug the problem, restarted the server, now it's all fine,
 and you expect someone else to have a clue as to what went wrong?  Come
 on ;)  Post the log if still have it, otherwise have a good weekend ;)
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, October 01, 2004 11:34 AM
 To: Tomcat Users List
 Subject: Re: Tomcat Question - HELP
 
 anybody ?
 
 Daniel Salud
 (310)665-6583
 - Forwarded by Daniel Salud/LA/SPE on 10/01/2004 08:32 AM -
 
 
 Rick Moen [EMAIL PROTECTED]
 09/30/2004 07:15 PM
 
 
 To: [EMAIL PROTECTED]
 cc:
 Subject:Re: Tomcat Question - HELP
 
 
 Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]):
 
  I have a tomcat question:
 
  I killed the tomcat PID and restarted it using my start up script on
  /etc/rc2.d (Unix - Sun). I saw a new PID after I restarted it but it
 won't
  open the
  jsp page and I cannot to my servlets. I was getting Internal Server
 error.
  It appears that Tomcat did not actually start.I looked at the
 Catalina
 out
  logs
  but nothing much there to tell what was the issue.
 
  I have to reboot the server to clear tomcat and it started just fine
 after
  reboot.
 
  Any ideas what cause it not to restart ?
 
  Daniel Salud
  (310)665-6583
 
 
 
 Thanks for your mail about How to Ask Questions the Smart Way.
 As a reminder, that essay suggests (generic) ways to ensure
 you're asking technical questions in the right way, in the right place.
 
 People write back for one of two _very_ different reasons:
 
 o  Good reason:  Sending feedback/suggestions to help improve the
 essay.
 o  VERY BAD reason:  Asking essay co-author Rick Moen for technical
 help.
 
 Guess what?  99% of such mails are for the VERY BAD type of reason.
 If you're about to do that, STOP.  Do something else.  Anything.
 Don't act like a moron:  Rick Moen is _not_ your personal, private
 helpdesk.
 
 The other 1% of you who want to discuss ways to improve How to Ask
 Questions
 the Smart Way, thank you!  Please reach Rick at [EMAIL PROTECTED].
 
 
 This is an automated e-mail.  (Your mail has not reached a human.)
 
 Thanks! Mr. Autoresponder
 
 
 
 
 This e-mail, including any attachments, is a confidential business 
 communication, and may contain information that is confidential, 
 proprietary and/or privileged.  This e-mail is intended only for the 
 individual(s) to whom it is addressed, and may not be saved, copied, 
 printed, disclosed or used by anyone else.  If you are not the(an) 
 intended recipient, please immediately delete this e-mail from your 
 computer system and notify the sender.  Thank you.
 
 
 

Multiple arguments in a GET URL

2004-10-01 Thread khanaz
I am attempting to redirect to a URL that is similar to the following

 

http://www.mysite.com/index.jsp?mainFrame=somePage.jsp?item1=info1
http://www.mysite.com/index.jsp?mainFrame=somePage.jsp?item1=info1item2=in
fo2 item2=info2

 

However, I can only do a request.getParameter on item1 in the somePage.jsp
JSP.  When I attempt to do it for item2, it fails..

 

Any ideas? Workarounds?

 

Azam Khan

 

 



RE: Multiple arguments in a GET URL

2004-10-01 Thread khanaz
Yea.. it's a null string.. I have a feeling it is passing item2 into the
index.jsp instead of the somePage.jsp .. I guess will try to retrieve item2
in index.jsp and see if it works

Thanks,
 
Azam Khan
Network Data Support Center
Verizon Wireless
866-222-7114
http://ndsc.eng.vzwcorp.com

-Original Message-
From: Gerardo Juarez [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 01, 2004 2:10 PM
To: Tomcat Users List
Subject: Re: Multiple arguments in a GET URL


getParameter should work for all parameters. Your url is not correct or it 
is extremely long and blows up with the GET method. But that is highly 
unlikely. 

How does it fail? Do you obtain an error? Is it a null String?

Gerardo

On Fri, 1 Oct 2004 [EMAIL PROTECTED] wrote:

 I am attempting to redirect to a URL that is similar to the following
 
  
 
 http://www.mysite.com/index.jsp?mainFrame=somePage.jsp?item1=info1

http://www.mysite.com/index.jsp?mainFrame=somePage.jsp?item1=info1item2=in
 fo2 item2=info2
 
  
 
 However, I can only do a request.getParameter on item1 in the somePage.jsp
 JSP.  When I attempt to do it for item2, it fails..
 
  
 
 Any ideas? Workarounds?
 
  
 
 Azam Khan
 
  
 
  
 
 


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

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



RE: Multiple arguments in a GET URL

2004-10-01 Thread khanaz
Yoav-
I understand that an ? indicates the beginning of a query string but with my
scenario it is exactly how I want it. 

For example, my index.jsp is the frameset that takes an argument mainFrame
specifying the JSP/HTML to use as the center frame of the frameset.

So for example I would have
http://ndsc.eng.vzwcorp.com/index.jsp?mainFrame=blahblah.jsp

So now, assuming that the mainFrame is set to blahblah.jsp, I need to pass
additional arguments to blahblah.jsp leading to the second ? in the URL.

http://ndsc.eng.vzwcorp.com/index.jsp?mainFrame=blahblah.jsp?arg1=helloarg2
=helloagain

In this scenario, I am able to perform a request.getParameter on arg1 in
blahblah.jsp but when I try to do it on arg2, I receive a null pointer
exception.

Any ideas?

Thanks,
 
Azam Khan
Network Data Support Center
Verizon Wireless
866-222-7114
http://ndsc.eng.vzwcorp.com

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 01, 2004 2:50 PM
To: Tomcat Users List
Subject: RE: Multiple arguments in a GET URL


Hi,

Be careful with your syntax, use ?param1=param1param2=param2, not
?param1=param1?param2=param2.  The ? indicates the beginning of the
query string and is expected once per URL,  is a parameter separator in
the query string is can be there zero or more times.


Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Ben Souther [mailto:[EMAIL PROTECTED]
Sent: Friday, October 01, 2004 2:23 PM
To: Tomcat Users List
Subject: RE: Multiple arguments in a GET URL

http://www.mysite.com/index.jsp?mainFrame=somePage.jsp?item1=info1ite
m2=i
nfo2item2=info2


That's your url?



On Fri, 2004-10-01 at 14:14, [EMAIL PROTECTED] wrote:
 Yea.. it's a null string.. I have a feeling it is passing item2 into
the
 index.jsp instead of the somePage.jsp .. I guess will try to retrieve
item2
 in index.jsp and see if it works

 Thanks,

 Azam Khan
 Network Data Support Center
 Verizon Wireless
 866-222-7114
 http://ndsc.eng.vzwcorp.com

 -Original Message-
 From: Gerardo Juarez [mailto:[EMAIL PROTECTED]
 Sent: Friday, October 01, 2004 2:10 PM
 To: Tomcat Users List
 Subject: Re: Multiple arguments in a GET URL


 getParameter should work for all parameters. Your url is not correct
or
it
 is extremely long and blows up with the GET method. But that is
highly
 unlikely.

 How does it fail? Do you obtain an error? Is it a null String?

 Gerardo

 On Fri, 1 Oct 2004 [EMAIL PROTECTED] wrote:

  I am attempting to redirect to a URL that is similar to the
following
 
 
 
  http://www.mysite.com/index.jsp?mainFrame=somePage.jsp?item1=info1
 

http://www.mysite.com/index.jsp?mainFrame=somePage.jsp?item1=info1ite
m2=i
n
  fo2 item2=info2
 
 
 
  However, I can only do a request.getParameter on item1 in the
somePage.jsp
  JSP.  When I attempt to do it for item2, it fails..
 
 
 
  Any ideas? Workarounds?
 
 
 
  Azam Khan
 
 
 
 
 
 


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

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




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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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

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



RE: Multiple arguments in a GET URL

2004-10-01 Thread khanaz
it sees hello as expected

Thanks,
 
Azam Khan
Network Data Support Center
Verizon Wireless
866-222-7114
http://ndsc.eng.vzwcorp.com

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 01, 2004 5:05 PM
To: Tomcat Users List
Subject: RE: Multiple arguments in a GET URL

 From: [EMAIL PROTECTED]
 Subject: RE: Multiple arguments in a GET URL


http://ndsc.eng.vzwcorp.com/index.jsp?mainFrame=blahblah.jsp?arg1=helloarg2
=helloagain
 
 In this scenario, I am able to perform a request.getParameter 
 on arg1 in blahblah.jsp but when I try to do it on arg2, I 
 receive a null pointer exception.

For curiosity's sake, what value does blahblah.jsp see for arg1?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.

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

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



hiding the welcome file

2004-09-30 Thread khanaz
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 destryong the rest of my web app? I know that the Jakarta folks do
it in the example web application they include with their binary distro.
Has anyone figured out how to do it for our webapp?

 

Let me know

 

Thanks,

 

Azam Khan