Short and simple this time,
What's best practice on displaying (in either jstl or struts) values from
within a BasicDynaBean?
Ideally want a working version of
RowSetDynaClass is one of the best things in struts but has to be one of the
worst documented.
Thanks!
I guess my previous example wasn't clearly formatted, but it certainly wasn't
supposed to illustrate executing a query from a JSP. Here's a modified example:
Java (e.g. an action):
--
import javax.servlet.jsp.jstl.sql.Result;
import javax.servlet.jsp.jstl.sql.ResultSupport;
...
Didn't like the JSTL Result suggestion, I guess ;-). As a JavaBean,
BasicDynaBean only exposes two properties: "dynaClass" and "class" (both are
read-only). So, that's all JSTL can get out of a BasicDynaBean instance. The
Struts tags, on the other hand, leverage BeanUtils/PropertyUtils so they're
p
From: Kris Schneider <[EMAIL PROTECTED]>
Didn't like the JSTL Result suggestion, I guess ;-). As a JavaBean,
Well personally I have no preference, just want something that works
efficiently and cleanly :)
The example you have had the query in the jsp, wheras I'm trying to stay
away from anything
From: Kris Schneider <[EMAIL PROTECTED]>
I guess my previous example wasn't clearly formatted, but it certainly
wasn't
supposed to illustrate executing a query from a JSP. Here's a modified
example:
Java (e.g. an action):
--
import javax.servlet.jsp.jstl.sql.Result;
import
5 matches
Mail list logo