[Opensource] does expresso's 'action' servlet cause incompatibilities

Rick Goeltz goeltzrt at ornl.gov
Tue Oct 29 15:13:25 PST 2002


Gang:

[Peter Pilgrim said...]
>Alternatively I could have extended the `Browse' controller to
>write normally Expresso Block / Output / ControllerElements
>as described in the EDG. I thought that it
>be too much work and potentially too many objects created
>per each user query. I can imagine a scenario where
>somebody does a search query of ``expresso'' on the
>Jcorporate forums. Boom! How many controller elements?
>
>Instead in the JSP view I use the pure `Struts' bean tag to
>access the named HITLIST scoped attribute in the HttpSession
>scope and run a pure Struts iterate tag over. I still can
>render a nice HTML view.
>
><purelogic:iterate id="hit" name="SEARCH_LIST_KEY"
>         type="com.jcorporate.eforum.search.SearchResult" ... >
>
>      <purebean:write  name="hit"  property="subject" /> <br>
>
>      <purebean:write  name="hit"  property="body" /> <br>
>
></purelogic:iterate>

This looks like what I'd like to do.  How does that work?  Does 
SearchResult have getters such as SearchResult.getSubject()?  Wouldn't it 
be sweet to be able to refer to getField()?

Also, why put the list (i.e., query result) in the session?  Doesn't it 
belong in the context of the request/response, to be discarded after the 
response is delivered?

Thanks!


Rick




More information about the Opensource mailing list