How to return a Vector value??

Hi
This is the code of the function:
public void extractLinks(Vector tmp) throws ParserException {
  Node node;
  LinkTag linkTag;
  for (NodeIterator e = parser.elements();e.hasMoreNodes();) {
    node = e.nextNode();     
    if (node instanceof LinkTag) {
       linkTag = (LinkTag)node;
       tmp.add(linkTag.toString());
}And this is the call in JSP file:
MyLinkExtractor  linkExtractor = new MyLinkExtractor(request.getParameter("urlfield"));
linkExtractor.extractLinks(links);
for  (int i = 0; i<links.size(); i++)
   out.println(links.get(i));
}The problem apears in the line where I call function extractLinks with parameter links
I don't know what is the real problem, because I just get a list of exceptions in browser, when I run the aplication.
I think that the problem is in the transfer of values of the parameter.
I'm beginner, so pleas help me.
Thank you!!

Hi,
I did this and the error report is still the same.
javax.servlet.ServletException: myapp.MyLinkExtractor.extractLinks(Ljava/util/ArrayList;)Ljava/util/ArrayList;
     at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:457)
     at org.apache.jsp.treeview$jsp._jspService(treeview$jsp.java:96)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
     at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
     at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
     at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
     at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
     at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
     at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
     at java.lang.Thread.run(Thread.java:536)
This is the complete error message, which I get from the Tomcat into my browser.
Thank you for helping.
Bozidar

Similar Messages

  • How to return a bool value from MyBrokerProcess

    To make MyPlugin work in Adobe Reader X in Protected Mode On, i have created a Broker Process(MyBrokerProcess.exe)
    Plugincode(C++)--->BrokerProcess(C#)---->Helper(C#)
    MyPlugin has 4 button, when i click on each button a Window(System.Window.Form) will open and perform its task.
    1.While i trying to close the ActivePDF document , if any of the Windows(System.Window.Form) is open i will display the message saying("Choose YES to Close this Window first Before Closing the ActiveDoc and Choose NO to continue without closing Window and ActiveDoc"). This is taken care in Helper Class(C#)
    2.If the user choose "Yes", then the Helper functin will return 'true' to MyBrokerProcess.
    3.Inturn  MyBrokerProcess has to return this bool value to the PluginCode(C++) which is the only place to  access Acrobat API function to close the ActiveDocument.
    Now i am clueless as to how i have to return this bool value from MyBrokerProcess to PluginCode. Or is there any other way to accomplish the above task. Please some one help me to solve this issue.
    Thanks in advance.

    Hi Richard,
    This is what i tried to do. But i couldnot make MyPlugin work in Protected Mode On.
    Plugincode(C++)<--->BrokerProcess(C#)<---->Helper(C#)
    I added a simple Process between Plugin(C++)code and Helper(C#)code.
    Previously it was like
    Plugincode(C++) <----> Helper(C#)
    Thanks and Regards,
    Chetan.

  • How do i display vector values to use for insesrting inot a database?

    does anyone know how i can retrieve values from a vector and use this to insert into a database?
    i have tied array but its not working..
    here is part of my code:
    Vector p=new Vector();
                                  try{
              //go to server n store values in vector p                    
                   SFlight f= new SFlight();
                                            p=f.View(destination,date,time);
                                  catch(Exception w)
                                       System.out.println(w.getMessage());
    //to insert values in the cache from server
    int y=0;
         String data[][]=new String [10][10];;
                                                                          for(int i=0;i<p.size();i++)
                                                      //Flight is my serialisable class containing num,nam,etc     
                   Flight tm=(Flight)p.elementAt(i);
                                                                                         data[y][0]=tm.num;
                                                                                         data[y][1]=tm.nam;
                                                                                         data[y][2]=tm.op;
                                                                                         data[y][3]=tm.des;
                                                                                         data[y][4]=tm.dat;
                                                                                         data[y][5]=tm.Nseat;
                                                                                         data[y][6]=tm.Stime;
                                                                                         y++;
                                                                               //System.out.println(p.elementAt(1));               }
                   }                                                                           try{
                                                      String query3="INSERT INTO Cache(FltName,Operator,Destination,Date,NumSeat,Ctime) VALUES (?????????);                                             
         int result3=Stmt.executeUpdate(query3);
                                                      if (result3==1)
                                                      System.out.println( "Record inserted successfully");
                                                      Stmt.close();
                                                      Conn.close();
                                                      else
                                                      System.out.println( "Record not inserted");
                                       }try
                                                      catch (SQLException eq)
                                                      System.out.println("Exception in SQL occured at query level??");
    return p;
    can anyone please help me with this..its very important..

    I appreciate the offer. However, for somestrange
    reason, I have no shortage of people ready,willing,
    and able to give me a good smack upside the
    head.
    Yeah, sorry, that's a bug in the reality matrix.
    We'll get around that. In the meantime: wear ahelmet.
    Franks and BEANS!!!!Yeah, but - how'd you get the beans above the franks?

  • How to return javascript function value to jsp page

    Hi i want to retrieve values from javascript function to jsp page, how can i do that ? i am trying this but its not working
    <script language="javascript" type="text/javascript" src="/feedback/common/scripts/config.js"></script>
    <script language="javascript" type="text/javascript" src="/feedback/common/scripts/richtext.js"></script>
    <td>
    <jsp:param id="description" value= "<%=request.initRTE('', '')%>"/>
    </td>
    here this initRTE function is used for displaying rich text editor .....i want to retrieve back the contetnt written in this editor and save it to DB.
    Please help.
    Edited by: xtech on Apr 4, 2008 12:00 PM

    surely i will do that but my app is still not working.....
    here is my code
    </td>
    <td align="left">
    <script language="javascript" type="text/javascript" src="/feedback/common/scripts/config.js"></script>
    <script language="javascript" type="text/javascript" src="/feedback/common/scripts/richtext.js"></script>
    <h:inputHidden id="introtext" value= "<%=request.getParameterValues(description)%>">
    <script>
    initRTE('','');
    </script>
    </td>
    in java script function i am geeting the text content
    function initRTE(rtePreloadContent, rteCSS) {
    rtePreloadContent=document.getElementById('surveyinfo:introtext').value;
    startRTE(rtePreloadContent);
    menuBuilder();
    var description= document.getElementById(rteFormName).value;
    return description;
    basically i want to get the text written in text editor in jsp and want to send it to DB.(Here initRTE() function is calling rich text editor)
    i have downloaded this editor from this url
    http://freerichtexteditor.com/page/4.htm
    and trying to embed it in my app.

  • How to return a specific value in an if statement

    Hi all,
    Need some help regarding a report Im creating. I am a total newbie to SQL so I guess this question is really simple to all of you.
    I have a column, UDF58, in a table that can have 3 different values, 10, 25 and 35.
    If the value is 10 I want the formula to return 1.
    If the value is 25 it should return 2 and if it is 35 the return should be 3
    I tried the following:
    IF :UDF58=10 THEN RETURN :UDF10='1';
    I do not get any error message when compiling but it do not return any value at all....
    Patrik

    Do not know if you are dealing with number or varchar2 column, so here are two ways -- there are others...
    SQL> create table t (udf58 number);
    Table created.
    SQL> insert into t values(10);
    1 row created.
    SQL> insert into t values (25);
    1 row created.
    SQL> insert into t values(35);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select trunc(udf58/10) from t;
    TRUNC(UDF58/10)
                  1
                  2
                  3
    3 rows selected.
    SQL> create table a (udf58 varchar2(10));
    Table created.
    SQL> insert into a select * from t;
    3 rows created.
    SQL> commit;
    Commit complete.
    SQL> select substr(udf58,1,1) from a;
    SUBSTR(UDF
    1
    2
    3
    3 rows selected.
    SQL>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to return highest/lowest value in a group of accounts?

    Hi gurus,
    I'm facing a requirement where in HFM, I need to set the value of an account to be the same as the highest value of a group of other accounts (POV is the same, all accounts are lowest level in hierarchy).
    So basically, I need a rule/script/function that enables me to say: "look up the values of account 1, account 2 and account 3 for this point of view, and set the value of account 4 to be whatever is the highest of the values of accounts 1, 2 and 3".
    I would be extremely grateful for any insights and assistance. I'm sure this is possible in VBScript....
    br
    Samuli

    Indeed this is possible in VBScript.
    You don't have handy Max/Min functions in VBscript but given that you've only got three inputs, you can easily compare one number against the other two and deduce the maximum from there.
    First of all, get the data from the 3 intersections you want using GetCell
    Var1 = HS.GetCell("POVExpression")
    Var2 = HS.GetCell("POVExpression")
    Var3 = HS.GetCell("POVExpression")
    Then do a simple comparison of the three values using something like below
    If Var1 >= Var2 And Var1 >= Var3 Then
    VarMax = Var1
    ElseIf Var2 >= Var1 And Var2 >= Var3 Then
    VarMax = Var2
    Else
    VarMax = Var3
    End If
    The maximum value will be in the variable VarMax. You can now use HS.Exp to to assign that variable to the desired account

  • DECODE to return a null value

    I would like to know how to return a Null value for a number based on users input.
    Somethingh like where A = DECODE(:input,'any',return is not null,:input)
    A is a number datatype.
    Thank you in advance
    -P

    Like if the input variable is 'any' then decode should return 'is not null' i.e. the query should return all the records where a particular column is not null.
    select * from EXAMPLE_TABLE where EXAMPLE_COLUMN =
    decode( :input, 'any', is not null, :input )
    Thanks for the quick response.
    -P

  • Sending vector values to server

    Hi,
    iam new to this networking programming how to send the vector values to server and how to get the vector or any collection classes from server.

    Serialization is your friend.

  • [UIX] How To: Return multiple values from a LOV

    Hi gang
    I've been receiving a number of queries via email on how to return multiple items from a LOV using UIX thanks to earlier posts of mine on OTN. I'm unfortunately aware my previous posts on this are not that clear thanks to the nature of the forums Q&A type approach. So I thought I'd write one clear post, and then direct any queries to it from now on to save me time.
    Following is my solution to this problem. Please note it's just one method of many in skinning a cat. It's my understanding via chatting to Oracle employees that LOVs are to be changed in a future release of JDeveloper to be more like Oracle Forms LOVs, so my skinning skills may be rather bloody & crude very soon (already?).
    I'll base my example on the hr schema supplied with the standard RDBMS install.
    Say we have an UIX input-form screen to modify an employees record. The employees record has a department_id field and a fk to the departments table. Our requirement is to build a LOV for the department_id field such that we can link the employees record to any department_id in the database. In turn we want the department_name shown on the employees input form, so this must be returned via the LOV too.
    To meet this requirement follow these steps:
    1) In your ADF BC model project, create 2 EOs for employees and departments.
    2) Also in your model, create 2 VOs for the same EOs.
    3) Open your employees VO and create a new attribute DepartmentName. Check “selected in query”. In expressions type “(SELECT dept.department_name FROM departments dept WHERE dept.department_id = employees.department_id)”. Check Updateable “always”.
    4) Create a new empty UIX page in your ViewController project called editEmployees.uix.
    5) From the data control palette, drag and drop EmployeesView1 as an input-form. Notice that the new field DepartmentName is also included in the input-form.
    6) As the DepartmentName will be populated either from querying existing employees records, or via the LOV, disable the field as the user should not have the ability to edit it.
    7) Select the DepartmentId field and delete it. In the UI Model window delete the DepartmentId binding.
    8) From the data controls palette, drag and drop the DepartmentId field as a messageLovInput onto your page. Note in your application navigator a new UIX page lovWindow0.uix (or similar) has been created for you.
    9) While the lovWindow0.uix is still in italics (before you save it), rename the file to departmentsLov.uix.
    10) Back in your editEmployees.uix page, your messageLovInput source will look like the following:
    <messageLovInput
        model="${bindings.DepartmentId}"
        id="${bindings.DepartmentId.path}"
        destination="lovWindow0.uix"/>Change it to be:
    <messageLovInput
        model="${bindings.DepartmentId}"
        id="DepartmentId"
        destination="departmentsLov.uix"
        partialRenderMode="multiple"
        partialTargets="_uixState DepartmentName"/>11) Also change your DepartmentName source to look like the following:
    <messageTextInput
        id=”DepartmentName”
        model="${bindings.DepartmentName}"
        columns="10"
        disabled="true"/>12) Open your departmentsLov.uix page.
    13) In the data control palette, drag and drop the DepartmentId field of the DepartmentView1 as a LovTable into the Results area on your page.
    14) Notice in the UI Model window that the 3 binding controls have been created for you, an iterator, a range and a binding for DepartmentId.
    15) Right click on the DepartmentsLovUIModel node in the UI Model window, then create binding, display, and finally attribute. The attribute binding editor will pop up. In the select-an-iterator drop down select the DepartmentsView1Iterator. Now select DepartmentName in the attribute list and then the ok button.
    16) Note in the UI Model you now have a new binding called DCDefaultControl. Select this, and in the property palette change the Id to DepartmentName.
    17) View the LOV page’s source, and change the lovUpdate event as follows:
    <event name="lovSelect">
        <compound>
            <set value="${bindings.DepartmentId.inputValue}" target="${sessionScope}" property="MyAppDepartmentId" />
            <set value="${bindings.DepartmentName.inputValue}" target="${sessionScope}" property="MyAppDepartmentName" />
        </compound>
    </event>18) Return to editEmployees.uix source, and modify the lovUpdate event to look as follows:
    <event name="lovUpdate">
        <compound>
            <set value="${sessionScope.MyAppDepartmentId}" target="${bindings.DepartmentId}" property="inputValue"/>
            <set value="${sessionScope.MyAppDepartmentName}" target="${bindings.DepartmentName}" property="inputValue"/>     
        </compound>
    </event>That’s it. Now when you select a value in your LOV, it will return 2 (multiple!) values.
    A couple things to note:
    1) In the messageLovInput id field we don’t use the “.path” notation. This is mechanism for returning 1 value from the LOV and is useless for us.
    2) Again in the messageLovInput we supply “_uixState” as an entry in the partialTargets.
    3) We are relying on partial-page-refresh functionality to update multiple items on the screen.
    I’m not going to take the time out to explain these 3 points, but it’s worthwhile you learning more about them, especially the last 2, as a separate exercise.
    One other useful thing to do is, in your messageLovInput, include as a last entry in the partialTargets list “MessageBox”. In turn locate the messageBox control on your page (if any), and supply an id=”MessageBox”. This will allow the LOV to place any errors raised in the MessageBox and show them to the user.
    I hope this works for you :)
    Cheers,
    CM.

    Thanks Chris,
    It took me some time to find the information I needed, how to use return multiple values from a LOV popup window, then I found your post and all problems were solved. Its working perfectly, well, almost perfectly.
    Im always fighting with ADF-UIX, it never does the thing that I expect it to do, I guess its because I have a hard time letting go of the total control you have as a developer and let the framework take care of a few things.
    Anyway, I'm using your example to fill 5 fields at once, one of the fields being a messageChoice (a list with countries) with a LOV to a lookup table (id , country).
    I return the countryId from the popup LOV window, that works great, but it doesn't set the correct value in my messageChoice . I think its because its using the CountryId for the listbox index.
    So how can I select the correct value inside my messageChoice? Come to think of it, I dont realy think its LOV related...
    Can someone help me out out here?
    Kind regards
    Ido

  • How to return multiple values from a getProperty method

    Hi All,
    Even though I understand that getPropprty can return only one value. I just have a doubt. Is it possible to use a getProperty method of a bean like
    public String getemp_Info(){
    return emp_Id;
    return emp_Name;
    }also can any one explain me where and how to use private variables and public variables in a bean.
    R.Ramesh.

    I already have it I just wanted to know that is there any usage like the one I asked, anyway thanks for your suggestion.
    I have already used another getProperty method as balusc quoted.

  • How to return Values from Oracle Object Type to Java Class Object

    Hello,
    i have created an Oracle Object Types in the Database. Then i created Java classes with "jpub" of these types. Here is an example of the type.
    CREATE OR REPLACE TYPE person_type AS OBJECT
    ID NUMBER,
    vorname VARCHAR2(30),
    nachname VARCHAR2(30),
    geburtstag DATE,
    CONSTRUCTOR FUNCTION person_type RETURN SELF AS RESULT,
    CONSTRUCTOR FUNCTION person_type(p_id NUMBER) RETURN SELF AS RESULT,
    CONSTRUCTOR FUNCTION person_type(p_vorname VARCHAR2,
    p_nachname VARCHAR2,
    p_geburtstag DATE) RETURN SELF AS RESULT,
    MEMBER FUNCTION object_exists(p_id NUMBER) RETURN BOOLEAN,
    MEMBER PROCEDURE load_object(p_id NUMBER),
    MEMBER PROCEDURE save_object,
    MEMBER PROCEDURE insert_object,
    MEMBER PROCEDURE update_object,
    MEMBER PROCEDURE delete_object
    MEMBER PROCEDURE load_object(p_id NUMBER) IS
    BEGIN
    SELECT p.id, p.vorname, p.nachname, p.geburtstag
    INTO SELF.ID, SELF.vorname, self.nachname, SELF.geburtstag
    FROM person p
    WHERE p.id = p_id;
    END;
    My problem is, that if i use the member function "load_object" from my java app it doesnt return the selected values to the java class and i dont know why. I use the java class like this:
    PersonObjectType p = new PersonObjectType();
    p.load_object(4);
    There is a reocrd in the database with id = 4 and the function will execute successful. But if i try to use "p.getVorname()" i always get "NULL". Can someone tell me how to do that?
    Thanks a lot.
    Edited by: NTbc on 13.07.2010 15:36
    Edited by: NTbc on 13.07.2010 15:36

    CallableStatement =
    "DECLARE
    a person_type;
    BEGIN
    a.load_object(4);
    ? := a;
    END;"
    And register as an out parameter.
    Edited by: michael76 on 14.07.2010 05:01

  • How can i display the values in the vector in a jsp using jstl

    in a task i am recieving a vector in a jsp... how can i display those vector values in the jsp using jstl.... plz help me
    thanks in advance

    <%
    here you got vector say; v
    pagecontext.setAttribute("varname",v);
    %>
    <c:forEach var="i" items="${varname}">
    <c:out value="${i}">
    </c:forEach>

  • How to return more than one value from a  function

    hello everybody,
    Can anyone tell me how to return more than a single value from a function, the problem is i have 4 points,
    2 points form one line ,another 2 points form 2nd line ,each point is 3 dimensional(x,y,z coorinates) so i will pass these values to func(x1,y1,z1,x2,y2,z2,x3,y3,z3,x4,y4,z4), i will find the point of intersecton of two lines and i will get it as x,y,z , now how to return these 3 coordinates,usually the function returns only one value, please help me to solve it out.
    Thanks.

    I think the easiest way or trick here is (easiest isn't always the best as we know, but atleast this one will work) to create simple data array. and pass that. Create an array with:
    <code>
    class justArray {
    int x=0
    int y=0;
    int z= 0;
    ...somewhere
    justArray[] points= new justArray[4];
    points[0].x= ..
    points[0].y= ..
    points[0].z= ..
    points[1].x= ..
    return points[]
    </code>

  • How to Return a value to a 10g Oracle Form form a Web Service Call

    I've read the demo available from Oracle, 'Calling a Web service from Oracle Forms', that shows how to invoke a call to a Web Service from a Form. The demo only shows how to do a call and how to display messages. I've done some searching, but can't seem to find any examples of how to return a value from the call into a field on the form. If any one could provide an example of that, I would greatly appreciate it.
    We are in the process of modifing a form and we would like to use a webservice, which we have never done before. We have created a webservice which calculates a value based upon what is entered on the form and we want to pass that calculated value back to a field on the form.
    This is the code provided by the demo to do a call.
    DECLARE
    jo ora_java.jobject;
    xo ora_java.jobject;
    rv varchar2(100);
    ex ora_java.jobject;
    BEGIN
    JO := SendServiceSoapClient.new;
    RV := SendServiceSoapClient.sendMessage(JO,:BLOCK3.PHONE_NUMBER, :BLOCK3.MESSAGE_BODY, xo, xo);
    EXCEPTION
    WHEN ORA_JAVA.JAVA_ERROR then
    message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
    WHEN ORA_JAVA.EXCEPTION_THROWN then
    ex := ORA_JAVA.LAST_EXCEPTION;
    message(Exception_.toString(ex));
    END;

    In the future, please be sure to include the exact product versions you are using. In this case, also be sure to include the java versions you are using to build your java code.
    http://blogs.oracle.com/shay/entry/10_commandments_for_the_otn_fo
    Regarding your question, take a look at this older white paper which discusses integrating Forms with SOA.
    http://www.oracle.com/technetwork/developer-tools/forms/documentation/forms-soa-wp-1-129441.pdf

  • How do i compare each vector value to find  a match with curent value

    My select statement contain more that one value .So I strore it in vector .But currently it does not compare each value .So I dont know wrong .How to search entire vector and find the matching one.
    Below are the coding I used :
    <%String sql_query3 = "SELECT DISTINCT (ir_tran_typ) "+
                                              "  FROM intrcd ";
                               System.out.println("trans type"+sql_query3 );           
                                try{
                                    rset = db.execSQL(sql_query3);
                                catch(SQLException e) {
                                    System.err.println("Error in query - intrcd - transaction_main.jsp " +e +" sql " +sql_query3);
                                while(rset.next()){
                                    tran_cde = rset.getString("ir_tran_typ");
                                            tran_typ.addElement(rset.getString("ir_tran_typ"));
                                            System.out.println("trans type 34 "+tran_typ );%>
                                            <% }%>
                                          alert(obj.value);
                                  <%for(int i=0 ;i<tran_typ.size();i++){
                                     System.out.println("trans type 222  "+ tran_typ.size());
                                       tran_cde =tran_typ.elementAt(index).toString();%>
                                       <%System.out.println("trans type before "+ tran_cde);%> 
                                        eval(document.all.tran_cde.option
                                      if(D == <%=tran_cde%> ){
                                       <%System.out.println("trans type D"+ tran_cde);%>     
                                       <%String sql_query2 = "SELECT ir_rea_cde,ir_rea_desc"+
                                              "  FROM intrcd"+
                                              " WHERE ir_tran_typ = 'D' " +
                                                        " ORDER BY ir_rea_cde ";
                               System.out.println("query"+ sql_query2);           
                                try{
                                    rset = db.execSQL(sql_query2);
                                catch(SQLException e) {
                                    System.err.println("Error in query - emmast2 - transaction_main.jsp " +e +" sql " +sql_query2);
                                        index = 1;
                                while(rset.next()){
                                        rea_cde = rset.getString("ir_rea_cde");
                                        rea_desc =  rset.getString("ir_rea_desc");
                                       tran_typ.removeAllElements();
                                       }%>
                                  if( R == obj.value){
                                       alert(R)
                                      if(R== <%=tran_cde%> ){
                                       <%System.out.println("trans type R"+ tran_cde);%>     
                                       <% sql_query2 = "SELECT ir_rea_cde,ir_rea_desc"+
                                              "  FROM intrcd"+
                                              " WHERE ir_tran_typ = 'R' " +
                                                        " ORDER BY ir_rea_cde ";
                               System.out.println("query 2"+ sql_query2 );           
                                try{
                                    rset = db.execSQL(sql_query2);
                                catch(SQLException e) {
                                    System.err.println("Error in query - intrcd - transaction_main.jsp " +e +" sql " +sql_query2);
                                        index = 1;
                                while(rset.next()){
                                        rea_cde = rset.getString("ir_rea_cde");
                                        rea_desc =  rset.getString("ir_rea_desc");
                                       }%>
              <%}%>
                }

    Dude, your code is a MESS! Learn to use spacing and nicer indentation...
    My select statement contain more that one value .So I strore it in
    vector .But currently it does not compare each value .So I dont know
    wrong .How to search entire vector and find the matching one.What???? Can you please try and explain yourself again? What is it you are trying to do/achieve?

Maybe you are looking for

  • Oracle Web Cache and OBIEE 11g

    Anyone using Oracle Web Cache with OBIEE 11g? Can I get an insight into whether this solution is beneficial? Or I shouldn't even bother.

  • Who is who link to user details

    Hello, I've a problem in ESS/Who is who. When choosing a user from list it doesn't display any detail of user. It returns to searching page. Why I can't see the user details when choosing the link of user? Thanks&Regards

  • How to add a vertical scrollbar?

    Been searching FOREVER now! How do I make a Tabbed panel with a fixed size, and then content is scrollable in vertical direction? like this site: Sigurd Rakel | Bilder Or inside a composition for that matter?

  • Query ARD Database

    Does anyone know how to query the Apple Remote Desktop 3.5 database from a remote computer? (ie what is the username, password, port)

  • How can we customise Firefox for regional language?

    I am not able to see Hindi or Gujarati language. please help me with it.