Results 1 to 2 of 2

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

  1. #1
    Join Date
    Jan 2005
    Posts
    1

    Default 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. #2

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •