Archivo Properties en un proyecto Enterprise

13 Jul '17, 04:46 PM
2,296 Views
No Forum Badges

Cómo puedo crear un archivo Properties y usar las variables cradas en el en un proyecto Enterprise?

how to create a properties file and use the variables with an Enterprise project?

 
x 0
Follow
Answer Answer at this question and get points!
Forum Hero - Level 9

Puedes seguir los siguientes pasos

  • Crear la carpeta WebContent en el proyecto Enterprise

  • Dentro de la carpeta crear una carpeta con el nombre del proyecto enterprise seguido de _ROOT.jar pe: testEnterprise_ROOT.jar

  • En esta carpeta crear el archivo WebRatio.properties

    • mivariable=23

  • Crear las variables deseadas en el archivo

  • crear una página

  • Crear un view component

  • Crear un message component el que mostrará el valor de la variable

  • crear un script component

    • #input variableEntrada

    • #output variable

    • System.out.println("mivariable "+variableEntrada)

    • return ["variable": variableEntrada]

  • Enlazar con flows y configurar los bindings


Follow the next steps:

  • Create the WebContent folder into Enterprise project

  • Into the folder you have to create a folder with project name followed by  _ROOT.jar pe: testEnterprise_ROOT.jar

  • Into this folder create the WebRatio.properties folder

    • myvariable=23

  • You can create as many variables as necessary

  • Create a page

  • Create a view component

  • Create a message component to show the variable value

  • Create a script component

    • #input variableEntrada

    • #output variable

    • System.out.println("myvariable "+variableEntrada)

    • return ["variable": variableEntrada]

  • Match the flows y set the bindings

   
x 0
Answer at this question and get points!