public class IvyJSP extends Ivy
This class contains the same functionality as the Ivy
class and is extended
with additional functionality only used in a JSP-page.
To access the ivy environment in a JSP-page you must use this class instead of Ivy
.
To import this class in a JSP add this line at the top of the jsp page:<%@ page import="ch.ivyteam.ivy.page.engine.jsp.IvyJSP"%><jsp:useBean id="ivy" class="ch.ivyteam.ivy.page.engine.jsp.IvyJSP" scope="session"/>After this import you can access the ivy environment like this:<%=ivy.get("foo.bar")%>
<%=ivy.task.getName()%>
Constructor and Description |
---|
IvyJSP()
Creates a new
IvyJSP instance. |
Modifier and Type | Method and Description |
---|---|
static String |
content(String contentObjectName,
String type)
Gets the value of the given content object to render in a JSP.
|
static String |
panel(String panel)
Gets the path to the given panel.
|
static String |
style()
Returns the path of the css file of the current page.
|
public IvyJSP()
IvyJSP
instance. Usually used as a bean in a JSP-page.public static String panel(String panel)
panel
- The name of the panel to be includedpublic static String content(String contentObjectName, String type)
public static String style()
To use the css style in a JSP add this line inside the header part:<link rel="stylesheet" type="text/css" href="<%=ivy.style()%>"/>
Copyright © 2024
AXON IVY AG
All Rights Reserved Documentation was generated
on April 28, 2024