Additional Views

The following views are included in the framework but not discussed here:

  • com.interface21.servlet.web.view.webmacro.WebMacroView
    WebMacro view implementation, similar to the Velocity view discussed earlier.

  • com.interface21.servlet.web.view.RedirectView
    View implementation that redirects the response to an external URL, exposing model data as String query parameters. This approach works only for simple models, but can be very useful when integrating with third-party sites. The default implementation builds a query string by calling the toString() method on each element in the model. Subclasses can customize this behavior by overriding the protected queryProperties (Map model) method to return a Properties object containing the name-value pairs to be used in the query string. The RedirectView class takes care of constructing the query string (using ? and & characters) and the necessary URL encoding.



Expert One-on-One J2EE Design and Development
Microsoft Office PowerPoint 2007 On Demand
ISBN: B0085SG5O4
EAN: 2147483647
Year: 2005
Pages: 183

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net