net.jspcontrols.dialogs.actions
Interface IDialogAction

All Superinterfaces:
ISelectAction
All Known Implementing Classes:
DialogAction

public interface IDialogAction
extends ISelectAction

This interface must be implemented by an action class that wants to use DialogAction as utility dispatcher.

Since:
1.24
Author:
Michael Jouravlev

Method Summary
 org.apache.struts.action.ActionForward getDialogView(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Returns an ActionForward instance, pointing to a View for current dialog state, usually a forward to a JSP page.
 
Methods inherited from interface net.jspcontrols.dialogs.actions.ISelectAction
cancelled, unspecified
 

Method Detail

getDialogView

public org.apache.struts.action.ActionForward getDialogView(org.apache.struts.action.ActionMapping mapping,
                                                            org.apache.struts.action.ActionForm form,
                                                            javax.servlet.http.HttpServletRequest request,
                                                            javax.servlet.http.HttpServletResponse response)
                                                     throws java.lang.Exception
Returns an ActionForward instance, pointing to a View for current dialog state, usually a forward to a JSP page.

If you want to use the default implementation, define the View under "DIALOG-VIEW" name in <forward> element of your action mapping.

To use different mapping name, define the view in <forward> element of your action mapping, and override this method to return ActionForward object for your mapping name.

Parameters:
mapping - The ActionMapping used to select this instance
form - The optional ActionForm bean for this request (if any)
request - The HTTP request we are processing
response - The HTTP response we are creating
Returns:
ActionForward instance describing the View for dialog state
Throws:
java.lang.Exception - if an exception occurs
Since:
1.24