Hi,
<%
is also the tag for groovy code in XWiki
You might want to just replace < by <
Ludovic
Andreas Haumer a écrit :
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
Ludovic Dubost schrieb:
You should use
{code:xml}
{code}
around it
Are there similar tags for JSP code?
I tried to document basic JSP techniques with xwiki and
wanted to provide some example JSP code, but I always get
the following error:
Error number 4002 in 4: Error while parsing groovy page Main.Testpage Wrapped Exception:
parsing failed
Here is some example xwiki page content which produces
the error described above (reduced to the minimum where
the problem occurs):
xwiki problem with basic JSP code
{code:xml}
{pre}
<%@ taglib prefix="c"
uri="http://java.sun.com/jstl/core" %>
{/pre}
{code}
xwiki writes the following log messages:
[...]
2005-12-31 15:06:09,010 DEBUG
[com.opensymphony.oscache.base.algorithm.AbstractConcurrentReadCache] get called
(key=xwiki:)
2005-12-31 15:06:09,010 DEBUG
[com.opensymphony.oscache.base.algorithm.AbstractConcurrentReadCache] get called
(key=xwiki problem with basic JSP code
{code:xml}
{pre}
<%@ taglib prefix="c"
uri="http://java.sun.com/jstl/core" %>
{/pre}
{code}
)
2005-12-31 15:06:09,010 DEBUG
[com.opensymphony.oscache.base.algorithm.AbstractConcurrentReadCache] persistRetrieve
called (key=xwiki problem with basic JSP code
{code:xml}
{pre}
<%@ taglib prefix="c"
uri="http://java.sun.com/jstl/core" %>
{/pre}
{code}
)
2005-12-31 15:06:09,011 DEBUG [com.opensymphony.oscache.base.Cache] No cache entry exists
for key='xwiki problem with basic JSP code
{code:xml}
{pre}
<%@ taglib prefix="c"
uri="http://java.sun.com/jstl/core" %>
{/pre}
{code}
', creating
2005-12-31 15:06:09,018 INFO [STDOUT] General error during parsing: unexpected token:
uri
Script1.groovy:6:24: unexpected token: uri
at
org.codehaus.groovy.antlr.parser.GroovyRecognizer.postfixExpression(GroovyRecognizer.java:10959)
at
org.codehaus.groovy.antlr.parser.GroovyRecognizer.unaryExpressionNotPlusMinus(GroovyRecognizer.java:10738)
at
org.codehaus.groovy.antlr.parser.GroovyRecognizer.powerExpression(GroovyRecognizer.java:10580)
at
org.codehaus.groovy.antlr.parser.GroovyRecognizer.multiplicativeExpression(GroovyRecognizer.java:10514)
at
org.codehaus.groovy.antlr.parser.GroovyRecognizer.additiveExpression(GroovyRecognizer.java:10184)
at
org.codehaus.groovy.antlr.parser.GroovyRecognizer.shiftExpression(GroovyRecognizer.java:8041)
at
org.codehaus.groovy.antlr.parser.GroovyRecognizer.relationalExpression(GroovyRecognizer.java:9992)
at
org.codehaus.groovy.antlr.parser.GroovyRecognizer.equalityExpression(GroovyRecognizer.java:9934)
at
org.codehaus.groovy.antlr.parser.GroovyRecognizer.regexExpression(GroovyRecognizer.java:9884)
at
org.codehaus.groovy.antlr.parser.GroovyRecognizer.andExpression(GroovyRecognizer.java:9854)
at
org.codehaus.groovy.antlr.parser.GroovyRecognizer.exclusiveOrExpression(GroovyRecognizer.java:9824)
at
org.codehaus.groovy.antlr.parser.GroovyRecognizer.inclusiveOrExpression(GroovyRecognizer.java:9794)
at
org.codehaus.groovy.antlr.parser.GroovyRecognizer.logicalAndExpression(GroovyRecognizer.java:9764)
at
org.codehaus.groovy.antlr.parser.GroovyRecognizer.logicalOrExpression(GroovyRecognizer.java:9734)
at
org.codehaus.groovy.antlr.parser.GroovyRecognizer.conditionalExpression(GroovyRecognizer.java:3807)
[...]
I tried to use the tags {code:java} and {code:jsp}, but
it did not help.
Is there any way to have preformatted JSP code inside xwiki
pages?
- - andreas
- --
Andreas Haumer | mailto:andreas@xss.co.at
*x Software + Systeme |
http://www.xss.co.at/
Karmarschgasse 51/2/20 | Tel: +43-1-6060114-0
A-1100 Vienna, Austria | Fax: +43-1-6060114-71
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird -
http://enigmail.mozdev.org
iD8DBQFDtpGjxJmyeGcXPhERAvO/AJ9nH2s4f44mfZTJCc7lphdyJZkQ3gCgvINo
3oKWNhOhvOuduvbn8L/i2Hs=
=FuiL
-----END PGP SIGNATURE-----
------------------------------------------------------------------------
--
You receive this message as a subscriber of the xwiki-users(a)objectweb.org mailing list.
To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
For general help: mailto:sympa@objectweb.org?subject=help
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws