Two form two Url to invoke

Hi All,
I have following Jsp page:
My requirement is: Page has a single submit button and two <FORM> tags. Each form tag has a Url to invoke on Submit button pressed.
Meaning if usedr selects SIT1 radio button and presses Submit then the browser should display indexBM.jsp page
If user selects SIT2 radio button and presses Submit, then browser should display indexComp.jsp page.
Following is not working. What changes I need to do to achieve above?
thanks
<%@ include file="header.jsp" %>
<html>
<body>
     <tr><td><b><center>BEST MATCH and CRES(Customer Related Enterprise Services)</td></tr>
<form>
<form method="post" action="indexBM.jsp">
<table width="700" Align="center">
<!--DWLayoutTable-->
          <tr></tr>
          <tr></tr>
          <tr></tr>
          <tr></tr>
          <tr></tr>
          <tr></tr>
          <tr>
               <td></td>
               <td><B><I>Service Type</I></B></td>
               <td><input type="radio" name="env_Type" value="SIT1" >Best Match</td>
          </tr>
          <tr>
               <td></td>
               <td></td>
          </tr>
          </table>
</form>
<form method="post" action="indexComp.jsp">
<table width="700" Align="center">
          <tr>
               <td></td>
               <td></td>
               <td><input type="radio" name="env_Type" value="SIT2" >CRES(Customer Related Enterprise Services)</td>
          </tr>
          <tr>
               <td></td>
               <td></td>
          </tr>
          </table>
</form>
          <tr>
               <BR>
               <P></P>
          </tr>
          <tr>
               <td width="40"></td>
               <td></td>
               <td colspan=3>
<input type="submit" name="submit" value="SUBMIT">
</td>
<td></td>
</tr>
</table>
</form>
</body>
</html>

ok so what changes do i need to do in my existing code.. I cannot keep two buttons in that Jsp page. I can keep only one button, two radio buttons for selection, and then depending on radio button selection a forward to appropriate Jsp page either indexBM.jsp OR indexComp.jsp.
thanks

