Returning values from a BasicDynaBean in jsp

2003-08-14 Thread jack beany
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!

Re: Returning values from a BasicDynaBean in jsp

2003-08-10 Thread Kris Schneider
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; ...

Re: Returning values from a BasicDynaBean in jsp

2003-08-10 Thread Kris Schneider
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

Re: Returning values from a BasicDynaBean in jsp

2003-08-07 Thread jack beany
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

Re: Returning values from a BasicDynaBean in jsp

2003-08-07 Thread jack beany
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