<%@ page language="java" %><%@ page import="java.util.*" %><%@ page import="com.bmw.wcms.nsceditor.content.ObjectReference" %><%@ page import="com.bmwgroup.wcms.cmsal.*" %><%@ page import="com.bmwgroup.wcms.cmsal.exception.*" %><%@ page import="com.bmwgroup.wcms.common.cmstools.*" %><%@ page import="com.bmwgroup.wcms.contentmodel.*" %><%@ page import="com.bmwgroup.wcms.websiteapi.*" %><%@ page import="com.bmwgroup.wcms.base.*" %><%@ page import="com.bmwgroup.wcms.base.util.*" %><%@ page import="com.bmwgroup.wcms.base.mapelement.*" %><%@ page import="com.bmwgroup.wcms.template.util.*" %><%@ include file="../../../../../../../templates/_basic/_includes/mcCommon.inc.jsp" %><%! // make current oid and url globally available final String thisVipOid = "2099095"; final String thisVipUrlAbsolute = "http://wcms10.bmwgroup.com/bmw_prod/be/nl/newvehicles/x6/x6/2007/carconfigurator/test_drive_request.html"; %><% final String configurationSetName = null; final String vipSite = "bmw"; final String vipServer = "PROD"; final String vipserver = vipServer; int stage = 0; boolean forceSerializedObjects = false; // prepared variables of scope inside _jspService TextFormat standardFormat=null; try { CMSTemplate template = null; CMSObject cmsObject = null; CMSContext cmsContext = new CMSContext (vipSite, vipServer); CMSToolKit cmsToolKit = CMSSessionPoolSingleton.getCMSToolkit(configurationSetName); stage = cmsToolKit.mapStage(vipServer); //make cmsContext globally available cmsContextRef = cmsContext; if ((!ContentModelUtils.isCalledFromEditor(request))||(ContentModelUtils.isGeneratorCall(request, stage))) { //load Configuration loadConfiguration(cmsContext, "2099095", "http://wcms10.bmwgroup.com/bmw_prod/be/nl/newvehicles/x6/x6/2007/carconfigurator/test_drive_request.html"); /* ---- Establish standard text formater start ---- */ String absoluteFormatUrl = ObjectUtils.absoluteUrl("http://wcms10.bmwgroup.com/bmw_prod/be/nl/newvehicles/x6/x6/2007/carconfigurator/test_drive_request.html", ObjectUtils.getRelativeObjectUrl("2099095", "321", cmsContext)); standardFormat = new TextFormat(); standardFormat.init (absoluteFormatUrl); /* ---- Establish standard text formater end ---- */ /* ---- Define js code for configuration variables start ---- */ // generate a relative url from confJavascriptConfigurationOid, to reference JS-Script String confJavascriptConfigurationUrl=null; if(confJavascriptConfigurationOid != null) { try { confJavascriptConfigurationUrl = ObjectUtils.getRelativeObjectUrl("2099095", confJavascriptConfigurationOid, cmsContext); } catch(Exception e) {} } // include javascript configuration variables and configuration scripts // configuration.js might be missing, so check if(confJavascriptConfigurationUrl != null) { %> <% } String nearestMisc2Attribute = ObjectUtils.getNearestMetaAttributeAsString(ObjectUtils.getCMSEntry("2099095", cmsContext), CMSConstants.CMS_META_ATTR_MISC_2); if(nearestMisc2Attribute == null){ nearestMisc2Attribute = "null"; } else { nearestMisc2Attribute = "\""+nearestMisc2Attribute +"\""; } %> <% /* ---- Define js code for configuration variables end ---- */ } // End of if(!ContentModelUtils.isCalledFromEditor(request)) %> <% // decide where to load generic.css from String cssUrl = null; String serverRelativeTopics2 = ObjectUtils.getServerRelativeTopic (thisVipOid, thisVipOid, cmsContext); String serverPath2 = thisVipUrlAbsolute.substring(0,thisVipUrlAbsolute.indexOf(serverRelativeTopics2)); if(confCountryTopic != null) { if(confSeoIsActive){ cssUrl = serverPath2 + "/" + confCountryTopic + "/_common/css/generic_seo.css"; }else{ cssUrl = serverPath2 + "/" + confCountryTopic + "/_common/css/generic.css"; } } else { if(confSeoIsActive){ cssUrl = /*VIPURL*/"../../../../../../../_common/narrowband/css/generic_seo.css"; }else{ cssUrl = /*VIPURL*/"../../../../../../../_common/narrowband/css/generic.css"; } } %> <%if(confSeoIsActive){ %> <%}else{%> <%}%> BMW X6 : Proefrit aanvragen <%@ include file="../../../../../../../templates/_basic/_includes/mcPageHead.inc.jsp" %> <% if(confSeoIsActive){ %>
<%}%> <% // // CMSTemplate template = new CMSTemplate( /* VIPURL */""); { template.setAttribute("ttCOMMENT", "
Template to integrate ECOM UIC as external content.
"); template.setAttribute("ttREGORDER", "comment,external content,perso engine,search engine metadata,id modules,configuration,edataxchange,all,head data,metadata"); template.setVipObjId(new Integer("2099095")); template.setName(""); template.setDescription(""); CMSElement e; e = new CMSElement(); e.setName("allow_parameter_transfer"); e.setAttribute("oDISP", "TRUE"); e.setAttribute("tD", "
\r\nSelect if parameters should be transferred to the external content page.
\r\nAll parameters trailed to the frameset page are transferred to the external content page.\r\n
"); e.setAttribute("tMAPELS", "Allow parameter transfer=true\r\n*Block parameter transfer=false"); e.setAttribute("tORD", "10"); e.setAttribute("tREGN", "external content"); e.setAttribute("tT", "MAP"); template.setElement(e); e = new CMSElement(); e.setName("bmw_search_engine_metadata"); e.setAttribute("tALWMSEL_media_type", "TRUE"); e.setAttribute("tATTRDESCRIPTION_hotspot", "
If the search result is a hotspot, activate the \"Selected Value\" checkbox.
"); e.setAttribute("tATTRDESCRIPTION_media_type", "
Select the media type of this page and/or the media type of all available downloads on this page. Multiple selections are possible.
"); e.setAttribute("tATTRDESCRIPTION_not_shown_in_search_result", "
If this page is not to be displayed in search results, activate the \"Selected Value\" checkbox.
"); e.setAttribute("tATTRDESCRIPTION_popup", "
If the search result is to be opened in a popup window, enter the name, width and height of this popup window.
Format:

