*/
private void doGetMapping() throws PageException {
Mapping[] mappings = config.getMappings();
Struct sct=new StructImpl();
String virtual=getString("admin",action,"virtual");
for(int i=0;i<mappings.length;i++) {
MappingImpl m=(MappingImpl) mappings[i];
if(!m.getVirtual().equals(virtual)) continue;
sct.set("archive",m.getArchive());
sct.set("strarchive",m.getStrArchive());
sct.set("physical",m.getPhysical());
sct.set("strphysical",m.getStrPhysical());
sct.set("virtual",m.getVirtual());
sct.set(KeyConstants._hidden,Caster.toBoolean(m.isHidden()));
sct.set("physicalFirst",Caster.toBoolean(m.isPhysicalFirst()));
sct.set("readonly",Caster.toBoolean(m.isReadonly()));
sct.set("inspect",ConfigWebUtil.inspectTemplate(m.getInspectTemplateRaw(), ""));
sct.set("toplevel",Caster.toBoolean(m.isTopLevel()));
pageContext.setVariable(getString("admin",action,"returnVariable"),sct);
return;
}
throw new ApplicationException("there is no mapping with virtual ["+virtual+"]");