jmoordb cookbook
  • Introduction
  • Jakarta Server Faces
  • Page 1
  • Capitulo 1- Mongodb
    • instalacion
    • optimizar
  • NoSQL
    • Mongodb
      • Instalar
      • script backup
    • jmoordb
  • Capitulo 2- EJB
    • EJB
      • Enterprise Java Beans
      • Proyecto EJB
        • Dependencias
        • entity
        • datamodel
        • repository
        • converter
        • services
          • restricciones para eliminar
    • Enterprise Java Beans
  • Capitulo 3. @Id String
  • Capitulo 4. @Id Autoincrementable, validar por @Secondary
  • Capitulo. Formulario sin <new:>
  • Capitulo Java EE 8 Api Security
    • web.xml
    • Clases
      • ApplicationConfig.java
      • CustomInMemoryIdentityStore.java
      • LoginController.java
  • Jakarta EE
    • JmoordbConfiguration
    • Controller
      • Untitled
      • busquedas regext
      • init()
        • Leer parametros en el init()
      • Untitled
      • move()
      • beforeSave()
      • Usuario logeado
    • LoginController
    • list.xml
    • new.xhtml
    • view.xhtml
    • Tips
  • Microprofile
Powered by GitBook
On this page

Was this helpful?

  1. Jakarta EE
  2. Controller
  3. init()

Leer parametros en el init()

Leer parámetros de las acciones ocurridas las podemos validar en el new.

JmoordbContext.get(nombre_entity)

Devuelve la accion a ejecutarse:

  • gonew

  • view

  • new

  • golist

 String action =JmoordbContext.get("solicitud").toString();
            System.out.println("action");
            if(action.equals("view")){
                
            }
            
Previousinit()NextUntitled

Last updated 6 years ago

Was this helpful?