All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.anotheria.asg.generator.view.jsp.IndexPageJspGenerator Maven / Gradle / Ivy

package net.anotheria.asg.generator.view.jsp;

import net.anotheria.asg.generator.Context;
import net.anotheria.asg.generator.FileEntry;
import net.anotheria.asg.generator.GeneratedJSPFile;
import net.anotheria.asg.generator.GeneratorDataRegistry;
import net.anotheria.asg.generator.meta.MetaModule;

/**
 * 

IndexPageJspGenerator class.

* * @author another * @version $Id: $Id */ public class IndexPageJspGenerator extends AbstractJSPGenerator { /** *

generate.

* * @param context a {@link net.anotheria.asg.generator.Context} object. * @return a {@link net.anotheria.asg.generator.FileEntry} object. */ public FileEntry generate(Context context) { FileEntry page = new FileEntry(getIndexPagePathJSP(), getIndexPageJspName(), generateIndexPage().createFileContent()); page.setType(".jsp"); return page; } /** *

getIndexPageJspName.

* * @return a {@link java.lang.String} object. */ public static final String getIndexPageJspName() { return "WelcomePageMaf"; } /** *

getSharedJspFooterPageName.

* * @return a {@link java.lang.String} object. */ public static final String getSharedJspFooterPageName() { return getIndexPageJspName() + ".jsp"; } /** *

getIndexJspFullName.

* * @return a {@link java.lang.String} object. */ public static final String getIndexJspFullName() { return getIndexPageJspPath() + "/" + getSharedJspFooterPageName(); } /** *

getIndexPagePathJSP.

* * @return a {@link java.lang.String} object. */ public static final String getIndexPagePathJSP(){ return FileEntry.package2fullPath(GeneratorDataRegistry.getInstance().getContext().getPackageName(MetaModule.SHARED) + ".jsp"); } /** *

getIndexPageJspPath.

* * @return a {@link java.lang.String} object. */ public static final String getIndexPageJspPath(){ return FileEntry.package2fullPath(GeneratorDataRegistry.getInstance().getContext().getPackageName(MetaModule.SHARED)).substring(FileEntry.package2fullPath(GeneratorDataRegistry.getInstance().getContext().getPackageName(MetaModule.SHARED)).indexOf('/'))+"/jsp"; } private GeneratedJSPFile generateIndexPage() { GeneratedJSPFile jsp = new GeneratedJSPFile(); startNewJob(jsp); jsp.setName(getIndexPageJspName()); resetIdent(); append(getBaseJSPHeader()); appendString(""); appendString(""); appendString(""); increaseIdent(); appendString("" + getIndexPageJspName() + ""); generatePragmas(); appendString(""); appendString(""); appendString(""); decreaseIdent(); appendString(""); appendString(""); appendString(""); appendString("
"); increaseIdent(); appendString("
"); increaseIdent(); appendString("
"); increaseIdent(); appendString("
"); appendString("
"); appendString("
"); appendString("
"); appendString("

Welcome, !

"); appendString(""); appendString(""); appendString(""); appendString(""); appendString(""); appendString(""); appendString(""); appendString(""); appendString(""); appendString(""); appendString(""); appendString(""); appendString(""); appendString(""); appendString(" highlightable\">"); appendString(""); appendString(""); appendString(""); appendString(""); appendString(""); appendString(""); appendString(""); appendString("

Last changes

DocumentActionUser nameTime
Edit?pId=\">
"); appendString("
"); appendString("

You are on AnoSiteGenerator v.2.0 main page now. This system helps to create pages, layouts and content for site pages.

"); appendString("
"); appendString("
"); appendString("
"); appendString("
"); appendString("
"); appendString(""); appendString(""); appendString(""); append(getBaseJSPFooter()); return jsp; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy