2002-03-11 13:49:50 +00:00
|
|
|
if ( checkAddress()==false ) return;
|
|
|
|
if ( checkAuth(this)==false ) return;
|
|
|
|
|
|
|
|
if ( req.data.action=="reload" ) {
|
|
|
|
var appObj = root.getChildElement(this.name);
|
|
|
|
appObj.docApp = new Packages.helma.doc.DocApplication( this.name, this.location );
|
|
|
|
if ( req.data.redirect != null && req.data.redirect != "" )
|
|
|
|
res.redirect ( getProperty("baseURI") + req.data.redirect );
|
|
|
|
else
|
|
|
|
res.redirect ( this.href("main") );
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( req.data.action=="index" ) {
|
2002-05-31 14:14:37 +00:00
|
|
|
res.data.body = this.renderSkinAsString("index");
|
2002-03-11 13:49:50 +00:00
|
|
|
} else {
|
2002-05-31 14:14:37 +00:00
|
|
|
res.data.body = this.renderSkinAsString("main");
|
2002-03-11 13:49:50 +00:00
|
|
|
}
|
|
|
|
|
2002-05-31 14:14:37 +00:00
|
|
|
res.data.title = "Application " + this.name;
|
|
|
|
renderSkin("api");
|
2002-03-11 13:49:50 +00:00
|
|
|
|
|
|
|
|