package com.iman.service;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class HttpServiceServletTest extends HttpServlet {
/**
*
*/
private static final long serialVersionUID = 1L;
@Override
protected void service(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
// TODO Auto-generated method stub
req.setCharacterEncoding("utf-8");
resp.setCharacterEncoding("utf-8");
PrintWriter out=resp.getWriter();
String username=req.getParameter("username");
String password=req.getParameter("password");
List<String> list=new ArrayList<String>();
list.add("Admin");
list.add("Lucy");
list.add("Jacky");
list.add("Lily");
list.add("Tom");
if(list.contains(username)){
out.print("存在:"+username+",客户端传递的密码是"+password);
}else{
out.print("找不到:"+username+",客户端传递的密码是"+password);
}
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
Flex4 通过HttpService与Java进行交互项目
共38个文件
jar:12个
xml:5个
js:2个
5星 · 超过95%的资源 需积分: 10 87 下载量 97 浏览量
2011-07-15
18:09:47
上传
评论 3
收藏 4.2MB RAR 举报
温馨提示
这是本人做的Flex4 通过HttpService与Java进行交互项目,本人测试通过。本人在此声明运行环境为:MyEclipse 8.5,JDK 6,Tomcate 6,Flex 4. 本人已经将Flex4整合到Myeclipse 8.5中去了,所以这个项目是在MyEclipse 8.5中开发的。 本人人格保证此项目在本人电脑上能够运行,个人提醒你注意本项目的输出路径
资源推荐
资源详情
资源评论
收起资源包目录
FlexHttpDemo.rar (38个子文件)
FlexHttpDemo
.project 2KB
.settings
.jsdtscope 500B
org.eclipse.jdt.core.prefs 330B
org.eclipse.wst.jsdt.ui.superType.container 49B
org.eclipse.wst.jsdt.ui.superType.name 6B
.mymetadata 309B
WebRoot
WEB-INF
flex
messaging-config.xml 513B
remoting-config.xml 383B
services-config.xml 4KB
proxy-config.xml 826B
web.xml 2KB
src
lib
commons-logging.jar 37KB
backport-util-concurrent.jar 319KB
cfgatewayadapter.jar 15KB
flex-messaging-proxy.jar 64KB
commons-httpclient-3.0.1.jar 273KB
flex-messaging-remoting.jar 18KB
commons-codec-1.3.jar 46KB
concurrent.jar 168KB
flex-messaging-common.jar 92KB
flex-messaging-core.jar 599KB
flex-messaging-opt.jar 20KB
xalan.jar 3MB
classes
com
iman
service
HttpServiceServletTest.class 2KB
index.jsp 834B
META-INF
MANIFEST.MF 252B
libs
.actionScriptProperties 1KB
html-template
swfobject.js 25KB
index.template.html 5KB
history
history.js 25KB
historyFrame.html 798B
history.css 365B
playerProductInstall.swf 657B
.myeclipse
src
com
iman
service
HttpServiceServletTest.java 1KB
.classpath 1KB
flex_src
FlexHttpDemo.mxml 2KB
FlexHttpDemo1.mxml 2KB
.flexProperties 377B
共 38 条
- 1
爱吃猫的萌鱼
- 粉丝: 207
- 资源: 56
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页