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;

public class IndexPageJspGenerator extends AbstractJSPGenerator {

	public FileEntry generate(Context context) {
		FileEntry page = new FileEntry(getIndexPagePathJSP(), getIndexPageJspName(),
				generateIndexPage().createFileContent());
		page.setType(".jsp");
		return page;
	}

	public static final String getIndexPageJspName() {
		return "WelcomePageMaf";
	}

	public static final String getSharedJspFooterPageName() {
		return getIndexPageJspName() + ".jsp";
	}
	
	public static final String getIndexJspFullName() {
		return getIndexPageJspPath() + "/" + getSharedJspFooterPageName();
	}
	
	
	public static final String getIndexPagePathJSP(){
		return  FileEntry.package2fullPath(GeneratorDataRegistry.getInstance().getContext().getPackageName(MetaModule.SHARED) + ".jsp");      
	}

	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 - 2025 Weber Informatics LLC | Privacy Policy