Hi, I am new to Stripes and I am looking to create a web app that allows the entry of search terms and then formats search results.
My plan is to have an action class that (probably with a service layer inbetween) conducts the search and then creates a collection of domain objects representing each result. My question is actually quite basic; Should I follow the CalculatorBean in the example pages and create a search.jsp that allows entry of search terms into the SearchAction, the action then conducting the search, setting some internal property with the results collection and then producing a ForwardResult object to redirect back to the original jsp. In which case, the search.jsp is both search form and results page and so my question would be, within a <stripes:form...> stanza, how can I format the output? I really want to format the output using java loops, is there a way to get the object out of my actionBean and into scope for a jsp block? Alternatively, should the SearchAction forward on the request to a searchResult.jsp, if so, where should it place the results collection? I could place it in the session, but that feels like a bit of a hack to me... I had a look at this previous thread, and it seemed more architectural than concerned with the details of the code constructs like my question: http://article.gmane.org/gmane.comp.java.stripes.user/10837 Thanks in advance, -James ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
