推荐JSP表taglib吗? [英] Recommended JSP table taglib?

查看:44
本文介绍了推荐JSP表taglib吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您能为仍在维护的JSP(带有EL)推荐一个声明性的表生成taglib吗?我发现了一些标记,例如Jakarata taglib和显示标记,但过去一年似乎没有更新大概.

Can you recommend a declarative table-generation taglib for JSP (with EL) that is still being maintained? I found a few, such as the Jakarata taglib and Display tag but nothing seems to have been updated in the past year or so.

任何建议将不胜感激.

推荐答案

确实,Displaytag开发似乎已死,但我正在应用程序中使用它,除了几个小问题外,我们都没有遇到问题.如果您不顾一切,源代码非常干净,并且易于自定义/修复.

It's true that Displaytag development seems to be moribund, but I'm using it in an application and other than a couple of minor issues we haven't had problems. The source is pretty clean and easy to customize/fix if you're desperate.

使用Displaytag很难完成的主要工作是拥有一个允许用户驱动的列排序的表查看系统.列的顺序是由Displaytag JSP主体中的列标签的顺序确定的,而不是由服务器端查询操作(或生成表数据的任何内容)在表数据结构中传递的列的顺序确定的.可以在JSP中显式地对此进行编码,但是我怀疑那是一团糟.

The main thing that's kind-of hard to do with Displaytag is to have a table viewing system that allows for user-driven column ordering. The ordering of columns is determined by the order of the column tags in the Displaytag JSP body, not by the order of columns as delivered in the table data structure by the server-side query action (or whatever generates the table data). It'd be possible to code around that explicitly in JSP, but it'd be quite a mess I suspect.

这篇关于推荐JSP表taglib吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