Changes for document XWQL to HQL converter

From version 3.1
edited by Guillaume Delhumeau
on 2012/11/13 18:33
To version 4.1
edited by Guillaume Delhumeau
on 2012/11/13 18:36
Change comment: There is no comment for this version

Object changes

Object number 0 of type ExtensionCode.ExtensionClass modified

Description
... ... @@ -9,11 +9,12 @@
9 9 def query = request.getParameter('query') != null ? request.getParameter('query') : "";
10 10 def esc = new org.apache.velocity.tools.generic.EscapeTool();
11 11 query = esc.xml(query);
12 +def url = doc.getURL();
12 12
13 13 println """
14 14 = Convert XWQL to HQL =
15 15 {{html}}
16 - <form class="xform" action="$doc.getURL()" method="GET">
17 + <form class="xform" action="$url" method="GET">
17 17 <dl>
18 18 <dt><label for="query_id">Query:</label></dt>
19 19 <dd><textarea name="query" id="query_id">$query</textarea></dd>

Download XWiki

My Recent Modifications

Get Connected