package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import com.sample.jcaptcha.servlet.*;
public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html; charset=UTF-8");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, false, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
out = pageContext.getOut();
_jspx_out = out;
out.write('\r');
out.write('\n');
request.getSession().removeAttribute("soundService");
request.getSession().removeAttribute("stream");
out.write("\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<script type=\"text/javascript\">\r\n");
out.write(" \r\n");
out.write(" function playSoundCaptcha() {\r\n");
out.write(" \t\tvar wavURL = '");
out.print( request.getContextPath() );
out.write("'+'/SoundCaptchaServlet';\r\n");
out.write(" \tvar embedAudioPlayer = \"<EMBED SRC='\" + wavURL + \"' HIDDEN='true' AUTOSTART='true' />\"; \r\n");
out.write(" \tvar wavArea = document.getElementById(\"wavArea\");\r\n");
out.write(" \twavArea.innerHTML = embedAudioPlayer;\r\n");
out.write(" \t\r\n");
out.write(" }\r\n");
out.write("</script>\r\n");
out.write("</head>\r\n");
out.write("\r\n");
out.write("<form action=\"CaptchaValidationServlet\" method=\"post\">\r\n");
out.write("<table>\r\n");
out.write("\t<tr>\r\n");
out.write("\t\t<td colspan=\"2\"><img src=\"ImageCaptchaServlet\" /></td>\r\n");
out.write("\t</tr>\r\n");
out.write("\t<tr>\r\n");
out.write("\t\t<td>请输入您所看到或听到的字符:</td>\r\n");
out.write("\t\t<td><input type=\"text\" name=\"captcha_input\" value=\"\" />\r\n");
out.write("\t\t\t\t\t<a href=\"#\" onFocus=\"playSoundCaptcha()\">\r\n");
out.write("\t\t\t\t\t\t\t\t<img src=\"image/wheelchair.jpg\" height=\"18px\" width=\"18px\" \r\n");
out.write("\r\n");
out.write("alt=\"\" ></a>");
out.print(request.getAttribute("ERROR") == null ? "" :
request
.getAttribute("ERROR"));
out.write("</td>\r\n");
out.write("\t</tr>\r\n");
out.write("\t<tr>\r\n");
out.write("\t\t<td><input type=\"submit\" value=\"提交\" /></td>\r\n");
out.write("\t</tr>\r\n");
out.write("<div id=\"wavArea\" style=\"display:none\">\r\n");
out.write("</div>\r\n");
out.write("</table>\r\n");
out.write("</form>\r\n");
out.write("</html>");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
JCaptcha + FreeTTS 实现的语音合成项目,暂不支持中文,所需jar包需另下载,jar包列表 •jcaptcha-1.0-all.jar •commons-logging-1.1.1.jar •commons-collections-3.2.jar •jcaptcha-extension-sound-freetts-1.0.jar:用于和 FreeTTS 的集成 •jcaptcha-1.0-all.jar: JCaptcha 核心包 •freetts.jar:FreeTTS 核心包 •en_us.jar:用于 FreeTTS •commons-logging-1.1.1.jar:用于 JCaptcha •commons-collections-3.2.jar:用于 JCaptcha •cmutimelex.jar:用于 FreeTTS •cmulex.jar:用于 FreeTTS •cmudict04.jar:用于 FreeTTS •cmu_us_kal.jar:用于 FreeTTS •cmu_time_awb.jar:用于 FreeTTS
资源推荐
资源详情
资源评论
收起资源包目录
JCaptchaWebSample4.zip (42个子文件)
JCaptchaWebSample4
.project 1KB
WebContent
WEB-INF
classes
com
sample
jcaptcha
service
SampleImageCaptchaService.class 2KB
WordBridge.class 588B
SampleSoundCaptchaService.class 1KB
WordMap.class 675B
factory
SampleGimpy.class 1KB
SampleSpellerSoundFactory.class 3KB
SampleGimpyFactory.class 3KB
servlet
SoundCaptchaServlet.class 4KB
CaptchaValidationServlet.class 5KB
ImageCaptchaServlet.class 4KB
engine
SampleListImageCaptchaEngine.class 3KB
SampleListSoundCaptchaEngine.class 2KB
lib
web.xml 2KB
index.jsp 1KB
success.jsp 91B
META-INF
MANIFEST.MF 39B
image
wheelchair.jpg 6KB
src
com
sample
jcaptcha
service
SampleSoundCaptchaService.java 1KB
WordBridge.java 280B
WordMap.java 279B
SampleImageCaptchaService.java 2KB
factory
SampleGimpy.java 1KB
SampleSpellerSoundFactory.java 2KB
SampleGimpyFactory.java 2KB
servlet
ImageCaptchaServlet.java 3KB
CaptchaValidationServlet.java 4KB
SoundCaptchaServlet.java 3KB
engine
SampleListImageCaptchaEngine.java 2KB
SampleListSoundCaptchaEngine.java 1KB
work
org
apache
jsp
index_jsp.java 4KB
index_jsp.class 5KB
.settings
org.eclipse.jdt.ui.prefs 99B
org.eclipse.wst.common.project.facet.core.xml 229B
org.eclipse.jdt.core.prefs 330B
org.eclipse.core.runtime.prefs 83B
org.eclipse.jst.common.project.facet.core.prefs 209B
org.eclipse.core.resources.prefs 88B
org.eclipse.wst.common.component 462B
.tomcatplugin 378B
build
classes
.classpath 2KB
WebDiagram.gph 1KB
共 42 条
- 1
拿着小棍抽风
- 粉丝: 1
- 资源: 13
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页