Integration of WO in JSP page
Will Scheidegger <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <[email protected]> |
I've been testing the J2EE features of WO. Running a WO app as
servlet is fairly easy. Integrating WO components and actions in JSP
pages on the other hand seems to be a bit more difficult. Has anyone
of you any experiences an recommendations to share?
E.g.:
- How to use component actions? All I can come up with are pretty bad
hacks including filter servlets and so on...
- How to pass more than one form value to a <wo:directAction /> tag.
There seems to be a bug. I've got the following tag in my JSP page
<wo:directAction actionName="test" className="DirectAction">
<wo:formValue key="testCount" value='<%= request.getParameter
("testcount") %>' />
<wo:formValue key="detailPath" value="features.html" />
</wo:directAction>
"detailPath" was always empty (null), so I logged out the list of
form value keys the direct action received:
INFO WOServletTest NSLog.java(appendln:1546) 25.07.2006 12:21:28
("amp;detailPath", "testCount")
The form values seem to be added and passed on to wo like so:
testCount=3&detailPath=features.html. But then the string is not
split up correctly anymore. This of course would be a small thing to
fix... if it was open source :-(
Maybe I should just write my own custom tag library?
-Will