org.jscience.sociology.forms.util
Class SimpleContentGenerator

java.lang.Object
  extended by org.jscience.sociology.forms.util.SimpleContentGenerator
All Implemented Interfaces:
ContentGenerator

public class SimpleContentGenerator
extends java.lang.Object
implements ContentGenerator

This class is an implementation of org.jscience.sociology.forms.view.ContentGenerator intended for use with Java Server Pages.

See Also:
ContentGenerator

Constructor Summary
SimpleContentGenerator()
           
 
Method Summary
 void forwardToFormAction(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, Form form)
          Implements the same method of ContentGenerator interface.
 void sendFormContent(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, Form form)
          Implements the same method of ContentGenerator interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleContentGenerator

public SimpleContentGenerator()
Method Detail

sendFormContent

public void sendFormContent(javax.servlet.http.HttpServletRequest req,
                            javax.servlet.http.HttpServletResponse resp,
                            Form form)
                     throws javax.servlet.ServletException,
                            java.io.IOException
Implements the same method of ContentGenerator interface.

Specified by:
sendFormContent in interface ContentGenerator
Parameters:
req - the HttpServletRequest object.
resp - the HttpServletResponse object.
form - the Form object going to be presented.
Throws:
javax.servlet.ServletException - DOCUMENT ME!
java.io.IOException - DOCUMENT ME!

forwardToFormAction

public void forwardToFormAction(javax.servlet.http.HttpServletRequest req,
                                javax.servlet.http.HttpServletResponse resp,
                                Form form)
                         throws javax.servlet.ServletException,
                                java.io.IOException
Implements the same method of ContentGenerator interface.

Specified by:
forwardToFormAction in interface ContentGenerator
Parameters:
req - the HttpServletRequest object.
resp - the HttpServletResponse object.
form - the Form object that was presented.
Throws:
javax.servlet.ServletException - DOCUMENT ME!
java.io.IOException - DOCUMENT ME!