org.ultrawork.wtk.helper
Interface ViewHelper


public interface ViewHelper

A ViewHelper enables presentation components to execute business logic and obtain business data without knowing the details of how to access the business services. Objects that use a ViewHelper instance will use its default no arguments constructor and then call its perform method before accessing the business data using the ViewHelper instance accessor methods.

Version:
0.2
Author:
Nicolas Bonvin

Field Summary
static java.lang.String HELPER_KEY
           
 
Method Summary
 PerformResult perform(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Performs the business logic.
 

Field Detail

HELPER_KEY

public static final java.lang.String HELPER_KEY
Method Detail

perform

public PerformResult perform(javax.servlet.ServletContext context,
                             javax.servlet.http.HttpServletRequest request,
                             javax.servlet.http.HttpServletResponse response)
                      throws javax.servlet.jsp.JspException
Performs the business logic.
Parameters:
request - the HTTP request being processed
response - the HTTP response associated with the request
Returns:
a ResultCode object containing information about the result of the execution.
See Also:
ResultCode


Copyright 2002 - ultrawork