JSP - Problem of displaying result at webpage

Ads
 

JSP - Problem of displaying result at webpage

Can anyone please help to solve my problem below. My webpage has problem in displaying result position. The result should be display below my title. How do i solve it? Thank you so much!

<html>
    <head>
        <link rel="StyleSheet" type="text/css" href="${pageContext.request.contextPath}/myStyle.css">
        <title>IPTV Profile Scan</title>
    </head>
    <body>   
        <form method="post">
        <table border="1" width="100%" cellspacing="0" cellpadding="3" bgcolor="#6495ED"  borderColorLight="#FFFFFF">
            <tr>

                <td width="15%"><b>
                        <font color="#FFFFFF" size="4">ADSL Number

                                <input name="ADSLNO" type="text" />

                         <input name="Submit" type="submit" value="Confirm" />


                        </font></b></td>
                        </tr>
                </table>
         </form> 
                       <%

                    String ADSL = request.getParameter("ADSLNO");
                    if(ADSL!= null)
                    {
                    String connectionURL = "jdbc:mysql://10.152.31.82/poller";
                    Connection connection = null;
                    String buffer = "<div class='divTable'>";
                    Class.forName("com.mysql.jdbc.Driver").newInstance();
                    connection = DriverManager.getConnection(connectionURL, "dipadm", "dipadm123");
                    Statement stmt = connection.createStatement();
                    ResultSet rs = stmt.executeQuery("select DT, PROFILE, DS_BW, SNR_DW, AT_DW, UCE, MODEL, CRC, RETRAIN from scanProfileData where ADSLNO='" + ADSL + "' order by DT DESC;");
                    if (rs != null) {
                    buffer="<div class='divRowh'><div class='divCellDT'>DATE/TIME</div>" ;
                    buffer=buffer+"<div class='divCellPROFILE'>PROFILE</div>";
                    buffer=buffer+"<div class='divCellBANDWIDTH'>BANDWIDTH</div>";
                    buffer=buffer+"<div class='divCellSNR'>SNR</div>";
                    buffer=buffer+"<div class='divCellATTENUATION'>ATTENUATION</div>";
                    buffer=buffer+"<div class='divCellCRC'>CRC</div>";
                    buffer=buffer+"<div class='divCellUCE'>UCE</div>";
                    buffer=buffer+"<div class='divCellMODEL'>MODEL</div>";
                    buffer=buffer+"<div class='divCellRETRAIN'>RETRAIN</div></div>";

                    while(rs.next()){
                    buffer =buffer+"<div class='divRow'>"
                                  +"<div class='divCellDTr'>"+rs.getString("DT")+"</div>"
                                  +"<div class='divCellPROFILEr'>"+rs.getString("PROFILE")+"</div>"
                                  +"<div class='divCellBANDWIDTHr'>"+rs.getString("DS_BW")+"</div>"
                                  +"<div class='divCellSNRr'>"+rs.getString("SNR_DW")+"</div>"
                                  +"<div class='divCellATTENUATIONr'>"+rs.getString("AT_DW")+"</div>"
                                  +"<div class='divCellCRCr'>"+rs.getString("CRC")+"</div>"
                                  +"<div class='divCellUCEr'>"+rs.getString("UCE")+"</div>"
                                  +"<div class='divCellMODELr'>"+rs.getString("MODEL")+"</div>"
                                  +"<div class='divCellRETRAINr'>"+rs.getString("RETRAIN")+"</div></div>";

                    }
                    }
                    buffer=buffer+"</div>";
                    response.getWriter().println(buffer);
                    }
                %>
              </body>               
</html>
View Answers

Ads









