Sun Java System Portal Server 7 Developer's Guide

DesktopServlet Legacy process Action


DesktopServletURL?action=process&provider=channelName

When the DesktopServlet receives a request where the action is process (see Action process), the DesktopServlet:

  1. Looks at the parameters to identify which provider will handle the action, through the provider’s processEdit() method.

    The processEdit() method is called to process the edit page generated from the getEdit() method. The request passed in contains the parameters.

  2. Re-directs to the URL returned from the provider’s processEdit() method.

    If there is an InvalidEditFormDataException, the DesktopServlet will redirect the browser back to the channel’s edit page and include a URL parameter error so that the channel may display the cause of the exception to the user. That is, the DesktopServlet will get the error message and generate a new request as follows.


    DesktopServletURL?action=edit&provider=channelName&error=errormessage
    
Figure 3–4 DesktopServlet Legacy process Action

This flowchart shows the DesktopServlet legacy process action.