> The 'display' taglib tutorials use scriptlets to 'setAttributes', so I
guess that's the only way to capture form data as well (getAttributes) -
with a scriplet.


A false assumption. Taglibs can capture that form data with 'param'...

<c:set var="st"><c:out value="${param.st}" /></c:set>
<c:set var="zip"><c:out value="${param.zip}" /></c:set>
<c:set var="area"><c:out value="${param.area}" /></c:set>


The hard part is building that 'where clause' for use with the SQL tag
(Yes I'm sticking with the SQL taglib for now. Someday I'll figure out
that Spring/iBATIS stuff)...

<c:if test="${st != ''}">
  <c:set var="w_st">state = '<c:out value="${st}"/>' and </c:set>
</c:if>
<c:if test="${zip != ''}">
  <c:set var="w_zp">zip = <c:out value="${zip}"/> and </c:set>
</c:if>
<c:if test="${area != ''}">
  <c:set var="w_ar">areacode = <c:out value="${area}"/> and </c:set>
</c:if>

This doesn't quite do the job, but came close I believe.



----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to