I have the following code:

<%
        if(appendUserToPath || appendIDToPath){
        // stages are not overlapping, you can proceed

                for (int i=0; i<stageList.length;i++){
                        stagingRef = stagingPath;
                        if (appendInstanceToPath){
                                stagingRef += fs + instanceId ;
                        }
                        if (appendUserToPath){
                                stagingRef += fs +
stageList[i].substring(0,stageList[i].indexOf("|")) ;
                        }
                        if (appendIDToPath){
                                stagingRef += fs +
stageList[i].substring(stageList[i].indexOf("|")+1);
                        }
                        %>
                                <tr><td><%=stageList[i]  %> - <%=
stageList[i].substring(0,stageList[i].indexOf("|"))  %> - <%=
stageList[i].substring(stageList[i].indexOf("|")+1)  %> - <%= stagingRef %>
</td></tr>
                        <%
                }// for stages scelti

        } else {
        // stages overlapping, cancel the operation
                stagingRef = stagingPath;
                if (appendInstanceToPath){
                        stagingRef += fs + instanceId ;
                }
                %>
                        <tr><td><%= stagingRef %> </td></tr>
                <%
        }// end if

Based on its results (overlapped/not overlapped) I need to create a function
that will delete the stages that overlap (from DB and from the file system)
. If anyone has an idea on how it can be done please help. Thanx a lot









Alex S. Romanov
Software Developer
GREYINTERACTIVE Italy
Via del Bollo, 4 - 20123 Milano
T. +39 02 802.77.11
<http://www.greyinteractive.it/>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to