Practice Code

  • View
    218

  • Download
    0

Embed Size (px)

Text of Practice Code

  • 7/23/2019 Practice Code

    1/44

    JSON Example

    This page shows examples of messages formatted using JSON (JavaScript Object

    Notation)

    !

    "glossar#"$ !

    "title"$ "example glossar#"%

    "&loss'iv"$ !

    "title"$ "S"%

    "&lossist"$ !

    "&lossEntr#"$ !

    "'"$ "S&*"%

    "Sort+s"$ "S&*"%

    "&lossTerm"$ "Standard &enerali,ed *ar-up

    anguage"%

    "+cron#m"$ "S&*"%

    "+bbrev"$ "SO ../0$10.2"%

    "&loss'ef"$ !

    "para"$ "+ meta3mar-up language% used to create mar-up languages

    such as 'oc4oo-"%

    "&lossSee+lso"$ 5"&*"% "6*"7

    8%

    "&lossSee"$ "mar-up"

    8

    8

  • 7/23/2019 Practice Code

    2/44

    8

    8

    8

    The same text expressed as 6*$

    9:'O;T4; "3??O+SS??'T' 'oc4oo- @A1??EN"B

    9glossar#B9titleBexample glossar#9?titleB

    9&loss'ivB9titleBS9?titleB

    9&lossistB

    9&lossEntr# 'C"S&*" Sort+sC"S&*"B

    9&lossTermBStandard &enerali,ed *ar-up anguage9?&lossTermB

    9+cron#mBS&*9?+cron#mB

    9+bbrevBSO ../0$10.29?+bbrevB

    9&loss'efB

    9paraB+ meta3mar-up language% used to create mar-up

    languages such as 'oc4oo-9?paraB

    9&lossSee+lso OtherTermC"&*"B

    9&lossSee+lso OtherTermC"6*"B

    9?&loss'efB

    9&lossSee OtherTermC"mar-up"B

    9?&lossEntr#B

    9?&lossistB

    9?&loss'ivB

    9?glossar#B

    !"menu"$ !

    "id"$ "Dle"%

  • 7/23/2019 Practice Code

    3/44

    "value"$ "ile"%

    "popup"$ !

    "menuitem"$ 5

    !"value"$ "New"% "onclic-"$ ";reateNew'oc()"8%

    !"value"$ "Open"% "onclic-"$ "Open'oc()"8%

    !"value"$ ";lose"% "onclic-"$ ";lose'oc()"8

    7

    8

    88

    The same text expressed as 6*$

    9menu idC"Dle" valueC"ile"B

    9popupB

    9menuitem valueC"New" onclic-C";reateNew'oc()" ?B

    9menuitem valueC"Open" onclic-C"Open'oc()" ?B

    9menuitem valueC";lose" onclic-C";lose'oc()" ?B

    9?popupB

    9?menuB

    !"widget"$ !

    "debug"$ "on"%

    "window"$ !

    "title"$ "Sample Fonfabulator Gidget"%

    "name"$ "mainHwindow"%

    "width"$ I%

    "height"$ I

    8%

  • 7/23/2019 Practice Code

    4/44

    "image"$ !

    "src"$ "mages?Sunpng"%

    "name"$ "sun1"%

    "hOKset"$ LI%

    "vOKset"$ LI%

    "alignment"$ "center"

    8%

    "text"$ !

    "data"$ ";lic- Mere"%

    "si,e"$ A2%

    "st#le"$ "bold"%

    "name"$ "text1"%

    "hOKset"$ LI%

    "vOKset"$ 1%

    "alignment"$ "center"%

    "on*ouse>p"$ "sun1opacit# C (sun1opacit# ? 1) 0"

    8

    88

    The same text expressed as 6*$

    9widgetB

    9debugBon9?debugB

    9window titleC"Sample Fonfabulator Gidget"B

    9nameBmainHwindow9?nameB

    9widthBI9?widthB

    9heightBI9?heightB

  • 7/23/2019 Practice Code

    5/44

    9?windowB

    9image srcC"mages?Sunpng" nameC"sun1"B

    9hOKsetBLI9?hOKsetB

    9vOKsetBLI9?vOKsetB

    9alignmentBcenter9?alignmentB

    9?imageB

    9text dataC";lic- Mere" si,eC"A2" st#leC"bold"B

    9nameBtext19?nameB

    9hOKsetBLI9?hOKsetB

    9vOKsetB19?vOKsetB

    9alignmentBcenter9?alignmentB

    9on*ouse>pB

    sun1opacit# C (sun1opacit# ? 1) 0

    9?on*ouse>pB

    9?textB

    9?widgetB

    !"web3app"$ !

    "servlet"$ 5

    !

    "servlet3name"$ "cofax;'S"%

    "servlet3class"$ "orgcofaxcds;'SServlet"%

    "init3param"$ !

    "conDg&lossar#$installation+t"$ "=hiladelphia% =+"%

    "conDg&lossar#$adminEmail"$ "-smPpoboxcom"%

    "conDg&lossar#$powered4#"$ ";ofax"%

    "conDg&lossar#$powered4#con"$ "?images?cofaxgif"%

  • 7/23/2019 Practice Code

    6/44

    "conDg&lossar#$static=ath"$ "?content?static"%

    "template=rocessor;lass"$ "orgcofaxG#siw#gTemplate"%

    "templateoader;lass"$ "orgcofaxilesTemplateoader"%

    "template=ath"$ "templates"%

    "templateOverride=ath"$ ""%

    "defaultistTemplate"$ "listTemplatehtm"%

    "defaultileTemplate"$ "articleTemplatehtm"%

    "useJS="$ false%

    "jspistTemplate"$ "listTemplatejsp"%

    "jspileTemplate"$ "articleTemplatejsp"%

    "cache=ac-ageTagsTrac-"$ L%

    "cache=ac-ageTagsStore"$ L%

    "cache=ac-ageTagsQefresh"$ 2%

    "cacheTemplatesTrac-"$ 1%

    "cacheTemplatesStore"$ I%

    "cacheTemplatesQefresh"$ 1I%

    "cache=agesTrac-"$ L%

    "cache=agesStore"$ 1%

    "cache=agesQefresh"$ 1%

    "cache=ages'irt#Qead"$ 1%

    "searchEngineistTemplate"$ "forSearchEnginesisthtm"%

    "searchEngineileTemplate"$ "forSearchEngineshtm"%

    "searchEngineQobots'b"$ "GE43N?robotsdb"%

    "use'ataStore"$ true%

    "dataStore;lass"$ "orgcofaxSRl'ataStore"%

    "redirection;lass"$ "orgcofaxSRlQedirection"%

  • 7/23/2019 Practice Code

    7/44

    "dataStoreName"$ "cofax"%

    "dataStore'river"$ "commicrosoftjdbcsRlserverSServer'river"%

    "dataStore>rl"$

    "jdbc$microsoft$sRlserver$??O;+MOST$1AA'atabaseNameCgoon"%

    "dataStore>ser"$ "sa"%

    "dataStore=assword"$ "dataStoreTestuer#"%

    "dataStoreTestuer#"$ "SET NO;O>NT ONselect testCUtestU"%

    "dataStoreogile"$ "?usr?local?tomcat?logs?datastorelog"%

    "dataStorenit;onns"$ 1%

    "dataStore*ax;onns"$ 1%

    "dataStore;onn>sageimit"$ 1%

    "dataStoreogevel"$ "debug"%

    "max>rlength"$ I88%

    !

    "servlet3name"$ "cofaxEmail"%

    "servlet3class"$ "orgcofaxcdsEmailServlet"%

    "init3param"$ !

    "mailMost"$ "mail1"%

    "mailMostOverride"$ "mailL"88%

    !

    "servlet3name"$ "cofax+dmin"%

    "servlet3class"$ "orgcofaxcds+dminServlet"8%

    !

    "servlet3name"$ "DleServlet"%

    "servlet3class"$ "orgcofaxcdsileServlet"8%

    !

  • 7/23/2019 Practice Code

    8/44

    "servlet3name"$ "cofaxTools"%

    "servlet3class"$ "orgcofaxcms;ofaxToolsServlet"%

    "init3param"$ !

    "template=ath"$ "toolstemplates?"%

    "log"$ 1%

    "logocation"$ "?usr?local?tomcat?logs?;ofaxToolslog"%

    "log*axSi,e"$ ""%

    "dataog"$ 1%

    "dataogocation"$ "?usr?local?tomcat?logs?dataoglog"%

    "dataog*axSi,e"$ ""%

    "remove=age;ache"$ "?content?admin?removeVcacheCpagesWidC"%

    "removeTemplate;ache"$ "?content?admin?removeVcacheCtemplatesWidC"%

    "DleTransferolder"$ "?usr?local?tomcat?webapps?content?DleTransferolder"%

    "loo-n;ontext"$ 1%

    "admin&roup'"$ %

    "betaServer"$ true887%

    "servlet3mapping"$ !

    "cofax;'S"$ "?"%

    "cofaxEmail"$ "?cofaxutil?aemail?"%

    "cofax+dmin"$ "?admin?"%

    "DleServlet"$ "?static?"%

    "cofaxTools"$ "?tools?"8%

    "taglib"$ !

    "taglib3uri"$ "cofaxtld"%

    "taglib3location"$ "?GE43N?tlds?cofaxtld"888

  • 7/23/2019 Practice Code

    9/44

    The same Dle expressed as 6*$

    9Vxml versionC"1" encodingC"SO3..I031"VB

    9:'O;T4; "3??Sun *icros#stems% nc??'T' Geb +pplication LL??EN"

    "http$??javasuncom?jLee?dtds?web3appHLLdtd"B

    9web3appB

    9servletB

    9servlet3nameB

    cofax;'S

    9?servlet3nameB

    9servlet3classB

    orgcofaxcds;'SServlet

    9?servlet3classB

    9init3paramB

    9param3nameBconDg&lossar#$installation+t9?param3nameB

    9param3valueB=hiladelphia% =+9?param3valueB

    9?init3paramB

    9init3paramB

    9param3nameBconDg&lossar#$adminEmail9?param3nameB

    9param3valueB-smPpoboxcom9?param3valueB

    9?init3paramB

    9init3paramB

    9param3nameBconDg&lossar#$powered4#9?param3nameB

  • 7/23/2019 Practice Code

    10/44

    9param3valueB;ofax9?param3valueB

    9?init3paramB

    9init3paramB

    9param3nameBconDg&lossar#$powered4#con9?param3nameB

    9param3valueB?images?cofaxgif9?param3valueB

    9?init3paramB

    9init3paramB

    9param3nameBconDg&lossar#$static=ath9?param3nameB

    9param3valueB?content?static9?param3valueB

    9?init3paramB

    9init3paramB

    9param3nameBtemplate=rocessor;lass9?param3nameB

    9param3valueBorgcofaxG#siw#gTemplate9?param3valueB

    9?init3paramB

    9init3paramB

    9param3nameBtemplateoader;lass9?param3nameB

    9param3valueBorgcofaxilesTemplateoader9?param3valueB

    9?init3paramB

    9init3paramB

    9param3nameBtemplate=ath9?param3nameB

    9param3valueBtemplates9?param3valueB

    9?init3paramB

  • 7/23/2019 Practice Code

    11/44

    9init3paramB

    9param3nameBtemplateOverride=ath9?param3nameB

    9param3valueB9?param3valueB

    9?init3paramB

    9init3paramB

    9param3nameBdefaultistTemplate9?param3nameB

    9param3valueBlistTemplatehtm9?param3valueB

    9?init3paramB

    9init3paramB

    9param3nameBdefaultileTemplate9?param3nameB

    9param3valueBarticleTemplatehtm9?param3valueB

    9?init3paramB

    9init3paramB

    9param3nameBuseJS=9?param3nameB

    9param3valueBfalse9?param3valueB

    9?init3paramB

    9init3paramB

    9param3nameBjspistTemplate9?param3nameB

    9param3valueBlistTemplatejsp9?param3valueB

    9?init3paramB

    9init3paramB

  • 7/23/2019 Practice Code

    12/44

    9param3nameBjspileTemplate9?param3nameB

    9param3valueBarticleTemplatejsp9?param3valueB

    9?init3paramB

    9init3paramB

    9param3nameBcache=ac-ageTagsTrac-9?param3nameB

    9param3valueBL9?param3valueB

    9?init3paramB

    9init3paramB

    9param3nameBcache=ac-ageTagsStore9?param3nameB

    9param3valueBL9?param3valueB

    9?init3paramB

    9init3paramB

    9param3nameBcache=ac-ageTagsQe