|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.portals.bridges.struts.taglib.TagsSupport
Utility class providing common Struts Bridge Tags functionality.
Constructor Summary | |
private |
TagsSupport()
Private constructor as this class isn't supposed to be instantiated. |
Method Summary | |
static String |
getContextRelativeURL(javax.servlet.jsp.PageContext pageContext,
String url,
boolean addContextPath)
Resolves a, possibly relative, url to a context relative one for use within a Portlet context. |
static String |
getFormTagRenderFormStartElement(javax.servlet.jsp.PageContext pageContext,
String formStartElement)
Replaces the action url as generated by the struts:form tag with an action PortletURL. |
static String |
getURL(javax.servlet.jsp.PageContext pageContext,
String url,
PortletURLTypes.URLType type)
Creates an action or render PortletURL, or a ResourceURL. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
private TagsSupport()
Method Detail |
public static String getContextRelativeURL(javax.servlet.jsp.PageContext pageContext, String url, boolean addContextPath)
The url parameter may contain relative (../) elements.
pageContext
- the JSP pageContexturl
- the url to resolve
public static String getURL(javax.servlet.jsp.PageContext pageContext, String url, PortletURLTypes.URLType type)
The url parameter is first resolved
to an context relative url.
Then, a prefixed contextPath is removed from the resulting url.
If the type parameter is specified (not null), the type of url created is based on its value.
Otherwise, PortletURLTypes.getType(String)
is used to determine which
type of url must be created.
pageContext
- the JSP pageContexturl
- the url to resolvetype
- indicated which type of url must be created
public static String getFormTagRenderFormStartElement(javax.servlet.jsp.PageContext pageContext, String formStartElement)
pageContext
- the JSP pageContextformStartElement
- the formStartElement as generated by the struts:form tag
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |