Security images
Hi all, Does anyone know how to create security images in signup forms using JSP? I am referring to the image that contains a word that cannot be processed by a computer but only by the human eye. It helps avoid spamming significantly. Lamine. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.3/446 - Release Date: 9/12/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: EL expressions not being evaluated..
oh brother.. this means I would have to upgrade to sdk 1.5 from 1.4 (Tomcat 5.5 requires 1.5.. it might not be a bad idea, though, b/c I also want to start playing with NetBeans.. but have been reluctant to upgrade everything...:) ok, many thanks to everyone for your help.. Rashmi Rubdi wrote: Set up a fresh install of the latest Tomcat on the side with the correct web.xml entry, and put a test jsp page in it with a simple EL expression and see if it evaluates. I have apache-tomcat-5.5.12 and a different set of jar files under apache-tomcat-5.5.12\common\lib : commons-el.jar jasper-compiler-jdt.jar jasper-compiler.jar jasper-runtime.jar jsp-api.jar jstl.jar naming-factory-dbcp.jar naming-factory.jar naming-resources.jar serializer.jar servlet-api.jar standard.jar xalan.jar maya [EMAIL PROTECTED] wrote: Kris Schneider wrote: maya wrote: again, thank you all very much.. as mentioned, I have Tomcat 5.0.27, which comes with the following (as specified in release-notes.txt that comes with it): * commons-collections*.jar (Commons Collections 2.1 or later) * commons-dbcp.jar (Commons DBCP 1.1 or later) * commons-el.jar (Commons Expression Language 1.0) * commons-logging-api.jar (Commons Logging API 1.0.3 or later) * commons-pool.jar (Commons Pool 1.1 or later) * jasper-compiler.jar (Jasper 2 Compiler) * jasper-runtime.jar (Jasper 2 Runtime) * jsp-api.jar (JSP 2.0 API) * commons-el.jar (JSP 2.0 Expression Language) * naming-common.jar (JNDI Context implementation) * naming-factory.jar (JNDI object factories for J2EE ENC support) * naming-resources.jar (JNDI DirContext implementations) * servlet-api.jar (Servlet 2.4 API) this means my EL expressions should evaluate, right? Don't worry about that stuff, focus on your app. The first thing to do is to make sure you're using a Servlet 2.4 web.xml. It should look something like this: xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 ... If you're using a Servlet 2.3 web.xml, then EL will be ignored by default. thank you very much.. I put what you posted in my web.xml (in lieu of what I had there previously (and what I have in all web.xml's in Tomcat), namely PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; I put the code you posted in both the web.xml for the particular webapp and in conf/web.xml.. but EL expressions are still not evaluating.. this is how a JSP with EL prints in the browser (IE FF..) Request Method: ${pageContext.request.method} Request Protocol: ${pageContext.request.protocol} Context Path: ${pageContext.request.contextPath} Remote Host: ${pageContext.request.remoteHost} Secure: ${pageContext.request.secure} Cookies: ${c.name}: ${c.value} Headers: ${h.key}: ${value} thanks again - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1ยข/min. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: EL expressions not being evaluated..
maya wrote: oh brother.. this means I would have to upgrade to sdk 1.5 from 1.4 (Tomcat 5.5 requires 1.5.. it might not be a bad idea, though, b/c I also want to start playing with NetBeans.. but have been reluctant to upgrade everything...:) TC 5.5 should work just fine with JDK 1.4. Make sure to download the apache-tomcat-[version]-compat.zip file and install it after the base distro. ok, many thanks to everyone for your help.. Rashmi Rubdi wrote: Set up a fresh install of the latest Tomcat on the side with the correct web.xml entry, and put a test jsp page in it with a simple EL expression and see if it evaluates. I have apache-tomcat-5.5.12 and a different set of jar files under apache-tomcat-5.5.12\common\lib : commons-el.jar jasper-compiler-jdt.jar jasper-compiler.jar jasper-runtime.jar jsp-api.jar jstl.jar naming-factory-dbcp.jar naming-factory.jar naming-resources.jar serializer.jar servlet-api.jar standard.jar xalan.jar maya [EMAIL PROTECTED] wrote: Kris Schneider wrote: maya wrote: again, thank you all very much.. as mentioned, I have Tomcat 5.0.27, which comes with the following (as specified in release-notes.txt that comes with it): * commons-collections*.jar (Commons Collections 2.1 or later) * commons-dbcp.jar (Commons DBCP 1.1 or later) * commons-el.jar (Commons Expression Language 1.0) * commons-logging-api.jar (Commons Logging API 1.0.3 or later) * commons-pool.jar (Commons Pool 1.1 or later) * jasper-compiler.jar (Jasper 2 Compiler) * jasper-runtime.jar (Jasper 2 Runtime) * jsp-api.jar (JSP 2.0 API) * commons-el.jar (JSP 2.0 Expression Language) * naming-common.jar (JNDI Context implementation) * naming-factory.jar (JNDI object factories for J2EE ENC support) * naming-resources.jar (JNDI DirContext implementations) * servlet-api.jar (Servlet 2.4 API) this means my EL expressions should evaluate, right? Don't worry about that stuff, focus on your app. The first thing to do is to make sure you're using a Servlet 2.4 web.xml. It should look something like this: xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 ... If you're using a Servlet 2.3 web.xml, then EL will be ignored by default. thank you very much.. I put what you posted in my web.xml (in lieu of what I had there previously (and what I have in all web.xml's in Tomcat), namely PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; I put the code you posted in both the web.xml for the particular webapp and in conf/web.xml.. but EL expressions are still not evaluating.. this is how a JSP with EL prints in the browser (IE FF..) Request Method: ${pageContext.request.method} Request Protocol: ${pageContext.request.protocol} Context Path: ${pageContext.request.contextPath} Remote Host: ${pageContext.request.remoteHost} Secure: ${pageContext.request.secure} Cookies: ${c.name}: ${c.value} Headers: ${h.key}: ${value} thanks again -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Tech http://www.dotech.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: EL expressions not being evaluated..
interesting.. I didn't know they had a 1.4-compatible package for 5.5.. again, many thanks to all.. Kris Schneider wrote: maya wrote: oh brother.. this means I would have to upgrade to sdk 1.5 from 1.4 (Tomcat 5.5 requires 1.5.. it might not be a bad idea, though, b/c I also want to start playing with NetBeans.. but have been reluctant to upgrade everything...:) TC 5.5 should work just fine with JDK 1.4. Make sure to download the apache-tomcat-[version]-compat.zip file and install it after the base distro. ok, many thanks to everyone for your help.. Rashmi Rubdi wrote: Set up a fresh install of the latest Tomcat on the side with the correct web.xml entry, and put a test jsp page in it with a simple EL expression and see if it evaluates. I have apache-tomcat-5.5.12 and a different set of jar files under apache-tomcat-5.5.12\common\lib : commons-el.jar jasper-compiler-jdt.jar jasper-compiler.jar jasper-runtime.jar jsp-api.jar jstl.jar naming-factory-dbcp.jar naming-factory.jar naming-resources.jar serializer.jar servlet-api.jar standard.jar xalan.jar maya [EMAIL PROTECTED] wrote: Kris Schneider wrote: maya wrote: again, thank you all very much.. as mentioned, I have Tomcat 5.0.27, which comes with the following (as specified in release-notes.txt that comes with it): * commons-collections*.jar (Commons Collections 2.1 or later) * commons-dbcp.jar (Commons DBCP 1.1 or later) * commons-el.jar (Commons Expression Language 1.0) * commons-logging-api.jar (Commons Logging API 1.0.3 or later) * commons-pool.jar (Commons Pool 1.1 or later) * jasper-compiler.jar (Jasper 2 Compiler) * jasper-runtime.jar (Jasper 2 Runtime) * jsp-api.jar (JSP 2.0 API) * commons-el.jar (JSP 2.0 Expression Language) * naming-common.jar (JNDI Context implementation) * naming-factory.jar (JNDI object factories for J2EE ENC support) * naming-resources.jar (JNDI DirContext implementations) * servlet-api.jar (Servlet 2.4 API) this means my EL expressions should evaluate, right? Don't worry about that stuff, focus on your app. The first thing to do is to make sure you're using a Servlet 2.4 web.xml. It should look something like this: xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 ... If you're using a Servlet 2.3 web.xml, then EL will be ignored by default. thank you very much.. I put what you posted in my web.xml (in lieu of what I had there previously (and what I have in all web.xml's in Tomcat), namely PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; I put the code you posted in both the web.xml for the particular webapp and in conf/web.xml.. but EL expressions are still not evaluating.. this is how a JSP with EL prints in the browser (IE FF..) Request Method: ${pageContext.request.method} Request Protocol: ${pageContext.request.protocol} Context Path: ${pageContext.request.contextPath} Remote Host: ${pageContext.request.remoteHost} Secure: ${pageContext.request.secure} Cookies: ${c.name}: ${c.value} Headers: ${h.key}: ${value} thanks again - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Documentation on how to configure prompts
Hello and sorry for this obvious questions, but after 2 days of searching, I'm unable to find this info. 1. How do you configure prompts that use prompt files (.wav, .au, etc). 2. How do you configure the initial prompt (for example) to play multiple prompt files (eg, hello.wav followed by how_are_you.wav) 3. Is there a user's guide that lets me know what all I can put in the config file for RDCs? 4. Do I have to use a config file to configure prompts, or can I do all the configuration in the JSP tags itself? The examples provided with RDCs just use TTS and the ones that use a config file are also not helpful. Thanks for help...much appreciated. Charles
Re: Security images
On 9/13/06, lamzo [EMAIL PROTECTED] wrote: Hi all, Does anyone know how to create security images in signup forms using JSP? I am referring to the image that contains a word that cannot be processed by a computer but only by the human eye. It helps avoid spamming significantly. snip/ No taglib, but you can use (should be embeddable in a JSP): http://jcaptcha.sourceforge.net/ -Rahul Lamine. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.3/446 - Release Date: 9/12/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Documentation on how to configure prompts
On 9/13/06, Charles Godfrey [EMAIL PROTECTED] wrote: Hello and sorry for this obvious questions, but after 2 days of searching, I'm unable to find this info. snip/ Please ask sooner, we'll try to help! 1. How do you configure prompts that use prompt files (.wav, .au, etc). snap/ The content model of the RDC config file prompt element is the same as the VXML prompt element. So, simply: prompt audio src=foo.wav/ /prompt 2. How do you configure the initial prompt (for example) to play multiple prompt files (eg, hello.wav followed by how_are_you.wav) snip/ As above: prompt audio src=hello.wav/audio src=how_are_you.wav/ /prompt If you mean initial prompt as in before entering any RDC, that is straight JSP. See the sample applications in the distribution for code snippets. 3. Is there a user's guide that lets me know what all I can put in the config file for RDCs? snap/ See sample-config.xml and some schema fragments here (they may need to be polished per latest changes): http://svn.apache.org/repos/asf/jakarta/taglibs/proper/rdc/trunk/src/META-INF/tags/rdc/schemas/ 4. Do I have to use a config file to configure prompts, or can I do all the configuration in the JSP tags itself? snip/ You need the config file. Your suggestion is good, but not supported. The examples provided with RDCs just use TTS and the ones that use a config file are also not helpful. snap/ The examples have TTS prompts to keep download sizes manageable and also, since you might want to choose the correct type and encoding that your browser works best off of. We do not expect most people to use TTS in real applications. But, as shown above, switching to audio is fairly trivial, once you have the audio. We should probably add this to the wiki [1], it is open to anyone after a quick registration. Do let us know if you have other questions. -Rahul [1] http://wiki.apache.org/jakarta-taglibs/ReusableDialogComponents Thanks for help...much appreciated. Charles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Confirmation
Hello, The confirm attribute is boolean which means that you either always confirm or never confirm. Is there anyway for the RDC to confirm the user's response if the confidence level falls between a certain range? Nuance's OSDM have this behavior. I only see a minConfidence attribute (and no highConfidence attribute) so I doubt this feature exists in RDCs, but I need to double check that. Can someone confirm that for me? Thanks, Charles
Re: Confirmation
On 9/13/06, Charles Godfrey [EMAIL PROTECTED] wrote: Hello, The confirm attribute is boolean which means that you either always confirm or never confirm. Is there anyway for the RDC to confirm the user's response if the confidence level falls between a certain range? Nuance's OSDM have this behavior. I only see a minConfidence attribute (and no highConfidence attribute) so I doubt this feature exists in RDCs, but I need to double check that. Can someone confirm that for me? snip/ You are correct. The upside about the RDC framework is that you would need to make such an addition at one place (BaseModel) and have it affect all components (apart from defining attributes to the component tags). For features such as this that are desired, you can file an issue in bugzilla [1] under Product: Taglibs, Component: RDC Taglib, marked as enhancement. Enhancements with available code patches tend to be looked at sooner. -Rahul [1] http://issues.apache.org/bugzilla/ Thanks, Charles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]