How to pass 2 parameters in a hyperlink?

Hi,
I have a jsp form:
<form name="form1" action="/servlet/ShoppingServlet" method="get">
     <input type="radio" name="productid" value="1">Solitaire Classic / 4.50<br/>
     <input type="radio" name="productid" value="2">Bingo / 3.95<br/>
     <input type="hidden" name="cmd" value="ADD">
     <input type="submit" value="Purchase">
</form>It has a button to submit the form. It passes 2 parameters: productid and cmd's values to ShoppingServlet.
If I use a hyperlink text, how can I pass 2 parameters?
<a href=\"/servlet/ShoppingServlet?productid=" + ProductID + "\">Add this item to cart</a>How can I pass the hidden variable "cmd" in the above hyperlink?
Thanks

<a href="\"/servlet/ShoppingServlet?productid=" + ProductID + "&cmd=ADD\">Add this item to cart</a>

Similar Messages

  • How to Pass Multiple Parameters To ReportReuest Method in Oracle  BI 11g

    Hi,
    Am integrate Oracle BI Publisher 11g via Web Services in Oracle Forms,For that am developing code in PublicReportServiceClient Class. This worked properly with out passing parameter to the report. so how to pass parameters to the report . If Report is requried some Parameters to generate report.
    If any one knows about How to Passing Multiple Parameters to ReportRequest Methos in Oracle 11g. Pls help me.
    Am trying with the below code for PassParameters to ReportReuest Method in Oracle BI 11g. But by using this code am able to pass only one parameter to the Report, not for multiple Parameter Passing.
    ArrayOfParamNameValue PnameValue=new ArrayOfParamNameValue();
    ParamNameValue Namevalue=new ParamNameValue();
    Namevalue.setName("P_SNO"):
    ArrayOfString aos=new ArrayOfString();
    aos.getItem().add("2");
    Namevalue.setValues(aos);
    PnameValue.getItem().add(Namevalue);
    ReportRequest RepReq = new ReportRequest();
    RepReq.setParmeterNameValues(PnameValue);
    Following method  callRunReport() with an array of parameters used in Oracle Bi 10g,To pass multiple report parameters to ReportRequest method.
    public void callRunReport (String reportPath, String[] paramName, String[] paramValue, Stringusername, String password, String format, String template, String outFile)
    try {
    bip_webservice.proxy.PublicReportServiceClient myPort =new bip_webservice.proxy.PublicReportServiceClient();
    // Calling runReport
    ReportRequest repRequest = new ReportRequest();
    repRequest.setReportAbsolutePath(reportPath);
    repRequest.setAttributeTemplate(template);
    repRequest.setAttributeFormat(format);
    repRequest.setAttributeLocale(“en-US”);
    repRequest.setSizeOfDataChunkDownload(-1);
    if (paramName != null)
    ParamNameValue[] paramNameValue = new ParamNameValue[paramName.length];
    String[] values = null;
    for (int i=0; i<paramName.length; i++)
    paramNameValue[i] = new ParamNameValue();
    paramNameValue.setName(paramName[i]);
    values = new String[1];
    values[0] = paramValue[i];
    paramNameValue[i].setValues(values);
    repRequest.setParameterNameValues(paramNameValue);

    Ramani_vadakadu wrote:
    window.open("http://hq-orapp-03.kuf.com:9704/xmlpserver/~weblogic/kufpec/BTA/KUF_CONF_ITINUD.xdo?_xpf=&_xpt=1&_xdo=%2F~weblogic%2Fkuf%2FBTA%2FKUF_CONF_ITINUD.xdo&_xmode=&_paramsP_BTM_ID="+parseInt(document.getElementById('P3_BTA_ID').value)+"&_xt=KUF_CONF_ITINUD&_xf=pdf&_xautorun=true&id=weblogic&passwd=kuf2011","_blank");
    the above code we are using apex JS to BI publisher calling for report as PDF
    i don't know exactly where your parameters , did you customize my link to multiple parameters
    'http://192.168.0.57:8889/reports/rwservlet?userid=retail/1@xe&destype=cache&desformat=PDF&paramform=no&report=item_cost&P_BATCH_NO='+$v('P138_BATCH_NO'); 

  • How to pass runtime parameters to Oracle Query from xMII server

    Please can anybody  help me that how to pass runtime parameter to Orcle Query  from xMII server.

    It works the same way as I described in this thread [How to pass runtime parameters to MySQL Query from xMII server].  It does not matter the datasource MII will work the same for all queries, at least for passing in parameters.  How to write those queries and their datatypes will be the differences.

  • How to pass runtime parameters to MySQL Query from xMII server

    Please can anybody help in How to pass runtime parameters to Orcle Query from xMII server

    The answer is the same as for your other thread.  The mechanism is the same regardless of the end database.  The SQL  syntax will be different for each database vendor depending upon which functions you are invoking.  The main areas of difference between SQL Server, Oracle, DB2, etc. deal with dates (times also) and strings, but there are others as well.
    Regards,
    Mike

  • How to pass row values through OpenDocument Hyperlink

    Hi all,
    I should pass through an OpenDocument hyperlink the value of a particular row of my report. No problems about the OpenDocument syntax and about the other parameters that come from prompt answers, but I don't know how to pass only the value of that particular row. This value doesn't come from a prompt.
    So for example if the column of my report was "Account number" and the 1° row of the column that comes from the query was "123456", I should pass only the account number "123456" to the linked document.
    Moreover, I have to create the hyperlink on the "Account number" column.
    Hoping having been clear...
    Thanks in advance,
    Riccardo

    Hi Stratos,
    Thanks for the reply but I have not understood very well.
    I try to explain better my issue, making an example of the problem in Open doc syntax
    http://aaaaa.bbbbb.com:8080/OpenDocument/opendoc/openDocument.jsp?iDocID=12345&..............&lsSParam1=()&lsSParam2=()&lsSParam3=()
    The problem is in the 3° paramater. This parameter is not a user response variable, it comes from an object projected in the report. The object is a numeric type.
    The aim is to pass to the 2° report exactly the content of the cell of the 3° parameter, dinamically (I mean depending on the cell selected by the user).
    Thanks.
    Regards,
    Riccardo

  • How To Pass Multiple Parameters In URL with Report Builder

    Hi,
    I use apex 4.2 with database xe 11g and i use report builder to build my report i use this link to call report
    function runrep(){
    var vurl = 'http://192.168.0.57:8889/reports/rwservlet?userid=retail/1@xe&destype=cache&desformat=PDF&paramform=no&report=item_cost&P_BATCH_NO='+$v('P138_BATCH_NO');
    popupURL(vurl);
    now i want to pass Multiple Parameters like P138_ITEM_CODE , P138_UOM_CODE
    how can i add this Parameters in URL ?
    Regards
    Ahmed

    Ramani_vadakadu wrote:
    window.open("http://hq-orapp-03.kuf.com:9704/xmlpserver/~weblogic/kufpec/BTA/KUF_CONF_ITINUD.xdo?_xpf=&_xpt=1&_xdo=%2F~weblogic%2Fkuf%2FBTA%2FKUF_CONF_ITINUD.xdo&_xmode=&_paramsP_BTM_ID="+parseInt(document.getElementById('P3_BTA_ID').value)+"&_xt=KUF_CONF_ITINUD&_xf=pdf&_xautorun=true&id=weblogic&passwd=kuf2011","_blank");
    the above code we are using apex JS to BI publisher calling for report as PDF
    i don't know exactly where your parameters , did you customize my link to multiple parameters
    'http://192.168.0.57:8889/reports/rwservlet?userid=retail/1@xe&destype=cache&desformat=PDF&paramform=no&report=item_cost&P_BATCH_NO='+$v('P138_BATCH_NO'); 

  • How to pass two parameters in one url?

    the tutorial teaches me to use
    /faces/Details.jsp?personId=#{currentRow.value['PERSON.PERSONID']}
    to pass one parameter.
    How can i pass two parameters in one url?
    /faces/Details.jsp?personId=#{currentRow.value['PERSON.PERSONID']}&personName=#{currentRow.value['PERSON.PERSONNAME']}
    is not right.

    The '&' character needs to be escaped, lest it be interpreted by the application server as a separator character in the HTTP query string. Instead of '&', try '%26'.
    // Gregory

  • How to pass request parameters using html:link in struts

    Hi All,
    I am trying to send parameters to action class using <html:link>.
    Can anybody give sample code how to do it?
    Thanks in advance.
    By
    K.Siva Prasad Reddy

    hi,
    you can pass the parameters in link like this
    http://www.xyz.com&username=someuserID&password=somePassword
    username and password are parameters which you want to pass as paramets to server..hope this will work for you...
    Thanks
    Surya

  • How to pass GET parameters from BPEL to webservice?

    Hi,
    How can I pass GET parameters to webservice from BPEL. For example if a webservice expects to get 2 parameters as GET parameters like the following URL:
    http://xxx.xxx.xxx.xxx/some-web-service?parama=abc&paramb=123
    How can I pass parama and paramb to the webservice call?
    Thanks,
    Ronen

    Hello Ronen,
    Im assuming that you're using SOA Suite 11g. The developer guide describes the following: http://docs.oracle.com/cd/E29505_01/dev.1111/e10224/sca_bindingcomps.htm#CHDEEGDC
    And the following blogpost explains in detail how to implement https://blogs.oracle.com/reynolds/entry/oracle_http_adapter
    Good luck!
    Melvin

  • How to pass multiple parameters by URL?

    hi i am having trouble passing multiple parameters by URL.
    i tried the following codes but still not successful in using request.getParameter
    <a href="remove.jsp?imageid=<%=imageId%>&userid=<%=user%>">remove</a>
    <a href="remove.jsp?imageid=<%=imageId%>&userid=<%=user%>">remove</a>

    Looks good to me.
    What parameters are you getting at the other end?
    imageid and userid? (case is important)
    What does the address url in the browser show?
    What code are you using to retrieve the parameters?

  • OWB 1gr2 process flow - how to pass IN parameters to a procedure

    Hi,
    In OWB 10.1 processflow the IN parameters for the procedure in can be passed in the activity view which appears on selecting the procedure in the processflow. How to enter the IN parameters in case of OWB11gr2. In property Inspector no options are there. Any help is highly appriciated

    Hi,
    select the transformation activity. In the structure window, select the parameter. Then you can set the binding or the value in the property window.
    Sometimes, the property window is not updated when the parameter is selected. Double click the window bar of the property window to maximize it.
    Regards,
    Carsten.

  • How to pass custom parameters to the Notification message body in a process

    Hi All,
    We are migrating from ORACLE workflows to Oracle OWB process flows as part of upgrade to Oracle 11g R2. Earlier in workflow notification mesages we could attach custom attributes (eg X_NAME) and reference the custom attributes in the notification message body (&X_NAME) to dynamically build the message body as per the custom attribute values.
    I tried to add a cutom parameter X_EMAIL_ID to a OWB process notification activity and trying to pass it to the notification message body by giving the value "This message is from &X_EMAIL_ID" in TEXT_BODY. But when I get the notification message it shows only "This message is from" and it does not show anything about X_EMAIL_ID.
    Please advise Please help us if anyone have used any workaround to dynamically populate the TEXT_BODY in a notification activity based on custom parameters.
    Thanks and regards,
    Shankar

    Hi David,
    Thank you for your suggestions. When I try to bind the variable to the notification activity parameter TEXT_BODY I get this error - VLD-10035: The value of parameter TEXT_BODY in a NOTIFICATION activity must be a literal value, bindings or expressions are not allowed. It looks like the text_body can have only literal values. Could you please advise if you received any such error or how could you resolve them.
    Thanks and regards,
    Shankar

  • How To Pass Multiple Parameters In URL

    Hi All,
    I have a requirement to pass two paramaters to the URL which is expected to open a report with filtered data.
    The context is, I have two reports 1. mainreport 2. subreport.
    The mainreport provides a link ( which is TestcaseId ) which on clicking opens the subreport.
    In my case the TestcaseId can have duplicates.So i wanted to pass the TestPlan name which helps me filter the data specific to the testcase which is clicked.
    Expectation: I want the TestcaseId link to pick up the TestPlan name too when clicked and present the filtered data in sub report.
    Note: The TestcaseId and TestPlan name are dynamic and should be picked from the main report.
    I already have the report configured to pick the TestcaseId and now would like to know how do i pass TestPlan name as well to the URL.
    Please help me with this.
    Thanks,
    Shekar

    Hi Bipuser,
    Thank you for your points.
    I have URL with both the parameters defined in it.
    Let me explain my requirement in detail.
    My main report displays the contents in a table like the example below
    Test Case Id     Test Plan
    TC_1.1     ACR758TripReport
    TC_1.2     ACR758TripReport
    TC_1.3     ACR758TripReport
    TC_1.1     ACR539
    The test case ids are displayed as links and on clicking will open the subreport with detailed steps.
    Considering the example above. When i click TC_1.1 which is appearing twice in the table, The subreport should fetch only steps specific to the test plan in the same row and not all.
    So,To filter the data, I wanted to pass the test plan name to the URL.
    Can you list out the steps in detail to achieve this.
    Note: User clicks only on Testcase id link but the URL should pick testcaseid and testplan name to fetch the data.
    Regards,
    Shekar
    Edited by: user12210094 on Apr 26, 2012 2:24 AM

  • How to pass idoc parameters in a validation script? (10gR3 site studio)

    Obviously idoc won't work in the actual validation script, so I'd like to use it to generate the parameters to pass to a custom function.
    If I add <!--$siteId--> as a parameter in design mode, it'll be added as: &amp;lt;!--$siteId--&amp;gt; which doesn't work.
    If I manually add <!--$siteId--> to the parameter code in Source mode, this works just fine. However, once I enter design mode, Designer strips it out and now I have no parameter.
    Is there any way to somehow escape the less than/greater than symbols in Design mode?
    It's really unfortunate how the contributor windows are static HTML pages that don't retain what site they're on. Maybe this has changed in the 10gR4.

    Sorry I don't have an answer for you, but I wanted to say that we have had problems with Design mode in general and don't use it anymore. Switching between Source and Design has cause multiple errors in our Site Studio template. We do all of our Designer editing in Source mode. Any actual design work is done in an external editor and the HTML source is then brought over into Site Studio in Source mode.
    I was disappointed when 10gR4 came out and Oracle said they did no significant changes (improvements) to Site Studio Designer application.

  • How to pass input parameters to ZRFC using sap connector 3.0

    Hi,
    In the connector 2.0 we were passing parameters (vendor# as input) to rfc as ( eg: rfc_name(I_vendor, E_VendorTBL) and able get the results in the output table .
    How do we do this using new NCO3.0.
    Thanks,
    Rajender

    S0008226571 wrote:>
    > I have implemented an example similar to the above which stores the results of a table in a .net DataTable. I am trying to bind the DataTable to a DataGridView but the DataGridView is simply blank.
    >
    >
    >                
    DataTable dt = svc.getTableData("crmd_orderadm_h");
    >
    >                 bindingSource.DataSource = dt;
    >                 dataGridView1.DataSource = bindingSource;
    >
    >
    > Any ideas on why the DataGridView is empty?
    For the benefit of others here, I resolved the problem by examining the properties of the datagridview control. In this case, the datagridview control binding property was being set in the visual studio designer and for some reason was not able to be set at runtime. I removed the binding property in the visual studio property window and the problem was resolved.
    Thanks for those who contributed answers to this issue.
    Edited by: Mike Powell on Mar 1, 2011 3:30 PM

Maybe you are looking for