Having problems passing more than one parameter with html:link tag

Hi guys,
for my web application I�m using Struts. I�ve got a database with user details. I would like to get users list and link to the details of each user. I wrote the code and everything is working fine only the users list is repeating as many times as users in the list.
For ex: I have in the database User1, User2 and User3. I would like to have a result like:
User1
User2
User3
Instead of it I have the result like:
User1
User2
User3
User1
User2
User3
User1
User2
User3
What I�m doing wrong? Could somebody help me please?
Thank you in advance
There is a snippet of the code, which I�m using in jsp:
<code>
<logic:iterate id="root" name="user">               
               <%
                    java.util.HashMap users = new java.util.HashMap();
                    params.put("user",root);
                    pageContext.setAttribute("usersName", users);
               %>
               <html:link name=" usersName " scope="page" page="/name.do">
                    <logic:iterate id="folder" name="user">
                         <bean:write name="folder" /><br>
                    </logic:iterate>
               </html:link><br>
               </logic:iterate>
</code>

Suggestion: next time you post code use the "CODE" button to put code tags around it. It formats much nicer that way :-)
You have a nested loop structure here.
<logic:iterate id="root" name="user">
  <%
    java.util.HashMap users = new java.util.HashMap();
    params.put("user",root);
    pageContext.setAttribute("usersName", users);
  %>
  <html:link name=" usersName " scope="page" page="/name.do">
    <logic:iterate id="folder" name="user">
      <bean:write name="folder" /><br>
    </logic:iterate>
  </html:link><br>
</logic:iterate>Both loops iterate over your "user".
Your first loop loops over each user.
Then your second loop also loops over each user - hence you get number of users * number of users = 3 groups of 3.
If you have 4 users, you would have 4 groups of 4.
I only see you setting one parameter: "usersName" What other parameters do you need to pass?
At a guess, the inner loop is unnecessary, and you want to write the users name as the text for the link, and also use it as a link parameter.
<logic:iterate id="root" name="user">
  <%
    java.util.HashMap users = new java.util.HashMap();
    params.put("user",root);
    pageContext.setAttribute("usersName", users);
  %>
  <html:link name="usersName" scope="page" page="/name.do">
      <bean:write name="user" /><br>
  </html:link><br>
</logic:iterate>

Similar Messages

  • Having problems passing more than one parameter with html:li nk tag

    Hi guys,
    for my web application I�m using Struts. I�ve got a database with user details. I would like to get users list and link to the details of each user. I wrote the code and everything is working fine only the users list is repeating as many times as users in the list.
    For ex: I have in the database User1, User2 and User3. I would like to have a result like:
    User1
    User2
    User3
    Instead of it I have the result like:
    User1
    User2
    User3
    User1
    User2
    User3
    User1
    User2
    User3
    What I�m doing wrong? Could somebody help me please?
    Thank you in advance
    There is a snippet of the code, which I�m using in jsp:
    <logic:iterate id="root" name="user">               
                   <%
                        java.util.HashMap users = new java.util.HashMap();
                        params.put("user",root);
                        pageContext.setAttribute("usersName", users);
                   %>
                   <html:link  name=" usersName " scope="page"  page="/name.do">
                        <logic:iterate id="folder" name="user">
                             <bean:write name="folder" /><br>
                        </logic:iterate>
                   </html:link><br>
                   </logic:iterate>

    Why do u need the first iterator
    <logic:iterate id="root" name="user">
    remove that and see the result.
    Bye.

  • Pass more than one parameter to ITS link

    Hi all,
    I have a requirement where I have a report and a tx code assigned to it. Now, I have to open this tx code through ITS, where I have to pass 6 parameters.
    When I am trying to pass more than one parameter to the url, it does not work. It only takes the first parameter.
    How do I resolve this?
    Plzz help!!
    Thanks,
    Debolina

    Hi all,
    I have a requirement where I have a report and a tx code assigned to it. Now, I have to open this tx code through ITS, where I have to pass 6 parameters.
    When I am trying to pass more than one parameter to the url, it does not work. It only takes the first parameter.
    How do I resolve this?
    Plzz help!!
    Thanks,
    Debolina

  • How to pass more than one parameter

    Hello,
    This is my code.
    How to pass more than one parameter:
    SELECT:responsibility_name responsibility_name,
    LPAD(' ', 6*(LEVEL-1))
      || menu_entry.entry_sequence sequence ,
      LPAD(' ', 6*(LEVEL-1))
      || menu.user_menu_name SubMenu_Description ,
      LPAD(' ', 6*(LEVEL-1))
      || func.user_function_name Function_Description ,
      LPAD(' ', 6*(LEVEL-1))
      || menu_entry.prompt prompt
      ,menu.menu_id ,
      func.function_id
      --menu_entry.grant_flag Grant_Flag ,
      --DECODE( menu_entry.sub_menu_id , NULL, 'FUNCTION' , DECODE( menu_entry.function_id , NULL, 'SUBMENU' , 'BOTH') ) Type
    FROM fnd_menu_entries_vl menu_entry ,
      fnd_menus_tl menu ,
      fnd_form_functions_tl func
    WHERE menu_entry.sub_menu_id    = menu.menu_id(+)
    AND menu_entry.function_id      = func.function_id(+)
    AND MENU.LANGUAGE(+) = 'US'
    AND FUNC.LANGUAGE(+) = 'US'
    --AND func.user_function_name LIKE '%Primary Care Providers%'
    AND grant_flag                  = 'Y'
      START WITH menu_entry.menu_id =
      (SELECT menu2.menu_id
      FROM fnd_menus_tl menu2,apps.fnd_responsibility_vl resp
      WHERE menu2.menu_id=resp.menu_id
      and resp.responsibility_name= :responsibility_name
      --and menu2.user_menu_name = ('ATCO HR INQ USER'
      AND LANGUAGE = 'US'
      CONNECT BY MENU_ENTRY.MENU_ID = PRIOR MENU_ENTRY.SUB_MENU_ID
       and menu_entry.function_id not in (select func.function_id
                                       from --fnd_form_functions_vl fnc,
                                       apps.fnd_resp_functions exc,
                                       apps.fnd_responsibility_vl res
                                      where func.function_id = exc.action_id
                                      and res.responsibility_name =:responsibility_name
                                      and res.responsibility_id=exc.responsibility_id)
      and menu_entry.sub_menu_id  not in (select menu.menu_id
                                       from --fnd_menus_vl imn,
                                       apps.fnd_resp_functions exc,
                                       apps.fnd_responsibility_vl res
                                       where menu.menu_id = exc.action_id
                                       and res.responsibility_name =:responsibility_name
                                      and res.responsibility_id=exc.responsibility_id)
    ORDER SIBLINGS BY menu_entry.entry_sequence;
    Thank you for your help
    Shuishenming

    Hi, Ming,
    One way is to put the "parameters" in a table, and join to that table in your query.  If you make it a Global Temporary Table, then multiple sessions can run the query at the same time, and each can be seeing different responsibilities.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.  Since this problem involves parameters, you should give a couple of different sets of parameters, and the results you want from the same sample data for each set.
    Explain, using specific examples, how you get those results from that data.
    Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • How to pass more than one parameter using common...

    Hi,
    I am using ODP.NET with my 2005 VB
    I want to create function from where I can pass more than one parameter to execute SP, or query just like i created for SQL SERVER as below
    Public shared Function CreateParameter(ByVal paramname As String, ByVal paramvalue As Object) As DbParameter
    Dim param As DbParameter
    param = New SqlParameter
    param.ParameterName = paramname
    param.Value = paramvalue
    Return param
    End Function
    Public Shared Function ExecuteQuery(ByVal sql As String, ByVal commtype As CommandType, ByVal ParamArray parameter As DbParameter())
    Dim cmd As DbCommand = New SqlCommand()
    cmd.Connection = OpenConnection()
    cmd.CommandType = commtype
    cmd.CommandText = sql
    cmd.Parameters.AddRange(parameter)
    Dim RetVal As Integer = cmd.ExecuteNonQuery()
    Return RetVal
    End Function
    specially part is in bold to be converted
    I tried like but oracleCommand.parameters doesnt support AddRange
    please help me out
    Regards

    Hello,
    I used the following way:
    pCommand.CommandText = "Update " + sDataTable + " set "
    + sColumnName + " = :1 ";
    pCommand.Parameters.Add("ValueToDb",
    this.DefaultDbType,
    this.m_Value,
    System.Data.ParameterDirection.Input);
    Of course, you can add :2,... to your command text, too.
    The way back is:
    sEndOfTheClause += " RETURNING " + sDataTable + "." + sColName + " INTO :iNewValue";
    pCommand.CommandText = ... + sEndOfTheClause;
    pCommand.Parameters.Add("iNewValue", this.DefaultDbType,
    ParameterDirection.Output);
    bool bReturn = (pCommand.ExecuteNonQuery() != 0);
    if ((bReturn == true) && (pCommand.Parameters.Count > 0))
    this.Value = DataService.Convert<DATA_TYPE>(pCommand.Parameters[0].Value);
    ....

  • Can a url referencing an Application Process pass more than one parameter?

    Hello,
    I have a page in an application that uses pl/sql to generate a list of links.
    The purpose of each link is to call another pl/sql procedure which in turn opens/runs a report external to the APEX application (either a call to Oralce Application Server generate live or pull clob stored in database). If the URL calls the pl/sql procedure directly I lose session state and no longer know who the user is. To maintain session state the URL references an APPLICATION_PROCESS. I would like to pass a number of parameters, but can only seem to pass one, using javascript to pass the value to a hidden item which is then accessed in the procedure called by the APPLICATION_PROCESS.
    Can I pass more than one parameter?
    My URL:
    https://<server>/pls/apex/f?p=V('APP_ID'):0:V('APP_SESSION'):APPLICATION_PROCESS=MY_PROCESS:NO::P1NAME:P1VALUE
    I could pass all the parameters in P1VALUE and using a special character delimiter break it up again in the javascript, but would prefer not to.
    Thanks for any help,
    Jock

    Did you mean something like this?
    https://<server>/pls/apex/f?p=V('APP_ID'):0:V('APP_SESSION'):APPLICATION_PROCESS=MY_PROCESS:NO::P1NAME,P2NAME,P3NAME:P1VALUE,P2VALUE,P3VALUE
    Best Regards, Kostya Proskudin

  • I am having problems emailing more than one photo at a time - please help!

    I would be very grateful if anyone can help. I have recently upgraded my old PowerBook G4 to Leopard 10.5.8, and since the upgrade I can't seem to send more than one image from iphoto at a time via mail. When I try, I get the message: " mail got an error: can't get paragraph 8 of content of outgoing message id 113491328. Invalid index." As I email a lot of images, it is a real pain only being able to send them one at a time. Can anyone help? With many, many thanks, Josh.

    It could have something to do with the sizes of the images you're trying to send.
    In the updated iPhoto, there's a selection for the size of the image. Try attaching the smallest size and see if that works for you.
    Here's a related couple of threads related to the error that I found on a popular search engine
    --> http://discussions.apple.com/thread.jspa?threadID=1666379
    --> http://discussions.apple.com/thread.jspa?threadID=1667250

  • Problem with passing more than one parameter to a function

    Dear Experts,
    I have a strange problem while trying to pass parameters to a function in Csharp :
    On my database I have a function like
    function fooo (parameter1 varchar2, parameter2 varchar2) returns number {
    I want to write a csharp function which can execute those functions with varying numbers and types of parameters and returning always a number (see below).
    My problem is, that I always pass only one parameter, the second parameter seems not to reach the database-function although I can see
    all parameters within the OracleCommand structure (dbcommand) in the debugger.
    Can you give me a hint why my function does not work ?
    Best regards,
    Desperately Daniel
    This is my function :
    public override int insertDataSetwithReturn(String ProcCall, ArrayList Parameters, ArrayList ParameterTypes, ArrayList ParameterNames)
    int ReturnValue = 0;
    try {
    //Check for compliance of Arraylength
    if (!(Parameters.Count == ParameterTypes.Count)) {
    //falsche Eingabe !! TODO !
    DBConnection myDBConnection = new DBConnectionORA();
    DBPOOL.getConnection(out myDBConnection);
    OracleConnection myOracleConnection;
    myDBConnection.getConnectionout(out myOracleConnection);
    OracleCommand dbCommand = new OracleCommand(ProcCall, myOracleConnection);
    dbCommand.CommandType = CommandType.StoredProcedure;
    //Nun die Parameter aus der Parameterliste füllen.
    for (int ParameterCounter = 0; ParameterCounter < Parameters.Count; ParameterCounter++)
    OracleParameter myParameter = new OracleParameter();
    myParameter.ParameterName = (String) ParameterNames[ParameterCounter];
    myParameter.OracleDbType = convertdotNetVariableTypesToDBVariableTypes((String) ParameterTypes[ParameterCounter]);
    myParameter.Direction = ParameterDirection.Input;
    myParameter.Value = Parameters[ParameterCounter];
    dbCommand.Parameters.Add(myParameter);
    OracleParameter returnParameter = new OracleParameter();
    returnParameter.ParameterName = "ref_ret";
    returnParameter.OracleDbType = OracleDbType.Int16;
    returnParameter.Direction = ParameterDirection.ReturnValue;
    dbCommand.Parameters.Add(returnParameter);
    dbCommand.ExecuteNonQuery();
    catch (Exception e)
    string MessageStr;
    MessageStr = "Error insertDataSet (DBConnection_ORA insertDataSet). " +
    Environment.NewLine +
    e.Message + "." +
    Environment.NewLine;
    MessageBox.Show(MessageStr, "Error in getArrayListfromProcedureNIP",
    MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
    } //catch
    return ReturnValue;
    Edited by: danielwetzler on Dec 15, 2010 4:23 PM

    Hi,
    Can you give exactly the error generated by the application?
    You can try to reverse the invoking of the parameters. That means, try to invoke the returnValue parameter first and then the others ( IN Parameters ) in the same order that you declared them in your stored procedure.
    in PLSQL you have,
    Create or replace function ( parm1 IN varchar2, parm2 IN varchar2, parm3 OUT varchar2)
    In your application, you must write first:
    bla bla bla parm3.direction=parm3.returnvalue
    and then
    bla bla bla parm1.direction= parm1.input
    bla bla bla parm2.direction= parm2.input
    Hope this helps you
    Walid

  • Pass more than one parameter

    Hi Friends,
    I want to pass 4 parameter from one iview to other with OBN in the Portal . Can you please give me the details step for that.
    Thanks,
    Satya

    My got my answer myself.

  • Error using JAX-WS to consume a WS that has more than one parameter

    I am trying to create a web service proxy in JDeveloper using JAX-WS for an OAM web service from a WSDL (identity/oblix/WebServices/CompositeWebServices/WSDL/um_view_interface.wsdl). I received the following error when I try to run the proxy:
    Exception in thread "main" com.sun.xml.ws.model.RuntimeModelerException: runtime modeler error: SEI test.profile.OblixIDXMLPortType has method oblixIDXMLUmView annotated as BARE but it has more than one parameter bound to body. This is invalid. Please annotate the method with annotation: @SOAPBinding(parameterStyle=SOAPBinding.ParameterStyle.WRAPPED)
    at com.sun.xml.ws.model.RuntimeModeler.validateDocBare(RuntimeModeler.java:1267)
    at com.sun.xml.ws.model.RuntimeModeler.processDocBareMethod(RuntimeModeler.java:1256)
    at com.sun.xml.ws.model.RuntimeModeler.processMethod(RuntimeModeler.java:628)
    at com.sun.xml.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:416)
    at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:267)
    at com.sun.xml.ws.client.WSServiceDelegate.buildRuntimeModel(WSServiceDelegate.java:715)
    at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.buildRuntimeModel(WLSProvider.java:427)
    at com.sun.xml.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:703)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:347)
    at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.getPort(WLSProvider.java:409)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:330)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:312)
    at javax.xml.ws.Service.getPort(Service.java:92)
    at test.profile.OblixIDXMLService.getOblixIDXMLPort(OblixIDXMLService.java:79)
    at test.profile.OblixIDXMLPortClient.main(OblixIDXMLPortClient.java:23)
    Process exited with exit code 1.
    It seems like the OAM web service (um_view_interface.wsdl) is not WS-I BP 1.1 compliant. It expects two elements under the body. WS-I BP 1.1 specifies that there should be only one child in the body of the element.
    The expected request body would look like this, there are two elements under the body:
    <soapenv:Body>
    <authentication xmlns="http://www.oblix.com/">
    <login>loginname</login>
    <password>pass</password>
    <domain>dc=test,dc=org</domain>
    </authentication>
    <request application="userservcenter" function="view" mode="dataonly" version="NPWSDL1.0" xmlns="http://www.oblix.com/OblixXMLLocalSchema">
    <params xmlns="">
    <ns1:uid xmlns:ns1="http://www.oblix.com/">cn=tester,cn=Users,dc=test,dc=org</ns1:uid>
    </params>
    </request>
    </soapenv:Body>
    Has anyone encountered the similar problem? Is there a solution to this problem?
    Your help is appreciated!

    Can u pls share ur solution if u have found a way 2 create a web service with 2 ports.I have not yet found a solution so far and nobody reacted to all my posts in the different fourms. It seems nobody is implementing web services with two ports using the EJB annotations technology.

  • How to pass more than one value to the procedure

    How can I pass more than one letting date to this procedure. If it is only one letting date, I do not have a problem but when it is more than one letting date at the same time then I am stuck. please help
    example I would like to pass this three letting dates : '01/17/2010', '01/27/2010','05/22/2010'
    CEATE OR REPLACE PROCEDURE TPLCP.PLANHOLDERSLIST
    P_LettingDate IN  VARCHAR2,
    p_results OUT sys_refcursor
    AS
    BEGIN
        OPEN p_results FOR
    SELECT DISTINCT DECODE (TRIM (MIN (j.route)), NULL, 'N/A',TRIM (MIN (j.route))) rt,l.lcontid conid,
                     SUBSTR (q.cprojnum, 1, 10) pr, SUBSTR (l.letting, 3, 2)|| '-'|| SUBSTR (l.letting, 5, 2)|| '-'|| SUBSTR (l.letting, 1, 2) lt,
                    (q.cdescr) jbtyp, INITCAP (q.clocat1 || q.clocat2) loc
               FROM vendor v,
                    vendaddr r,
                    letprop l,
                    planhold p,
                    proposal q,
                    project j,
                    propproj k,
                    bidlet bd
              WHERE v.vendor = r.vendor
                AND k.contid = q.contid
                AND k.pcn = j.pcn
                AND l.lcontid = k.contid
                AND p.vendor = v.vendor
                AND l.letting = p.letting
                AND TO_CHAR (bd.datelet, 'MM/DD/YYYY') IN P_LettingDate
                AND l.CALL = p.CALL
                AND r.addrnum = p.billto
                AND bd.letting = l.letting
           GROUP BY v.vendor,
                    r.addrnum,
                    v.vnamel,
                    r.aaddr1,
                    p.billto,
                    r.acity,
                    r.astate,
                    q.cdescr,
                    q.clocat1,
                    q.clocat2,
                    bd.letting,
                    r.azipcode,
                    r.vasst1,
                    r.aphone,
                    l.letting,
                    l.lcontid,
                    q.cprojnum;
    END PLANHOLDERSLIST;

    you can create your on array type and then pass that as the parameter. I use the suffix of ttyp to represent a table type.  The name of the column when using the table() syntax is columnvalue.
    I altered my session to set the default date format to match your format. you could have used the to_date function to set the values for the arr type.
    Hope this helps.
    create type msw_ttyp as table of date
    create or replace
    procedure msw_test(p_arr     in msw_ttyp) as
    v     integer;
    begin
    select count(*)
       into v
       from table(p_arr);
    dbms_output.put_line('count: '||v);
    for rec in (select column_value
                   from table(p_arr))
    loop
      dbms_output.put_line(rec.column_value);
    end loop;
    end msw_test;
    alter session set nls_date_format = 'MM/DD/YYYY';
    set serveroutput on size 1000000
    exec msw_test(msw_ttyp('01/17/2010', '01/27/2010','05/22/2010'));
    begin
    msw_test(msw_ttyp(to_date('01/17/2010', 'MM/DD/YYYY'),
                       to_date('01/27/2010', 'MM/DD/YYYY'),
                       to_date('05/22/2010', 'MM/DD/YYYY')));
    end;
    /

  • How can I pass more than one parameters in PDK-URL services?

    Hi all,
    How can I pass more than one parameters in PDK-URL service? All samples on Portal Center shows just one parameter passing.
    <inputParameter class="oracle.portal.provider.v1.URLPortletParameter">
    <name>csz</name>
    <isMandatory>false</isMandatory>
    <displayName>What location do you want a map for (City, State or Zip)?</displayName>
    </inputParameter>
    How can I write the privider.xml file for passing multiple parameters?

    I answer to my question. I've got the answer.
    I repeatly write down the <inputParameter> tags, and it works.

  • WebLogic Error : Registered more than one instance with the same objectName

    HI there, I'm facing a big problem. I have two environments installed on the same physical machine.
    I have ALSB and WLI servers running out there.
    Environment 1 - WLI port running at 7011 domain name : stp_wli_domain and ALSB port running at 8011 domain name: stp_alsb_homo1 - folders- stp_wli_domain / stp_bea_alsb_homo
    Environmnet 2 - WLI port running at 7211 domain name : stp_wli_domain2 and ALSB port tunning at 8211 domain name : stp-alsb_homo2 - folders - stp_wli_domain2 / stp_bea-alsb_homo2
    Everything was working fine, but these days I had install new deployments on both environment and I got this error :
    java.lang.IllegalArgumentException: Registered more than one instance with the same objectName : stp_wli_domain:ServerRuntime=wli_wls01,Name=stp_wli_domain,Location=wli_wls01,Type=AIRuntime new:com.bea.wlai.management.AIRuntimeMBeanImpl@bcf22dc existing com.bea.wlai.management.AIRuntimeMBeanImpl@de02e6c
    The weird is : There is no same object name, as you can see, domains are different, folders are different and ports are diferrent, including multicast addresses.
    Have you guys seen this before ?
    I'm under pressure here, 'cause some projects had stopped to work.
    Please I would appreciate any help.
    Tks.
    Edson

    HI there, thanks for attention..
    See ...
    There's a lot of confusion with these env's .
    I did not built this, so... I'm cleaning my hands.... anyway... :)
    I must fix....
    Well basically if we have two env's, so we have different project each one right ?
    Ok, but I was told that if you have on the same network and same physical machine the name of AdminServer as "AdminServer" in all domains, so it goes with problems... I never heard about it... but is a good practice you put the names for example :
    WLI - WLIAdminServer
    ALSB - AlsbAdminServer
    WLI2 - WLiadminServer2
    ALSB2 - ALsbAdminServer2
    I would do it.. this way..
    But how it wasn't me...
    We got..
    WLI - WliAdminServer
    ALsb - AdminServer
    WLI2 - AdminServer
    ALsb2 - AdminServer
    Have you got it ?
    So... I was told that this could be a problem, almost all AdminServers with the same name... guess what ?Some Projects are back to work. but not at all.. only some.. so I 'm breathing better now... but I would like to know if you seen this before ?
    I would appreciate your help again.
    Unfortunately there's no detailed stack trace to track this
    Tks.

  • How to pass more than one value for one column in procedure

    hi
    select id, name from col_tab where dept_name in ('ECE','CIVIL');
    when i was running this it is working well.
    CREATE OR REPLACE PACKAGE pack_str
    AS
    TYPE type_refcur IS REF CURSOR;
    PROCEDURE str(char_in VARCHAR2,ans OUT type_refcur);
    END pack_str;
    CREATE OR REPLACE PACKAGE BODY pack_str
    AS
    PROCEDURE str(char_in VARCHAR2,ans OUT type_refcur)
    IS
    BEGIN
    OPEN ans FOR
    select id,name from col_tab where dept_name in char_in ;
    END str;
    END pack_str;
    the package was created.
    my doubt is
    1.how to pass more than one value for char_in (e.g ('ECE','CIVIL'))
    2. when i was storing the value in string like val = 'ECE,CIVIL' ,
    how to get the id,name for ECE and CIVIL.
    plz help me

    Hi Rebekh ,
    I am recreating your packages for the desired output.
    CREATE OR REPLACE PACKAGE pack_str
    AS
         TYPE type_refcur IS REF CURSOR;
         PROCEDURE str(char_in VARCHAR2,ans OUT type_refcur);
    END pack_str;
    CREATE OR REPLACE PACKAGE BODY pack_str
    AS
         PROCEDURE str(char_in VARCHAR2,ans OUT type_refcur)
         IS
              lv_t varchar2(200);
         BEGIN
              lv_t := REPLACE(char_in,',',''',''');
              lv_t := 'select id,name from col_tab where dept_name in (''' || lv_t || ''')' ;
              OPEN ans FOR lv_t;
         END str;
    END pack_str;
    Note:-
    Input Parameter char_in is a comma seperated value for dept_name
    -Debamalya

  • Pass more than one argument for action in the URL

    Hi,
    i've created a DesktopURL object with which i refere back to the Front Page. With the same URL i want to minimize two channels at the same time. I know that i can minimize one channel with the "action=minimize&provider=myProvider" attribute.
    Is there a way to pass more than one provider for an action ?
    Or exists another way to do that ?
    thx

    In fact, my code was completely right. I tried with commas and it hasn't work. When I tried again without commas it worked perfectly...
    Nevertheless, thanks for the advice!
    Gilmar

Maybe you are looking for