Related Tutorials/Questions & Answers:
displaying a calendar of only current month in jsp on webpage using javascript
displaying a calendar of only current month in jsp on webpage using javascript  how can we display a calendar of only current month in jsp on webpage using javascript
displaying a physical webpage with frames in iframe
displaying a physical webpage with frames in iframe  i have iframe in my webpage, i have done the coding part for browsing the folders and viewing... sources.i tried to display a sample webpage without frames and it was a success
Advertisements
How to print a webpage without url and date in jsp ?
How to print a webpage without url and date in jsp ?  How to print a webpage without url and date in jsp
Displaying image using jsp and spring.
Displaying image using jsp and spring.  how to display an image stored in WEB-INF/images folder on the browser using jsp and spring
hide and show result in jsp
hide and show result in jsp  what codes do i have to change to make my result display if only i enter the correct value? suppose if i click search,then the result will be display at the bottom.. if not.. only the header
Uploading a software and displaying it on the jsp page
Uploading a software and displaying it on the jsp page  I have a Downloads page in my website, I want it to display the name of softwares as soon as it is uploaded in the backend by the administrator. And the admin may be a non
Data displaying with limited records in jsp
Data displaying with limited records in jsp  How to display table with limited 10 records , after clicking next button another 10 records from database upto last record please help me
webpage
webpage  design a webpage student database using forms and frameset
Displaying java.util.Calendar using JSP struts tags
Displaying java.util.Calendar using JSP struts tags  My question is in regard to displaying a date whose source is java.util.Calendar and not java.util.Date. In all the examples I have found they only refer to the java.util.Date
XSL Result and its example
XSL Result and its example XSLT stands for XSL Transformations. It is the most... or add the attribute from the output file. An Example of XSLT result is given...; <body> <h2>XSLT Result Example</h2> <h4>Name : <
displaying data retrieved from a database in a jsp page
displaying data retrieved from a database in a jsp page  the page should display username, emailid, telephone in addition to tthe tagline however none of the required information is displayed except the tagline protected void
jsp programe for displaying data from database
jsp programe for displaying data from database  i am using JSP.i want.../WebSevices/19592-retriving-data-from-sql-server-using-jsp-code-and-placing-them-in-text-fields-of-html-code.html http://www.roseindia.net/answers/viewqa/JSP
jsp programe for displaying data from database
jsp programe for displaying data from database  i am using JSP.i want.../WebSevices/19592-retriving-data-from-sql-server-using-jsp-code-and-placing-them-in-text-fields-of-html-code.html http://www.roseindia.net/answers/viewqa/JSP
jsp programe for displaying data from database
jsp programe for displaying data from database  i am using JSP.i want.../WebSevices/19592-retriving-data-from-sql-server-using-jsp-code-and-placing-them-in-text-fields-of-html-code.html http://www.roseindia.net/answers/viewqa/JSP
validating credentials and displaying error message in login .jsp if not valid
validating credentials and displaying error message in login .jsp if not valid  hi, i want to validate user name and password against my database table if not valid i have to display error message in my login page.how to do
displaying output on web page immediately whent the jsp buffer size is full. And how to set jsp buffer size in bytes
displaying output on web page immediately whent the jsp buffer size is full. And how to set jsp buffer size in bytes  Here is my requirement, I have to display output on the browser after jsp buffer is full. And I have to set
displaying data
displaying data   how to display data from database on jsp using struts2
displaying List of records from database in a jsp using ajax, onclick it should display the results ?? its urgent can u help me
displaying List of records from database in a jsp using ajax, onclick it should display the results ?? its urgent can u help me   displaying List of records from database in a jsp using ajax, onclick it should display the results
webpage capture
webpage capture   webpage capture source code using jsps and servlets
codes for displaying in calendar
codes for displaying in calendar  can i get jsp codes for displaying comments, when the pointer is placed over the particular date in calendar
make a webpage
make a webpage   I will provide you some basic requirements that you will be implementing over a small web page... Requirements: A web page having... webpage in a different way Try to use features of HTML5, CSS3 and JavaScript
Retrieving newly inserted records and displaying in jsp forever
Retrieving newly inserted records and displaying in jsp forever  Sir... a table and display in jsp(Each row contains a field called as "session... of every record which is displayed on the jsp (not in database) and immediately i have
displaying long size arrow line in a jsp
displaying long size arrow line in a jsp  Hi all, How can we display an arrow mark with a specified height and width in a jsp. Please help me in resolving this problem. Thanks, Suresh
ModuleNotFoundError: No module named 'webpage'
ModuleNotFoundError: No module named 'webpage'  Hi, My Python... 'webpage' How to remove the ModuleNotFoundError: No module named 'webpage... to install padas library. You can install webpage python with following command
ModuleNotFoundError: No module named 'webpage'
ModuleNotFoundError: No module named 'webpage'  Hi, My Python... 'webpage' How to remove the ModuleNotFoundError: No module named 'webpage... to install padas library. You can install webpage python with following command
Showing div at the center of the webpage
Showing div at the center of the webpage  Showing div at the center of the webpage
forwarding request to a jsp from a filter and displaying image in that jsp
forwarding request to a jsp from a filter and displaying image in that jsp ... correctly, but in login.jsp the image is not displaying. Can you help me in resolving this problem. Thanks & Regards, Suresh   Jsp Display Image <
Image is not displaying
Image is not displaying  Hii i am using spring javamail with html template to send mail,i am facing that image displaying prob when mail have to cm in gmail,in template just i am giving my current location of image which
displaying image
displaying image  how to upload image and retrieve it form database mysql in php?   Here is an example of uploading image using php. 1)form.html: <form method="post" enctype="multipart/form-data" action="upload.php
JSP
JSP public opinion poll   Develop a JSP for a news channel to conduct public opinion poll on any topic. Users will respond through yes or no options. Later display the result in percentage
display result
display result  i want a code that takes input from user through dropdown box and display the result into table.all the values regarding the user input must be displayed. i am using mysql database   hi i want study

Ads