org.apache.struts2.views.gxp

## Class Gxp

- java.lang.Object
- - org.apache.struts2.views.gxp.AbstractGxp<com.google.gxp.html.HtmlClosure>
  - - org.apache.struts2.views.gxp.Gxp

- Direct Known Subclasses:
    GxpInstance

      public class Gxp
      extends AbstractGxp<com.google.gxp.html.HtmlClosure>

  Struts 2 to GXP adapter. Can be used to write a GXP or create a HtmlClosure. Pulls GXP parameters from Struts 2 value stack.
  Author:
    Bob Lee

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static Gxp` | `getInstance(Class gxpClass)` Looks up Gxp instance for the given GXP class.
    `static Gxp` | `getInstance(String gxpPath)` Looks up Gxp instance for GXP with given path.

    - ### Methods inherited from class org.apache.struts2.views.gxp.AbstractGxp

      `getArgs, getGxpClass, getGxpClassForPath, getGxpClosure, getGxpClosure, getGxpInstance, getOverrides, getParams, lookupMethodByName, setValueStackFactory, write, write`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getInstance

          public static Gxp getInstance(String gxpPath)

      Looks up Gxp instance for GXP with given path.
      Parameters:
        `gxpPath` - Gxp path
      Returns:
        Gxp instance

    - #### getInstance

          public static Gxp getInstance(Class gxpClass)

      Looks up Gxp instance for the given GXP class.
      Parameters:
        `gxpClass` - Gxp class
      Returns:
        Gxp instance

Copyright © 2000–2025 Apache Software Foundation. All rights reserved.