JSP integration
[email protected] Tue, 18 Aug 2009 17:53:20 +1000
| Newsgroups | gmane.comp.java.orm.simpleorm |
|---|---|
| Message-ID | <[email protected]> |
I have added a test case for JSP integration with the new map interface. One can now write JSP code that directly accesses fields such as.
SQueryResult<Department> res = ses.query(new SQuery(Department.DEPARTMENT));
pageContext.setAttribute("Depts", res);
...
<c:forEach items="${Depts}" var="dept">
Dept: ${dept.DEPT_ID}: ${dept.DNAME}<br>
</c:forEach>
It is in extras/Departments.jsp.
(I do not recommend JSPs -- horrible -- but they are a common use case. Should also work for JSF etc.)
Regards,
Anthony
Dr Anthony Berglas, [email protected] Mobile: +61 4 4838 8874
Just because it is possible to push twigs along the ground with ones nose
does not necessarily mean that is the best way to collect firewood.
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/SimpleORM/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/SimpleORM/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[email protected]
mailto:[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/