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

 
 


Lee Siew Ling
JSP - Problem of displaying result at webpage
0 Answer(s)      7 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>
View Answers









Related Pages:
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
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 : <
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
displaying data
displaying data   how to display data from database on jsp using struts2
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
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
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
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
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
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
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
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
Result=Set - Java Beginners
Result=Set  Hi Friend, Can u tell how to get the count of records... result set, first move the pointer from first record to last record and get... information. http://www.roseindia.net/jsp/user-search.shtml Thanks
Displaying file from database
Displaying file from database  I have list of files in my database. I want to display these files in browser according to the input. My need is like google search result. when i click on the link it should display
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
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
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 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
webpage capture
webpage capture   webpage capture source code using jsps and servlets
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
Stream Result example
="resultStream"> <result name="success">/jsp/page.jsp...Stream Result example Stream Result is very important for allowing users to downloading contents. It is a custom result type for sending raw data via
Dispatcher Result Example
;/jsp/home.jsp</param> </result> An Example of Dispatcher Result...Dispatcher Result Example The Dispatcher Result forwarded the action... dispatcher in result you need to do the following mapping. <action name="
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
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
Dropdown code to retrieve result from oracle database
Dropdown code to retrieve result from oracle database  Hi Friends, I... contains dropdowns in frontend(Javascript or JSP).If i choose an option,it should retrieve the result from Oracle database.We have procedures created already.Just
Displaying image with byte array[] - Java Beginners
Displaying image with byte array[]  Hi Frndz.. As per my requirement i need to show an image by using an byte array object which have image data.../article-992927-6.html Here it describe how display image in jsp. Sorry I have
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 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
jfreechart displaying chart from access database
jfreechart displaying chart from access database  I have these 2 codes. array.java----in which i retrieve the values from the database . import... and then the chart should be displayed on a jsp..how can i do it..pls reply..its
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
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
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
Displaying search results in same panel of gridview in same jframe window.
Displaying search results in same panel of gridview in same jframe window... are also being added alongwith the search result fields in the dynamically... second search first search result should be deleted and current search result
Displaying search results in same panel of gridview in same jframe window.
Displaying search results in same panel of gridview in same jframe window... are also being added alongwith the search result fields in the dynamically... second search first search result should be deleted and current search result
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 empty pdf with jasper reports using spring framework
Displaying empty pdf with jasper reports using spring framework  Hi, I am working with spring jasper integration to generate the jasper reports... packageWisePdfView.url=/WEB-INF/packagewisereport1.jrxml Where packageWisePdfView is my jsp name
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

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.