Announcement Announcement Module
Collapse
No announcement yet.
How To: get the <shortname> value in Java webscript Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How To: get the <shortname> value in Java webscript

    I have a need to get the <shortname> value that is declared in the xml declaration for the component (componentname.get.desc.xml)

    I have not found anyway using the API to extract that value in a Declaritive Java webscript class.

    At some point in the future I will also need to get this out in a Javascript webscript but for the moment Java is my primary need.

    Thanks

    Kris Thompson

  • #2
    The shortname and all other values from the descriptor are stored in the associated Description object.

    Code:
    getDescription().getShortName()
    the getDescription() method is public so you can call that on a webscript if you have one in your hand or obviously from within the webscript java class itself.

    Cheers,

    Kev

    Comment

    Working...
    X