Similar Messages

  • Want to configure two URL fro EBS R12

    Hi
    Database 10.2.0.4 and EBS R12.1.2 on HP-PA Risk 64 Bit OS
    node one : Database and CM
    Node two : Form and web services.
    Just now i have added one new node for form and web services. (Want to use this node for another global country) . Now i want to use two url for different locations without using load balancing. can i do this? how?
    Kindly suggest
    regards
    Krishna

    node one : Database and CM
    Node two : Form and web services.
    Just now i have added one new node for form and web services. (Want to use this node for another global country) . Now i want to use two url for different locations without using load balancing. can i do this? how?
    new node...?

  • How to assign two url for a single picture?

    I have a picture and put it into sprite,like follows:
       var loader:Loader=new Loader();
       addChild(loader);  
       loader.load(new URLRequest("logo.jpg"));
    At the right top of logo.jpg,and there are two word location in the logo.jpg,one is 'home' and another is 'about us',I want to add two url on 'home' and 'about us',how to do it?
    Thanks

    add your loader to a sprite or movieclip and, after loading is complete, add two transparent children to overlay your words.  add listeners to your transparent children.

  • Two urls for portal

    Hi,
    1.Can anybody tell me how to configure two urls for portal?
    2. How can I configure SSL certificates for both the urls?
    our main aim is to have 2 urls one with Kerberos and one with non kerberos.  want to define two urls for these two and want to install SSL certificates. Please help me.
    Thanks
    karunakar.M

    Hi,
    Blog: Using certificates with the SAP NetWeaver Portal
    SAP Help: http://help.sap.com/saphelp_nw70/helpdata/en/65/6a563cef658a06e10000000a11405a/content.htm
    Microsoft: http://support.microsoft.com/kb/931351
    br,
    Tobias

  • Two URLs for same WS

    Hi everyone! I've created a function and I've published it like web service... Now, i see the WS in SE80 (Service Definition --> WSDL tab) and i get URL and WSDL (by example: http://hostname:8000/sap/bc/srt/wsdl/sdef_ZFUNCTIO_001/wsdl11/ws_policy/document?sap-client=100 ).
    Then, i go to SOAMANAGER, and i get another URL (with a little distinct WSDL: http://hostname:8000/sap/bc/srt/wsdl/bndg_E0DE487057B0E7F1A58C005056900046/wsdl11/allinone/ws_policy/document?sap-client=100 ). If i put these in Explorer, both open correctly...
    Why there're two URLs for same WS? Wich is correct?
    Thanks!!

    Hi,
    say for example
    your one URL is
    x.hostname:portno/irj/1stURL
    and the second URL is
    x.hostname:portno/irj/2ndURL
    and maintain two umLogonPagedefault.jsp with names,
    umLogonPage1stURL.jsp and umLogonPage2ndURL.jsp and do the necessary coding you want inside the JSPs.
    Now, umLogonPage.JSP is the JSP file responsible for determinig your portal URL to open when user wants to enter into portal. So Open that JSP(umLogonPage.JSP) and do like this:::
    <%
    String strReqURL = request.getRequestURL().toString()==null?"" : request.getRequestURL().toString() ;
    %>
    <%
    if ( strReqURL != null && strReqURL.endsWith("/1stURL"))     
    %>
         <%@ include file="umLogonPage1stURL.jsp"%>
    <%
    else if ( strReqURL != null && strReqURL.endsWith("/2nuURL"))
    %>
    <%@ include file="umLogonPage2ndURL.jsp"%>
    <%
    %>
    Regards,
    Srinivas.

  • Can two urls map to same servlet in web.xml

    Hello All,
    I need to map the two urls in my web application with the same servlet.
    I tried as follows:
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee">
    <description>Empty web.xml file for Web Application</description>
    <servlet>
    <servlet-name>TestServlet</servlet-name>
    <servlet-class>fileredirectsolution.TestServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>TestServlet</servlet-name>
    <url-pattern>/testservlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>TestServlet</servlet-name>
    <url-pattern>/filerepository/*</url-pattern>
    </servlet-mapping>
    </web-app>
    However, I am getting an error while accessing the TestServlet.
    When I remove the second servlet-mapping tag..it is working fine.
    How can I map the two urls with the same servlet.
    Thanks
    Saikrishna

    it is not ur requirement. but
    i think it will help 2 u.
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"; version="2.4"; xmlns="http://java.sun.com/xml/ns/j2ee">
    <description>Empty web.xml file for Web Application</description>
    <servlet>
    <servlet-name>TestServlet</servlet-name>
    <servlet-class>fileredirectsolution.TestServlet<;/servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>TestServlet</servlet-name>
    <url-pattern>*.xxx</url-pattern>
    </servlet-mapping>
    </web-app>
    if ur configure web.xml like above.
    any request that ends with .xxx call the TestServlet.
    ex:
    1)http://ip:port/contextpath/abc.xxx
    2) http://ip:port/contextpath/xyz.xxx
    here both urls calls the same servlet.
    -lakshman.
    save a life by sending information.
    www.help2patients.wordpress.com.

  • Distinguishing between Form and URL variables

    My mind isn't working like it should today, but what I am trying to do is:
    1) alter a page via passing a argument in the URL
    2) store this in a hidden field within the form on the page
    3) retrieve the hidden field when the page is refreshed or in this case manipulated again for printing.
    Basically, I have a report screen that allows the user to toggle between paging 1 page at a time or show all pages. If they click for all pages I pass a variable (allPages), and store it in a hidden field (allPages). Now if the user presses the "Print" button I reload the page stripping out form elements and put in Page breaks so that the report prints fairly nicely. Whats not working is my ability to differentiate between the parameter passed in the URL and the parameter contained within the form.
    I am currently able top get the URL passed parameter via:
    request.getParameter("allPages")
    Is there a way to check for the form element, if it exist then use it else check for the URL passed parameter, or default it.
    Thanks in advance.

    I wonder, why you didn't use two different name for the parameter via URL and via Form, so your program should can easily distinguish where come from where, am I right?
    The other way, you may check the method, whether it is "post" or "get", the get method is what you said as via URL and post normally use by form. But I think, it is better use two different parameter for Form and URL.

  • Passing parameter from Form to URL

    Hi,
    I have a form with one field with LOV (combobox). When user chooses a value it should open the same page but with one parameter added. I tried out this:
    OnChange JavaScript:
    window.open('http://lesoprojekt.sk:7779/portal/page?_pageid=33,31392,33_31648&_dad=portal&_schema=PORTAL&dep='||depno)
    where depno is a form field and I need to pass its value.
    But the URL result is only http://lesoprojekt.sk:7779/portal/page?_pageid=33,31392,33_31648&_dad=portal&_schema=PORTAL&dep=
    I need it as a page parameter because it is being passed to OmniPortlet.
    Any help?
    thanks,
    Brano

    Yes, but your form which is getting invoked with this call needs to have this parameter (in object navigator).
    If the name of your parameter is e.g. OWNPNAME you will have to add an parameter object in the form named OWNPNAME.
    In addition, in the config section of your application in formsweb.cfg you will have to add :
    otherparams=OWNPNAME=%OWNPNAME%
    Then, you cann embed OWNPNAME within the url call
    ...&OWNPNAME=xyz

  • How to form a URL dynamically in my portlet

    hi all,
    i have a requirement in weblogic portal 10.2,how do i form my URL dyncamically in my portlet which is as below
    I have a requirement to dynamically form my URL. Further suppose I have a left navigation portlet which has 3 links and right navigation portlet should show the content for the respective links clicked on left navigation portlet.so in this scenario I need to dynamically create my url which I need to display on the right hand side portlet
    Dynamic access to portlet B
    Portlet A ------------------------------------------> Portlet B
    The Url which has to be displayed on portlet B has to created dynamically in my portlet A,
    i.e portlet A should dynamically access portlet B and the page of Portlet B which has to be displayed and create the URL,Once the URL is formed I should be able to access portlet B,
    Portlet A ---> access Portlet B context ---> get portlet B context ----> get Portlet B output jsp page and hence form the url
    Portlet A = (Portlet B context) + (get Portlet B output jsp page)
    = Well formed URL of output jsp page which is in the right hand portlet B
    If u have the source code pertaining to above/material.please share it with me.
    Thanks
    Deepak
    Edited by deepakl_2000 at 05/17/2008 1:20 AM

    hi [email protected]
    tell me my friend .. how can i extend
    the standard Forms button in Java ? ... what is the tool for that ... can you explain more please .. or can you give me a full example ... i don't have any expereience on that .. i'm waiting for your reply .
    Thanx a lot for your cooperation .
    Ali
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by [email protected]:
    Henrik, the Java importer lets you call Java classes on the app server side - I think what Ali is trying to do is integrate on the client side.
    If you want to add your own button then if you extend the standard Forms button in Java and then use this class name in the implementation class property then the Java for your button will be used instead of the standard Forms button. And since it has extended the basic Forms button it has all the standard button functionality.
    There is a white paper on OTN about this and we have created a new white paper which will be out in a couple of months (I think).
    Regards
    Grant Ronald<HR></BLOCKQUOTE>
    null

  • How do I find a form's URL?

    I have ten forms that we would like to distribute to 3000 employees.  We would like to publish the link to the forms instead of e-mailing the forms directly. How do we find the URL for our forms?
    Thank you!

    go into the form and under the distribute tab, you will find the form specific URL.

  • Calling Webservice from Adobe form - Webservice URL  Issue

    Dear Friends,
      I have developed a webservice and calling it from an Adobe form. I have downloaded the WSDL file from tcode SOAMANAGER. When I create a data connection from the Adobe form  I use this WSDL file and the form elements gets created automatically and I drag and drop them into the form. The issue is when I click on the Submit(Execute) button the Webservice URL is always pointed to the client from where the file was downloaded and its hard-coded ( for example if i download the wsdl file from client 300 then the URL would be http://<location>/sap/bc/srt/rfc/sap/z_web_getmat/300/z_web_getmat/z_web_getmat). So if i execute the form from client 200 its not working. How to make this URL dynamic so that the webservice gets executed from the client from where this form is called. Please advice.
    Regards
    Sapient

    Hi,
    You have to handle it in your form on submit button calling the web service:
    Write below java script code at submit event to change the URL at run time:
    var tempsoapAddress = xfa.connectionSet.DataConnection.getElement("soapAddress").value;
    var tempwsdladdress = xfa.connectionSet.DataConnection.getElement("wsdlAddress").value;
    var ServerPath = body.systemConfig.system.rawValue;
    var client = <Get Client from a data attribute>
    var Soap_PreServerPort =  "http://";
    var Soap_PostServerPort =  "/sap/bc/soap/rfc?sap-client=";
    var SoapAddress = Soap_PreServerPort + ServerPath + Soap_PostServerPort + client ;
    var Wsdl_PreServerPort =  "http://";
    var Wsdl_PostServerPort1 =  "/sap/bc/soap/wsdl11?services=ZBAPI_PO_CREATE2&amp;sap-client=";
    var wsdlAddress =  Wsdl_PreServerPort + ServerPath + Wsdl_PostServerPort1 + client ;
    xfa.connectionSet.DataConnection.getElement("soapAddress").value = SoapAddress;
    xfa.connectionSet.DataConnection.getElement("wsdlAddress").value = wsdlAddress;
    xfa.connectionSet.DataConnection.execute(0);
    xfa.connectionSet.DataConnection.getElement("soapAddress").value = tempsoapAddress;
    xfa.connectionSet.DataConnection.getElement("wsdlAddress").value = tempwsdladdress;
    xfa.connectionSet.DataConnection = null;
    Change the variable wsdlAddress as per your requirement. The above code is just a sample.
    For getting the client pass it in a datasource variable attribute at time of downloading the form. At time of submit get the value of that variable and use it to form the url.
    Regards,
    Vaibhav

  • How to debug a form module (Oracle 11G Forms) through URL

    How to debug a form module (Oracle 11G Forms) through URL.
    My server OS is Unix. So i could not able to do the Debug Forms from the Form Developer.
    It is displaying a message that "Cannot find the module". Becuase the system is trying find out the module in Unix system instead of ma local system(Windows).
    I need to debug ma module through URL.
    I can place the fmb and fmx in predefined form path in Server.
    Please help me out to solve this issue..

    This is a little unclear. If your goal is to use the Forms Builder Debugger while running your form on a Unix machine, this can be done. However, the form must first be in running order. So before trying to attach the debugger you must first be able to start it without the debugger. For example:
    http://yourServer:OHS_port_number/forms/frmservlet?form=yourFMX
    Once this is properly running you can turn on debugging. If your form won't even start, then using the Debugger isn't going to help you because it is designed to troubleshoot coding problems and not configuration problems.
    So, do this to use the Debugger:
    http://yourServer:OHS_port_number/forms/frmservlet?form=yourFMX&debug=yes
    This will display a dialog box with some information. Do not click on OK yet as you will need this information to enter into the Forms Builder. Now, open the Forms Builder and click on Debug > Attach Debug. You will be asked for the information displayed in the dialog where you attempted to start the form. Enter it here (in the Builder) then click on ok in both places. To display the Debugger (in the Builder), click on Debug > Debug Console. Then from its toolbar click on the buttons related to what you want to monitor. Including a break point in your application code is often a more helpful way to use the debugger.
    Most of this information is explained in the Forms Builder Online Help
    Forgot to mention...
    To debug runtime issues, refer to the Forms Deployment Guide here (this assumes you are using 11.1.2):
    http://docs.oracle.com/cd/E38115_01/doc.111210/e24477/appa.htm
    Edited by: Michael Ferrante (Oracle) on Feb 21, 2013 1:45 PM

  • Appending param value to the netui:form action URL

    Hi there,
    I have got very simple problem.
    I want to add 'dummyParam=dummyVaule' as a query string to the 'URL' whenever
    NETUI form data is posted using submit button.
    I have tried <netui:parameter> but it did not work.
    I have the following snippet of code
    <netui:from action="updateDetails">
    <netui:imagebutton value="submit" >
    </netui:imageButton>
    </netui:form>
    Thanks for your help
    Regards
    Charan

    Hello Jonathan,
    How are you generating the form action URL for the Struts portlet now? You should be able to include any parameters you want in the URL at that time.
    Kevin

  • How compare two URLs for equality if one uses jar protocol?

    I'm trying to see if some URLs are referring to the same jar file but some of them come with the prepend/append of "jar:file:/" and "!/" and some are just as "file:/". So when I call "URL.equals(...)", it returns false. How do I properly compare these two?
    //Returns false, even though both can be used to find the jar file
    new URL( "jar:file:/home/me/tmp.jar!/" ).equals( new URL( "file:/home/me/tmp.jar" ) );

    The URL with the leading "jar:" and trailing "!/" is a JAR URL. It's described in the JarURLConnection class API document.
    This is one way (there any be a simpler one). You will have to figure out whether you're working with a jar URL or a "regular" URL by parsing the URL to figure out which kind it is. One diffrence is the leading "jar"
    import java.io.IOException;
    import java.net.JarURLConnection;
    import java.net.MalformedURLException;
    import java.net.URL;
    public class Xy
        public static void main(String[] args)
            throws MalformedURLException, IOException
            URL fileURL =
                new URL("file:/Program Files/Java/jre6/lib/deploy.jar");
            URL jarURL =
                new URL("jar:file:/Program Files/Java/jre6/lib/deploy.jar!/");
            String fURL = fileURL.toString();
            System.out.println("fileURL: " + fURL);
            String jURL = ((JarURLConnection) jarURL.openConnection()).
                getJarFileURL().toString();
            System.out.println("jarURL: " + jURL);
            if (fURL.equals(jURL))
                System.out.println("They are equivalent");
    }

  • Two Urls for the same portal server

    Hi,
    I have to access the same portal server for the two diffent url links.
    This is required for me to have two different logon pages for the portal for completely different urls.
    Please share your ideas here!
    Ram

    Hi,
    say for example
    your one URL is
    x.hostname:portno/irj/1stURL
    and the second URL is
    x.hostname:portno/irj/2ndURL
    and maintain two umLogonPagedefault.jsp with names,
    umLogonPage1stURL.jsp and umLogonPage2ndURL.jsp and do the necessary coding you want inside the JSPs.
    Now, umLogonPage.JSP is the JSP file responsible for determinig your portal URL to open when user wants to enter into portal. So Open that JSP(umLogonPage.JSP) and do like this:::
    <%
    String strReqURL = request.getRequestURL().toString()==null?"" : request.getRequestURL().toString() ;
    %>
    <%
    if ( strReqURL != null && strReqURL.endsWith("/1stURL"))     
    %>
         <%@ include file="umLogonPage1stURL.jsp"%>
    <%
    else if ( strReqURL != null && strReqURL.endsWith("/2nuURL"))
    %>
    <%@ include file="umLogonPage2ndURL.jsp"%>
    <%
    %>
    Regards,
    Srinivas.

Maybe you are looking for

  • TS3499 2007MBP, L-shaped adapter, and a firmware update that didn't work.

    My replacement L-shaped adapter worked for a day on my 2007 MacBook Pro, then stopped abruptly. I've tried the SMC reset as well as the firmware update. When I tried the latter, I received an alert that my computer does not need the update. Please he

  • Mouse pointer freeze

    hi i recently buyed a macbook, but from time to time the mouse pointer freezes for a few seconds.I disabled already the two fingers option from the touchpad,(found that suggestion in a forum ) but without success.Is that problem known, or has somebod

  • The windows close automaticly every few minutes

    since i updated the software of my computer the last time, it don't work properly. the windows close automaticly every minute during some seconds, while i'm working... the aplications not, but i lost the cursor, and the windows (finder) with the docu

  • DTR dependency problem

    My problem is as follows: 1)I have created a java DC which contains several classes. 2)In that DC’s public part, I have created an assembly (by choosing “Can be packaged into other…”) which exposes all of the classes. 3)I have created a second DC whi

  • What is "Your request is prohibited because it would cause a cycle. "

    I get this message when I try to access my sbcglobal account http://us.mc815.mail.yahoo.com /mc/welcome?.partner=sbc&.gx=1&.tm=1294433333&.rand=5ls2fia29bgfd#_pg=showFolder;_ylc=X3oDMTBuYTBzaHNnBF9TAzM5ODMwMzA0MQRhYwNjaGtNYWls&&.rand=1606631854&order