+ -
当前位置:首页 → 问答吧 → Java MVC datatable

Java MVC datatable

时间:2013-10-01

来源:互联网

CHING, 想问Java 常用乜野library 做datatable(insert/edit/delete/sorting/paging). Thanks

作者: 马头制霸   发布时间: 2013-10-01

最 common 系 jdbc 吧

orm 有 hibernate, jdo ...

paging 系指什么?

作者: 鸟寑e世   发布时间: 2013-10-01

I want to show a table to html by jsp, any convenient way so that it can sort and with paging

作者: 马头制霸   发布时间: 2013-10-01

作者: p_net   发布时间: 2013-10-02

引用:原帖由 马头制霸 於 2013-8-12 09:17 PM 发表
I want to show a table to html by jsp, any convenient way so that it can sort and with paging
for 一 d 简单既 case, jsp + jdbc 已经好方便。sorting 同 paging 靠 sql 完成。视乎你用咩野 db,sql 有唔同既语法

作者: 鸟寑e世   发布时间: 2013-10-02

thanks, if I want web table contains paging (e.g. p1, 2, 3, 4) and sorting by clicking the header. Any component to do that

作者: 马头制霸   发布时间: 2013-10-02

引用:原帖由 马头制霸 於 2013-8-14 07:28 PM 发表
thanks, if I want web table contains paging (e.g. p1, 2, 3, 4) and sorting by clicking the header. Any component to do that
what is the meaning of component ? are u build the web pages using JSP? do u just plan to embedded JSP code in html ? if it is true, the simplest way to do that is using hyperlink as the header, when the user click the hyperlink, it link to a JSP. you can get the request parameter using simple JSP code, and determine to sort which field. reference: http://stackoverflow.com/questions/1890438/how-to-get-parameters-from-the-url-with-jsp .
for printing out the page numbers, you can embed the JSP code at the footer of the html, the JSP code can query the db and determine the number of pages. also, of course, each page number# is also a hypterlink that link to a specific JSP, and the target JSP determine which page should be showed.

作者: 鸟寑e世   发布时间: 2013-10-02

thx

作者: 马头制霸   发布时间: 2013-10-02

有冇一d 成个project free download, e.g including Jsp/servlet/mvc/jstl with database?

作者: 马头制霸   发布时间: 2013-10-02

引用:原帖由 马头制霸 於 2013-8-15 10:04 PM 发表
有冇一d 成个project free download, e.g including Jsp/servlet/mvc/jstl with database?
yes, sure

http://www.sourcecodeonline.com/sources/java/jsp_and_servlets.html

自己拣下有边个啱用

[ 本帖最后由 鸟寑e世 於 2013-8-16 06:23 AM 编辑 ]

作者: 鸟寑e世   发布时间: 2013-10-02

热门下载

更多