摘要: 本地上传照片文件一.知识点 1.遍历SD卡中某一路径下指定类型的图片 2.上传图片二.代码解析public class LocationPhoto extends Activity implements Runnable { private Bundle bundle; private Intent intent; private String type = null; private String dianya = null; private String name = null; Gallery g = null; Button but1 = null;// 选择按钮 Button but 阅读全文
posted @ 2011-10-09 14:25 大头鱼 阅读(1760) 评论(4) 推荐(2) 编辑
摘要: 组件的显示与隐藏1.Activity.javapackage com.text;import android.app.Activity;import android.os.Bundle;import android.view.View;import android.view.View.OnClickListener;import android.widget.Button;import android.widget.EditText;import android.widget.TextView;public class HhActivity extends Activity { /** Cal 阅读全文
posted @ 2011-10-09 14:19 大头鱼 阅读(4140) 评论(0) 推荐(0) 编辑
摘要: WebView加载网页保存信息到Cookie一.知识点 1.WebView加载INTERNET网页 2.Android Activity和网页jsp之间传递参数 3.Jsp存储数据到本地计算机中,通过Cookie实现设置默认值二.代码分析1、PropertyActivity.javapackage com.esri.arcgis.android.map;import org.json.JSONArray;import org.json.JSONObject;import android.app.Activity;import android.content.Intent;import andr 阅读全文
posted @ 2011-10-09 14:18 大头鱼 阅读(5434) 评论(0) 推荐(1) 编辑
摘要: web配置传递参数到servlet1.web.xml<!-- addGoods --> <servlet> <servlet-name>addGoodsServlet</servlet-name> <servlet-class>com.yezi.manage.servlet.AddGoodsServlet</servlet-class> <init-param> <param-name>savePath</param-name> <param-value>uploads< 阅读全文
posted @ 2011-10-09 14:13 大头鱼 阅读(1422) 评论(0) 推荐(0) 编辑
摘要: ASCII码加密解密1.index.jsp:页面输入用户名和密码,通过form表单提交<body> <form method="post" action="./password" name="cookie"> <input type="text" name="name" /> <input type="password" name="password" /> <input type="subm 阅读全文
posted @ 2011-10-09 14:09 大头鱼 阅读(1182) 评论(0) 推荐(0) 编辑
摘要: JSP内置对象Jsp九个内置对象,三个最主要的:1) request:得到客户端的信息。(HttpServletRequest)request对象和response对象存在于http通信中,该对象封装了用户提交的信息,通过调用该对象相应的方法可以获取封装的信息,即使用该对象可以获取用户提交信息。常用的主要方法: a.setAttribute(String name,Object):设置名称为name的request的参数值。 b.getAttribute(String name):返回name指定的属性值。 c.getAttributeNames():返回request对象所有属性的名称集合, 阅读全文
posted @ 2011-10-09 14:04 大头鱼 阅读(370) 评论(0) 推荐(0) 编辑
摘要: JSP动作指令1. include动作指令用来在JSP页面中动态包含一个文件,包含页面程序与被包含页面程序是彼此独立,互不影响的。被包含的页面可是一个动态文件(JSP文件),也可是一个静态文件(文本文件)。包含的是一个静态文件,包含文件与被包含文件组合形成一个文件,直接输出给客户端,由客户端浏览器显示;包含的是一个动态文件,则由Web服务器负责执行,把执行后的结果返回给客户端显示出来。语法格式:静:<jsp:include flush=”true” page=”header.text”/>动:<jsp:include flush=”true” page=”header.jsp 阅读全文
posted @ 2011-10-09 14:01 大头鱼 阅读(620) 评论(0) 推荐(0) 编辑