Tag: map预览模式: 普通 | 列表
10-10
27

list,set,map,数组间的相互转换

1.list转set

Java代码  
Set set =  new  HashSet( new  ArrayList());    
Java代码  
Set set =  new  HashSet( new  ArrayList());    
Set set = new HashSet(new ArrayList());  
2.set转list

查看更多...

Tags: List Set map 转换

分类:Java&Jsp | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 342
09-09
07

网站集成GOOGLE的地图服务

你想实现www.woxiangyougejia.com 这上面的具体什么功能呢?
这是两个代码,其实就是Google maps 的examples中的
根据这两个就可以实现你要的功能
有什么不明白的参照Google maps api吧

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w2.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>

查看更多...

Tags: 网站 地图 map google

分类:学习 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 341
08-07
25

struts运用jstl标签传多个参数

用struts传多个参数的方法,大家的思路都是将变量存到HashMap中然后再传参,就像以下代码。

<%
java.util.HashMap newValues = new java.util.HashMap();
newValues.put("floatProperty", new Float(444.0));
newValues.put("intProperty", new Integer(555));
newValues.put("stringArray", new String[]
{ "Value1", "Value2", "Value3" });
pageContext.setAttribute("newValues", newValues);

查看更多...

Tags: map hashmap

分类:Struts | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 785