|
http://www.eteks.com | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.GenericServlet javax.servlet.http.HttpServlet com.eteks.awt.servlet.PJAServlet com.eteks.servlet.TeksSurveyPie
This servlet manages in a simple way a dynamic survey and returns the pie of the survey. It can be called in either ways :
.../servlet/com.eteks.servlet.TeksSurveyPie?survey=mySurvey&answer=myAnswer
adds the answer myAnswer
to the survey mySurvey
,
and then returns the pie of the current state of mySurvey
.
.../servlet/com.eteks.servlet.TeksSurveyPie?survey=mySurvey
simply returns the pie of the current state of mySurvey
.To be platform independant, the servlet uses com.eteks.awt.servlet.PJAServlet
as super class,
to have at disposal an image into which graphics operation can be performed.
com.eteks.awt.PJAServlet
class and depending classes of com.eteks.awt
packages
must be in the servlet engine classpath, and at least one .pjaf font file (Pure Java AWT Font) must exist
in the user directory or in the directory set in the java.awt.fonts
system property,
if JVM version <= 1.1.
PJAServlet
,
Serialized FormConstructor Summary | |
TeksSurveyPie()
|
Method Summary | |
void |
destroyPJA()
Override this method instead of the final method destroy () .
|
void |
doGetPJA(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Override this method instead of the final method doGet () .
|
void |
doPostPJA(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Override this method instead of the final method doPost () .
|
java.lang.String |
getFontsPath()
Override this method to return the fonts path where .pjaf files (JDK 1.1) or True Type files (JDK >= 1.2) can be found. |
void |
initPJA(javax.servlet.ServletConfig config)
Override this method instead of the final method init (ServletConfig config) .
|
void |
sendGIFImage(java.awt.Image image,
javax.servlet.http.HttpServletResponse response)
Generates a GIF image on the response stream from image. |
Methods inherited from class com.eteks.awt.servlet.PJAServlet |
createImage, destroy, doDelete, doDeletePJA, doGet, doOptions, doOptionsPJA, doPost, doPut, doPutPJA, doTrace, doTracePJA, getServletInfo, getServletInfoPJA, getSystemProperty, getUserHomeDir, init, init, initPJA, isDefaultToolkitAvailable, service, service, servicePJA, servicePJA, testDefaultToolkit |
Methods inherited from class javax.servlet.http.HttpServlet |
getLastModified |
Methods inherited from class javax.servlet.GenericServlet |
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TeksSurveyPie()
Method Detail |
public void initPJA(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
PJAServlet
init (ServletConfig config)
.
PJAServlet
implementation calls super.init (config)
.
initPJA
in class PJAServlet
javax.servlet.ServletException
public void destroyPJA()
PJAServlet
destroy ()
.
PJAServlet
implementation calls super.destroy ()
.
destroyPJA
in class PJAServlet
public java.lang.String getFontsPath()
PJAServlet
File.pathSeparator
.PJAServlet
constructor.
getFontsPath
in class PJAServlet
PJAServlet
implementation returns "."
+ File.pathSeparator + getSystemProperty ("user.dir")
+ File.pathSeparator + getSystemProperty ("java.home")
public void doPostPJA(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
PJAServlet
doPost ()
.
PJAServlet
implementation calls super.doPost ()
.
doPostPJA
in class PJAServlet
javax.servlet.ServletException
java.io.IOException
public void doGetPJA(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
PJAServlet
doGet ()
.
PJAServlet
implementation calls super.doGet ()
.
doGetPJA
in class PJAServlet
javax.servlet.ServletException
java.io.IOException
public void sendGIFImage(java.awt.Image image, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |