Package fr.paris.lutece.plugins.form.web
Class FormApp
java.lang.Object
fr.paris.lutece.plugins.form.web.FormApp
- All Implemented Interfaces:
fr.paris.lutece.portal.web.xpages.XPageApplication,Serializable
This class manages Form page.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoInsertResponseInFormSubmit(javax.servlet.http.HttpServletRequest request, FormSubmit formSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin) insert response in the form submitvoiddoPerformFormSubmit(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpSession session, FormSubmit formSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin) perform the form submit in databasefr.paris.lutece.portal.web.xpages.XPagegetPage(javax.servlet.http.HttpServletRequest request, int nMode, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns the Form XPage result content depending on the request parameters and the current mode.
-
Constructor Details
-
FormApp
public FormApp()
-
-
Method Details
-
getPage
public fr.paris.lutece.portal.web.xpages.XPage getPage(javax.servlet.http.HttpServletRequest request, int nMode, fr.paris.lutece.portal.service.plugin.Plugin plugin) throws fr.paris.lutece.portal.service.message.SiteMessageException Returns the Form XPage result content depending on the request parameters and the current mode.- Specified by:
getPagein interfacefr.paris.lutece.portal.web.xpages.XPageApplication- Parameters:
request- The HTTP request.nMode- The current mode.plugin- The Plugin- Returns:
- The page content.
- Throws:
fr.paris.lutece.portal.service.message.SiteMessageException- the SiteMessageException
-
doInsertResponseInFormSubmit
public void doInsertResponseInFormSubmit(javax.servlet.http.HttpServletRequest request, FormSubmit formSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin) throws fr.paris.lutece.portal.service.message.SiteMessageException insert response in the form submit- Parameters:
request- request The HTTP requestformSubmit- Form Submitplugin- the Plugin- Throws:
fr.paris.lutece.portal.service.message.SiteMessageException- SiteMessageException
-
doPerformFormSubmit
public void doPerformFormSubmit(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpSession session, FormSubmit formSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin) throws fr.paris.lutece.portal.service.message.SiteMessageException perform the form submit in database- Parameters:
request- The HTTP requestsession- the http sessionformSubmit- Form Submitplugin- the Plugin- Throws:
fr.paris.lutece.portal.service.message.SiteMessageException- SiteMessageException
-