|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.taggercat.template.pagegen.JSPPageGenerator
public class JSPPageGenerator
A console application for the generating and maintaining basic template based JSP pages. We are using this application because we are maintaining ~ 400 pages in our application. If your application has ~ 10 ish pages, then this might not be a significant benefit to you.
![]() |
![]() |
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_ENCODING
Default character encoding for response. |
| Constructor Summary | |
|---|---|
JSPPageGenerator(java.lang.String filename,
java.lang.String xpath,
java.lang.String outputBaseFolderName,
boolean testmode)
|
|
| Method Summary | |
|---|---|
void |
generatePage(java.lang.String baseFolderName,
com.taggercat.template.pagegen.JSPPageGenerator.Page page)
Generates the specific page in the destination folder. |
java.util.Map |
getExistingEditablePageContent(java.io.File destinationFile)
Creates a Map of all named editable sections in the existing page. |
java.lang.String |
getJSessionId(java.net.URLConnection conn)
Get the jsession id used in the current connection |
static void |
main(java.lang.String[] args)
Main |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_ENCODING
| Constructor Detail |
|---|
public JSPPageGenerator(java.lang.String filename,
java.lang.String xpath,
java.lang.String outputBaseFolderName,
boolean testmode)
| Method Detail |
|---|
public java.lang.String getJSessionId(java.net.URLConnection conn)
throws java.net.MalformedURLException,
java.io.IOException
java.net.MalformedURLException
java.io.IOExceptionconn -
public void generatePage(java.lang.String baseFolderName,
com.taggercat.template.pagegen.JSPPageGenerator.Page page)
throws java.net.MalformedURLException,
java.io.IOException
java.net.MalformedURLException
java.io.IOExceptionbaseFolderName - the base folder to write the outputpage - the page object to process
public java.util.Map getExistingEditablePageContent(java.io.File destinationFile)
throws java.io.IOException
java.io.IOExceptiondestinationFile - the existing jsp file
public static void main(java.lang.String[] args)
args - templates.xml file
xpath expression
base output directory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||