Beth,
Thanks for the reply. I just found the answer after a search on
goggle:
http://lists.w3.org/Archives/Public/www-xpath-comments/1999JulSep/0032.h
tml
Either:
if( <xsp-session:get-attribute name="state"/> == null &&
<xsp-request:get-parameter name="state"/> == null )
Or:
if( <xsp-session:get-attribute name="state"/> == null <![CDATA[&&]]>
<xsp-request:get-parameter name="state"/> == null )
works fine.
When I tried putting <![CDATA[ ...if statement with tags... ]]>
it failed with the following error:
org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
form_xsp:
ERROR 1 (D:\apps\Tomcat
4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/
eval/logic\form_xsp.java):
...
// start error (lines 533-533) " illegal start of expression"
if( == null &&
// end error
== null ){
xspAttr.addAttribute(
"",
...
ERROR 2 (D:\apps\Tomcat
4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/
eval/logic\form_xsp.java):
...
}
}
// start error (lines 1821-1821) " not a statement"
}
// end error
this.contentHandler.startElement(
"",
I'm assuming that the error occured because I was using elements as part
of my if.
Regards!
Matthew :)
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
|