Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa HTML JSP - Problem of displaying result at webpage

Have Programming Question? Ask it here!
 
 
 


Lee Siew Ling
JSP - Problem of displaying result at webpage
0 Answer(s)      a year and 6 months ago
Posted in : HTML


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>

Advertisement
View Answers

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
webpage
webpage  design a webpage student database using forms and frameset
display resume content in webpage - JSP-Servlet
display resume content in webpage  Hi everbody, I have to display resume(.pdf, .doc,.rtf..txt)file content into a webpage(jsp or html). please i want help like are there any APIs available or any solution?? thank in advance
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
Displaying Rows - JSP-Servlet
Displaying Rows  Hi, I need your support on how to display data from ms sql 2000 database into an html form text box and text area, using java servlet or jsp  Hi friend, This is form code, display data
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
title and keywords don't refresh in webpage - JSP-Servlet
title and keywords don't refresh in webpage  Hi, I changed the title and keywords on my main jsp page that is the entry point into my web... and keywords. If I change anything else on the jsp page it refreshes
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
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 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
webpage capture
webpage capture   webpage capture source code using jsps and servlets
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
JFree 3D Bar Chart not displaying in JSP - Java3D
JFree 3D Bar Chart not displaying in JSP  Hi I am trying to run JFree 3D bar chart written in your site under link: http://www.roseindia.net/chartgraphs/3Dbarchart-in-jsppage.shtml This is not working. PNG file
Displaying image when clicked on URL in jsp - JSP-Servlet
Displaying image when clicked on URL in jsp  Hi, I am using.../Images/abc.jpg. Similarly, many such jpg's are there. The jsp would have different... in displaying the image from the folder. Regards, Anish
Displaying Constant values from Interface in JSP - JSP-Servlet
Displaying Constant values from Interface in JSP  Hi, ******Sorry... need to display suitable fields in my jsp but this should be done upon suitable...="COMP100"; // and so on } IN HOME JSP ****** home.jsp **** Currently
copy something from a webpage to my webpage
copy something from a webpage to my webpage  How can I copy something from a webpage to my webpage
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
retrive the result of a serach string from other sites - JSP-Servlet
retrive the result of a serach string from other sites  Sir, suppose i have create my own websites, and i want to search an item in my sites and as well as from other search sites and i want to show all the search result in my
Displaying Date in jsp - JDBC
Displaying Date in jsp  I want to insert Date of birth of a person in a database.i am getting input value from HTML and i use jsp application to interact with database.My JSP code for inserting Date is below: String dateStr
Showing div at the center of the webpage
Showing div at the center of the webpage  Showing div at the center of the webpage
displaying data
displaying data   how to display data from database on jsp using struts2
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
Last modified time of a webpage
Last modified time of a webpage  how can we get the last modified time of a webpage using java
Connecting to MySQL database and retrieving and displaying data in JSP page
Connecting to MySQL database and retrieving and displaying data in JSP page...=DriverManager.getConnection(url);   Executing Query and Processing result set...: select * from jakartaproject  Here is the code of our JSP
how to forward select query result to jsp page using struts action class
how to forward select query result to jsp page using struts action class  how to forward select query result to jsp page using struts action class
Jsp not display desired result - JSP-Servlet
friend, For solving the problem visit to : http://www.roseindia.net/jsp...Jsp not display desired result  Hello all, I want to be able to display picture from Ms Sql 2000 using JSP. Below is the code I used but does
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
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
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
Displaying images - JDBC
Displaying images  How to display multiple images on a single jsp from MySql database
Displaying images - JDBC
Displaying images  How to display multiple images on a single jsp from MySql database
Page is not getting loaded when I refresh the webpage???
Page is not getting loaded when I refresh the webpage???  **I am loading an image section(image,demo link,Zoom) in a webpage by using javascript function in JSP. It will get all details of image section from database. *I am
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
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
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
Login Box appears when a button on the webpage is clicked
Login Box appears when a button on the webpage is clicked  How to create a Login Box on a web page that appears only when a button that is already present on the page is clicked
Login Box appears when a button on the webpage is clicked
Login Box appears when a button on the webpage is clicked  How to create a Login Box on a web page that appears only when a button that is already present on the page is clicked
Login Box appears when a button on the webpage is clicked
Login Box appears when a button on the webpage is clicked  How to create a Login Box on a web page that appears only when a button that is already present on the page is clicked
PHP Displaying URL Content
PHP Displaying URL Content  In my PHP application form, on submitting the form details it always displaying url content. Can anyone tell me what is the reason and how to restrict it from displaying
how to display the data from excel to webpage
how to display the data from excel to webpage  Hi, I need help on following I have a webpage contains a text box and a button(get), i give a value... on the same row. please help me out of this   Here is a jsp code
give me source code of webpage creation using html
give me source code of webpage creation using html  how to create a webpage using html
 

 

 

DMCA.com