Struts logic:foward in JSF

Hi Everybody,
I'm trying to migrate a struts application to JSF.
My index.jsp has the following struts tag.
<logic:forward name="display"/>
The action code behind the foward, does some validation before the right page is display to the user.
Is there a way to achieve the same functionality in JSF.
Thanks in advance for your help.
Vikas
Message was edited by:
vikasphonsa

Thanks guys!
the simple solution is what you said:
in JSF page, binding rendered to a propertity in the bean. on the bean create the property - method to have the logic to return true or false. Do you think if it is a better solution than using jstl -- I dont know too much JSTL - I am more service side developer such as proxy service, application server to host tcp connection from clients...

Similar Messages

  • Logic control in JSF's jsp

    Hello I have fundmental question to ask;
    In Struts or JSP page, you can use logic control to determine what will display. For intance, the tag on strut <logic:match> <logic:equals>. I am wondering how to have this sort logic in JSF. Thanks!

    Thanks guys!
    the simple solution is what you said:
    in JSF page, binding rendered to a propertity in the bean. on the bean create the property - method to have the logic to return true or false. Do you think if it is a better solution than using jstl -- I dont know too much JSTL - I am more service side developer such as proxy service, application server to host tcp connection from clients...

  • New to Struts - logic:if error - am I not properly defining a bean?

    I am going through what are for the most part simple Struts examples and tutorials on my company's Intranet. The example below should be testing against the pre-defined <logic:if> and <logic:or> statement values and spitting out either the 'one or more conditions are true' or 'none of the conditions are true' depending.
    That said, I am getting an error with the following block of code (at line 11) just before the first logic:if statement and I am hoping for help in determining where I have gone astray.
    <%@ page contentType="text/html; charset=UTF-8" %>
    <%@ taglib uri="/tlds/marketmaker.tld" prefix="abc" %>
    <%@ taglib uri="/tlds/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/tlds/struts-logic.tld" prefix="logic" %>
    <%@ taglib uri="/tlds/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/tlds/jdo.tld" prefix="jdo" %>
    <%@ taglib uri="/tlds/string.tld" prefix="str" %>
    <abc:page>
         <h3>logic:if</h3>
           <logic:if name="calendarBean" property="month" op="equal" value="March">
           <logic:or name="calendarBean" property="year" op="lessEqual" value="2012"/> <!-- Note self-closing -->
           <logic:or name="calendarBean" property="day" op="equal" value="Friday"/>
             <logic:then>
                <p>At least one condition above is true.</p>
              </logic:then>
              <logic:else>
                <p>None of the conditions are true.</p>
              </logic:else>
           </logic:if>
    </abc:page>Again, the error is at line 11, occurring at or just before the <logic:if> statement. I presume it is because a bean must be properly defined.
    I tried the following variations of <bean:define> and keep coming up with the same error.
    <bean:define id="calendarBean" name="myCalendarBean" value="March" />
    <bean:define id="calendarBean" name="calendarBean" value="March" />
    <bean:define id="calendarBean" name="calendarBean"/>
    <bean:define id="calendarBean" name="myCalendarBean"/>
    <bean:define id="myCalendarBean" name="calendarBean"/>
    <bean:define id="calendarBean" value=""/>
    <bean:define id="calendarBean" value="false"/>
    <bean:define id="calendarBean"/>Am I right about defining a bean first? If yes, what am I doing incorrectly in the aforementioned <bean:define> declarations listed above?
    If you see something entirely different (and wrong) please do let me know.
    Edited by: 924359 on Mar 29, 2012 1:03 PM

    Try a Struts forum. This isn't one. Locking.

  • How to use struts Logic tags in weblogic8.1

    hi
              i have used jakarta struts in JDeveloper there i used logic tags
              but the same i have to use in weblogic8.1 ,how should i use it
              i am new to weblogic platform
              it is very urgent
              please

    Hi harish,
              Procedure for using a Struts Tag Libraries in weblogic 8.1 :
              â€¢Copy the tag lib jar files under WEB-INF/lib ( if tag handler supplied as
              classes without package a jar file then we need to copy the classes
              under WEB_INF/classes.
              â€¢ Copy the tld files files under WEB-INF or create a directory under
              WEB-INF and copy tld files under this directory.
              â€¢ We need to give the information about the tag libraries in web.xml by
              adding the following lines to it as,
              <taglib>
              <taglib-uri>bean</taglib-uri>
              <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
              </taglib>
              <taglib>
              <taglib-uri>html</taglib-uri>
              <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
              </taglib>
              <taglib>
              <taglib-uri>logic</taglib-uri>
              <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
              </taglib>
              To use tags in jsp file we need to add taglib directive as ,
              <%@ taglib uri="logic" prefix=“logic"%>
              <%@ taglib uri="html" prefix=“html"%>
              <%@ taglib uri="bean" prefix=“bean"%>
              Every tag can support zero or more number of attributes and a tag may or
              may not support body content
              Every Tag Library Uniquely identified by uri defined in web.xml.
              we can use the tags in jsp according to the tags and attributes which are defined in *.tld files.
              if we look at .tld files we can find several tags and its attributes.
              note :any jar files that are related to struts framework ,place under the lib directory of the webapplication.
              ----- Anilkumar kari

  • How to Implement Strut Tiles  Framework in JSF

    Hi
    I am new to JSF tried to implent struts tiles in jsf 1.2 but i am facing some problm.
    is any one have ideas about how to implementing struts tiles framework in jsf??....
    Cheers
    Sekar M

    Hope the below URLs should answer your question
    [http://www.jroller.com/HazemBlog/entry/how_to_use_struts_tiles]
    [http://www.ibm.com/developerworks/library/j-integrate/]
    [http://www.laliluna.de/blog/2007/02/28/struts_tiles_jsf_myfaces_migration_or_integration.html]

  • Struts-logic, notEqual, compare null variable

    I would like to request advice using struts-logic. I have Jakarta-struts-1.0.2 working with JavaBeans on Tomcat 4.1 / W2K.
    The tags below should not print the value if the value (from a database) is null.
    The following tags:
    <logic:notEqual name ="bookdetails" property="auth_2_surname" value="">
    <br><jsp:getProperty name="bookdetails" property="auth_2_surname" />
    </logic:notEqual>
    generate this error:
    JasperException: Cannot compare null variable to value
    Is there a way to use struts-logic when the value to be compared is null?
    Thank you for your help.
    James

    try to use i think <logic:notEmpty> strut tag instead

  • JSP - Nested Jakarta Struts Logic Tags

    Hi,
    Simple question....
    Can Jakarta Struts Logic tags be nested when coding JSP's
    i.e.
    ==========================================
    <logic:iterate id="searchSizeTracker" name="searchSizeTracker" type="uk.co.troutlure.bom.SearchTrackerObject" scope="request">
    <logic:greaterEqual name='searchSizeTracker' property='page_no' value='<%searchActionForm.getCurrentPage()%>'>
    <logic:lessEqual name='searchSizeTracker' property='page_no' value='<%searchActionForm.getMaxPage()%>'>
    <logic:equal name='searchSizeTracker' property='page_no' value='<%searchActionForm.getCurrentPage()%>'>
    <jsp:getProperty name="searchSizeTracker" property="page_no"/>
    </logic:equal>
    <logic:notEqual name='searchSizeTracker' property='page_no' value='<%searchActionForm.getCurrentPage()%>'>
    <a href="<%=request.getContextPath()%>/performSearch.do?pageRequired=<bean:write name='searchSizeTracker' property='page_no'/>&action_id=<bean:write name='searchActionForm' property='currentActionId'/>&searchType=<bean:write name='searchActionForm' property='searchType'/>&currentScreen=search_reorder"><jsp:getProperty name="searchSizeTracker" property="page_no"/>
    </a>
    </logic:notEqual>
    </logic:lessEqual>
    </logic:greaterEqual>
    </logic:iterate>
    =========================================
    The above code sample seems to fail to get past the first <logic:greaterEqual tag even though the conditions are met. And the iterator just loops throught the rest of the SearchTrackerObjects.
    I'm not sure whether logic tags can be nested as shown???
    Thanks in advance.

    Yes you should be able to nest logic tags like that.
    However you seem to be wanting to limit the values that are iterated through using the greaterEqual and lessEqual tags.
    I would suggest you use the offset and length attributes on the logic:iterate tag:
    something like:
    <logic:iterate id="searchSizeTracker" name="searchSizeTracker" type="uk.co.troutlure.bom.SearchTrackerObject" scope="request" offset ="<%searchActionForm.getCurrentPage()%>" length="<%searchActionForm.getMaxPage() - searchActionForm.getCurrentPage()%>">Cheers,
    evnafets

  • How can I evaluate if a collection is empty or not with struts logic tag?

    How can I evaluate if a collection is empty or not with struts logic tag?
    I tried with logic empty tag. but the tag evaluated if a collection is null or not.
    I would like to do like this below.
    List list = new ArrayList();
    set(list);
    <logic:XXXX name="someForm" property="list">
    The list size is 0.
    </logic>thanks in advance.

    U can use :
    <logic:present name="urform" property="urlist">
    </logic:present>
    to check "urlist" is empty or not

  • Metadata for namespace '/WEB-INF/tld/struts-logic.tld' is not loaded

    hi all,
    I keep getting these kind of errors in JDeveloper for JSPs which have this included:
    Metadata for namespace '/WEB-INF/tld/struts-logic.tld' is not loaded.
    What should I do to resolve this error?

    I did exactly that, but since client I work for is using /tld subdirectory, everything is the same as below, only /tld is added after /WEB-INF:
    1.Copy the TLD file struts-logic.tld to the WEB-INF directory.
    2. In the web.xml add <taglib/> element
    <taglib>
    <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
    </taglib>
    3. In the JSP add
    <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
    struts libs have been added to the WEB-INF/lib directory too, but the problem persists.
    Maybe the reason is invalid ant build.xml file which is invoked from JDev when building project? In build.xml I found this part:
    <!--Set the classpath-->
    <path id="classpath">
    <fileset dir="${lib.dir}">
    <include name="**/*.jar" />
    <exclude name="xercesImpl.jar"/>
    </fileset>
    </path>
    Maybe I need to add this to the <path>:
    <fileset dir="${tld.dir}">
    <include name="**/*.tld" />
    </fileset>
    after defining the directory
    <property name="tld.dir" value="${web.dir}/WEB-INF/tld"/>
    But the thing is other developers are using the same build.xml file from their IDEs (Eclipse and IntelliJ) and nobody seem to have this problem?

  • How to call a struts action from a JSF page

    I am working on a small POC that has to do with struts-faces. I need to know how to call a struts ".do" action from a JSF page..
    Sameer Jaffer

    is it not possible to call a action from the faces submit button and/or the navigation?
    This a simple POC using struts-faces exmaples.
    Here is my struts-config and faces-config file.
    <struts-config>
    <data-sources/>
    <form-beans>
      <form-bean name="GetNameForm" type="demo.GetNameForm"/>
    </form-beans>
    <global-exceptions/>
    <global-forwards>
      <forward name="getName" path="/pages/inputname.jsp"/>
    </global-forwards>
    <action-mappings>
      <action name="GetNameForm" path="/greeting" scope="request" type="demo.GreetingAction">
       <forward name="sayhello" path="/pages/greeting.jsp"/>
      </action>
    </action-mappings>
    <controller>
        <set-property property="inputForward" value="true"/>
        <set-property property="processorClass"
                value="org.apache.struts.faces.application.FacesRequestProcessor"/>
    </controller>
    </struts-config>faces-config
    <faces-config>
    <managed-bean>
      <managed-bean-name>calculate</managed-bean-name>
      <managed-bean-class>com.jsftest.Calculate</managed-bean-class>
      <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <managed-bean>
      <managed-bean-name>GetNameForm</managed-bean-name>
      <managed-bean-class>demo.GetNameForm</managed-bean-class>
      <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
      <from-view-id>/calculate.jsp</from-view-id>
      <navigation-case>
       <from-outcome>success</from-outcome>
       <to-view-id>/success.jsp</to-view-id>
      </navigation-case>
      <navigation-case>
       <from-outcome>failure</from-outcome>
       <to-view-id>/failure.jsp</to-view-id>
      </navigation-case>
    </navigation-rule>
    <navigation-rule>
      <from-view-id>/inputNameJSF.jsp</from-view-id>
      <navigation-case>
       <to-view-id>/pages/greeting.jsp</to-view-id>
      </navigation-case>
    </navigation-rule>
    </faces-config>in my inputNameJSF.jsp (faces page)
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
    <%@ taglib prefix="s" uri="http://struts.apache.org/tags-faces" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Say Hello!!</title>
    </head>
    <body>
    Input Name
    <f:view>
         <h:form >
              <h:inputText value="#{GetNameForm.name}" id = "name" />
              <br>
              <h:commandButton id="submit"  action="/greeting.do" value="   Say Hello!   " />
         </h:form>
    </f:view>
    </body>
    </html>I want to be able to call the struts action invoking the Action method in the that returns the name
    package demo;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    public class GreetingAction extends org.apache.struts.action.Action {
        // Global Forwards
        public static final String GLOBAL_FORWARD_getName = "getName";
        // Local Forwards
        private static final String FORWARD_sayhello = "sayhello";
        public GreetingAction() {
        public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
            String name = ((demo.GetNameForm)form).getName();
            String greeting = "Hello, "+name+"!";
            request.setAttribute("greeting", greeting);
            return mapping.findForward(FORWARD_sayhello);
    }Edited by: sijaffer on Aug 11, 2009 12:03 PM

  • Using Strut Logic Iterate tag in JavaScript

    Has anyone tried this or experienced this problem.
    I have JSP pages with JavaScript imbedded. Not my web page but an out of the box portal we bought from a vendor. The JavaScript uses the Logic Iterate Strut tag but gives an error in Nitro:
    "feature is not resolved" on the lines where getLink() and getID() are called. I have put the code in other editors and it does not give me any error. Does any one have a clue to why this error occurs or is this something that NitroX can not handle?
    Thanks,
    Zim 8)
    Some of Code:
    function selectFolder(folderName,doExpandPath)
                        if (typeof(doExpandPath) == 'undefined')
                             doExpandPath = true;
                        var form = document.forms['TreeForm'];
                        // unselect old one
                        var cell = document.getElementById(selectedId);
                        if (null != cell)
                             cell.className = '';
                        // select new one
                        if ('/' == folderName.charAt(folderName.length-1))
                             folderName = folderName.substring(0,folderName.length-1);
                        var targetCellId = 'cellLabel./Documents'+folderName;
                        var isContentFolderBrowser = true;
                        try {
                             var sideBarSelected = top.frames['main'].window.sideBarSelected;
                             isContentFolderBrowser = '/getfolderitems.do' == sideBarSelected;
                             if (!isContentFolderBrowser) {
                             <logic:iterate id="feature" name="userinfobean" property="sideBarFeatures"
                                       type="com.actuate.activeportal.functionality.config.Feature">
                                       if (sideBarSelected == '<%= feature.getLink()%>' )
                                            targetCellId = 'cellLabel./<%= feature.getID()%>';
                                  </logic:iterate>
                        } catch (e) {
                        cell = document.getElementById(targetCellId);

    May I ask why have you done it?
    If it is related to printing of the list then it is of no use.But it IS of use. The objects compEmployees is in scope.
    It has the list we want to print out.
    With logic:iterate:
    <table>
         <tr>
           <th>Number</th>
           <th>Employee</th>
         </tr>
         <logic:iterate name="compEmployees" property="totalEmps" id="emp">
              <tr>
                <td>
                  <bean:write name="emp" property="empNo"/>
                </td>
                <td>
                  <bean:write name="emp" property="empName"/>
                </td>
              </tr>
         </logic:iterate>
    </table>or alternatively with JSTL and c:forEach
    <table>
         <tr>
           <th>Number</th>
           <th>Employee</th>
         </tr>
         <c:forEach items="${compEmployees.totalEmps}" var="emp">
              <tr>
                <td>
                  <c:out value="${emp.empNo}"/>
                </td>
                <td>
                  <c:out value="${emp.empName}"/>
                </td>
              </tr>
         </c:forEach>
    </table>Cheers,
    evnafets

  • Struts logical path problem

    HI,
    I am using struts in my web application deployed on OC4J server.
    I am hitting a problem that the "sub page" gets incorrect url.The details are as follows:
    in my struts config the mapping is defined as :
    1) "parent.do" is mapped to /WEB-INF/mypages/parent.jsp
    2)"child.do" is mapped to /WEB-INF/mypages/child.jsp
    My page "parent.jsp" contains two frames one having some a page with static images and the other frame having the src as "child.do"
    Now if I invoke the http://myserver/myapp/parent.do
    the first frame loads correctly while for second it throws an error 404 that "http://myserver/myapp/WEB-INF/mypages/child.do" not found.
    It seems to me that that the subpage does not get the correct information about the context.
    Any suggestions will be greatly appreciated.
    Regards.

    When you are not in development, you can assign a different physical path to the same logical path in your staging system via the file transaction. As long as you use the logical path name in your code, it will be interpreted correctly with the setup in the system.

  • How to use logical operator in struts logic:equal

    Hi All,
    I need to translate:
    if ( a == 'option1' || a == 'option2' )
    to struts code....
    I don't know how to put || or && in <logic:equal.... ?&#65533;?&#65533;?&#65533;?
    Many thanks

    Must it really be Struts? If so, try asking this question at their own forum/mailinglist at apache.org.
    Can it be JSP? If so:${a == 'option1' || a == 'option2' ? 'outputThis' : 'outputElse'}Can it be JSTL? If so:<c:if test="${a == 'option1' || a == 'option2'}">
        <!-- Do your thing. -->
    </c:if>And please don't mark threads as answered if the question is not answered. I almost ignored this thread.

  • Struts' logic:notEqual

    i have two objects inside my form previousCustomerDetails and CustomerDetails
    i want to compare the previousName entered with the newName if it has changed then i wish to print it.
    <logic:notEqual name="previousCustomerDetails" property="custName" value="<%= previousCustomerDetails.getCustName() %>">
          sdsd
          </logic:notEqual>Is there anyway to do this without scriptlet tags?
    i have tried
    <logic:notEqual name="previousCustomerDetails" property="custName" value="<bean:write name="previousCustomerDetails" property="custName" />">
         sdsd
         </logic:notEqual>
    but i get equal expected??
    I have defined previousCustomerDetails and CustomerDetails in the jsp using bean:define...
    Message was edited by:
    spear_arrow

    try to use i think <logic:notEmpty> strut tag instead

  • Struts--logic:tag-----------help required---urgent....

    Hi All,
    I have a JSP that has the following code
    <%@ page import='java.util.List' %>
    <%@ page import='java.util.Iterator' %>
    <%@ page import='com.stgil.pos.personal.quickQuote.model.QuoteModel' %>
    <%@ page import='com.stgil.pos.personal.quickQuote.model.QuoteRateMasterModel' %>
    <%
         List masterList = (List)session.getAttribute("MASTERLIST");
    %>
    <%
         QuoteModel quoteModel = (QuoteModel) session.getAttribute("QUOTEMODEL");
    %>
    <FORM action="quoteRate.do">
    <TABLE border="1">
              </br>
              <TR>
                   <TD><bean:message key="QQ001.quote.no.quote.renew.no" /></TD>
                   <TD><%=quoteModel.getQuoteNo()%> / <%=quoteModel.getQuoteRenewNo()%></TD>
                   <TD><bean:message key="QQ001.insured" /></TD>
                   <TD><%=quoteModel.getApplicantFullName()%></TD>
              </TR>
              <TR>
                   <TD><bean:message key="QQ001.effective.date" /></TD>
                   <TD><%=quoteModel.getQuoteBegindate()%></TD>
                   <TD><bean:message key="QQ001.expiration.date" /></TD>
                   <TD><%=quoteModel.getQuoteEndDate()%></TD>
                   <TD><bean:message key="QQ001.term" /></TD>
                   <TD><%=quoteModel.getQuoteTermCode()%></TD>
              </TR>
    </TABLE>
    Click on the submit button to rate for successful programs. Or Click
    on the Review button against the program name to make necessary the
    required corrections.<BR>
    <BR>
    Rating for multiple programs may take time.
    <TABLE border="1" width="804">
              <tr>
                   <TH><bean:message key="QQ001.program" /></TH>
                   <TH><bean:message key="QQ001.edit.check.status</TH>
                   <TH width="161"><bean:message key="QQ001.rate</TH>
              </tr>
              <%
         Iterator it = masterList.iterator();
              while(it.hasNext()){
              QuoteRateMasterModel quoteRateMasterModel =(QuoteRateMasterModel ) it.next();
              %>
              <TR>
                   <TD><%=quoteRateMasterModel.getSubLineCode()%>
                   </TD>
                   <TD><% if(quoteRateMasterModel.getStatus().equals("E")) { %>
                                  <div align="left"> <span style='font-family:Wingdings;mso-ascii-font-family:
                                  "Times New Roman";mso-hansi-font-family:"Times New Roman";mso-char-type:symbol;
                                  mso-symbol-font-family:Wingdings'><span style='mso-char-type:symbol;mso-symbol-font-family:
                                  Wingdings'>&uuml;</span></span> </div>
                   <% } else if(quoteRateMasterModel.getStatus().equals("N")) { %>
                                  <div align="left"> <span style='font-family:Wingdings;mso-ascii-font-family:
                                  "Times New Roman";mso-hansi-font-family:"Times New Roman";mso-char-type:symbol;
                                  mso-symbol-font-family:Wingdings'><span style='mso-char-type:symbol;mso-symbol-font-family:
                                  Wingdings'><font color="#FF0000">&ucirc;</font></span></span> </div>
                   <% } %>
                   </TD>
                   <TD>
                        <input TYPE=CHECKBOX name="chkEditFlag" value='<%=quoteRateMasterModel.getSubLineCode() %>' CHECKED>
                        <% if(quoteRateMasterModel.getStatus().equals("E")) { %>
                        <% } else if (quoteRateMasterModel.getStatus().equals("N")){ %>
                                  Review <img src="../../Images/pencil.gif" width="14" height="14"/>
                   <% } %>
                   </TD>
              </TR>
              <% } %>
    </TABLE>
    <BR>
         <DIV align="center"><INPUT type="submit" name="btnBack" value="Back"> <INPUT type="submit" name="btnSubmit" value="Submit"></DIV>
    </FORM>
    and in my action class i have
    session.setAttribute("MASTERLIST",quoteRateMasterList);
    I have to change the JSP using struts tags ......
    also depending on the chechkec value of the checkbox i have to get those records back in my action class---something like this----
    request.getParameterValues("chkEditFlag");
                   requestArray = request.getParameterValues("chkEditFlag");
    for each checked value i have to perform some action in the action class.....
    can somebody help
    thanks in advance

    Hi Kamal, Thank you so much for ur response.
    I am herewith writing in detail the flow of my program. The fetching of 50000 rows from the remote database is not consuming time, because i hit the database only once and fetch all the records in an array cursor and do the actual processing in a for loop at my end. Only the 'for loop' is consuming so much time. Please tell me if there is any other way the 'for loop' time can be reduced.
    program flow
    consider the table name as (T1) in another database with 50000 records and the table name as (T2) in my end with 1000 records
    <Cursor Declaration>
    while(1)
    <Array Cursor Fetch from table(T1) containing 50000 records from another database. I Hit once and fetch all the records in the array cursor)>
    :value1,-------------------Array Cursor
    :value2
    count=sqlca.sqlerrd[2]; (Here i take the count of records)
    for (i=0;i<count;i++)-------------------------> here count value is 50000
         for (j=0;j<count1;j++)---------(count1 is the count of records in my side
    table(T2)---here the count is 1000.)
              name_match();
              address_match();
    } /* Here i close while loop */
    name_match()
         here i use my logic to do name match. here i match the name field in T1 with the name field in T2 using some logic and if a match occurs i display it in the report. the matching logic is defined by the organization and cannot be changed.
    Address_match()
         for address match i have to hit another table at my end containing address field and match with the address field in T1 and if a match occurs i display it in the report..
    this is the logic i am using. The for loop is executing 50000000 times which is time consuming. is there any other way to achive this. Expecting your reply....thanks in advance.
    Regards,

Maybe you are looking for