General Actions:
Log-in
Register
Wiki:
games
▼
:
Document Index
»
Space:
Main
▼
:
Document Index
»
Page:
linkTest
Search
en
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
Link Parser
Wiki source code of
Link Parser
Last modified by
Administrator
on 2008/03/19 18:52
Content
·
Comments
(0)
·
Annotations
(0)
·
Attachments
(0)
·
History
·
Information
Hide line numbers
1: 2: 3: #set ($target = "") 4: #set ($target = $request.getParameter("target")) 5: 6: 1 Link Parser 7: 8: <FORM> 9: Please enter a page from which to parse links. 10: <INPUT type="text" name="target" value="$!target" /> 11: <INPUT type="submit" name="Go" value="Go" /> 12: </FORM> 13: 14: #if ($target != "") 15: 16: #set($linkFinder = $xwiki.parseGroovyFromPage("Main.linkFinder")) 17: 18: $linkFinder.setXWiki($xwiki) 19: #set ($map = $linkFinder.getMap($target)) 20: #foreach ($key in $map.keySet()) 21: * $key $map.get($key) 22: #end 23: 24: #end