Java技术问题到水区求助。

你们都是坏人 2018-02-23 02:58:00
技术区人越来越少了,不见有回答问题的,
都转到专家问答了。又没有C币,

jsp 页面实现,
有没有人做过, 调用百度地图 查询 分页等功能的,(数据从wsdl接口读取)
有偿 求助(只需要1,2个页面)。会的请 M我。
...全文
757 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
m0_45459997 2019-07-27
  • 打赏
  • 举报
回复
这网还真没人
m0_45459997 2019-07-27
  • 打赏
  • 举报
回复
怎么会没人呢?
m0_45459997 2019-07-27
  • 打赏
  • 举报
回复
有人吗?有人在吗?我想求助一下关于制水的问题
你们都是坏人 2018-02-24
  • 打赏
  • 举报
回复
引用 2 楼 qq_23119345 的回复:
没有不过有文档吧,自己照着文档应该不难啊
从json或者从数据库中读取的话,可以实现,问题卡在第三方提供的接口(wsdl)与地图结合。
引用 3 楼 ronsn_lee 的回复:
package cn.csdn.util;  
  
import java.util.List;  
  
/** 
 *  
 * @author redarmy_chen 
 * 
 * @param <T> 
 */  
public class Pagination<T> {  
  
    // 分页信息  
    private int nowpage;// 当前页  
    private int countrecord;// 总记录  
    private int countpage;// 总页数  
  
    public static final int PAGESIZE = 5;// 每页显示的记录数  
  
    private int startpage;// 页面中的起始页  
    private int endpage;// 页面中的结束页  
  
    private final int SHOWPAGE = 6;// 页面中显示的总页数 baidu,google显示的总页数是20  
    // 在测试我们才用6来测试  
  
    private List<T> allentities;  
  
    private String url;  
  
    /** 根据当前页及总记录数来构造分页对象 */  
    public Pagination(int nowpage, int countrecord) {  
        this.nowpage = nowpage;  
        this.countrecord = countrecord;  
  
        /** 计算总页数 */  
        this.countpage = this.countrecord % this.PAGESIZE == 0 ? this.countrecord  
                / this.PAGESIZE  
                : this.countrecord / this.PAGESIZE + 1;  
  
        /** 计算startpage与endpage的值 */  
  
        /** 总页数数是否小于4 */  
        if (this.countpage < (this.SHOWPAGE / 2 + 1)) {  
            this.startpage = 1; // 页面中起始页就是1  
            this.endpage = this.countpage;// 页面中的最终页就是总页数  
        } else {  
            /** else中是总页数大于4的情况 */  
  
            /** 首先当前页的值是否小于等于4 */  
            if (this.nowpage <= (this.SHOWPAGE / 2 + 1)) {  
                this.startpage = 1;  
                this.endpage = this.nowpage + 2;  
                /** 判断页面的最终页是否大于总页数 */  
                if (this.endpage >= this.countpage) {  
                    this.endpage = this.countpage;  
                }  
            } else {  
                this.startpage = this.nowpage - 3;  
                this.endpage = this.nowpage + 2;  
  
                if (this.endpage >= this.countpage) {  
                    this.endpage = this.countpage;  
                    if (this.countpage < this.SHOWPAGE) {  
                        this.startpage = 1;  
                    } else {  
                        this.startpage = this.endpage - 5;  
                    }  
  
                }  
            }  
  
        }  
  
    }  
  
    public int getNowpage() {  
        return nowpage;  
    }  
  
    public void setNowpage(int nowpage) {  
        this.nowpage = nowpage;  
    }  
  
    public int getCountrecord() {  
        return countrecord;  
    }  
  
    public void setCountrecord(int countrecord) {  
        this.countrecord = countrecord;  
    }  
  
    public int getCountpage() {  
        return countpage;  
    }  
  
    public void setCountpage(int countpage) {  
        this.countpage = countpage;  
    }  
  
    public int getStartpage() {  
        return startpage;  
    }  
  
    public void setStartpage(int startpage) {  
        this.startpage = startpage;  
    }  
  
    public int getEndpage() {  
        return endpage;  
    }  
  
    public void setEndpage(int endpage) {  
        this.endpage = endpage;  
    }  
  
    public List<T> getAllentities() {  
        return allentities;  
    }  
  
    public void setAllentities(List<T> allentities) {  
        this.allentities = allentities;  
    }  
  
    public String getUrl() {  
        return url;  
    }  
  
    public void setUrl(String url) {  
        this.url = url;  
    }  
  
}  
@MLGB_吾操 哥们有时间吗,红包求助。
  • 打赏
  • 举报
回复
做过天地图;百度的应该换汤不换药
快跑蜗牛哥 2018-02-24
  • 打赏
  • 举报
回复
引用 6 楼 MrMicrosoft 的回复:
你以为水区就会有人了么
问答区 应该有人。
  • 打赏
  • 举报
回复
你以为水区就会有人了么
荖司机 2018-02-23
  • 打赏
  • 举报
回复
package cn.csdn.util;  
  
import java.util.List;  
  
/** 
 *  
 * @author redarmy_chen 
 * 
 * @param <T> 
 */  
public class Pagination<T> {  
  
    // 分页信息  
    private int nowpage;// 当前页  
    private int countrecord;// 总记录  
    private int countpage;// 总页数  
  
    public static final int PAGESIZE = 5;// 每页显示的记录数  
  
    private int startpage;// 页面中的起始页  
    private int endpage;// 页面中的结束页  
  
    private final int SHOWPAGE = 6;// 页面中显示的总页数 baidu,google显示的总页数是20  
    // 在测试我们才用6来测试  
  
    private List<T> allentities;  
  
    private String url;  
  
    /** 根据当前页及总记录数来构造分页对象 */  
    public Pagination(int nowpage, int countrecord) {  
        this.nowpage = nowpage;  
        this.countrecord = countrecord;  
  
        /** 计算总页数 */  
        this.countpage = this.countrecord % this.PAGESIZE == 0 ? this.countrecord  
                / this.PAGESIZE  
                : this.countrecord / this.PAGESIZE + 1;  
  
        /** 计算startpage与endpage的值 */  
  
        /** 总页数数是否小于4 */  
        if (this.countpage < (this.SHOWPAGE / 2 + 1)) {  
            this.startpage = 1; // 页面中起始页就是1  
            this.endpage = this.countpage;// 页面中的最终页就是总页数  
        } else {  
            /** else中是总页数大于4的情况 */  
  
            /** 首先当前页的值是否小于等于4 */  
            if (this.nowpage <= (this.SHOWPAGE / 2 + 1)) {  
                this.startpage = 1;  
                this.endpage = this.nowpage + 2;  
                /** 判断页面的最终页是否大于总页数 */  
                if (this.endpage >= this.countpage) {  
                    this.endpage = this.countpage;  
                }  
            } else {  
                this.startpage = this.nowpage - 3;  
                this.endpage = this.nowpage + 2;  
  
                if (this.endpage >= this.countpage) {  
                    this.endpage = this.countpage;  
                    if (this.countpage < this.SHOWPAGE) {  
                        this.startpage = 1;  
                    } else {  
                        this.startpage = this.endpage - 5;  
                    }  
  
                }  
            }  
  
        }  
  
    }  
  
    public int getNowpage() {  
        return nowpage;  
    }  
  
    public void setNowpage(int nowpage) {  
        this.nowpage = nowpage;  
    }  
  
    public int getCountrecord() {  
        return countrecord;  
    }  
  
    public void setCountrecord(int countrecord) {  
        this.countrecord = countrecord;  
    }  
  
    public int getCountpage() {  
        return countpage;  
    }  
  
    public void setCountpage(int countpage) {  
        this.countpage = countpage;  
    }  
  
    public int getStartpage() {  
        return startpage;  
    }  
  
    public void setStartpage(int startpage) {  
        this.startpage = startpage;  
    }  
  
    public int getEndpage() {  
        return endpage;  
    }  
  
    public void setEndpage(int endpage) {  
        this.endpage = endpage;  
    }  
  
    public List<T> getAllentities() {  
        return allentities;  
    }  
  
    public void setAllentities(List<T> allentities) {  
        this.allentities = allentities;  
    }  
  
    public String getUrl() {  
        return url;  
    }  
  
    public void setUrl(String url) {  
        this.url = url;  
    }  
  
}  
北飞的企鹅 2018-02-23
  • 打赏
  • 举报
回复
没有不过有文档吧,自己照着文档应该不难啊
75闪光雷 2018-02-23
  • 打赏
  • 举报
回复
消除零回复

67,515

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