Hello guys, below a snippet of code where I am trying
to use an if statement within another one. 


<n:if cond="deliveryConfirmationStatus eq
'DLV_CONF_ST_PERMANENT_UNBILLABLE'">
                                <!-- what do we do here? -->
                                <n:var name="dummy" expr="dummy"/>
                                <n:else>
                                        <n:var name="handsetDetectionStatus"
expr="userProfile.getWAPPClickedStatus( wstrId )"/>
                                        <n:if cond="handsetDetectionStatus eq
'COMPATIBLE'  ">
                                                <n:var name="migrated"
expr="userProfile.migrateService( wstrId )"/>
                                                <n:var name="contentSent"
expr="userProfile.sendContent( askedContent )"/>
                                        </n:if>
                                </n:else>
                        </n:if>

The code throws an exception:

Jun 28, 2006 4:59:42 AM
org.apache.commons.digester.Digester endElement
SEVERE: End event threw exception
java.lang.NoSuchMethodException: No such accessible
method: addAction() on object:
org.apache.commons.scxml.model.Else
        at
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:214)
        at
org.apache.commons.digester.SetNextRule.end(SetNextRule.java:216)
        at
org.apache.commons.digester.Rule.end(Rule.java:230)
        at
org.apache.commons.digester.Digester.endElement(Digester.java:1130)
        at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
        at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
        at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
        at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown
Source)
        at
org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
        at
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
        at
org.apache.commons.digester.Digester.parse(Digester.java:1647)
        at
org.apache.commons.scxml.io.SCXMLDigester.digest(SCXMLDigester.java:229)

And if the nested if is moved to the same level of the
first one no exception is thrown of course.

Could anyone suggest how can I get the package to work
with nested if statements?

Thanks!


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to