You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Max Larsson <ma...@gmservice.de> on 2001/07/26 08:40:19 UTC

Request tablig

Hi,

i've got a problem  with using the request taglib. THe following example
always stop because of complication error, but i have no idea why? Or do
i use the taglib in a wrong way ?

<xsp:page language="java"
                xmlns:xsp="http://apache.org/xsp"
                xmlns:esql="http://apache.org/cocoon/SQL/v2"
                xmlns:request="http://apache.org/xsp/request/2.0">

<page>

<xsp:logic>
	String id = <request:get-parameter name="ids"/>;
</xsp:logic>

....


The following Error is produced by C2:

org.apache.cocoon.ResourceNotFoundException: Language
Exception:org.apache.cocoon.ProcessingException: Language
Exception:org.apache.cocoon.components.language.LanguageException: Error
compiling navigate_xsp:
Line 0, column 0: C:\Programme\Apache
Group\jakarta-tomcat-3.2.2\work\localhost_8080%2Fhelpdesk\org\apache\cocoon\
www\menu\navigate_xsp.java:186: Incompatible type for declaration. Can't
convert void to java.lang.String.
    String id = xspAttr.addAttribute("", "name", "name", "CDATA", "ids");
           ^
Any idea why??


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


AW: Request tablig

Posted by Max Larsson <ma...@gmservice.de>.
Sorry folks,

i've figure out the problem. It is very important to have
the namespace for taglib named xsp-request!

Max

> -----Ursprüngliche Nachricht-----
> Von: Max Larsson [mailto:max.larsson@gmservice.de]
> Gesendet: Donnerstag, 26. Juli 2001 08:40
> An: Cocoon Users (E-Mail)
> Betreff: Request tablig
>
>
> Hi,
>
> i've got a problem  with using the request taglib. THe
> following example
> always stop because of complication error, but i have no idea
> why? Or do
> i use the taglib in a wrong way ?
>
> <xsp:page language="java"
>                 xmlns:xsp="http://apache.org/xsp"
>                 xmlns:esql="http://apache.org/cocoon/SQL/v2"
>                 xmlns:request="http://apache.org/xsp/request/2.0">
>
> <page>
>
> <xsp:logic>
> 	String id = <request:get-parameter name="ids"/>;
> </xsp:logic>
>
> ....
>
>
> The following Error is produced by C2:
>
> org.apache.cocoon.ResourceNotFoundException: Language
> Exception:org.apache.cocoon.ProcessingException: Language
> Exception:org.apache.cocoon.components.language.LanguageExcept
> ion: Error
> compiling navigate_xsp:
> Line 0, column 0: C:\Programme\Apache
> Group\jakarta-tomcat-3.2.2\work\localhost_8080%2Fhelpdesk\org\
> apache\cocoon\
> www\menu\navigate_xsp.java:186: Incompatible type for
> declaration. Can't
> convert void to java.lang.String.
>     String id = xspAttr.addAttribute("", "name", "name",
> "CDATA", "ids");
>            ^
> Any idea why??
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>