|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectWikiTagBase
de.tuberlin.cs.flp.jspwiki.tags.PageReferredByTag
<wiki:PageReferredBy page='...'>
...
</wiki:PageReferredBy>
Implements a JSP-tag named "<wiki:PageReferredBy>" which includes its body into the page if this page is referred from the page given by parameter page. (I.e., if 'page' contains a link to this page.)
Field Summary | |
protected java.lang.String |
m_pageName
The name of the page which is tested whether it refers to the current page. |
Constructor Summary | |
PageReferredByTag()
|
Method Summary | |
int |
doWikiStartTag()
Decides whether to include the body part or not. |
java.lang.String |
getPage()
Returns the page name. |
void |
setPage(java.lang.String page)
Sets the page name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String m_pageName
Constructor Detail |
public PageReferredByTag()
Method Detail |
public void setPage(java.lang.String page)
page
- The page name.public java.lang.String getPage()
public final int doWikiStartTag() throws java.io.IOException
getPage()
includes a link to the current page.
Known bug: if this page's name contains special chars (e.g. German umlauts)
an existing reference from the referring page may not be found.
java.io.IOException
- if an i/o error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |