Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EJB problems when delete in a JSP page

Status
Not open for further replies.

josep

Technical User
Aug 8, 2003
2
0
0
ES
Hi, I'm developing an application with the "Business Components...." and I'm using to delete in a JSP page the next code :

<jbo:DataSource id=&quot;pr&quot; appid=&quot;PIcaen.PIcaenModule&quot; viewobject=&quot;TProvaView&quot;/>
<jbo:RowsetIterate datasource=&quot;pr&quot;>
<jbo:Row id=&quot;fila&quot; datasource=&quot;pr&quot; action=&quot;Delete&quot;>
</jbo:Row>
</jbo:RowsetIterate>

But that generates a JSP exception. Could anyone help me, please?
Thanks a lot in advance
 
Hi,
I couldn't get that to work either, but I found that I could delete a row by setting the row action to &quot;Current&quot; and using 'remove()' as shown below.

<jbo:DataSource id=&quot;pr&quot; appid=&quot;PIcaen.PIcaenModule&quot; viewobject=&quot;TProvaView&quot;/>
<jbo:RowsetIterate datasource=&quot;pr&quot;>
<jbo:Row id=&quot;fila&quot; datasource=&quot;pr&quot; action=&quot;Current&quot;>

<% fila.remove(); %>

</jbo:Row>
</jbo:RowsetIterate>

<jbo:postChanges appid=&quot;PIcaen.PIcaenModule&quot; />
<jbo:Commit appid=&quot;PIcaen.PIcaenModule&quot; />

I hope this is of help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top