|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.SimpleTagSupport
nl.gx.webmanager.taglib.IncludeUrlTag
public class IncludeUrlTag
Implements the wm:includeUrl tag. This tag evaluates the URL to which the given parameter
points and writes the result to the jsp page. External URLs should start with 'http'. Internal URLs should
be relative to the context path (i.e. start with /).
(Note: use this instead of jsp:include to pass on the presentationcontext!)
Example of usage:
< wm:includeUrl url="/WEB-INF/presentation/jsp/shared/include/top.jspf" />In the example above the content of top.jspf is included at the position of the < wm:includeUrl > tag.
| Constructor Summary | |
|---|---|
IncludeUrlTag()
|
|
| Method Summary | |
|---|---|
void |
doTag()
|
protected int |
getConnectionTimeout()
Return the connection timeout for external URLs (value in milliseconds). |
protected int |
getReadTimeout()
Return the read timeout for external URLs (value in milliseconds). |
protected java.lang.String |
getUrl()
Return the URL indicating the resource to retrieve HTML from |
protected boolean |
isFollowRedirects()
Return whether a redirect should be followed if the URL returns a redirect to another location. |
void |
setConnectionTimeout(int connectionTimeout)
Sets the connection timeout for external URLs. |
void |
setFollowRedirects(boolean followRedirects)
Specifies whether a redirect should be followed if the URL returns a redirect to another location. |
void |
setReadTimeout(int readTimeout)
Sets the read timeout for external URLs. |
void |
setUrl(java.lang.String url)
Specifies the URL indicating the resource to retrieve HTML from. |
| Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport |
|---|
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IncludeUrlTag()
| Method Detail |
|---|
public void setUrl(java.lang.String url)
url - the URL indicating the resource to retrieve HTML fromprotected java.lang.String getUrl()
public void setConnectionTimeout(int connectionTimeout)
connectionTimeout - timeout in milliseconds.protected int getConnectionTimeout()
public void setReadTimeout(int readTimeout)
readTimeout - timeout in millisecondsprotected int getReadTimeout()
public void setFollowRedirects(boolean followRedirects)
followRedirects - protected boolean isFollowRedirects()
public void doTag()
throws javax.servlet.jsp.JspException
doTag in interface javax.servlet.jsp.tagext.SimpleTagdoTag in class javax.servlet.jsp.tagext.SimpleTagSupportjavax.servlet.jsp.JspException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||