package com.hope.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class LoginServlet extends HttpServlet{
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
// TODO Auto-generated method stub
doPost(req, resp);
}
@Override
protected void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
// TODO Auto-generated method stub
String username = req.getParameter("username");
String password = req.getParameter("password");
req.setCharacterEncoding("UTF-8");
resp.setCharacterEncoding("UTF-8");
PrintWriter out = resp.getWriter();
if("xcc".equals(username)&&"1234".equals(password))
{
out.println("True");
}
else
{
out.println("False");
}
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
Flex+HTTPService 例子
共30个文件
js:4个
html:4个
swf:3个
4星 · 超过85%的资源 需积分: 10 159 下载量 11 浏览量
2010-04-03
17:30:31
上传
评论 1
收藏 466KB RAR 举报
温馨提示
一个flex 与 java 通过HTTPService 通信的小例子,希望对flex新手有点帮助
资源推荐
资源详情
资源评论
收起资源包目录
HTTPServiceTest.rar (30个子文件)
HTTPServiceTest
.project 2KB
flex_libs
.settings
org.eclipse.core.resources.prefs 88B
org.eclipse.wst.common.component 542B
org.eclipse.jdt.core.prefs 330B
org.eclipse.wst.common.project.facet.core.xml 269B
org.eclipse.jst.common.project.facet.core.prefs 288B
.mymetadata 318B
WebRoot
AC_OETags.js 8KB
WEB-INF
web.xml 878B
lib
classes
com
hope
servlet
LoginServlet.class 1KB
META-INF
MANIFEST.MF 39B
HTTPServiceTest.swf 435KB
history
history.js 24KB
historyFrame.html 827B
history.css 371B
playerProductInstall.swf 657B
HTTPServiceTest.html 4KB
.actionScriptProperties 906B
html-template
AC_OETags.js 8KB
index.template.html 4KB
history
history.js 24KB
historyFrame.html 827B
history.css 371B
playerProductInstall.swf 657B
.myeclipse
src
com
hope
servlet
LoginServlet.java 1KB
WebContent
WEB-INF
web.xml 642B
lib
classes
META-INF
MANIFEST.MF 39B
.classpath 701B
flex_src
HTTPServiceTest.mxml 2KB
.flexProperties 225B
共 30 条
- 1
资源评论
- 四叶草的承诺2013-05-21学习和了解一下,很有用!
- sjx5201392014-07-28android 拍视频选择视频上传到服务器
- IRyan07922014-07-22很不错的资源,值得学习。
- Edifier7712012-09-11学习一下,正纠结于httpservice通信
- AEFLASH2012-12-16好东西,不过我现在用的是AMFPHP,比HTTPSERVICE 简单很多。建议大家用AMFPHP.
xhdnf
- 粉丝: 5
- 资源: 14
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功