\"name,width,height\"

"); e.setAttribute("tATTRDESCRIPTION_target_frame", "
Select the link target of the search result link. The default target is \"_self\". If \"Named Window (my_target)\" is selected, the link opens in a new window called \"my_target\".
"); e.setAttribute("tATTRDESCRIPTION_target_url", "
Sets an alternative frameset page for found page to launch in. This parameter is currently not used as there is only one frameset.
"); e.setAttribute("tATTRORDER_hotspot", "20"); e.setAttribute("tATTRORDER_media_type", "60"); e.setAttribute("tATTRORDER_not_shown_in_search_result", "10"); e.setAttribute("tATTRORDER_popup", "30"); e.setAttribute("tATTRORDER_target_frame", "50"); e.setAttribute("tATTRORDER_target_url", "40"); e.setAttribute("tATTRTYPE_hotspot", "BOOLEAN"); e.setAttribute("tATTRTYPE_media_type", "MAP"); e.setAttribute("tATTRTYPE_not_shown_in_search_result", "BOOLEAN"); e.setAttribute("tATTRTYPE_popup", "TEXT"); e.setAttribute("tATTRTYPE_target_frame", "MAP"); e.setAttribute("tATTRTYPE_target_url", "LINK"); e.setAttribute("tAVINHDR", "TRUE"); e.setAttribute("tCLSN_popup", "FreeTextValidator"); e.setAttribute("tD", "
Additional search engine metadata interpreted by the Neofonie search engine.\r\nEach element is optional.
"); e.setAttribute("tMAPELS_media_type", "PDF=PDF\r\nVideo=Video\r\nImages=Bilder\r\nQuick Time VR=QTVR"); e.setAttribute("tMAPELS_target_frame", "New window (_blank)=_blank\r\nTop frame (_top)=_top\r\nParent frame (_parent)=_parent\r\nNamed Window (my_target)=my_target"); e.setAttribute("tREGN", "search engine metadata"); e.setAttribute("tT", "GENERIC"); template.setElement(e); e = new CMSElement(); e.setName("edataxchange_javascript"); e.setAttribute("tD", "
This is the Javascript file used with the eDataXchange functionality.
"); e.setAttribute("tORD", "1010"); e.setAttribute("tREGN", "edataxchange"); e.setAttribute("tT", "ATTACHMENT"); template.setElement(e); e = new CMSElement(); e.setName("enable_edataxchange"); e.setAttribute("tD", "
If you are going to use the eDataXchange functionality on this page, the box \"Selected value\" has to be ticked.\r\n\r\nIf you are not quiet sure, what this element is used for, please leave it as is.
"); e.setAttribute("tORD", "1000"); e.setAttribute("tREGN", "edataxchange"); e.setAttribute("tT", "BOOLEAN"); template.setElement(e); e = new CMSElement(); e.setName("external_content"); e.setAttribute("tATTRDESCRIPTION_backLinkName", "
\r\n\"Back\" link text. This text is only entered if parameters are transferred for a vehicle.
\r\nThis only takes place for the vehicle pages directly in the showroom.
\r\n
\r\nThe field must remain empty if no vehicle parameters are to be transferred. (\"car_is_preselected\" is deactivated).\r\n
"); e.setAttribute("tATTRDESCRIPTION_backLinkUrl_highend", "
\r\n\"Back\" link URL that is displayed in the UIC pages.
\r\nThis link leads back to the video version.\r\n
"); e.setAttribute("tATTRDESCRIPTION_backLinkUrl_narrowband", "
\r\n\"Back\" link URL that is displayed in the UIC pages.
\r\nThis link leads back to the compact version.\r\n
"); e.setAttribute("tATTRDESCRIPTION_bodytype", "
\r\nPlease select a model at should be preselected when calling up the UIC pages.
\r\n
\r\nNote: the series and the model are dependent on one another.
\r\nThe series to the models are displayed in brackets.
\r\n
\r\nAn incorrect combination can lead to an incorrect link.\r\n
"); e.setAttribute("tATTRDESCRIPTION_car_is_preselected", "
\r\nActivating the checkbox enables the \"series\" and \"bodytype\" parameters to be transferred.\r\n
"); e.setAttribute("tATTRDESCRIPTION_country", "
\r\nEnter country ID.
\r\nThe ID is always written in capital letters.
\r\nThis entry is mandatory.\r\n
"); e.setAttribute("tATTRDESCRIPTION_direct_model_selection", "
\r\nThis selection allows to directly select a specifc model, overriding the selections for series and bodytype. Do not select any value here, if you just want to choose series and bodytype.\r\nThis is currently used for M Models mostly.\r\n
"); e.setAttribute("tATTRDESCRIPTION_language", "
\r\nEnter the language ID.
\r\nThe ID is always written in lower case.
\r\nThis entry is mandatory.\r\n
"); e.setAttribute("tATTRDESCRIPTION_link", "
\r\nThe link to the external UIC page. Only the controller page is specified
(e.g.: http:// ecomi.bmwgroup.com / ecom40ro / generic40b / entryservlet ).
\r\nAll parameters are extended below.\r\n
"); e.setAttribute("tATTRDESCRIPTION_process", "
\r\nPlease select a \"Process\".
\r\nA process is the area you want to link to.
\r\nThis entry is mandatory.\r\n
"); e.setAttribute("tATTRDESCRIPTION_series", "
\r\nPlease select a series that should be preselected when calling up the UIC pages.\r\n
"); e.setAttribute("tATTRDESCRIPTION_variant", "
\r\nPlease select a \"variant\".
\r\n\r\nThis entry is mandatory.\r\n
"); e.setAttribute("tATTRMANDATORY_country", "TRUE"); e.setAttribute("tATTRMANDATORY_language", "TRUE"); e.setAttribute("tATTRMANDATORY_link", "TRUE"); e.setAttribute("tATTRMANDATORY_process", "TRUE"); e.setAttribute("tATTRORDER_backLinkName", "50"); e.setAttribute("tATTRORDER_backLinkUrl_highend", "70"); e.setAttribute("tATTRORDER_backLinkUrl_narrowband", "60"); e.setAttribute("tATTRORDER_bodytype", "100"); e.setAttribute("tATTRORDER_car_is_preselected", "80"); e.setAttribute("tATTRORDER_country", "20"); e.setAttribute("tATTRORDER_direct_model_selection", "110"); e.setAttribute("tATTRORDER_language", "30"); e.setAttribute("tATTRORDER_link", "10"); e.setAttribute("tATTRORDER_process", "40"); e.setAttribute("tATTRORDER_series", "90"); e.setAttribute("tATTRORDER_variant", "120"); e.setAttribute("tATTRTYPE_backLinkName", "TEXT"); e.setAttribute("tATTRTYPE_backLinkUrl_highend", "LINK"); e.setAttribute("tATTRTYPE_backLinkUrl_narrowband", "LINK"); e.setAttribute("tATTRTYPE_bodytype", "MAP"); e.setAttribute("tATTRTYPE_car_is_preselected", "BOOLEAN"); e.setAttribute("tATTRTYPE_country", "TEXT"); e.setAttribute("tATTRTYPE_direct_model_selection", "MAP"); e.setAttribute("tATTRTYPE_language", "TEXT"); e.setAttribute("tATTRTYPE_link", "LINK"); e.setAttribute("tATTRTYPE_process", "MAP"); e.setAttribute("tATTRTYPE_series", "MAP"); e.setAttribute("tATTRTYPE_variant", "MAP"); e.setAttribute("tCLSN_backLinkName", "FreeTextValidator"); e.setAttribute("tCLSN_country", "IdentifierValidator"); e.setAttribute("tCLSN_language", "IdentifierValidator"); e.setAttribute("tD", "
\r\nExternal content data\r\n
"); e.setAttribute("tMAPELS_bodytype", "Sports Hatch (e.g. 1 series 5-door)=SH\r\nConvertible (e.g. M3 Convertible)=CA\r\nCompact (e.g. 3 series compact)=KO\r\nSedan (3series, 5series, 7series, M5)=LI\r\nTouring (3series, 5series)=TO\r\nCoup\u00e9 (3series, 6series, M3, M6)=CP\r\nSports Activity Vehicle (X3, X5)=GF\r\nRoadster (Z4)=RO\r\nHatch (1series 3-door)=HC\r\nSports Coupe (X6)=SC"); e.setAttribute("tMAPELS_direct_model_selection", "Z4 M Roadster=BT91\r\nZ4 M Coupe=DU91\r\nM5 Limousine=NB91\r\nM5 Touring=PV91\r\nM6 Coupe=EH91\r\nM6 Cabrio=EK91"); e.setAttribute("tMAPELS_process", "*Configuration center (overview page)=cdp\r\nVehicle configurator (vco)=vco\r\nDealer locater (dlo)=dlo\r\nTest drive appointment (tda)=tda\r\nRequest for information (rfi)=rfi\r\nRequest for offer (rfo)=rfo\r\n"); e.setAttribute("tMAPELS_series", "1 series=1\r\n3 series=3\r\n5 series=5\r\n6 series=6\r\n7 series=7\r\nX3=X3\r\nX5=X5\r\nZ4=Z4\r\nM series=M\r\nX6=X6"); e.setAttribute("tMAPELS_variant", "BMW Welt=BMWWelt"); e.setAttribute("tMLEN_backLinkName", "200"); e.setAttribute("tMLEN_country", "3"); e.setAttribute("tMLEN_language", "3"); e.setAttribute("tORD", "20"); e.setAttribute("tREGN", "external content"); e.setAttribute("tSINGLELN_backLinkName", "FALSE"); e.setAttribute("tSINGLELN_country", "FALSE"); e.setAttribute("tSINGLELN_language", "FALSE"); e.setAttribute("tT", "GENERIC"); template.setElement(e); e = new CMSElement(); e.setName("highlight_url"); e.setAttribute("tD", "
\r\nPage to highlight in navigation instead of this page. Leave empty, if this page is to be highlighted. This element is only used in video version.\r\n
"); e.setAttribute("tORD", "160"); e.setAttribute("tREGN", "configuration"); e.setAttribute("tSEQELHDR", "oOBJURL"); e.setAttribute("tT", "ATTACHMENT"); template.setElement(e); e = new CMSElement(); e.setName("id_modules"); e.setAttribute("tD", "
Please choose, which ID modules should be displayed with this page.
"); e.setAttribute("tMAPELS", "*Standard ID modules=default\r\nBMW Service=service\r\nBMW Financial Services=finance"); e.setAttribute("tREGN", "id modules"); e.setAttribute("tSEQELHDR", "elemAttributeName"); e.setAttribute("tT", "MAP"); template.setElement(e); e = new CMSElement(); e.setName("main_navigation"); e.setAttribute("tD", "
URL to main navigation to be displayed on this page.
"); e.setAttribute("tORD", "120"); e.setAttribute("tREGN", "configuration"); e.setAttribute("tSEQELHDR", "oOBJURL"); e.setAttribute("tT", "ATTACHMENT"); template.setElement(e); e = new CMSElement(); e.setName("module_navigation"); e.setAttribute("tAVINHDR", "TRUE"); e.setAttribute("tD", "
Module navigation object of module navigation to be displayed on this page.
"); e.setAttribute("tORD", "125"); e.setAttribute("tREGN", "configuration"); e.setAttribute("tSEQELHDR", "oOBJURL"); e.setAttribute("tT", "OBJ"); template.setElement(e); e = new CMSElement(); e.setName("module_navigation_folded"); e.setAttribute("oDISP", "TRUE"); e.setAttribute("tD", "
If \"Selected Value\" is checked, module navigation is initially displayed in folded state on this page.
"); e.setAttribute("tORD", "140"); e.setAttribute("tREGN", "configuration"); e.setAttribute("tSEQELHDR", "oVAL"); e.setAttribute("tT", "BOOLEAN"); template.setElement(e); e = new CMSElement(); e.setName("perso_bodytype"); e.setAttribute("tD", "
\r\nOptional: model type code to be transferred to the personalisation engine for this page (e.g. \"CA\" for Convertible or \"TO\" for Touring).\r\n
"); e.setAttribute("tORD", "5010"); e.setAttribute("tREGN", "perso engine"); e.setAttribute("tT", "TEXT"); template.setElement(e); e = new CMSElement(); e.setName("perso_color"); e.setAttribute("tD", "
\r\nOptional: colour code to be transferred to the personalisation engine for this page (e.g. \"P0354\" for Titanium Silver).\r\n
"); e.setAttribute("tORD", "5020"); e.setAttribute("tREGN", "perso engine"); e.setAttribute("tT", "TEXT"); template.setElement(e); e = new CMSElement(); e.setName("perso_event_type"); e.setAttribute("tD", "
\r\nEvent type for this page (e.g. \"E22\"). If no event is specified, then no event will be transferred to the personalisation engine.
\r\nPlease note: maintaining this and the following fields requires in-depth knowledge of the personalisation engine.\r\n
"); e.setAttribute("tORD", "5000"); e.setAttribute("tREGN", "perso engine"); e.setAttribute("tT", "TEXT"); template.setElement(e); e = new CMSElement(); e.setName("perso_model"); e.setAttribute("tD", "
\r\nOptional: model code to be transferred to the personalisation engine for this page (e.g. \"EX51\" for the 318i Touring or \"NN51\" for the 525xi Touring).\r\n
"); e.setAttribute("tORD", "5015"); e.setAttribute("tREGN", "perso engine"); e.setAttribute("tT", "TEXT"); template.setElement(e); e = new CMSElement(); e.setName("perso_rim"); e.setAttribute("tD", "
\r\nOptional: wheel code to be transferred to the personalisation engine for this page (e.g. \"S02KC\" for V-spoke 141).\r\n
"); e.setAttribute("tORD", "5025"); e.setAttribute("tREGN", "perso engine"); e.setAttribute("tT", "TEXT"); template.setElement(e); e = new CMSElement(); e.setName("perso_series"); e.setAttribute("tD", "
\r\nOptional: series to be transferred to the personalisation engine for this page (e.g. \"1\" or \"X5\").\r\n
"); e.setAttribute("tORD", "5005"); e.setAttribute("tREGN", "perso engine"); e.setAttribute("tT", "TEXT"); template.setElement(e); e = new CMSElement(); e.setName("rubric_header"); e.setAttribute("tD", "
\r\nPlease insert an alternative rubric header. To use this rubric header activate the \"Is displayed\" checkbox.\r\n
"); e.setAttribute("tORD", "150"); e.setAttribute("tREGN", "configuration"); e.setAttribute("tSEQELHDR", "oT"); e.setAttribute("tT", "TEXT"); template.setElement(e); e = new CMSElement(); e.setName("xml_content"); e.setAttribute("tAVINHDR", "TRUE"); e.setAttribute("tD", "
Flash version XML content file
"); e.setAttribute("tORD", "110"); e.setAttribute("tREGN", "configuration"); e.setAttribute("tSEQELHDR", "oOBJURL"); e.setAttribute("tT", "ATTACHMENT"); template.setElement(e); e = new CMSElement(); e.setName("xml_template"); e.setAttribute("oOBJURL", /* VIPURL*/"../../../../../../../templates/common/pages/generic/_xml/external_content_uic.xml"); e.setAttribute("tATTSCOPE", "TRUE"); e.setAttribute("tAVINHDR", "TRUE"); e.setAttribute("tD", "
XML template for generating Flash content.
"); e.setAttribute("tDESTT", "_xml"); e.setAttribute("tORD", "100"); e.setAttribute("tREGN", "configuration"); e.setAttribute("tSEQELHDR", "oOBJURL"); e.setAttribute("tT", "ATTACHMENT"); template.setElement(e); e = null; } %> <%! public String getFullScopeTemplateElementAttr(String elementName, String attributeName) { if("bmw_search_engine_metadata".equals(elementName)) { if("tALWMSEL_media_type".equals(attributeName)) { return "TRUE"; } if("tATTRDESCRIPTION_hotspot".equals(attributeName)) { return "
If the search result is a hotspot, activate the \"Selected Value\" checkbox.
"; } if("tATTRDESCRIPTION_media_type".equals(attributeName)) { return "
Select the media type of this page and/or the media type of all available downloads on this page. Multiple selections are possible.
"; } if("tATTRDESCRIPTION_not_shown_in_search_result".equals(attributeName)) { return "
If this page is not to be displayed in search results, activate the \"Selected Value\" checkbox.
"; } if("tATTRDESCRIPTION_popup".equals(attributeName)) { return "
If the search result is to be opened in a popup window, enter the name, width and height of this popup window.
Format:

\"name,width,height\"

"; } if("tATTRDESCRIPTION_target_frame".equals(attributeName)) { return "
Select the link target of the search result link. The default target is \"_self\". If \"Named Window (my_target)\" is selected, the link opens in a new window called \"my_target\".
"; } if("tATTRDESCRIPTION_target_url".equals(attributeName)) { return "
Sets an alternative frameset page for found page to launch in. This parameter is currently not used as there is only one frameset.
"; } if("tATTRORDER_hotspot".equals(attributeName)) { return "20"; } if("tATTRORDER_media_type".equals(attributeName)) { return "60"; } if("tATTRORDER_not_shown_in_search_result".equals(attributeName)) { return "10"; } if("tATTRORDER_popup".equals(attributeName)) { return "30"; } if("tATTRORDER_target_frame".equals(attributeName)) { return "50"; } if("tATTRORDER_target_url".equals(attributeName)) { return "40"; } if("tATTRTYPE_hotspot".equals(attributeName)) { return "BOOLEAN"; } if("tATTRTYPE_media_type".equals(attributeName)) { return "MAP"; } if("tATTRTYPE_not_shown_in_search_result".equals(attributeName)) { return "BOOLEAN"; } if("tATTRTYPE_popup".equals(attributeName)) { return "TEXT"; } if("tATTRTYPE_target_frame".equals(attributeName)) { return "MAP"; } if("tATTRTYPE_target_url".equals(attributeName)) { return "LINK"; } if("tAVINHDR".equals(attributeName)) { return "TRUE"; } if("tCLSN_popup".equals(attributeName)) { return "FreeTextValidator"; } if("tD".equals(attributeName)) { return "
Additional search engine metadata interpreted by the Neofonie search engine.\r\nEach element is optional.
"; } if("tMAPELS_media_type".equals(attributeName)) { return "PDF=PDF\r\nVideo=Video\r\nImages=Bilder\r\nQuick Time VR=QTVR"; } if("tMAPELS_target_frame".equals(attributeName)) { return "New window (_blank)=_blank\r\nTop frame (_top)=_top\r\nParent frame (_parent)=_parent\r\nNamed Window (my_target)=my_target"; } if("tREGN".equals(attributeName)) { return "search engine metadata"; } if("tT".equals(attributeName)) { return "GENERIC"; } } if("module_navigation".equals(elementName)) { if("tAVINHDR".equals(attributeName)) { return "TRUE"; } if("tD".equals(attributeName)) { return "
Module navigation object of module navigation to be displayed on this page.
"; } if("tORD".equals(attributeName)) { return "125"; } if("tREGN".equals(attributeName)) { return "configuration"; } if("tSEQELHDR".equals(attributeName)) { return "oOBJURL"; } if("tT".equals(attributeName)) { return "OBJ"; } } if("xml_content".equals(elementName)) { if("tAVINHDR".equals(attributeName)) { return "TRUE"; } if("tD".equals(attributeName)) { return "
Flash version XML content file
"; } if("tORD".equals(attributeName)) { return "110"; } if("tREGN".equals(attributeName)) { return "configuration"; } if("tSEQELHDR".equals(attributeName)) { return "oOBJURL"; } if("tT".equals(attributeName)) { return "ATTACHMENT"; } } if("xml_template".equals(elementName)) { if("oOBJURL".equals(attributeName)) { return /* VIPURL*/"../../../../../../../templates/common/pages/generic/_xml/external_content_uic.xml"; } if("oURLINTERNoOBJURL".equals(attributeName)) { return "TRUE"; } if("tATTSCOPE".equals(attributeName)) { return "TRUE"; } if("tAVINHDR".equals(attributeName)) { return "TRUE"; } if("tD".equals(attributeName)) { return "
XML template for generating Flash content.
"; } if("tDESTT".equals(attributeName)) { return "_xml"; } if("tORD".equals(attributeName)) { return "100"; } if("tREGN".equals(attributeName)) { return "configuration"; } if("tSEQELHDR".equals(attributeName)) { return "oOBJURL"; } if("tT".equals(attributeName)) { return "ATTACHMENT"; } } return ""; } %> <% // %> <% // // CMSObject cmsObject = new CMSObject(); request.setAttribute("cmsObject", cmsObject); { cmsObject.setVipObjId(new Integer("2099095")); cmsObject.setTemplate(template); CMSElement e; e = new CMSElement(); e.setName("allow_parameter_transfer"); e.setAttribute("oVAL", "1"); cmsObject.putElement(e); e = new CMSElement(); e.setName("bmw_search_engine_metadata"); e.setAttribute("oVAL_not_shown_in_search_result", "TRUE"); cmsObject.putElement(e); e = new CMSElement(); e.setName("external_content"); e.setAttribute("oLURL_backLinkUrl_highend", "http://www.bmw.be/be/nl/index_highend.html?prm_content=../../be/nl/newvehicles/6series/coupe/2007/_highend/xml/introduction.xml"); e.setAttribute("oLURL_backLinkUrl_narrowband", "http://www.bmw.be/be/nl/index_narrowband.html?content=../../be/nl/newvehicles/6series/coupe/2007/introduction.html"); e.setAttribute("oLURL_link", "http://ecom.bmwgroup.com/ecom40/BE/entryservlet"); e.setAttribute("oT_backLinkName", "Terug"); e.setAttribute("oT_country", "BE"); e.setAttribute("oT_language", "fl"); e.setAttribute("oVAL_bodytype", "9"); e.setAttribute("oVAL_car_is_preselected", "TRUE"); e.setAttribute("oVAL_process", "3"); e.setAttribute("oVAL_series", "9"); cmsObject.putElement(e); e = new CMSElement(); e.setName("main_navigation"); e.setAttribute("oOBJURL", /* VIPURL*/"../../../../../../../it/it/_navigation/old/main_navigation.html"); cmsObject.putElement(e); e = new CMSElement(); e.setName("module_navigation"); e.setAttribute("oDISP", "TRUE"); e.setAttribute("oOBJURL", /* VIPURL*/"../../../../../../../it/it/newvehicles/x6/x6/2007/_module_navigation.html"); cmsObject.putElement(e); e = new CMSElement(); e.setName("module_navigation_folded"); e.setAttribute("oDISP", "FALSE"); cmsObject.putElement(e); e = new CMSElement(); e.setName("xml_content"); e.setAttribute("oDISP", "TRUE"); e.setAttribute("oOBJURL", /* VIPURL*/"_highend/xml/test_drive_request2099139.xml"); cmsObject.putElement(e); e = null; cmsObject.addElementAttributes(template.getElements(), false); } %> <%! public String getFullScopeElementAttribute(String elementName, String attributeName) { if("bmw_search_engine_metadata".equals(elementName)) { if("oVAL_not_shown_in_search_result".equals(attributeName)) { return "TRUE"; } if("tMAPELS_media_type".equals(attributeName)) { return "PDF=PDF\r\nVideo=Video\r\nImages=Bilder\r\nQuick Time VR=QTVR"; } if("tMAPELS_target_frame".equals(attributeName)) { return "New window (_blank)=_blank\r\nTop frame (_top)=_top\r\nParent frame (_parent)=_parent\r\nNamed Window (my_target)=my_target"; } } if("module_navigation".equals(elementName)) { if("oDISP".equals(attributeName)) { return "TRUE"; } if("oOBJURL".equals(attributeName)) { return /* VIPURL*/"../../../../../../../it/it/newvehicles/x6/x6/2007/_module_navigation.html"; } if("oURLINTERNoOBJURL".equals(attributeName)) { return "TRUE"; } } if("xml_content".equals(elementName)) { if("oDISP".equals(attributeName)) { return "TRUE"; } if("oOBJURL".equals(attributeName)) { return /* VIPURL*/"_highend/xml/test_drive_request2099139.xml"; } if("oURLINTERNoOBJURL".equals(attributeName)) { return "TRUE"; } } if("xml_template".equals(elementName)) { if("oURLINTERNoOBJURL".equals(attributeName)) { return "TRUE"; } } return ""; } %> <% // %> <% // if (cmsObject == null) { cmsObject = template.createDummyObject(); } // %> <% String generate = request.getParameter ("generate"); String userid = request.getParameter ("userid"); String password = request.getParameter("password"); if (!ContentModelUtils.isCalledFromEditor(request) && (generate==null || !"yes".equals(generate))) { //------------------------------------------------------------------ // Prepare Page Elements //------------------------------------------------------------------ //Perso engine TextElement persoEventType = new TextElement(cmsContext, cmsObject,"perso_event_type"); TextElement persoSeries = new TextElement(cmsContext, cmsObject,"perso_series"); TextElement persoBodytype = new TextElement(cmsContext, cmsObject,"perso_bodytype"); TextElement persoModel = new TextElement(cmsContext, cmsObject,"perso_model"); TextElement persoColor = new TextElement(cmsContext, cmsObject,"perso_color"); TextElement persoRim = new TextElement(cmsContext, cmsObject,"perso_rim"); String hintHeadline = this.getStandardText("external_content_hint_headline",standardFormat,FORMAT_HTML); String hintCopytext = this.getStandardText("external_content_hint_copytext",standardFormat,FORMAT_HTML); String mainNavigationUrl = (new AttachmentElement(cmsContext, cmsObject,"main_navigation")).getRefUrl(); BooleanElement moduleNaviFolded = new BooleanElement(cmsContext, cmsObject,"module_navigation_folded"); // WR: allow parameter transfer MapElement allowParameterTransfer = new MapElement(cmsContext, cmsObject,"allow_parameter_transfer"); // set defaults GenericElement externalURLElement = new GenericElement(cmsContext, cmsObject,"external_content"); LinkAttributeI link = (LinkAttributeI)externalURLElement.getAttribute("link"); TextAttributeI uicCountry = (TextAttributeI)externalURLElement.getAttribute("country"); TextAttributeI uicLanguage = (TextAttributeI)externalURLElement.getAttribute("language"); MapAttributeI process = (MapAttributeI)externalURLElement.getAttribute("process"); MapAttributeI variant = (MapAttributeI)externalURLElement.getAttribute("variant"); BooleanAttributeI carIsPreselected = (BooleanAttributeI)externalURLElement.getAttribute("car_is_preselected"); MapAttributeI uicSeries = (MapAttributeI)externalURLElement.getAttribute("series"); MapAttributeI uicBodytype = (MapAttributeI)externalURLElement.getAttribute("bodytype"); MapAttributeI uicModel = (MapAttributeI)externalURLElement.getAttribute("direct_model_selection"); LinkAttributeI backLinkNarrowband = (LinkAttributeI)externalURLElement.getAttribute("backLinkUrl_narrowband"); TextAttributeI backLinkName = (TextAttributeI)externalURLElement.getAttribute("backLinkName"); // id modules MapElement moduleSwitch = new MapElement(cmsContext, cmsObject, "id_modules"); String idModuleIdentifier="default"; if(moduleSwitch.getFirstSelected()!=null){ idModuleIdentifier=moduleSwitch.getFirstSelected().getInternalValue(); } // set formatting uicCountry.setFormatting(standardFormat,FORMAT_JS); uicLanguage.setFormatting(standardFormat,FORMAT_JS); backLinkName.setFormatting(standardFormat,FORMAT_JS); String ecomURL = ""; String ecomAction = ""; String ecomProcess = ""; String ecomVariant = ""; String preselectedCar = ""; if (!("".equals(link.getLinkUrl()))){ // mit bandwith: //ecomURL = link.getLinkUrl() + "?event=_bypass&action=init&brand=BMW&bandwidth=&leadContext="; //ohne bandwith: ecomURL = link.getLinkUrl() + "?event=_bypass&action=init&brand=BMW&leadContext="; ecomURL += ("".equals(uicCountry.getTextUTF8())?"":"&country="+uicCountry.getTextUTF8().toUpperCase()); ecomURL += ("".equals(uicLanguage.getTextUTF8())?"":"&language="+uicLanguage.getTextUTF8().toLowerCase()); ecomURL += "&reset=session"; if (process.getFirstSelected() != null){ ecomProcess = process.getFirstSelected().getInternalValue(); ecomURL += "&process=" + ecomProcess; if ("vco".equals(ecomProcess)) { ecomAction = "&action=vco.selectConfiguration"; } if ("tda".equals(ecomProcess)) { ecomAction = "&action=tda.selectConfiguration"; } if ("rfo".equals(ecomProcess)) { ecomAction = "&action=vco.selectConfiguration"; } } if(!("".equals(backLinkName.getText()))) { ecomURL += "&backLinkName=" + java.net.URLEncoder.encode(backLinkName.getText(),"iso-8859-1"); ecomURL += "&backLinkUrl=" + java.net.URLEncoder.encode(backLinkNarrowband.getLinkUrl(),"iso-8859-1"); ecomURL += "&backLinkTarget=_top"; } if (variant.getFirstSelected() != null){ ecomVariant = variant.getFirstSelected().getInternalValue(); ecomURL += "&variant=" + ecomVariant; } if (carIsPreselected.isTrue()) { preselectedCar += ecomAction; if(uicModel.getFirstSelected() != null){ preselectedCar += "&model=" + uicModel.getFirstSelected().getInternalValue()+"&step=select_model_engine"; } else { if (uicSeries.getFirstSelected() != null){ preselectedCar += "&series=" + uicSeries.getFirstSelected().getInternalValue(); } if (uicBodytype.getFirstSelected() != null){ if ("empty".equals(ecomProcess)) { preselectedCar += ""; } else { preselectedCar += "&body=" + uicBodytype.getFirstSelected().getInternalValue(); } } } } } %> <% if(!"".equals(persoEventType.getText())) { %> <% } %> <%if(!confSeoIsActive){%> <%}%> <% if( moduleNavigationStructureUrl != null && !("".equals(moduleNavigationStructureUrl))){ %>
<% } %>
">
<% } // if not called from editor %> <%! private CMSObject getWorkCMSObject(String CMSUrl, CMSContext cmsContext) throws Exception { CMSEntry cmsEntry = null; CMSObject cmsObject = null; if(!"".equals(CMSUrl) && CMSUrl.toLowerCase().indexOf("poweredby")==-1 && CMSUrl.toLowerCase().indexOf("deleted")==-1){ cmsEntry = ObjectUtils.getCMSEntry(CMSUrl, null, cmsContext); if(cmsEntry != null){ cmsObject = (CMSObject) cmsEntry.readObject(CMSObject.class.getName(), "noCookieCheck=true&editor=true"); } } return cmsObject; } %> <% //------------------------------------------------------------------ // Generate XML Content File From Template //------------------------------------------------------------------ String xmlOutput=null; if (ContentModelUtils.isGeneratorCall(request,stage)) { try { String xmlOutUrl = (new AttachmentElement(cmsContext, cmsObject,"xml_content")).getRefUrl(); String xmlTemplateUrl = (new AttachmentElement(cmsContext, cmsObject,"xml_template")).getRefUrl(); // check if xml_content-file is available - if not, build it and attach it to the contentpage. // fetch pagename and topic CMSSession cmsSession = ObjectUtils.sessionLogin (request, cmsContext); String pageName = "http://wcms10.bmwgroup.com/bmw_prod/be/nl/newvehicles/x6/x6/2007/carconfigurator/test_drive_request.html"; pageName = pageName.substring(pageName.lastIndexOf("/")+1, pageName.lastIndexOf(".htm")); String xmlTopic = "http://wcms10.bmwgroup.com/bmw_prod/be/nl/newvehicles/x6/x6/2007/carconfigurator/test_drive_request.html"; xmlTopic = xmlTopic.substring(0, xmlTopic.lastIndexOf("/")+1) + "_highend/xml/index.htm"; CMSEntry cmsEntryWriteXML = ObjectUtils.getCMSEntry(xmlTopic, null, cmsContext); // start query, set filter and find xml-files in xml topic CMSQuery currentQuery = cmsSession.getCMSQuery(stage, vipSite); CMSFilter cmsFilter = cmsToolKit.createStringEqualsFilter (CMSConstants.CMS_META_ATTR_OBJ_NAME, pageName); Iterator iterator = currentQuery.filter (cmsFilter, cmsEntryWriteXML.getOid(), CMSConstants.CMS_UNDEFINED_VALUE, CMSConstants.CMS_UNDEFINED_VALUE); CMSEntry cmsXmlContentEntry = null; //if there is a corresponding xml-file, use this one and attach it if (iterator.hasNext()) { cmsXmlContentEntry = (CMSEntry) iterator.next(); CMSElement cmsElement = cmsObject.getElement("xml_content"); cmsElement.setAttribute(CMSElementConstants.ATTRIB_O_OBJECTREFURL, cmsXmlContentEntry.getURL()); ObjectUtils.sessionLogout (cmsSession); xmlOutUrl = cmsXmlContentEntry.getURL(); //if no xml-file exists... } else if("".equals(xmlOutUrl) || xmlOutUrl.toLowerCase().indexOf("poweredby")!=-1 || xmlOutUrl.toLowerCase().indexOf("deleted")!=-1){ //create xml-file cmsXmlContentEntry = ObjectUtils.createObject(pageName, ".xml", cmsEntryWriteXML.getOid(), cmsContext, cmsSession); CMSElement cmsElement = cmsObject.getElement("xml_content"); //attach xml-file cmsElement.setAttribute(CMSElementConstants.ATTRIB_O_OBJECTREFURL, cmsXmlContentEntry.getURL()); ObjectUtils.sessionLogout (cmsSession); xmlOutUrl = cmsXmlContentEntry.getURL(); } if(!"".equals(xmlOutUrl) && xmlOutUrl.toLowerCase().indexOf("poweredby")==-1 && xmlOutUrl.toLowerCase().indexOf("deleted")==-1){ xmlOutput = ObjectUtils.readContent(xmlTemplateUrl, userid, password, session.getId(), cmsContext); // get common elements BooleanElement moduleNaviFolded = new BooleanElement(cmsContext, cmsObject,"module_navigation_folded"); GenericElement externalURLElement = new GenericElement(cmsContext, cmsObject,"external_content"); LinkAttributeI link = (LinkAttributeI)externalURLElement.getAttribute("link"); TextAttributeI uicCountry = (TextAttributeI)externalURLElement.getAttribute("country"); TextAttributeI uicLanguage = (TextAttributeI)externalURLElement.getAttribute("language"); MapAttributeI process = (MapAttributeI)externalURLElement.getAttribute("process"); MapAttributeI variant = (MapAttributeI)externalURLElement.getAttribute("variant"); BooleanAttributeI carIsPreselected = (BooleanAttributeI)externalURLElement.getAttribute("car_is_preselected"); MapAttributeI uicSeries = (MapAttributeI)externalURLElement.getAttribute("series"); MapAttributeI uicBodytype = (MapAttributeI)externalURLElement.getAttribute("bodytype"); LinkAttributeI backLinkHighend = (LinkAttributeI)externalURLElement.getAttribute("backLinkUrl_highend"); TextAttributeI backLinkName = (TextAttributeI)externalURLElement.getAttribute("backLinkName"); // id modules MapElement moduleSwitch = new MapElement(cmsContext, cmsObject, "id_modules"); String idModuleIdentifier="default"; if(moduleSwitch.getFirstSelected()!=null){ idModuleIdentifier=moduleSwitch.getFirstSelected().getInternalValue(); } // set formatting uicCountry.setFormatting(standardFormat,FORMAT_XML); uicLanguage.setFormatting(standardFormat,FORMAT_XML); backLinkName.setFormatting(standardFormat,FORMAT_XML); String ecomURL = ""; String ecomAction = ""; String ecomProcess = ""; String ecomVariant = ""; String preselectedCar = ""; if (!("".equals(link.getLinkUrl()))){ ecomURL = link.getLinkUrl() + "?event=_bypass&action=init&brand=BMW"; ecomURL += ("".equals(uicCountry.getTextUTF8())?"":"&country="+uicCountry.getTextUTF8().toUpperCase()); ecomURL += ("".equals(uicLanguage.getTextUTF8())?"":"&language="+uicLanguage.getTextUTF8().toLowerCase()); ecomURL += "&reset=session"; if (process.getFirstSelected() != null){ ecomProcess = process.getFirstSelected().getInternalValue(); ecomURL += "&process=" + ecomProcess; if ("vco".equals(ecomProcess)) { ecomAction = "&action=vco.selectConfiguration"; } if ("tda".equals(ecomProcess)) { ecomAction = "&action=tda.selectConfiguration"; } if ("rfo".equals(ecomProcess)) { ecomAction = "&action=vco.selectConfiguration"; } } if(!("".equals(backLinkName.getText()))) { ecomURL += "&backLinkName=" + java.net.URLEncoder.encode((java.net.URLEncoder.encode(backLinkName.getText(),"iso-8859-1")),"iso-8859-1"); ecomURL += "&backLinkUrl=" + java.net.URLEncoder.encode((java.net.URLEncoder.encode(backLinkHighend.getLinkUrl(),"iso-8859-1")),"iso-8859-1"); ecomURL += "&backLinkTarget=_top"; } if (variant.getFirstSelected() != null){ ecomVariant = variant.getFirstSelected().getInternalValue(); ecomURL += "&variant=" + ecomVariant; } if (carIsPreselected.isTrue()) { preselectedCar += ecomAction; if (uicSeries.getFirstSelected() != null){ preselectedCar += "&series=" + uicSeries.getFirstSelected().getInternalValue(); } if (uicBodytype.getFirstSelected() != null){ if ("empty".equals(ecomProcess)) { preselectedCar += ""; } else { preselectedCar += "&body=" + uicBodytype.getFirstSelected().getInternalValue(); } } } } //Perso engine TextElement persoEventType = new TextElement(cmsContext, cmsObject,"perso_event_type"); TextElement persoSeries = new TextElement(cmsContext, cmsObject,"perso_series"); TextElement persoBodytype = new TextElement(cmsContext, cmsObject,"perso_bodytype"); TextElement persoModel = new TextElement(cmsContext, cmsObject,"perso_model"); TextElement persoColor = new TextElement(cmsContext, cmsObject,"perso_color"); TextElement persoRim = new TextElement(cmsContext, cmsObject,"perso_rim"); if(!"".equals(persoEventType.getText())) { String perso_engine_data = "perso_eventtype=\""+persoEventType.getText()+"\" perso_series=\""+persoSeries.getText()+"\" perso_bodytype=\""+persoBodytype.getText()+"\" perso_model=\""+persoModel.getText()+"\" perso_color=\""+persoColor.getText()+"\" perso_rim=\""+persoRim.getText()+"\""; xmlOutput = StringUtils.replaceAll(xmlOutput, "perso=\"\"", perso_engine_data); } else { xmlOutput = StringUtils.replaceAll(xmlOutput, "perso=\"\"", ""); } // do specific template replacements xmlOutput = StringUtils.replaceAll(xmlOutput, "##x_html_title##", ObjectUtils.getCMSEntry ("2099095", cmsContext).getValueAsString(CMSConstants.CMS_META_ATTR_SUBTITLE)); xmlOutput = StringUtils.replaceAll(xmlOutput, "##x_html_url##", "../.."+ObjectUtils.getServerRelativeUrl("2099095","2099095",cmsContext)); xmlOutput = StringUtils.replaceAll(xmlOutput, "##x_navigation_folded##", (moduleNaviFolded.isTrue())?"TRUE":"FALSE"); xmlOutput = StringUtils.replaceAll(xmlOutput, "##x_id_module##", idModuleIdentifier); // load module navigation and extract the module_navigation_xml Url CMSObject moduleNavigationCMSObject = getWorkCMSObject((new ObjectElement(cmsContext, cmsObject,"module_navigation")).getRefUrl(), cmsContext); if(moduleNavigationCMSObject != null){ AttachmentElement moduleNavigationXmlUrl = new AttachmentElement(cmsContext, moduleNavigationCMSObject, "module_navigation_xml"); xmlOutput = StringUtils.replaceAll(xmlOutput, "##x_modulnavigation_url##", "../.." + ObjectUtils.getServerRelativeUrl("2099095", moduleNavigationXmlUrl.getRefUrl(), cmsContext)); } // WR: allow parameter transfer MapElement allowParameterTransfer = new MapElement(cmsContext, cmsObject,"allow_parameter_transfer"); xmlOutput = StringUtils.replaceAll(xmlOutput, "##x_allowParameterTransfer##", allowParameterTransfer.getFirstSelected().getInternalValue().toUpperCase()); xmlOutput = StringUtils.replaceAll(xmlOutput, "##x_uic_link##", (ecomURL+preselectedCar)); // WR: do rubric header replacement TextElement rubricHeader = new TextElement(cmsContext, cmsObject,"rubric_header"); rubricHeader.setFormatting(standardFormat,FORMAT_XML); xmlOutput = StringUtils.replaceAll(xmlOutput, "##x_rubric_header##", (rubricHeader.getDisplayed()?"":" ")); // WR: set highlight url AttachmentElement highlightElement = new AttachmentElement(cmsContext, cmsObject, "highlight_url"); String highlightUrl=null; if(highlightElement.getDisplayed() && !"".equals(highlightElement.getRefUrl()) && highlightElement.getRefUrl().toLowerCase().indexOf("poweredby")==-1 && highlightElement.getRefUrl().toLowerCase().indexOf("deleted")==-1){ highlightUrl=this.getFlashVersionUrl(highlightElement,cmsContext); } else { highlightUrl=""; } xmlOutput = StringUtils.replaceAll(xmlOutput, "##x_highlight_url##", highlightUrl); // do standard replacements xmlOutput = StringUtils.replaceAll (xmlOutput, cmsObject); xmlOutput = StringUtils.replaceAll(xmlOutput, "\r\n", "\n"); ObjectUtils.writeContent(xmlOutUrl, StringUtils.convertToUTF8(xmlOutput), userid, password, session.getId(), cmsContext); xmlOutput = StringUtils.replaceAll(xmlOutput, "<", "<"); xmlOutput = StringUtils.replaceAll(xmlOutput, ">", ">"); } else { xmlOutput="Output URL missing, no XML written!"; getServletConfig().getServletContext().log("--> Generate of XML failed for http://wcms10.bmwgroup.com/bmw_prod/be/nl/newvehicles/x6/x6/2007/carconfigurator/test_drive_request.html, output Url is missing."); } } catch(Exception e){%> Exception occured:
<%
    e.printStackTrace(new PrintWriter(out));
    getServletConfig().getServletContext().log("--> Generate of XML failed with "+e.toString()+" for http://wcms10.bmwgroup.com/bmw_prod/be/nl/newvehicles/x6/x6/2007/carconfigurator/test_drive_request.html.");
%>
   
<% } %>

Generated XML Output


<%= xmlOutput %>

<% } // end if generate %> <% /* ---- Define js code for eDataXchange start ---- */ /* Task: * If eDataXchange is enabled write this js code. */ BooleanElement enableEDataXchange = new BooleanElement(cmsContext, cmsObject,"enable_edataxchange"); if(enableEDataXchange.isTrue()){ AttachmentElement eDataXchangeAttachment = new AttachmentElement(cmsContext, cmsObject, "edataxchange_javascript"); if(!"".equals(eDataXchangeAttachment.getRefUrl()) && eDataXchangeAttachment.getRefUrl().toLowerCase().indexOf("poweredby")==-1 && eDataXchangeAttachment.getRefUrl().toLowerCase().indexOf("deleted")==-1){ %> <% } } %> <%@ include file="../../../../../../../templates/_basic/_includes/mcPageBody.inc.jsp" %> <% /* ---- free allocated objects ---- */ standardTextContent=null; // included code to serialize objects %><%@ include file="../../../../../../../templates/_basic/_includes/serializedObjects.inc.jsp" %><% } catch (PendingDeploymentException pdEx) { CMSSession cmsSession = CMSSessionPoolSingleton.getCMSSession(configurationSetName); if (cmsSession != null) { CMSQuery currenQuery = cmsSession.getCMSQuery(stage, vipSite); if (currenQuery != null) { CMSEntry pageEntry = currenQuery.getEntryByOid("2099095"); if (pageEntry != null) { pageEntry.applyAction(CMSConstants.CMS_ACTION_REPUBLISH); } } } throw pdEx; } %>