Can bdm:elementaction be before bdm:loop?

X-Application Version: 3.1.2
Tamino Version : 3.1.1
Platform : Win2k
WebContainer : iPlanet 6 SP2
JDK Version : 1.3.1_02

Hi,

We’re trying to put an elementaction type=“insert” tag before the bdm:loop tag, for
an occurrence.

But we’re getting the following error. Does the
elementaction always have to be after the loop tag or is there another solution?

Thanks,
Puny

, root cause: DesignException: 121: Could not find the cursor “/Service_Agreement/Locations/xapp:seq()” for the element action of type “insert”.

com.softwareag.xtools.xapplication.jsp.DesignException
121: Could not find the cursor “/Service_Agreement/Locations/xapp:seq()” for the element action of type “insert”.

at com.softwareag.xtools.xapplication.jsp.ExceptionDispatcher.dispatch(ExceptionDispatcher.java:183)

at com.softwareag.xtools.xapplication.jsp.ExceptionDispatcher.rethrow(ExceptionDispatcher.java:148)

at com.softwareag.xtools.xapplication.jsp.JspTag.handleException(JspTag.java:310)

at com.softwareag.xtools.xapplication.jsp.JspTag.postProcessing(JspTag.java:279)

at com.softwareag.xtools.xapplication.jsp.JspTag.doAfterBody(JspTag.java:173)

at _jsps._ec_requestService_jsp._jspService(_ec_requestService_jsp.java:702)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:240)

at org.apache.jasper.servlet.JspServlet$JspServletWrapper.access$6(JspServlet.java:230)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:511)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:582)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:887)

at com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1045)

at com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:951)

Hello,

Yes, the elementaction always have to be after the loop tag. But try out this workaround: Copy the start tag of loop before the elementaction and close the loop directly. For example.


<loop select=?..? iterate=?..? targetbase=“/Service_Agreement/Locations/xapp:seq()” …>

<!-- the normal loop>
<loop select=?..? iterate=?..? targetbase=“/Service_Agreement/Locations/xapp:seq()” …>

I hope, this will help you.

Bye,
Christian.

Your workaround works fine. Thanks!