Retrieving username and password from url??
Hi, Is there a way that I can retrieve the username and password from the url given as below using a servlet. https://username:password@hostname/servletname/servlet Regards, Abhishek -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Retrieving username and password from url??
I think my question was a little unclear, I mean I'm accessing a servlet from the web using this URL, and on tomcat side, is there a method exposed by Httpservlet or any alternative which returns me the username and password send by the browser like we have the getParameters() to get the parameters from the url. regards, Abhishek -Original Message- From: Peng Tuck Kwok [mailto:[EMAIL PROTECTED]] Sent: Monday, December 02, 2002 2:15 PM To: Tomcat Users List Subject: Re: Retrieving username and password from url?? You could use a regular expression to get the items you want or Tokenize the string until you get what you want. There are several regular expression packages that you can use, which is available under the jakarta project or if you are so inclined you can use the one that comes with jdk1.4 Abhishek Srivastava wrote: Hi, Is there a way that I can retrieve the username and password from the url given as below using a servlet. https://username:password@hostname/servletname/servlet Regards, Abhishek -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 4.0.3 and IIS Strange Problem
Hello All, I am using Tomcat 4.0.3 integrated with IIS. I am very happily working with a HTML brower for so long without any problem. Now If I use a PDA simulator browser (Microsoft Pocket PC SDK 2002) then tomcat throws the following error. java.lang.NumberFormatException at org.apache.tomcat.util.buf.Ascii.parseInt(Ascii.java:188) at org.apache.tomcat.util.buf.ByteChunk.getInt(ByteChunk.java:439) at org.apache.tomcat.util.buf.MessageBytes.getInt(MessageBytes.java:577) at org.apache.ajp.Ajp13.decodeRequest(Ajp13.java:393) at org.apache.ajp.Ajp13.receiveNextRequest(Ajp13.java:309) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:339) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:424) at java.lang.Thread.run(Thread.java:479) If I deploy my application on Weblogic and IIS combination everything works fine (pc and pda browser). Why is tomcat throwing exception. Please help me as doing development on weblogic kills my machine. tomcat is nice because its much lightweight. help help. regards, Abhishek. _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
mod_jk.so for the new tomcat!
Hello All, I have downloaded the new tomcat 4.0.4 today. I also downloaded the source for the jakarta-tomcat-connectors-4.0.4-src ... when I run ant the build says build successfull. but there is no mod_jk.so to be found. I also went in a directory called native and ran the ant from there but this time I got some wierd JNI errors for C files. this is the place where I am stuck. As far as I know, if the mod_jk.so file is not there then apache will not talk to tomcat! Also, the how-to documentation on the apache site for mod_jk file mentions two enteries for server.xml (for apache tomcat auto-config) AutoWebApp dir=webapps host=DEFAULT / ApacheConfig confighome=/home/mydir / But I am not clear as to where should I add these in the server.xml file (under which element). Thank you for your help. Please do reply to me. regards, Abhishek. PS: If someone has already succeeded in building the binaries of mod_jk for LINUX 7.3 platform, then please send it to me. _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Connection pooling doesn't work for me ... Help !!
Hello everyone, I read the tomcat jndi how to manual. searched the mailing list archive. and did everything which has made other happily get a connection from the jndi of the pool but I just can't do it. DataSource ds = (javax.sql.DataSource) initCtx.lookup(java:comp/env/jdbc/MPSSource); return ds.getConnection(); / RETURNS NULL !! _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Connection pooling doesn't work for me ... Help !!
Hello everyone, I read the tomcat jndi how to manual. searched the mailing list archive. and did everything which has made other happily get a connection from the jndi of the pool but I just can't do it. DataSource ds = (javax.sql.DataSource) initCtx.lookup(java:comp/env/jdbc/MPSSource); return ds.getConnection(); / RETURNS NULL !! _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Help Connection pooling doesn't work for me
Hello All, Sorry for the previous half typed mail... IE just decided to send the mail on its own. I make the following call in my Java code DataSource ds = (javax.sql.DataSource) initCtx.lookup(java:comp/env/jdbc/DBSource); return ds.getConnection(); // RETURNS NULL Here the ds.getConnection() is returning me null. I have been thru the jndi manual and this list archive... but I just can't get this. I also tried the same code on weblogic and it worked perfectly. Please help me ... below is the entries which I have made in verious config files. Please poing the mistake in this because I am just lost here. server.xml - Resource name=jdbc/DBSource auth=CONTAINER type=javax.sql.DataSource/ ResourceParams name=jdbc/DBSource parameternameuser/namevaluemyuser/value/parameter parameternamepassword/namevaluemypwd/value/parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter namedriverName/name valuejdbc:oracle:thin:@localhost:1521:AAA/value /parameter /ResourceParams web.xml -- resource-ref res-ref-namejdbc/DBSource/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth res-sharing-scopeShareable/res-sharing-scope /resource-ref regards, Abhishek. _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]