Jsp parameters - url problem

hello,
I have a problem with the maximum length of an url.
I have to submit a parameter (which is a list of elements) from a jsp to a servlet. But, for IE, there's a maximum length of the url and it doesn't allow a such longer parameter (for netscape, it's ok).
I would like to have a button on my jsp which open another jsp which use the parameter of the first jsp. I have thought to use javabeans but I don't know how to keep a same javabean in several JSPs...
Can you give me some ideas please ?

// JSP 1
<form name=fastaForm action=/EHTDb_interface/servlet/EXHServlet>
<input type=hidden name=clNames value=<%=clNames%>>
<!-- clNames is a String of 1 to several hundreds of characters long-->
</form>
// SERVLET (/EHTDb_interface/servlet/EXHServlet)
String clNames = (String) request.getParameter("clNames");
String redirect = "/result/fasta.jsp";
Fasta f = new Fasta (clNames);
request.setAttribute("fasta", f.getFasta());
RequestDispatcher dispatcher;
dispatcher=getServletConfig().getServletContext().getRequestDispatcher(redirect);
dispatcher.forward(request, response);
//JSP 2
<% HashMap hmFasta =(HashMap) request.getAttribute ("fasta"); %>

Similar Messages

  • Jsp:forward URL problem

    Hi,
    I have 2 pages X.jsp and Y.jsp
    The content of X.jsp is a simple
    // send an email here
    <jsp:forward page="Y.jsp">
    </jsp:forward>
    The content of Y.jsp is only "Mail is sent" message.
    The problem is that everytime page X is loaded,
    the browser displays Y.jsp content, but the URL in the Address box of the browser still displays X.jsp
    This leads me to reload problem, even though the page displays the "Mail is sent" message, the URL still shows X.jsp, and everytime the browser is reloaded, another mail is sent.
    How to make the URL change to Y.jsp ?
    TIA.

    Hi,
    I have 2 pages X.jsp and Y.jsp
    The content of X.jsp is a simple
    // send an email here
    <jsp:forward page="Y.jsp">
    </jsp:forward>
    The content of Y.jsp is only "Mail is sent" message.
    The problem is that everytime page X is loaded,
    the browser displays Y.jsp content, but the URL in the
    Address box of the browser still displays X.jsp
    This leads me to reload problem, even though the page
    displays the "Mail is sent" message, the URL still
    shows X.jsp, and everytime the browser is reloaded,
    another mail is sent.
    How to make the URL change to Y.jsp ?
    TIA.Thats the natural behavious of forward.
    One simple solution is not to use forward. You can use HTTP redirection rather than forward.
    Hope it helps.

  • Using JSP parameters as input in a JavaScript function

    hey
    I have a JavaScript function, which I call with JSP parameters.
    The function call looks similar to:
    <button onclick="myFunction(<%= jspParameter%>);"> </button>
    However, this JavaScript function is called from a jsp page, which is asynchronously refreshed upon a click of the button.
    The problem is that the JavaScript function does NOT function when I click the button for the first time (or maybe it functions, but with the old value of the jspParameter).
    Only after the second click it starts taking the jspParameter.
    Can you please tell me how to properly get the jspParameter as input in my case....
    thank you

    I'm sorry, you're right - I didn't give enough details.
    My whole page consists of several jsp-s.
    The jsp, from which I call the JavaScript function is just one part of the whole page. I'll call it partToBeChanged.jsp.
    When I press the button, the partToBeChanged.jsp should refresh asynchronously and call the JavaScript function using the new jsp parameter as input.
    To be more precise, here is roughly how myFunction looks like (JavaScript):
    function myFunction(url, jspParam) {
         var XMLHttpRequestObject = false;
         if (window.XMLHttpRequest) {
              XMLHttpRequestObject = new XMLHttpRequest();
         } else if (window.ActiveXObject) {
              XMLHttpRequestObject = new ActiveXObject("Microsoft.XMLHTTP");
         if (XMLHttpRequestObject) {
              XMLHttpRequestObject.open("GET", myServlet + url, true);
              XMLHttpRequestObject.onreadystatechange = function() {
                   if (XMLHttpRequestObject.readyState == 4 && XMLHttpRequestObject.status == 200) {
                        //plug server response in the target place.
                        //The target is an id of a division, which holds the partToBeChanged.jsp page
                        //The server itself uses RequestDispatcher to direct the response to the partToBeChanged.jsp     
                        //NOTE: partToBeChanged is only a part of the whole HTML page, which is refreshed dynamically               
                        document.getElementById('target').innerHTML = XMLHttpRequestObject.responseText;
                        //changes the content of a div, which is IN ANOTHER .jsp fragment (different than partToBeChanged.jsp)
                        y = document.getElementById("div_to_change");
                        y.innerHTML = jspParam;
              XMLHttpRequestObject.send("");
    }the jspParam is a java object, initialized in the servlet and used in partToBeChanged.jsp
    To summarize: the servlet dispatches the response to the partToBeChanged.jsp page, which uses the jspParam as input for myFunction, and myFunction tries to change the content of the "target" div accorting to the jspParam. However it changes as expected only after the second button click.
    Thanks a lot for any help....

  • Best way to execute different jspx pages from a parameterized URL

    JDeveloper 10.1.3.3.0
    I'm looking for an elegant way for ADF to determine which page to go, based on a parameterized URL.
    I currently have a way of doing it, it's not what I want, but perhaps some other ideas.
    For example:
    http://localhost/MyDemo-ViewController-context-root/faces/decisionPage.jspx?vehicleType=car
    http://localhost/MyDemo-ViewController-context-root/faces/decisionPage.jspx?vehicleType=boat
    Given vehicleType, I need decisionPage.jspx to go to car.jspx or boat.jspx immediately
    Currently, I had to do this:
    1. Expose a method in the application module setVehicleType()
    2. decisionPage.jspx has a binding for a methodAction to call setVehicleType() and grab the vehicle type using ${param.vehicleType}. Store the vehicle type in the application module when this page is loaded.
    3. In decisionPage.jspx, create a commandButton into the page
    4. When the user clicks on this commandButton, it will be bound to a UI bean.
    5. This UI bean will then get the vehicleType from the application module method getVehicleType()
    I don't want the client to go directly to car.jspx or boat.jspx. I also don't want this extra step of the client clicking on a button to go to the proper page.
    Any suggestions would be great!

    Hi user,
    You could create a jsp page (or a servlet) which acts as the starting point of your web application. (decisionPage.jspx in your case). In the jsp, grab the url parameters using a scriptlet, put them on the sessionScope and redirect to the correct page.
    By putting the value on sessionScope, you have access to the parameters in your whole application during the session. You can use it to execute a query with bind variables.
    Hope I made it a bit clear.
    Regards,
    Koen Verhulst

  • Url problem??

    Hi!
    I wanna know that what i should use to handle the url problem
    like if there is a url
    http://localhost:8080/myserver/mydir/home.jsp // mydir is physical dir
    http://localhost:8080/myserver/mydir2/home.jsp
    http://localhost:8080/myserver/mydir4/home.jsp
    http://localhost:8080/myserver/mydir/index.html
    how i can mapp more then one files regardles of only index.html file how i can map a ruquest to them like if user just enter
    http://localhost:8080/myserver/mydir/
    home.jsp should be shoown to him.
    Waiting for reply.
    Bye.

    This has to do with webserver configuration, which one are you using?

  • HT3281 Podcasts from Current Tv, since three weeks prior to the Nov 2012 election have had a url problem and cannot be played on my mac mini 2011 with 10.8.2 and the latest Itunes? anyone know why ? I am in contact with Itunes now and they wanted screensh

    Podcasts from Current Tv, since three weeks prior to the Nov 2012 election have had a url problem and cannot be played on my mac mini 2011 with 10.8.2 and the latest Itunes? anyone know why> ? I am in contact with Itunes now and they wanted screenshots of the problem, I can get these current tv episodes with a vpn and my isp says they are not blocking them, but i was surprised that prior to the election they were blocked, ?
    I also can get them on my Android Samsung Galaxy note 2 with no problem but on the Macmini cannot>/? I Unsubscribed and subscribed many times but still no luck, any ideas? I am waiting for the senior advisor to get back to me on this issue. I am in THailand now where the problem is happening and as I said the ISP says they do not block any podcasts.I also do not want it on my iphone 5, so I have to wait and see why the mac mini is not getting it.

    I seem to have fixed it by putting <div  class="clearfloat"></div> after the navigation bar?

  • Problems with parameterized Url

    Hey,
    can anybody help me?
    I created following URL with 4 filter values:
    http://XXX/sap/bw/BEx?sap-language=EN&bsplanguage=EN&CMD=LDOC&TEMPLATE_ID=my_template& FILTER_IOBJNM_1=0SOLD_TO&FILTER_VALUE_1=123&FILTER_IOBJNM_2=0CO_AREA&FILTER_VALUE_2=123&FILTER_IOBJNM_3=0COMP_CODE&FILTER_VALUE_3=123&FILTER_IOBJNM_4=0SALESORG&FILTER_VALUE_4=123
    When I execute the url in browser a screen with filter value selection appears. I created the template with WAD 3.x - with WAD 7.0 it doesn't work. Do I have to use other parameters here?
    Best regards,
    Jule

    Hi Jule,
    I am facing issuse of URl length
    We pass the parameters in the URL for new 7.x machine. Unfortunately we are running more than 3000 characters, whereas system is allowing upto 2083 characters. Please do needful.
    &BI_COMMAND_1-BI_COMMAND_TYPE=SET_SELECTION_STATE_SIMPLE
    &BI_COMMAND_1-TARGET_DATA_PROVIDER_REF_LIST-TARGET_DATA_PROVIDER_REF_1=DATAPROVIDER_1
    &BI_COMMAND_1-TARGET_DATA_PROVIDER_REF_LIST-TARGET_DATA_PROVIDER_REF_2=DATAPROVIDER_2
    &BI_COMMAND_1-TARGET_DATA_PROVIDER_REF_LIST-TARGET_DATA_PROVIDER_REF_3=DATAPROVIDER_3
    &BI_COMMAND_1-TARGET_DATA_PROVIDER_REF_LIST-TARGET_DATA_PROVIDER_REF_4=DATAPROVIDER_4
    &BI_COMMAND_1-TARGET_DATA_PROVIDER_REF_LIST-TARGET_DATA_PROVIDER_REF_5=DATAPROVIDER_1_2
    &BI_COMMAND_1-RANGE_SELECTION_OPERATOR=EQUAL_SELECTION
    &BI_COMMAND_1-RANGE_SELECTION_OPERATOR-EQUAL_SELECTION=MEMBER_NAME
    &BI_COMMAND_1-RANGE_SELECTION_OPERATOR-EQUAL_SELECTION-MEMBER_NAME=0000000000000000000000000000000080000020
    &BI_COMMAND_1-CHARACTERISTIC=ZCRMPRDL1
    &BI_COMMAND_2-BI_COMMAND_TYPE=SET_ITEM_PARAMETERS
    &BI_COMMAND_2-INIT_PARAMETERS-WITH_TRAY-TRAY_SETTINGS-CAPTION=AstroMonthlyBacklogofOpenBugs
    &BI_COMMAND_2-INIT_PARAMETERS-WITH_TRAY=X
    &BI_COMMAND_2-INIT_PARAMETERS-TITLE=AstroMonthlyBacklogofOpenBugs
    &BI_COMMAND_2-TARGET_ITEM_REF=CHART_1
    &BI_COMMAND_3-BI_COMMAND_TYPE=SET_ITEM_PARAMETERS
    &BI_COMMAND_3-INIT_PARAMETERS-WITH_TRAY-TRAY_SETTINGS-CAPTION=AstroMonthlyBacklogofOpenBugs
    &BI_COMMAND_3-INIT_PARAMETERS-WITH_TRAY=X
    &BI_COMMAND_3-TARGET_ITEM_REF=TABLE_1
    &BI_COMMAND_4-BI_COMMAND_TYPE=SET_ITEM_PARAMETERS
    &BI_COMMAND_4-INIT_PARAMETERS-WITH_TRAY-TRAY_SETTINGS-CAPTION=AstroWeightedDefectCount(WDC)ofOpenCustomerBugs
    &BI_COMMAND_4-INIT_PARAMETERS-WITH_TRAY=X
    &BI_COMMAND_4-INIT_PARAMETERS-TITLE=AstroWeightedDefectCount(WDC)ofOpenCustomerBugs
    &BI_COMMAND_4-TARGET_ITEM_REF=CHART_2
    &BI_COMMAND_5-BI_COMMAND_TYPE=SET_ITEM_PARAMETERS
    &BI_COMMAND_5-INIT_PARAMETERS-WITH_TRAY-TRAY_SETTINGS-CAPTION=AstroWeightedDefectCount(WDC)
    &BI_COMMAND_5-INIT_PARAMETERS-WITH_TRAY=X
    &BI_COMMAND_5-TARGET_ITEM_REF=TABLE_2
    &BI_COMMAND_6-BI_COMMAND_TYPE=SET_ITEM_PARAMETERS
    &BI_COMMAND_6-INIT_PARAMETERS-WITH_TRAY-TRAY_SETTINGS-CAPTION=AstroMonthlyIncomingRateofBugs
    &BI_COMMAND_6-INIT_PARAMETERS-WITH_TRAY=X
    &BI_COMMAND_6-INIT_PARAMETERS-TITLE=AstroMonthlyIncomingRateofBugs
    &BI_COMMAND_6-TARGET_ITEM_REF=CHART_3
    &BI_COMMAND_7-BI_COMMAND_TYPE=SET_ITEM_PARAMETERS
    &BI_COMMAND_7-INIT_PARAMETERS-WITH_TRAY-TRAY_SETTINGS-CAPTION=AstroMonthlyIncomingRateofBugs
    &BI_COMMAND_7-INIT_PARAMETERS-WITH_TRAY=X
    &BI_COMMAND_7-TARGET_ITEM_REF=TABLE_3
    &BI_COMMAND_8-BI_COMMAND_TYPE=SET_ITEM_PARAMETERS
    &BI_COMMAND_8-INIT_PARAMETERS-WITH_TRAY-TRAY_SETTINGS-CAPTION=AstroIncoming/ResolvedRatio-CustomerProductionBugs
    &BI_COMMAND_8-INIT_PARAMETERS-WITH_TRAY=X
    &BI_COMMAND_8-INIT_PARAMETERS-TITLE=AstroIncoming/ResolvedRatio-CustomerProductionBugs
    &BI_COMMAND_8-TARGET_ITEM_REF=CHART_6
    &BI_COMMAND_9-BI_COMMAND_TYPE=SET_ITEM_PARAMETERS
    &BI_COMMAND_9-INIT_PARAMETERS-WITH_TRAY-TRAY_SETTINGS-CAPTION=AstroIncoming/ResolvedRatio-CustomerProductionBugs
    &BI_COMMAND_9-INIT_PARAMETERS-WITH_TRAY=X
    &BI_COMMAND_9-TARGET_ITEM_REF=TABLE_6
    &BI_COMMAND_10-BI_COMMAND_TYPE=SET_ITEM_PARAMETERS
    &BI_COMMAND_10-INIT_PARAMETERS-WITH_TRAY-TRAY_SETTINGS-CAPTION=AstroIncomingSupportCalls
    &BI_COMMAND_10-INIT_PARAMETERS-WITH_TRAY=X
    &BI_COMMAND_10-INIT_PARAMETERS-TITLE=AstroIncomingSupportCalls
    &BI_COMMAND_10-TARGET_ITEM_REF=CHART_4
    &BI_COMMAND_11-BI_COMMAND_TYPE=SET_ITEM_PARAMETERS
    &BI_COMMAND_11-INIT_PARAMETERS-WITH_TRAY-TRAY_SETTINGS-CAPTION=AstroIncomingSupportCalls
    &BI_COMMAND_11-INIT_PARAMETERS-WITH_TRAY=X
    &BI_COMMAND_11-TARGET_ITEM_REF=TABLE_4

  • Passing Parameters in URL problem

    I have a page where I do some processing. I have created a branch on that page back to the main report page for the app. I have the following on the "Edit Branch" page:
    Point
    Branch Point: On Submit: After Processing...
    Sequence: 10
    Action
    Target type: Page in this Application
    Page: 1
    Request:
    Clear Cache:
    Set these items:P1_SELECT_TERM,P1_SELECT_POT
    With these values:&P7_TERM.,&P7_PART_OF_TERM.
    Condition Type
    Always
    I know that the correct values are in P7_TERM and P7_PART_OF_TERM.
    The values for the parameters are not being passed.This is the url that is generated:
    /f?p=140:1:8630493751232939289::NO::P1_SELECT_TERM,P1_SELECT_POT:%2C
    If I type the URL including the correct values for the parmeters the app functions correctly
    f?p=153:1:3185922380674823349::NO::P1_SELECT_TERM,P1_SELECT_POT:200701%2CF
    Any thoughts appreciated!
    Marie

    Marie,
    You may find this example usefull:
    http://htmldb.oracle.com/pls/otn/f?p=31517:48
    It also point to other threads where this kind of question has been answered.
    Denes Kubicek

  • Repost, since no answer in JSP-JSP/CascadingStyleSheet/Javascript problem

    Hello, I've got a JSP page that has included a Javascript (JS).
    In that JS, a Cascading Style Sheet (CSS) is included. Also on the JSP page, I have some code that makes use of the JS to create a Windows-style combobox, which is not available through raw HTML. The code is as follows:
    <BODY>
    <SCRIPT language="javascript" src="ComboBox.js"></SCRIPT>
    <SCRIPT language="javascript">
    dm=new ComboBox("dm")
    dm.add(
           new ComboBoxItem("barge",1),
           new ComboBoxItem("benluc",2),
           new ComboBoxItem("benlieeeeck",3),
           new ComboBoxItem("taco",4)
    </SCRIPT>
    <CENTER><H2>Choose Project S/O</H2><CENTER>
    <FORM METHOD=POST ACTION="">
    <% //DB connection to populate the combo box %>
    <% // Database Connection Parameters
        String DB = "dbname",
        query = "",
        HOST = "jdbc:postgresql://URL:5432/",
        ACCOUNT = "username",
        PASSWORD = "pwd",
        DRIVER = "org.postgresql.Driver";
        // authentication properties
        Properties props = new Properties();
        props.setProperty("user", ACCOUNT);
        props.setProperty("password", PASSWORD);
        // load driver and prepare to access
        Class.forName(DRIVER).newInstance();
        Connection con = DriverManager.getConnection(HOST + DB, props);
        Statement stmt = con.createStatement();
        try{
        query= "SELECT * FROM Projects ORDER BY Name";
        ResultSet rs = stmt.executeQuery(query);
    %>
    Project S/O:
    <SELECT NAME=projso>
    <option value="dummy">Choose one...</option>
    <% while (rs.next() ) { %>
    <OPTION VALUE="<%=rs.getString("Name") %>">
    <%=rs.getString("Name")%> ,   <%=rs.getString("Desc")%>
    </OPTION>
    <% } %>
    </SELECT>The problem I am experiencing is that if I move the 2nd SCRIPT tag anywhere but where it is, it makes IE bomb and takes me to an error page. The error message is as follows:
    "Internet Explorer cannot open site http://myURL. Operation aborted."
    Any ideas?
    Haig

    I tried making it static HTML with the same result.
    I took out all the JSP code before doing so, obviously.
    I think it has to do with my code and the HTML FORM tag.
    Anyway, here's the requested code, ComboBox.js
    *     ComboBox
    *     By Jared Nuzzolillo
    *     Updated by Erik Arvidsson
    *     http://webfx.eae.net/contact.html#erik
    *     2002-06-13     Fixed Mozilla support and improved build performance
    Global_run_event_hook = true;
    Global_combo_array    = new Array();
    Array.prototype.remove=function(dx)
        if(isNaN(dx)||dx>this.length){self.status='Array_remove:invalid request-'+dx;return false}
        for(var i=0,n=0;i<this.length;i++)
            if(this!=this[dx])
    this[n++]=this[i]
    this.length-=1
    function ComboBox_make()
    var bt,nm;
    nm = this.name+"txt";
    this.txtview = document.createElement("INPUT")
    this.txtview.type = "text";
    this.txtview.name = nm;
    this.txtview.id = nm;
    this.txtview.className = "combo-input"
    this.view.appendChild(this.txtview);
    this.valcon = document.createElement("INPUT");
    this.valcon.type = "hidden";
    this.view.appendChild(this.valcon)
    var tmp = document.createElement("IMG");
    tmp.src = "___";
    tmp.style.width = "1px";
    tmp.style.height = "0";
    this.view.appendChild(tmp);
    var tmp = document.createElement("BUTTON");
    tmp.appendChild(document.createTextNode(6));
    tmp.className = "combo-button";
         this.view.appendChild(tmp);
         tmp.onfocus = function () { this.blur(); };
         tmp.onclick = new Function ("", this.name + ".toggle()");
    function ComboBox_choose(realval,txtval)
    this.value = realval;
    var samstring = this.name+".view.childNodes[0].value='"+txtval+"'"
    window.setTimeout(samstring,1)
    this.valcon.value = realval;
    function ComboBox_mouseDown(e)
    var obj,len,el,i;
    el = e.target ? e.target : e.srcElement;
    while (el.nodeType != 1) el = el.parentNode;
    var elcl = el.className;
    if(elcl.indexOf("combo-")!=0)
    len=Global_combo_array.length
    for(i=0;i<len;i++)
    curobj = Global_combo_array[i]
    if(curobj.opslist)
    curobj.opslist.style.display='none'
    function ComboBox_handleKey(e)
    var key,obj,eobj,el,strname;
    eobj = e;
    key = eobj.keyCode;
    el = e.target ? e.target : e.srcElement;
    while (el.nodeType != 1) el = el.parentNode;
    elcl = el.className
    if(elcl.indexOf("combo-")==0)
    if(elcl.split("-")[1]=="input")
    strname = el.id.split("txt")[0]
    obj = window[strname];
    obj.expops.length=0
    obj.update();
    obj.build(obj.expops);
    if(obj.expops.length==1&&obj.expops[0].text=="(No matches)"){}//empty
    else{obj.opslist.style.display='block';}
    obj.value = el.value;
    obj.valcon.value = el.value;
    function ComboBox_update()
    var opart,astr,alen,opln,i,boo;
    boo=false;
    opln = this.options.length
    astr = this.txtview.value.toLowerCase();
    alen = astr.length
    if(alen==0)
    for(i=0;i<opln;i++)
    this.expops[this.expops.length]=this.options[i];boo=true;
    else
    for(i=0;i<opln;i++)
    opart=this.options[i].text.toLowerCase().substring(0,alen)
    if(astr==opart)
    this.expops[this.expops.length]=this.options[i];boo=true;
    if(!boo){this.expops[0]=new ComboBoxItem("(No matches)","")}
    function ComboBox_remove(index)
    this.options.remove(index)
    function ComboBox_add()
    var i,arglen;
    arglen=arguments.length
    for(i=0;i<arglen;i++)
    this.options[this.options.length]=arguments[i]
    function ComboBox_build(arr)
    var str,arrlen
    arrlen=arr.length;
    str = '<table class="combo-list-width" cellpadding=0 cellspacing=0>';
    var strs = new Array(arrlen);
    for(var i=0;i<arrlen;i++)
    strs[i] = '<tr>' +
                   '<td class="combo-item" onClick="'+this.name+'.choose(\''+arr[i].value+'\',\''+arr[i].text+'\');'+this.name+'.opslist.style.display=\'none\';"' +
                   'onMouseOver="this.className=\'combo-hilite\';" onMouseOut="this.className=\'combo-item\'" > '+arr[i].text+' </td>' +
                   '</tr>';
    str = str + strs.join("") + '</table>'
    if(this.opslist){this.view.removeChild(this.opslist);}
    this.opslist = document.createElement("DIV")
    this.opslist.innerHTML=str;
    this.opslist.style.display='none';
    this.opslist.className = "combo-list";
    this.opslist.onselectstart=returnFalse;
    this.view.appendChild(this.opslist);
    function ComboBox_toggle()
    if(this.opslist)
    if(this.opslist.style.display=="block")
    this.opslist.style.display="none"
    else
    this.update();
    this.build(this.options);
    this.view.style.zIndex = ++ComboBox.prototype.COMBOBOXZINDEX
    this.opslist.style.display="block"
    else
    this.update();
    this.build(this.options);
    this.view.style.zIndex = ++ComboBox.prototype.COMBOBOXZINDEX
    this.opslist.style.display="block"
    function ComboBox()
    if(arguments.length==0)
    self.status="ComboBox invalid - no name arg"
    this.name = arguments[0];
    this.par = arguments[1]||document.body
    this.view = document.createElement("DIV");
    this.view.style.position='absolute';
    this.options = new Array();
    this.expops = new Array();
    this.value = ""
    this.build = ComboBox_build
    this.make = ComboBox_make;
    this.choose = ComboBox_choose;
    this.add = ComboBox_add;
    this.toggle = ComboBox_toggle;
    this.update = ComboBox_update;
    this.remove = ComboBox_remove;
    this.make()
    this.txtview = this.view.childNodes[0]
    this.valcon = this.view.childNodes[1]
    this.par.appendChild(this.view)
    Global_combo_array[Global_combo_array.length]=this;
    if(Global_run_event_hook){ComboBox_init()}
    ComboBox.prototype.COMBOBOXZINDEX = 1000 //change this if you must
    function ComboBox_init()
         if (document.addEventListener) {
              document.addEventListener("keyup", ComboBox_handleKey, false );
              document.addEventListener("mousedown", ComboBox_mouseDown, false );
         else if (document.attachEvent) {
              document.attachEvent("onkeyup", function () { ComboBox_handleKey(window.event); } );
              document.attachEvent("onmousedown", function () { ComboBox_mouseDown(window.event); } );
    Global_run_event_hook = false;
    function returnFalse(){return false}
    function ComboBoxItem(text,value)
    this.text = text;
    this.value = value;
    document.write('<link rel="STYLESHEET" type="text/css" href="ComboBox.css">');
    If you would like me to post the code for the CSS, let me know.

  • Web.show_document  spaces in the URL problem

    Hi,
    I am using Web.Show_document to call the report from the form. Here some of the parameters having a spaces. It is giving a problem and report is not running. Pl guide me in this issue.
    Thanks & Regards,
    Gangi Reddy

    Try using %20 in place of the space in the URL.

  • URL problems when change application language to Spainish

    Using APEX 3.1.2
    Our application is usually in English. For a quick test we've changed the application language to Spainish through the 'Globalization' part of 'Shared Components'. Things look OK, the date pickers are showing the correct language and the NLS numeric characters are as expected - except... some page branches (from buttons, etc.) are no longer working correctly. It appears to be related to timestamps being passed across, they seem to be interpreted as multiple parameters!
    E.G. in the URL http://my_box/pls/apex/f?p=2000:5002:4461616080789919::NO:RP,5002:P5002_CALLING_PAGE,P5002_TS,P5002_ID,P5002_DT:5001%2C10-DIC-09%2006.00.00%2C000000%2C181618172273744521291303312596297592589%2C10-DIC-2009&cs=392CF7A0393244530EC469114C4996A8E
    the fractional seconds of the parameter P5002_TS is being received by the third parameter, P5002_ID, etc.
    What am I doing wrong?

    Andy Hardy wrote:
    Using APEX 3.1.2
    Our application is usually in English. For a quick test we've changed the application language to Spainish through the 'Globalization' part of 'Shared Components'. Things look OK, the date pickers are showing the correct language and the NLS numeric characters are as expected - except... some page branches (from buttons, etc.) are no longer working correctly. It appears to be related to timestamps being passed across, they seem to be interpreted as multiple parameters!
    E.G. in the URL http://my_box/pls/apex/f?p=2000:5002:4461616080789919::NO:RP,5002:P5002_CALLING_PAGE,P5002_TS,P5002_ID,P5002_DT:5001%2C10-DIC-09%2006.00.00%2C000000%2C181618172273744521291303312596297592589%2C10-DIC-2009&cs=392CF7A0393244530EC469114C4996A8E
    the fractional seconds of the parameter P5002_TS is being received by the third parameter, P5002_ID, etc.
    What am I doing wrong?Even more confused now!
    Just created a quick test app: table has timestamp, number and varchar2 fields - another number field is used for the primary key and has a matching sequence. Populated the table with various acceptable values. Created two pages using form-with-report wizard - changed all fields to 'text' to get rid of problems with datepickers not liking timestamps. Created another page with an HTML region containing items to match those on the form. Used button wizard to add a 'go' button on the form page to go to the HTML page, modified the branch to populate the HTML region items with those from the form.
    Run the report page, see the expected results, 'edit' to go to the form page, see the expected values. Press the 'go' button, goes the HTML page... the timestamp field is not populated correctly - the value is truncated at the fractional sections part i.e. where the '.' would be. Depending on where the timestamp appears in the URL, the following items will also not be populated. For example, here:
    http://loordv01.ad.dom/pls/apex/f?p=115:2:4046922604148424::NO::P2_TS,P2_ID,P2_VAL1,P2_VAL2:10-DEC-2009%2000:00&success_msg=Action%20Processed.%2F6E98BFC3726F8950ADF64DADBB5E0A87%2F
    The timestamp is the first field on the URL and none of the other values appear...
    I seem to be able to workaround this by having a PL/SQL process that just sets the called screen TS value directly i.e :P4_TS = :P2_TS - any pitfalls with this approach?

  • URL Problem Oracle 10g Forms and Reports

    Hello Room,
    As this question is related to forms and reports both, I have posted it here. I have a system which needs to be deployed in Local Lan Network and also the same Local Lan user should be able to access the same application via internet. In Addition there are also suppliers, customers who dosen't have oracle installed but will be accessing forms and reports via the url through internet which will be a natted url to our public IP. I have loaded Oracle 11g on windows 7 and all my network clients are on windows 7. I have not loaded forms and reports 10g on server, but only database 11g is installed on server. My problem is listed in points below:-
    1. Do I need to install forms and reports on server to achieve the above scenario ? or the local network installation of forms and reports on all client PC's will do ?
    2. To start OC4J instance, shall i start it only on server through batch file while booting server, or it needs to be started on all client PC's to start work from client end ?
    3. When i run forms from my client PC I get local url http://127.0.0.1/ to reach forms servlet which end up in http://localpc/.... from cookie redirect, whether this needs to be http://server/...... on all client PC's to reach the forms servlet ?
    4. If I have to start url http://server/ instead of http://127.0.0.1/... automatically while running every form to reach forms servlet, how to achieve this ?
    5. There are reports to be run from forms and parameters needs to be passed in reports from forms 10g. So in web.show_document shall i refer to absolute url for local acccess or http://server url as the same user can go to internet to access the data. ?
    6. if I load forms and reports 10g on server, do I need to install forms and reports on client end seperately to gain access in local network ?
    7. My forms and reports folders are located on server which are shared for access.
    8. What will be the scenario in case of suppliers and customers who does not have anything installed on their PC and will access forms and reports through internet ?
    I want to minimize my work. Please suggest me how to proceed about accessing forms, passing url from forms to reports in web.show_document, and Internet access url ?
    Your help is highly appreciated. Thank you in advance.

    I have tried to explain you in decent way several times that I am not lazy and there are reasons that I do not want to read pdf, because I have already read that all ! In the future please do not respond to my thread. I am not asking for your personal time. If you do not understand my efforts. Just ignore it. I have read all the white papers of Oracle and give me your email id, I will send you all the code which I have read or downloaded. You should know that the knowledge diminish as the technology change. And that does not mean every user in the forum is stupid and as wise as you are. I repeat to state that I have 15 years of experience in Oracle forms 6i._ including Oracle 7,8,9i. This is the first time I am ever visiting oracle forums since past several years. I was the first person to use oracle 7 in my city where people were not knowing what oracle is. At that time I was knowing that the password for scott is tiger which even the reputed institutes in my city was not knowing. at that time I was also knowing that one of the person from oracle made a mistake in indexing the rowid. I think this should be enough to you for now.

  • Jsp-servlet-bean problem

    Please help!
    I have a servlet controller, a javabean for the data and a jsp for the view.
    I cannot get the jsp using
    <jsp:useBean id="pList" class="bbs.PostListCommand" scope="request" />
    to access the bean data
    However, when I access the bean in this way
    <%@ page import="bbs.PostListCommand" %>
    // html
    <% bbs.PostListCommand postList = null;
    synchronized(session){
         postList = (bbs.PostListCommand) session.getAttribute("PostListCommand");
         if (postList == null){ %>
              <H1>Nothing in request scope to retrieve ....</H1>
              <P>
    <%     }
         else{  %>
              <TABLE border="1">
    // etc
    � it works
    Does anyone know why the <jsp:useBean> tag does not find the bean
    I have installed tomcat 4.18 and set the environmental variables etc.
    Directory structure is
    E:\Tomcat41\webapps\examples\WEB-INF\jsp          for jsp�s
    E:\Tomcat41\webapps\examples\WEB-INF\classes\bbs     for bean and servlets
    Thanks in advance for any help.
    Chris

    GrayMan - Thanks for your help.
    Let me explain my problem in more detail ...
    Background:
    I have some servlet experience, but I am new to jsp - so sorry if this seems trivial to you ...
    I have a book called bitter java by bruce tate from manning.com . I am trying to get the chapter 3 examples to work
    There are three files
    PostListCommand          the bean
    PostListController     the servlet
    PostListResults          jsp
    And a new test file � PostListResults version 2 with scriptlet code to access the bean.
    There are a couple of typos in the downloaded source files, but nothing that causes the main problem of not being able to access the bean data.
    Program flow
    Servlet instantiates new bean
    Bean � gets data from db
    Servlet passes bean to jsp with a forward
    Jsp outputs data
    I have put the files in the directories �
    E:\Tomcat41\webapps\examples\WEB-INF\jsp          for jsp�s
    E:\Tomcat41\webapps\examples\WEB-INF\classes\bbs     for bean and servlets
    The complete source code for each file is given below.
    1 I have checked the db access � that�s ok
    2 I have also checked reading the bean data back in from the request scope and printing out the results from within the servlet.- ok
    3 I can access the data through a scriptlet (PostListResults version 2), but not with the original PostListResults which uses <jsp:useBean>
    thanks in advance, chris
    PostListController.java
    package bbs;
    // Imports
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    // Import for commands used by this class
    import bbs.PostListCommand;
    public class PostListController
    extends javax.servlet.http.HttpServlet
    implements Serializable {
    * DoGet
    * Pass get requests through to PerformTask
    public void doGet(
    HttpServletRequest request,
    HttpServletResponse response)
    throws javax.servlet.ServletException, java.io.IOException {
    performTask(request, response);
    public void performTask(
    HttpServletRequest request,
    HttpServletResponse response) {
    try {
    PostListCommand postList = (bbs.PostListCommand) java.beans.Beans.instantiate(getClass().getClassLoader(),"bbs.PostListCommand");
    postList.initialize();
    postList.execute();
    request.setAttribute("PostListCommand", postList);
    ServletContext sc = this.getServletContext();
    RequestDispatcher rd =
    sc.getRequestDispatcher("/jsp/PostListResults.jsp");
    rd.forward(request, response);
    } catch (Throwable theException) {
    theException.printStackTrace();
    PostListCommand.java
    package bbs;
    import java.io.*;
    import java.sql.*;
    //import COM.ibm.db2.jdbc.*;
    import java.util.*;
    * Insert the type's description here.
    * Creation date: (07/17/2001 5:07:55 PM)
    * @author: Administrator
    public class PostListCommand {
    // Field indexes for command properties     
    private static final int SUBJECT_COLUMN = 1;
    private static final int AUTHOR_COLUMN = 2;
    private static final int BOARD_COLUMN = 3;
    protected Vector author = new Vector();
    protected Vector subject = new Vector();
    protected Vector board = new Vector();
    // SQL result set
    protected ResultSet result;
    protected Connection connection = null;
    * execute
    * This is the work horse method for the command.
    * It will execute the query and get the result set.
    public void execute()
    throws
    java.lang.Exception,
    java.io.IOException {
    try {
    // retrieve data from the database
    Statement statement = connection.createStatement();
    result =
    statement.executeQuery("SELECT subject, author, board from posts");
    while (result.next()) {
    subject.addElement(result.getString(SUBJECT_COLUMN));
    author.addElement(result.getString(AUTHOR_COLUMN));
    board.addElement(result.getString(BOARD_COLUMN));
    result.close();
    statement.close();
    } catch (Throwable theException) {
    theException.printStackTrace();
    * getAuthor
    * This method will get the author property.
    * Since the SQL statement returns a result set,
    * we will index the result.
    public String getAuthor(int index)
    throws
    java.lang.IndexOutOfBoundsException,
    java.lang.ArrayIndexOutOfBoundsException {
    return (String) author.elementAt(index);
    * getBoard
    * This method will get the board property.
    * Since the SQL statement returns a result set,
    * we will index the result.
    public String getBoard(int index)
    throws
    java.lang.IndexOutOfBoundsException,
    java.lang.ArrayIndexOutOfBoundsException {
    return (String) board.elementAt(index);
    * getSubject
    * This method will get the subject property.
    * Since the SQL statement returns a result set,
    * we will index the result.
    public String getSubject(int index)
    throws
    java.lang.IndexOutOfBoundsException,
    java.lang.ArrayIndexOutOfBoundsException {
    return (String) subject.elementAt(index);
    * initialize
    * This method will connect to the database.
    public void initialize()
    throws java.io.IOException {
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
    // URL is jdbc:db2:dbname
    String url = "jdbc:db2:board";
    // URL is jdbc:odbc:bitter3board
    String url = "jdbc:odbc:bitter3board";
    // connect with default id/password
    connection = DriverManager.getConnection(url);
    } catch (Throwable theException) {
    theException.printStackTrace();
    * Insert the method's description here.
    * Creation date: (07/17/2001 11:38:44 PM)
    * @return int
    * @exception java.lang.IndexOutOfBoundsException The exception description.
    public int getSize() {
    return author.size();
    PostListResults.jsp
    <HTML>
    <HEAD>
    <TITLE>Message Board Posts</TITLE>
    </HEAD>
    <BODY BGCOLOR=#C0C0C0>
    <H1>All Messages</H1>
    <P>
    <jsp:useBean id="postList" class="bbs.PostListCommand" scope="request"></jsp:useBean>
    <TABLE border="1">
    <TR>
    <TD>Subject</TD>
    <TD>Author</TD>
    <TD>Board</TD>
    </TR>
    <% for (int i=0; i < postList.getSize(); _i++) { %>
    <TR> <TD><%=postList.getSubject(_i) %></TD>
    <TD><%=postList.getAuthor(_i) %></TD>
    <TD><%=postList.getBoard(_i) %></TD>
    </TR>
    <% } %>
    </TABLE>
    <P>
    </BODY>
    </HTML>
    PostListResults.jsp version 2 � with scriplet code instead of useBean
    <HTML>
    <%@ page import="bbs.PostListCommand" %>
    <!-- This file was generated by the chris -->
    <HEAD>
    <TITLE>Message Board Posts</TITLE>
    </HEAD>
    <BODY BGCOLOR=#C0C0C0>
    <% bbs.PostListCommand postList = null;
    synchronized(request){
         postList = (bbs.PostListCommand) request.getAttribute("PostListCommand");
         if (postList == null){ %>
              <H1>Nothing in request scope to retrieve ....</H1>
              <P>
    <%     }
         else{  %>
              <TABLE border="1">
              <TR>
              <TD>Subject</TD>
              <TD>Author</TD>
              <TD>Board</TD>
              </TR>
         <% for (int i=0; i < postList.getSize(); _i++) { %>
                   <TR> <TD><%=postList.getSubject(_i) %></TD>
              <TD><%=postList.getAuthor(_i) %></TD>
              <TD><%=postList.getBoard(_i) %></TD>
              </TR>
         <% } %>
              </TABLE>
    <%     }
    }%>
    <P>
    goodnight
    </BODY>
    </HTML>

  • JSP Mysql Connection Problem

    Hi Friend,
    I am facing some problem in connecting mysql with jsp .
    When I try and connect to mysql with the following connection string
    Class.forName("org.gjt.mm.mysql.Driver").newInstance();
    Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/testdhiraj?user=root&password=dh");
    Statement statement     = con.createStatement();
    I get an error :
    java.sql.SQLException: Communication link failure: Bad handshake
    I don't know what is wrong,
    as I had tested mysql using telnet and it connects and executes sql nicely.
    Waiting for ur reply,
    Dhiraj Agrawal
    mail to : [email protected]

    Hi,
    You need to make sure that , you have given correct database name, user id and password in the connection url. and also check the jdbc driver is loaded properly. If your mysql is running in the standard port, you need not give the port as 3306.
    Here is the example :
    import java.sql.*;
         Notice, do not import org.gjt.mm.mysql.*
    or you will have problems!
    public class XampleClass
    public static void main(String[] Args)
    try {      
    Class.forName("org.gjt.mm.mysql.Driver").newInstance();
    catch (Exception e) {
    System.err.println("exception while loading
    driver.");
    e.printStackTrace();
    try {
    Connection C = DriverManager.getConnection(
    "jdbc:mysql://localhost/test?user=myuser&password=mypwddb");
    // Do something with the Connection
    catch (SQLException e) {
    System.out.println("Exception: " + e);
    This is the format for conenction url :
    jdbc:mysql://[hostname][:port]/dbname[?param1=value1][&param2=value2]...
    Hope this helps you.
    Thanks,
    Senthil_Slash

  • Jsp bean:setvalue problem

    i use bean in my jsp page.but the problem is that i didn't get the value.i doubt whether the value actully passed to data.my bean is follows:
    package abc;
    public class hai
    private int a;
    public void sethai(int x)
    a=x;
    public int gethai()
         return a;
    my files are as follows
    1) simple.html
    <html>
    <head>
    </head>
    <body>
    <form action="simple1.jsp" method="post" name="form1" target="_self">
    Number:<input name="num" type="text"><br>
    <input name="sub" type="submit" value="sub"></form>
    </body>
    </html>
    2)simple1.jsp
    <html>
    <head></head>
    <%@ page import="abc.*" errorPage="" %>
    <jsp:useBean id="obj" class="abc.hai" scope="session">
    <jsp:setProperty name="obj" property="*"/>
    </jsp:useBean>
    <% out.println(request.getParameter("num"));%>
    <body>number:
    <jsp:getProperty name="obj" property="hai" />
    </body>
    </html>
    the output i got is the value 0
    pls replay me

    Hi Marty,
    Here is my portalapp.xml file:
    <?xml version="1.0" encoding="utf-8"?>
    <application>
      <application-config>
        <property name="PrivateSharingReference" value="com.sap.portal.htmlb"/>
        <property name="SharingReference" value="htmlb"/>
      </application-config>
      <components>
        <component name="DynPageOne">
          <component-config>
            <property name="ClassName" value="com.mycompany.basicexample.DynPageOne"/>
            <property name="SecurityZone" value="com.mycompany.basicexample.DynPageOne/low_safety"/>
          </component-config>
          <component-profile>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
            <property name="com.sap.portal.reserved.iview.IsolationMode" value="URL"/>
          </component-profile>
        </component>
      </components>
      <services/>
    </application>
    I also created a getter method in my bean to return a static value and that value is returned correctly.  Any more ideas?

Maybe you are looking for

  • Can i upgrade hard drive mac book pro 15" 2014

    Hi need to know basis can i upgrade my mac book pro 15" mid 2014 flash drive?

  • Account 123456 requires an assignment to a CO object

    Dear all, We want to do a manual posting into the Excise Duty on Sales G/l through F-02 but system is throwing an error Account 123456 requires an assignment to a CO object even if give a cost center then also the problem exists.We have maintained De

  • File Read and Byte Conversion Efficiency

    Im working on a program that needs to store WAV data. 2 unsigned bytes Little Endian -> signed Short this is my code: fis = new BufferedInputStream(new FileInputStream(file), 1764000); for(int x = 0; x < wav.samples; x++){ fis.read(byte2); wav.left[i

  • QM - Data transfer

    Dear all            Shall I use the SPRO -QM entries in the IDES client as such ( for example those entries corresponding to Plant 1000 in the plant level settings) during the Quality Server run stage. Because many of the entries are standard entries

  • Character Mode Reports 11g

    Hello, we are upgrading to 11g, and all our reports are character mode formatted via .prt files, since character mode reports cannot be generated in pdf format, we don`t know how to access the reports, because we have dot matrix printers and the pdf