|
|||||||||
| Home >> All >> com >> RuntimeCollective >> webapps >> [ action overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.RuntimeCollective.webapps.action
Class BetsieAction

java.lang.Objectorg.apache.struts.action.Action
com.RuntimeCollective.webapps.action.BetsieAction
- public final class BetsieAction
- extends org.apache.struts.action.Action
Implementation of an Action that utilises Betsie to
convert any page to plaintext. This action performs two roles, depending
on the parameters in the request. In order to convert pages into plaintext
using Betsie we need two passes - 1st we forward to the jsp we want to view,
2nd we use Betsie to convert the graphical output to plaintext only. The
pass in question is indicated by the presence of one of the following
params on the request.
- getJsp - if present we are on our way to process the jsp, this always needs to be done on the first pass
- betsieBounce - we've got a jsp response, so we now want to transform that to plaintext
Note: This action and everything related to it is a hack. At some point Betsie needs to be replaced by an action that does the same thing natively or preferrably by a web controller capable of producing plaintext (J2, anyone?). Hey, maybe there's even an XSLT stylesheet out there that can do this?
- Version:
- $Id: BetsieAction.java,v 1.27 2003/09/30 15:13:08 joe Exp $
| Field Summary | |
static java.lang.String |
BETSIE_SERVER_PARAM
The web.xml param name to override 'betsieServer', which is, well, 'betsieServer'. |
static java.lang.String |
betsieServer
Location of the active Betsie server, can be overridden by a betsieServer param in web.xml. |
static java.lang.String |
NULL_SESSION_ID
Special value used when the session id is null (ie when logging out). |
static java.lang.String |
pass1
Path and query string for the first pass. |
static java.lang.String |
pass2
Path and query string for the second pass. |
protected static java.util.Hashtable |
responseSet
Stores secret buffers to which jsps write themselves - these are later given to Betsie. |
| Fields inherited from class org.apache.struts.action.Action |
defaultLocale, servlet |
| Constructor Summary | |
BetsieAction()
|
|
| Method Summary | |
org.apache.struts.action.ActionForward |
perform(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Runs Betsie. |
static java.lang.String |
removeBetsieString(java.lang.String s)
Deprecated. here for Java 1.3 backward compatibility only |
static java.lang.String |
replaceQuestionMarks(java.lang.String s)
Deprecated. here for Java 1.3 backward compatibility only |
| Methods inherited from class org.apache.struts.action.Action |
addErrors, addMessages, execute, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
pass1
public static java.lang.String pass1
- Path and query string for the first pass.
pass2
public static java.lang.String pass2
- Path and query string for the second pass.
NULL_SESSION_ID
public static java.lang.String NULL_SESSION_ID
- Special value used when the session id is null (ie when logging out).
betsieServer
public static java.lang.String betsieServer
- Location of the active Betsie server, can be overridden by a betsieServer param in web.xml.
BETSIE_SERVER_PARAM
public static java.lang.String BETSIE_SERVER_PARAM
- The web.xml param name to override 'betsieServer', which is, well, 'betsieServer'.
responseSet
protected static java.util.Hashtable responseSet
- Stores secret buffers to which jsps write themselves - these are later given to Betsie.
| Constructor Detail |
BetsieAction
public BetsieAction()
| Method Detail |
perform
public org.apache.struts.action.ActionForward perform(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
- Runs Betsie. Expects the following parameters:
- action="getJsp", url="http://www.some_url.com" OR
- action="betsieBounce", sessionId="valid_id", ackUrl="http://www.my_return_address.com"
The following
Forwardsare returned:failure- there was a problem, most likely with the supplied paramssuccess- it worked, for nowThe following error messages are returned:
error.db.connection- if there was a problem connecting to the database.
removeBetsieString
public static java.lang.String removeBetsieString(java.lang.String s)
- Deprecated. here for Java 1.3 backward compatibility only
- This is only here to do pattern matching without regexps - remove it when Java 1.4 is introduced to J1
- This is only here to do pattern matching without regexps - remove it when Java 1.4 is introduced to J1
replaceQuestionMarks
public static java.lang.String replaceQuestionMarks(java.lang.String s)
- Deprecated. here for Java 1.3 backward compatibility only
- This is only here to do pattern matching without regexps - remove it when Java 1.4 is introduced to J1
- This is only here to do pattern matching without regexps - remove it when Java 1.4 is introduced to J1
|
|||||||||
| Home >> All >> com >> RuntimeCollective >> webapps >> [ action overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC