Results 1 to 2 of 2

Thread: Plz Help Me Out

  1. #1
    sat_theindian is offline Member
    Join Date
    Mar 2008
    Posts
    1
    Rep Power
    0

    Default Plz Help Me Out

    I am new to java and am doing some modification on a web page.In one of the web page i have to create 3 listboxes nd populate them with data from database.In one of the listbox i have to select multiple items and correspondigly the other listbox should be populated.My problem is that when i am making multiple selection only some of the data is coming and also there is gap between the data.Here is the code
    <HTML>
    <HEAD>
    <TITLE>Case Study Portal</TITLE>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
    <link rel="stylesheet" type="text/css" href="./casestudy.css" title="Default" />
    <script LANGUAGE="Javascript" SRC="./calender.js"></script>
    <script LANGUAGE="Javascript" SRC="./Validate.js"></script>

    <jsp:useBean id="loginBean" class="com.bcm.beans.LoginBean" scope="session" />

    <Script Language="JavaScript">

    //Function called when Start Date is selected
    function fnStartDate(e)
    {
    fnCalendar(e);
    dtToday = new Date();
    monthName = new Array ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug"," Sep","Oct","Nov","Dec")

    var dtTDate = dtToday.getDate()+"-"+monthName[dtToday.getMonth()]+"-"+dtToday.getYear();
    var dtSDate = document.editForm.strStartDate.value;

    }//End of fnStartDate

    //Function called when End Date is selected
    function fnEndDate(e)
    {
    fnCalendar(e);
    var dtSDate = document.editForm.strStartDate.value;
    var dtEDate = document.editForm.strEndDate.value;
    if(dtEDate!="" && dtSDate=="")
    {
    alert("Please enter the start date first");
    document.editForm.strEndDate.value = "";
    }

    else if(dtEDate == dtSDate)
    {
    }

    else if(dtEDate!="" && fnCompareDates(dtEDate,dtSDate))
    {
    alert("Project's end date can not be less than project's start date");
    document.editForm.strEndDate.value = "";
    }

    }//End of fnEndDate
    </SCRIPT>


    <Script Language="JavaScript">
    <%
    vert Verticals1 = new vert();
    vert subVerticals1 = new vert();
    String [] arrStrVerticals1=Verticals1.getAllVerticals();
    for ( int iIcount=0;iIcount<arrStrVerticals1.length;iIcount+ +)
    {
    out.print("Vertical" + iIcount + " = new Array(\"" );
    String [] arrStrSubVerticals1=subVerticals1.getAllSubVertica ls(arrStrVerticals1[iIcount]);
    for (int iJcount=0;iJcount<arrStrSubVerticals1.length;iJcou nt++)
    {
    out.print (arrStrSubVerticals1[iJcount] + "\"," + "\"" + arrStrSubVerticals1[iJcount] + "\"");
    if ( iJcount!=arrStrSubVerticals1.length-1)
    out.print(",\"");
    }
    if(arrStrSubVerticals1.length<1)
    out.print(" \",\" \"");
    out.println(");");
    }
    %>
    <%
    vert Vert = new vert();
    vert subvert = new vert();
    vert funcs = new vert();

    String [] arrStrVert=Vert.getAllVerticals();
    for(int iMcount=0;iMcount<arrStrVert.length;iMcount++)
    {
    String [] arrStrsubvert=subvert.getAllSubVerticals(arrStrVer t[iMcount]);

    for ( int iKcount=0;iKcount<arrStrsubvert.length;iKcount++)
    {
    out.print("SubVertical" +iMcount+ iKcount + " = new Array(\"" );
    String [] arrStrfuncs=funcs.getAllFunctions(arrStrVert[iMcount],arrStrsubvert[iKcount]);
    for (int iLcount=0;iLcount<arrStrfuncs.length;iLcount++)
    {
    out.print (arrStrfuncs[iLcount] + "\"," + "\"" + arrStrfuncs[iLcount] + "\"");
    if ( iLcount!=arrStrfuncs.length-1)
    out.print(",\"");
    }
    if(arrStrfuncs.length<1)
    out.print(" \",\" \"");
    out.println(");");
    }
    }


    String strUserId_log = loginBean.getStrUserId();
    String strIP_log=request.getRemoteAddr();
    String pageName_log ="frmUploadProjDet.jsp";
    String action_log = "visited";

    Loginfo store = new Loginfo();
    store.log(strUserId_log,strIP_log,pageName_log,act ion_log);


    %>

    var verticalNo = 0;




    function fillSelSubVertical(selObj,target)
    {
    var i = j = 0;
    var newItem;
    var src;
    var srcName = "";

    for (i = 0; i < selObj.length; i++)
    if (selObj.options[i].selected)
    {
    srcName = "Vertical"+(i-1);
    verticalNo = i-1;

    }
    src = eval(srcName);
    with (target)
    {
    options.length = 0;
    newItem=options.length;
    options[newItem] = new Option(" ");
    options[newItem].value = "";
    for (i = 0; i < src.length; i++)
    {
    newItem = options.length;
    options[newItem] = new Option(src[i]);
    options[newItem].value = src[i+1];
    i++;
    }
    options[0].selected = true;
    }
    }

    function calltemp()
    {
    var strtmp = document.editForm.strSubVertical.selectedIndex;
    var value = document.editForm.strSubVertical.options[strtmp].value;

    //alert(value);

    return true;
    }

    function fillSelFunction(selObj,target)
    {
    var i = j = 0;
    var newItem = 0;
    var src = "";
    var srcName = new Array();
    var listlength = 0;
    var flag = 0;
    var count = 0;



    // to clear the list box every time a selection is made
    for (var i=target.options.length-1; i>=0; i--){
    target.options[i] = null;
    }
    target.selectedIndex = -1;


    // gets the multiple selections from the sub vertical list box
    for (i = 0; i < selObj.length; i++)
    if (selObj.options[i].selected)
    {
    srcName[j] = new Object;
    srcName[j++] = "SubVertical"+ verticalNo + (i-1);
    }
    j--;


    // for every selection made in the sub vertical list box the functions are queried
    while( j >= 0 ) {
    src = eval(srcName[j--]);

    with (target)
    {
    // options.length = 0;

    //to display a blank option at the beginning
    if( flag = 0)
    {
    options[count] = new Option(" ");
    options[count].value = "";
    flag = 1;
    }

    listlength += src.length;

    // populating the functions list box with values
    for (i = options.length ; i < listlength; i++)
    {

    count = options.length; // increment for each entry in functions list box
    options[count] = new Option(src[i]);
    options[count].value = src[i+1];
    i++;
    }

    count = options.length ;
    }
    }
    options[0].selected = true;
    }

    function doSel(selObj)
    {
    for (i = 1; i < selObj.length; i++)
    if (selObj.options[i].selected)
    location.href = selObj.options[i].value;
    }

    </script>


    <%! PPTDisplay pptDisplay=new PPTDisplay(); %>



    <jsp:useBean id="uploadBean" class="com.bcm.beans.BCMPProjectsBean" />
    <jsp:setProperty name="uploadBean" property="*" />

    <script language="Javascript">

    function dispTextbox(selObj)
    {
    if (selObj.value=="Case study not required")
    {
    document.getElementById('input1').style.display = 'inline';
    editForm.strReason.select();
    alert(" Please enter the reason as to why the Case Study is not required");
    }
    else
    {
    document.getElementById('input1').style.display = 'none';
    }
    }
    </script>

    <SCRIPT language=JavaScript src="styles/datecall.js">
    </SCRIPT>

    <!-- this is get a dropdown for verticals and sub-verticals-->
    <%!
    HashMap hmVertical = new HashMap();
    public void jspInit(){
    try{

    Connection ConnDB = ConnectionManager.getConnection();

    Statement stVer=ConnDB.createStatement();
    Statement stSubVer=ConnDB.createStatement();
    Statement stFun=ConnDB.createStatement();

    ResultSet rsVertical;
    ResultSet rsSubVertical;
    ResultSet rsFunction;


    rsVertical = stVer.executeQuery("select distinct Vertical from BCMP_Verticals");

    String strVertical = null;
    while( rsVertical != null && rsVertical.next() ){

    strVertical = rsVertical.getString( 1 );

    rsSubVertical = stSubVer.executeQuery("select distinct SubVertical from BCMP_Sub_Verticals where Vertical = '" + strVertical + "'");
    HashMap hmSubVertical = new HashMap();

    String strSubVertical = null;
    while( rsSubVertical != null && rsSubVertical.next() ){

    strSubVertical = rsSubVertical.getString( 1 );

    rsFunction = stFun.executeQuery("select distinct Functions from BCMP_Functions where SubVertical = '" + strSubVertical + "'");

    int iNoOfRows=0;

    if( rsFunction != null && rsFunction.last() )
    iNoOfRows = rsFunction.getRow();

    rsFunction.beforeFirst();

    String [] arrStrFunctions= new String[ iNoOfRows ];
    int iLoopCount = 0;
    while( rsFunction != null && rsFunction.next() ){

    arrStrFunctions[ iLoopCount ] = rsFunction.getString( 1 );
    iLoopCount++;
    }

    hmSubVertical.put( strSubVertical, arrStrFunctions);
    ConnectionManager.closeResource( rsFunction );
    }

    hmVertical.put( strVertical, hmSubVertical);
    ConnectionManager.closeResource( rsSubVertical );
    }
    ConnectionManager.closeResource( rsVertical );

    ConnectionManager.closeResource(stFun);
    ConnectionManager.closeResource(stSubVer);
    ConnectionManager.closeResource(stVer);

    ConnectionManager.closeResource(ConnDB);

    }catch( Exception e ){
    e.printStackTrace();
    }

    }
    public String[] getAllVerticals(){

    Set setVertical = hmVertical.keySet();
    Iterator itVertical = setVertical.iterator();

    String[] arrStrVertical = new String[ setVertical.size() ];
    int iLoopCounter = 0;
    while( itVertical.hasNext()){

    arrStrVertical[ iLoopCounter ] = (String)itVertical.next();
    iLoopCounter++;
    }
    return arrStrVertical;
    }
    public String[] getAllSubVerticals( String strVertical ){

    if( strVertical !=null) {

    HashMap hmSubVertical = (HashMap)hmVertical.get( strVertical );

    Set setSubVertical = hmSubVertical.keySet();
    Iterator itSubVertical = setSubVertical.iterator();

    String[] arrStrSubVertical = new String[ setSubVertical.size() ];
    int iLoopCounter = 0;
    while( itSubVertical.hasNext()){

    arrStrSubVertical[ iLoopCounter ] = (String)itSubVertical.next();
    iLoopCounter++;
    }
    return arrStrSubVertical;
    }
    else
    return null;
    }
    public String[] getAllFunctions( String strVertical, String strSubVertical ){

    if( strVertical != null && strSubVertical!=null){
    HashMap hmSubVertical = (HashMap)hmVertical.get( strVertical );

    String[] arrStrFunction = (String[])hmSubVertical.get( strSubVertical );

    return arrStrFunction;
    }
    else
    return null;
    }
    %>

    <META http-equiv=Content-Type content="text/html; charset=iso-8859-1">

    </HEAD>

    <BODY bgcolor=#FFFFFF leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>
    <table width="1024" border="0" cellpadding="0" cellspacing="0" bordercolor="#BEBEBE" bgcolor="#FFFFFF">
    <tr colspan=4>
    <jsp:include page="./Header.jsp" />
    </tr>
    <tr colspan=4>
    &nbsp;
    </tr>
    <tr>
    <td width="165" bordercolor="#666699" valign="top">
    <jsp:include page="./Login.jsp" />
    <jsp:include page="./Left.jsp" />
    </td>
    <td width="10">
    &nbsp;
    </td>
    <td width="823" valign="top">


    <!--<META HTTP-EQUIV="Expires" CONTENT="Fri, Jan 01 1900 00:00:00 GMT">
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> -->

    <script>
    function uploadPPT()
    {
    editForm.submit();
    }
    </script>

    <%
    session.putValue("upl_pro_code",request.getParamet er("strProjectCode"));
    %>

    <form name="editForm" method="POST" action="frmUploadProjDet.jsp" >

    <%
    if(request.getParameter("UploadDetails") != null && request.getParameter("UploadDetails").equals("uplo addetails"))
    {
    //SimpleDateFormat formatter = new SimpleDateFormat("dd-mm-yyyy");
    //editForm.strEndDate.value=formatter.format(editFor m.strEndDate.value);
    //System.out.println(editForm.strEndDate.value);
    //editForm.strStartDate.value=formatter.format(editF orm.strStartDate.value);
    //System.out.println(editForm.strStartDate.value);
    String strFinalRemarks = null;
    //System.out.println(request.getParameter("strWorthC aseStudy")+ "hello");
    String strWorthCaseStudy = request.getParameter("strWorthCaseStudy");
    String strConstant = "Case study not required";
    if((strConstant).equals(strWorthCaseStudy))
    {
    System.out.println("Concatenating the remarks and reason");
    strFinalRemarks = request.getParameter("strRemarks") + " " + loginBean.getStrUserId() + " " + request.getParameter("strReason");

    }
    System.out.println(strFinalRemarks);
    ManageProject manageProject = new ManageProject();
    BCMPProjectsBean [] arrBCMPProjectsBeanTemp = new BCMPProjectsBean[1];
    arrBCMPProjectsBeanTemp[0] = uploadBean;


    SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
    Date dtSD= new Date(arrBCMPProjectsBeanTemp[0].getStrStartDate());
    String strDate=formatter.format(dtSD);

    arrBCMPProjectsBeanTemp[0].setStrStartDate(strDate);

    dtSD= new Date(arrBCMPProjectsBeanTemp[0].getStrEndDate());
    strDate=formatter.format(dtSD);


    arrBCMPProjectsBeanTemp[0].setStrEndDate(strDate);



    String[] strFuncTmp = null;
    strFuncTmp = request.getParameterValues("strSubVertical");

    String strFuncList = ""; //"hari" + "#" + "haran";

    for( int z = 0; z < strFuncTmp.length; z++ )
    {
    strFuncList = strFuncList + "#" + strFuncTmp[z];
    }



    String[] strSubVerTmp = null;
    strSubVerTmp = request.getParameterValues("strFunctions");

    String strSubVerList = ""; // "hari" + "#" + "haran";

    for( int z = 0; z < strSubVerTmp.length; z++ )
    {
    strSubVerList = strSubVerList + "#" + strSubVerTmp[z];
    }

    arrBCMPProjectsBeanTemp[0].setStrSubVertical(strSubVerList);
    arrBCMPProjectsBeanTemp[0].setStrFunctions(strFuncList);









    if((strConstant).equals(strWorthCaseStudy))
    {
    arrBCMPProjectsBeanTemp[0].setStrRemarks(strFinalRemarks);
    System.out.println("Updated the final remarks");
    }



    manageProject.addProject( arrBCMPProjectsBeanTemp );
    System.out.println("upload done"); %>
    <script language=JavaScript>
    alert("The Project Details have been uploaded successfully");
    document.editForm.action="/bcm_casestudy/frmUploadCaseStudy.jsp";
    document.editForm.submit();


    </script>
    <% Login login = new Login(loginBean);
    if(session.getValue("designation")=="Reviewer")
    { %>
    <script language=JavaScript>
    document.editForm.action="/bcm_casestudy/viewServlet?queryType=18";
    document.editForm.submit();
    </script>
    <%}
    else if(session.getValue("designation")=="Others")
    {%>
    <script language=JavaScript>
    document.editForm.action="/bcm_casestudy/viewServlet?queryType=15";
    document.editForm.submit();
    </script>
    <% }
    else if(session.getValue("designation")=="DM")
    { %>
    <script language=JavaScript>
    document.editForm.action="/bcm_casestudy/viewServlet?queryType=11";
    document.editForm.submit();
    </script>
    <% }
    else if(session.getValue("designation")=="PM")
    { %>
    <script language=JavaScript>
    document.editForm.action="/bcm_casestudy/viewServlet?queryType=12";
    document.editForm.submit();
    </script>
    <% }
    else
    {
    }


    }


    %>

    <DIV align=center>
    <CENTER>
    <TABLE cellSpacing=0 cellPadding=0 width="800" border=0 height="611">
    <TBODY>



    <tr>
    <TD vAlign=top align=left width="100%" bgColor=#ffffff height="100%">
    <DIV STYLE="overflow: auto; width: 100%; height: 100%" >
    <table border="2" cellspacing="0" cellpadding="0" width="100%" height="1308" bordercolor="#C5C3C5">
    <tr>
    <td width="5%" class="mtd" height="17">&nbsp;&nbsp;<IMG src="images/headerbullet.jpg">
    </td>
    <td width="45%" class="mtd" height="17">SUBMIT NEW
    PROJECT DETAILS&nbsp;&nbsp;</td>
    <td width="50%" class="mtd" height="17"><i><%=loginBean.getStrUserId()%></i></td>
    </tr>
    <tr>
    <td width="37%" class="lrow" colspan="2" height="24">Current
    Delivery Manager&nbsp;*</td>
    <td width="63%" class="lrow" height="24">&nbsp;<select name = "strCurrentDM">
    <%
    DbOperations dbOperations_rev = new DbOperations();
    String strproj_rev = "select Distinct CurrentDM from BCMP_Projects1 order by CurrentDM asc";
    ResultsPlusConnection rPCVertical_rev = dbOperations_rev.getData(strproj_rev);
    ResultSet rsVertical_rev = rPCVertical_rev.getResultSet();
    while(rsVertical_rev.next())
    {
    %>

    <option><%=rsVertical_rev.getString(1)%></option>

    <%
    }
    ConnectionManager.closeResource(rsVertical_rev);
    ConnectionManager.closeResource(rPCVertical_rev.ge tDbConnection());
    %>

    </select>

    </td>
    </tr>
    <tr>
    <td width="37%" class="drow" colspan="2" height="24">Delivery
    Manager When Project Implemented&nbsp;*<font color="red">(Mail Id)</font></td>
    <td width="63%" class="drow" height="24">&nbsp;<input name="strDM" ></td>

    </tr>
    <tr>
    <td width="37%" class="lrow" colspan="2" height="24">Client</td>
    <td width="63%" class="lrow" height="24">&nbsp;<input name="strClientName" style="text-transform:uppercase"></td>
    </tr>
    <tr>
    <td width="37%" class="drow" colspan="2" height="24">BCM-CS Anchor</td>
    <td width="63%" class="drow" height="24">&nbsp;<select name="strBCMCSAnchor" >
    <%
    ResultsPlusConnection rPCcsp = null;
    DbOperations dbOperations1 = new DbOperations();
    rPCcsp = dbOperations1.getData("select distinct(Reviewer_ID) from BCMP_Reviewers order by Reviewer_ID");
    ResultSet rsResultSet =rPCcsp.getResultSet();
    while(rsResultSet.next())
    {
    if(rsResultSet.getString(1).equals("sanjay_taneja" ))
    out.println("<option selected value='" + rsResultSet.getString(1) + "' > " + rsResultSet.getString(1) + "</option>" );
    else
    out.println("<option value='" + rsResultSet.getString(1) + "' > " + rsResultSet.getString(1) + "</option>" );
    }
    ConnectionManager.closeResource(rsResultSet);
    ConnectionManager.closeResource(rPCcsp.getDbConnec tion());
    %>
    </td>
    </tr>
    <tr>
    <td width="37%" class="lrow" colspan="2" height="24">Project Code&nbsp;*</td>
    <td width="63%" class="lrow" height="24">&nbsp;<input id="strProjectCode" name="strProjectCode" style="text-transform:uppercase"></td>
    </tr>
    <tr>
    <td width="37%" class="drow" colspan="2" height="20">Master Project Code</td>
    <td width="63%" class="drow" height="20">&nbsp;<input name="strMasterProjectCode" ></td>
    </tr>
    <tr>
    <td width="37%" class="lrow" colspan="2" height="24">Project Name</td>
    <td width="63%" class="lrow" height="24">&nbsp;<input name="strProjectName"></td>
    </tr>

    <tr>
    <td width="37%" class="drow" colspan="2" height="48">Case Study Status</td>
    <td width="23%" class="drow" height="48">&nbsp;<select size="1" name="strWorthCaseStudy" onChange="dispTextbox(this)">

    <option value="Case study not required">Case study not required</option>
    <option selected value="Required but not received">Required but not received</option>

    </select>

    <div id="input1" style="display:none;" ><b>&nbsp;&nbsp;&nbsp;&nbsp;Reason &nbsp;&nbsp;&nbsp;&nbsp;</b><input type="text" name="strReason" size="20"></div>

    </td>
    </tr>

    <tr>
    <td width="37%" class="lrow" colspan="2" height="24"> BCM-Vertical</td>
    <td width="63%" class="lrow" height="24">&nbsp;<select size="1" name="strVertical" width=50 onChange="fillSelSubVertical(this,strSubVertical)" style="border-style: solid; border-width: 20">

    <%

    String [ ] arrStrVerticals = getAllVerticals();
    try {


    if(arrStrVerticals != null ){

    out.println("<option value=''>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ; </option>" );


    for( int i = 0 ; i < arrStrVerticals.length ; i++){
    if( ! arrStrVerticals[i].equals(request.getParameter("strVertical")) )
    out.println("<option value='" + arrStrVerticals[i] + "' > " + arrStrVerticals[i] + "</option>" );
    else
    out.println("<option selected value='" + arrStrVerticals[i] + "' > " + arrStrVerticals[i] + "</option>" );

    }
    }
    }catch (Exception e) {
    e.printStackTrace();
    }

    %>



    </select></td>
    </tr>
    <tr>
    <td width="37%" class="lrow" colspan="2" height="24"> BCM-SubVertical</td>
    <td width="63%" class="lrow" height="24">&nbsp;<select size="3" name="strSubVertical" width=50 onChange="fillSelFunction(this,strFunctions);" multiple >

    <option value=''>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;
    &nbsp;&nbsp;
    </option>

    </select>



    </td>
    </tr>
    <tr>
    <td width="37%" class="lrow" colspan="2" height="24"> BCM-Function</td>
    <td width="25%" class="lrow" height="24">&nbsp;<select size="10" name="strFunctions" width=50 multiple>


    <option value=''>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;
    &nbsp;&nbsp;
    </option>


    </select></td>

    </tr>
    <!--
    <tr>

    <td width="37%" class="lrow" colspan="2" height="24"> BCM-Function Temp</td>
    <td width="25%" class="lrow" height="24">&nbsp;<select size="10" name="strFunctionstmp" width=50 multiple>

    <%/*
    String strSubVerticalParam = (String) request.getParameter("strSubVertical");

    String strQueryFunctions = "select distinct Functions from BCMP_Functions where SubVertical = '" + strSubVerticalParam + "'" ;
    DbOperations dbOpTechnologies = new DbOperations();
    ResultsPlusConnection rpcFunctions = dbOpTechnologies.getData(strQueryFunctions);
    ResultSet rsFunctions = rpcFunctions.getResultSet();
    try {
    */%>
    <option value="" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;
    &nbsp;&nbsp;</option>
    <%/*
    while( rsFunctions.next() )
    {
    if(rsFunctions.getString(1).trim()!=null && !rsFunctions.getString(1).trim().equals(""))
    {
    if(!rsFunctions.getString(1).equals(request.getPar ameter("strFunctionstmp")))
    out.println("<option value='" + rsFunctions.getString(1) + "' > " + rsFunctions.getString(1) + "</option>" );
    else
    out.println("<option selected value='" + rsFunctions.getString(1) + "' > " + rsFunctions.getString(1) + "</option>" );
    }
    }

    } catch (Exception e) {
    System.out.println(" Exception occurred in Functions Temp "+e);
    }
    ConnectionManager.closeResource( rsFunctions );
    ConnectionManager.closeResource( rpcFunctions.getDbConnection());
    */%>



    </select></td>
    </tr>
    -->
    <%

    %>
    <tr>
    <td width="37%" class="drow" colspan="2" height="24">PU</td>
    <td width="63%" class="drow" height="24">&nbsp;<input name="strPU" ></td>
    </tr>
    <tr>
    <td width="37%" class="lrow" colspan="2" height="24">Start Date
    &nbsp;*</td>
    <td width="63%" class="lrow" height="24">&nbsp;<input readonly name="strStartDate" id="strStartDate" value = "">

    <img onkeypress="fnStartDate(this)" id="imgSDate" style="CURSOR: hand" onClick="fnStartDate(this)" height="16" src="CalDis.gif" width="16" border="0" name="imgDate" onMouseOver="fnEnableCalLookup(this)" onMouseOut="fnDisableCalLookup(this)">
    </td>
    </tr>
    <tr>
    <td width="37%" class="drow" colspan="2" height="24">End Date
    &nbsp;*</td>
    <td width="63%" class="drow" height="24">&nbsp;<input readonly name="strEndDate" id="strEndDate" value = "">
    <img onkeypress="fnEndDate(this)" id="imgEDate" style="CURSOR: hand" onClick="fnEndDate(this)" height="16" src="CalDis.gif" width="16" border="0" name="imgDate" onMouseOver="fnEnableCalLookup(this)" onMouseOut="fnDisableCalLookup(this)">
    </td>
    </tr>
    <tr>
    <td width="37%" class="lrow" colspan="2" height="24">PM&nbsp;*<font color="red">(Mail Id)</font></td>
    <td width="63%" class="lrow" height="24">&nbsp;<input name="strPM"></td>
    </tr>
    <tr>
    <td width="37%" class="drow" colspan="2" height="24">BDM</td>
    <td width="63%" class="drow" height="24">&nbsp;<input name="strBDM"></td>
    </tr>
    <tr>
    <td width="37%" class="lrow" colspan="2" height="24" >EM</td>
    <td width="63%" class="lrow" height="24" >&nbsp;<input name="strEngagementManager"></td>
    </tr>
    <tr>
    <td width="37%" class="drow" colspan="2" height="24">Service Type</td>
    <td width="63%" class="drow" height="24">&nbsp;<input name="strServiceType"></td>
    </tr>
    <tr>
    <td width="37%" class="lrow" colspan="2" height="24" >Actual Effort in person months</td>
    <td width="63%" class="lrow" height="24">&nbsp;<input name="strEffort"></td>
    </tr>
    <tr>
    <td width="37%" class="drow" colspan="2" height="24">Project Description(Scope)</td>
    <td width="63%" class="drow" height="24">&nbsp;<input name="strDescription"></td>
    </tr>



    <tr>
    <td width="37%" class="lrow" colspan="2" height="24">Current TeamSize</td>
    <td width="63%" class="lrow" height="24">&nbsp;<input name="strCurrentTeamSize"></td>
    </tr>
    <tr>
    <td width="37%" class="drow" colspan="2" height="24">Peak TeamSize</td>
    <td width="63%" class="drow" height="24">&nbsp;<input name="strPeakTeamSize"></td>
    </tr>
    <tr>
    <td width="37%" class="lrow" colspan="2" height="24">Methodology(Development)</td>
    <td width="63%" class="lrow" height="24">&nbsp;<input name="strMethodology"></td>
    </tr>
    <tr>
    <td width="37%" class="drow" colspan="2" height="24">Primary Platform</td>
    <td width="63%" class="drow" height="24">&nbsp;<input name="strPrimaryPlatform"></td>
    </tr>

    <tr>
    <td width="37%" class="lrow" colspan="2" height="24" >Key Technology</td>
    <td width="63%" class="lrow" height="24" >&nbsp;<input name="strTechnologies"></td>
    </tr>
    <tr>
    <td width="37%" class="drow" colspan="2" height="24"> Framework</td>
    <td width="63%" class="drow" height="24">&nbsp;<input name="strFramework"></td>
    </tr>

    <tr>
    <td width="37%" class="lrow" colspan="2" height="24" > Application Server</td>
    <td width="63%" class="lrow" height="24" >&nbsp;<input name="strApplicationServer"></td>
    </tr>

    <tr>
    <td width="37%" class="drow" colspan="2" height="24">Operating Systems(Production)</td>
    <td width="63%" class="drow" height="24">&nbsp;<input name="strOperatingSystem"></td>
    </tr>

    <tr>
    <td width="37%" class="lrow" colspan="2" height="24">Languages(Development)</td>
    <td width="63%" class="lrow" height="24">&nbsp;<input name="strLanguages"></td>
    </tr>
    <tr>
    <td width="37%" class="drow" colspan="2" height="24">DataBases(Production)</td>
    <td width="63%" class="drow" height="24">&nbsp;<input name="strDataBaseUsed "></td>
    </tr>
    <tr>
    <td width="37%" class="lrow" colspan="2" height="24" >Tools(For
    Requirement Gathering)</td>
    <td width="63%" class="lrow" height="24" >&nbsp;<input name="strTools_forRequirementsGathering "></td>
    </tr>
    <tr>
    <td width="37%" class="drow" colspan="2" height="24">Tools(For
    Development)</td>
    <td width="63%" class="drow" height="24">&nbsp;<input name="strTools_forDevelopment "></td>
    </tr>
    <tr>
    <td width="37%" class="lrow" colspan="2" height="24" >Tools(For
    Testing)</td>
    <td width="63%" class="lrow" height="24" >&nbsp;<input name="strTools_forTesting "></td>
    </tr>
    <tr>
    <td width="37%" class="drow" colspan="2" height="24">Tools(For
    Configuration Management)</td>
    <td width="63%" class="drow" height="24">&nbsp;<input name="strTools_forConfigurationManagement "></td>
    </tr>
    <tr>
    <td width="37%" class="lrow" colspan="2" height="24">Tools(For
    Project Management)</td>
    <td width="63%" class="lrow" height="24" >&nbsp;<input name="strTools_forProjectManagement "></td>
    </tr>
    <tr>
    <td width="37%" class="drow" colspan="2" height="24">Tools(For
    Others)</td>
    <td width="63%" class="drow" height="24">&nbsp;<input name="strTools_Others "></td>
    </tr>

    <tr>
    <td width="37%" class="lrow" colspan="2" height="24" >Third Party domain specific*packages / tools</td>
    <td width="63%" class="lrow" height="24" >&nbsp;<input name="strThirdPartyTools"></td>
    </tr>


    <tr>
    <td width="37%" class="drow" colspan="2" height="23">Hardware(Production)</td>
    <td width="63%" class="drow" height="23">&nbsp;<input name="strHardware" ></td>
    </tr>
    <tr>
    <td width="37%" class="lrow" colspan="2" height="23">Other Software(Production)</td>
    <td width="63%" class="lrow" height="23">&nbsp;<input name="strSoftware"></td>
    </tr>


    <tr>
    <td width="37%" class="drow" colspan="2" height="23">Any alliances that were sought</td>
    <td width="63%" class="drow" height="23">&nbsp;<input name="strAlliances"></td>
    </tr>
    <tr>
    <td width="37%" class="lrow" colspan="2" height="23" >Business Drivers for the project</td>
    <td width="63%" class="lrow" height="23" >&nbsp;<input name="strBusinessDrivers"></td>
    </tr>
    <tr>
    <td width="37%" class="drow" colspan="2" height="23">Key
    Challenges Including&nbsp; SLAs required to be met</td>
    <td width="63%" class="drow" height="23">&nbsp;<input name="strSLA"></td>
    </tr>
    <tr>
    <td width="37%" class="lrow" colspan="2" height="23">Business Impact of the project</td>
    <td width="63%" class="lrow" height="23" >&nbsp;<input name="strBusinessImpact"></td>
    </tr>
    <tr>
    <td width="37%" class="drow" colspan="2" height="39" >Any client related IPR issue that makes
    the project non-showcaseable</td>
    <td width="63%" class="drow" height="39">&nbsp;<input name="strClientIPR"></td>
    </tr>
    <tr>
    <td width="37%" class="lrow" colspan="2" height="39">Any major implementation&nbsp;
    related
    issues that make&nbsp; the project non-showcaseable***</td>
    <td width="63%" class="lrow" height="39">&nbsp;<input name="strIssues"></td>
    </tr>
    <tr>
    <td width="37%" class="drow" colspan="2" height="23">Overall onsite:offshore ratio</td>
    <td width="63%" class="drow" height="23">&nbsp;<input name="strOnsiteOffshoreRatio"></td>
    </tr>
    <tr>
    <td width="37%" class="lrow" colspan="2" height="23">Revenue in USD</td>
    <td width="63%" class="lrow" height="23">&nbsp;<input name="strRevenue"></td>
    </tr>
    <tr>
    <td width="37%" class="drow" colspan="2" height="23">Any Other Remarks</td>
    <td width="63%" class="drow" height="23">&nbsp;<input name="strRemarks"></td>
    </tr>
    <!-- the row for the ppt -->
    </table></div>
    </TD>
    </tr>
    <tr>
    <TD vAlign=top align=left width="699" bgColor=#ffffff height="44">
    <input type="submit" value="Submit" name="B3" onClick="return fnCallUpload()">&nbsp;&nbsp;
    <!--<input type="button" name="editPPT" value="Submit Case Study" onClick = "uploadPPT()">&nbsp;&nbsp;&nbsp;&nbsp;-->
    <!--<input type="button" name="but" value="Submit Study" onclick = "alrt()">&nbsp;&nbsp;&nbsp;&nbsp;-->
    <input type="reset" value="Reset " name="reset" onClick="document.getElementById('input1').style.d isplay = 'none'">
    </TD>
    </tr>
    <TR>
    <input type="hidden" id="ViewProj" name="ViewProj" value="ViewProj">

    <input type="hidden" id="SearchType" name="SearchType" value="">
    <input type="hidden" name="uploadPPT" value="">
    <input type="hidden" id="UploadDetails" name="UploadDetails" value="uploaddetails">
    <input type="hidden" id="SubVerticalConcat" name="SubVerticalConcat" value="hariharan" >
    </TR>
    </table>
    </DIV>
    </form>
    </center>
    </td>
    <td width="26">
    &nbsp;
    </td>
    </tr>
    <tr colspan=4>
    <td>
    &nbsp;
    </td>
    </tr>
    <tr colspan=4>
    <jsp:include page="./Footer.jsp"/>
    </tr>
    </table>
    </BODY>
    </HTML>

  2. #2
    DonCash's Avatar
    DonCash is offline Moderator
    Join Date
    Aug 2007
    Location
    London, UK
    Posts
    240
    Rep Power
    8

    Default

    Hello.

    For a start, you are asking for help with JavaScript. This is a Java support forum.

    While the two share part of their names in common, they are really two completely different programming languages. I suggest you look online for a JavaScript support forum.

    Also, posting loads of lines of code like this isnt going to help anyone. Its a mess.

    I doubt anyone here will be able to help you with this but if you do decide to post in the future, please place all code within the [CODE] tags!!
    Did this post help you? Please me! :cool:

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •