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



Home Answers Viewqa JSP-Servlet how to get small rectangular box or small window

Have Programming Question? Ask it here!
 
 
 


harini
how to get small rectangular box or small window
1 Answer(s)      4 years and 3 months ago
Posted in : JSP-Servlet


Dear sir,
First i am calling a one jsp in a url ,it will display that perticular jsp.In this jsp i am showing a one table ,that contains attributes like id,subject,matter,matterfile from,status..etc.In a matter column i have to show a small content with hyperlink onmousemoves over it it has to show a small retangularbox or small window in that it has to show a full content of a message within a large window on mouse moves on a particular hyperlink .How to do it sir please help me .

The following is my code using this am getting starting few words and also a full message ,so please help me if any changes in a code...

MassMailDetailsDTO massDetails = (MassMailDetailsDTO) hashtable.get(i);
strMatter = massDetails.getMatter();
String strString = "<b><u>"+"Message "+((String)strMatter).replaceAll(",","<br>");
String[] subStringArray=strMatter.split("<br>");

<tr>
<td><%=value%></td>
<td><%=intId%></td>
<td><%=strSubject%></td>
<td valign="middle" align="center">&nbsp;<a href="#"><%=subStringArray[0]%><span> <%=strString %></span></a></td>
<td><a href="<%=strMatterFile%>"><%=strMatterFile%></a></td>
<td><%=strStatus%></td>
<td><%=strFrom%></td>
</tr>


Thanks and Regards
Harini Veerapur.

Advertisement
View Answers

May 11, 2010 at 5:15 PM


Hi Friend,

Try the following code:

<%@page import="java.sql.*"%>
<script type="text/javascript">
function show(item,message){
hp = document.getElementById("div");
hp.innerHTML = message;
hp.style.top = item.offsetTop + 18;
hp.style.left = item.offsetLeft + 20;
hp.style.visibility = "Visible";
}
function hide(){
hp = document.getElementById("div");
hp.style.visibility = "Hidden";
}
</script>
<body onload="hide();">
<table border=1>
<%
Class.forName("com.mysql.jdbc.Driver").newInstance();
Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/test","root";, "root");
Statement st=connection.createStatement();
ResultSet rs=st.executeQuery("select * from email");
String message="";
while(rs.next()){
String from=rs.getString(2);
String to=rs.getString(3);
String subject=rs.getString(4);
message=rs.getString(5);
String n=message.trim().substring(0, 5);
String mess=n+".............";
%>
<tr><td><%=from%></td><td><%=to%></td><td><%=subject%></td><td style="cursor:default;" onMouseOver="show(this,'<%=message%>');" onMouseOut="hide();"><%=mess%><div id="div" style="border: 2px solid rgb(0, 0, 0); width: 250px; height: 100px;background-color:blue;visibility:hidden; position:absolute; top:0; left:0;"></div></td>
</tr>
<%
}%>
</table>
</body>

Thanks


Related Tutorials/Questions & Answers:
how to get small rectangular box or small window - JSP-Servlet
how to get small rectangular box or small window   Dear sir... or small window in that it has to show a full content of a message within a large window on mouse moves on a particular hyperlink .How to do it sir please help me
Small clarification
Small clarification  This function is used to search and select particular word. In this function document.getElementById('d')); getElementById is used to get the element by using id,but here there is no id with 'd', what
Advertisements
Small Bug How to solve in my code
Small Bug How to solve in my code  String season=""; pst = con.prepareStatement("SELECT DISTINCT(Season) season FROM specialdates where Regid...") + ","; it shows bug in findbugs tool.. but it executes successfully how to solve
Small business administration classes
Small business administration classes  Hi, How Small business...   Hi, The manage of any small business are doing a lot of different types... process of the business. So, if you are a manager of small business then you
Small Business Marketing Services
Small Business Marketing Services These days Small Business around the work is looking for cheap, reliable and result oriented Small Business Marketing Services. The priority of Small Business is to find the best Small Business
small query - JSP-Servlet
small query  how to set value to textbox on browser side which is retrived from the database?  Hi friend, Plz explain problem in details which technology you have used e.g. JSP/Servlet/Java etc... For more
Small business management courses online
Small business management courses online Small-scale business today has... for running a small-scale business or becoming a large business entrepreneur. Management... is of utmost important like big business organisation. For small scale business
small code - JDBC
small code  Hi Team, I want to write program for my team in this code i have list of websites when ever this site is down this code shows site is down message and if site is up it will give message site is up. Thanks
Cloud Computing Solutions for Small Business
Cloud Computing Solutions for Small Business  Hi, Which Cloud Computing Solutions for Small Business is good. How to choose best Cloud Computing... looking for the computing solutions. How Cloud Computing Solutions for Small Business
small java project - Java Beginners
small java project  i've just started using java at work and i need to get my self up to speed with it, can you give me a small java for beginners project to work on. your concern will be highly appreciated
small java project - Java Beginners
small java project  i've just started using java at work and i need to get my self up to speed with it, can you give me a small java for beginners project to work on. your concern will be highly appreciated
Small program code - Java Beginners
Small program code  Develop the echo server and the echo client program that display whatever is typed in the server on to the client
Small typo at SCJP Module-1 Question-6
Small typo at SCJP Module-1 Question-6  Hi Team, This is a awesome site which is serving lot of peoples in learning java effectivly, thanks alot for that, A small typo at "SCJP Module-1 Question-6", in spite of "a.method
Struts small complite project - Struts
Struts small complite project  I am a beginner in struts I want to do a project in Srtuts .can u please send me a small complete struts project . So that I can by taking the reference of that I can write good and effective
Social Media Marketing for Small Business
Social Media Marketing for Small Business We are providing Social Media Marketing for Small Business and small website owners at very attractive cost. Our Social Media Marketing services for Small Business are well designed and gives
how to get combo box value - JSP-Servlet
how to get combo box value  i have created 1 servlet & 1 jsp page... in combo box in jsp page: (small part of my code) "> now i want... to store that id in database. how to get that value???   Hi Friend
Human resources for small business
when it comes the matter of small-scale industries. Needless to say HR is also... it is difficult situation for the small-scale industries with its HR effect... and organize aspects of HR functioning for the concerned organization. Such small-scale
calculate volume of cube, cylinder and rectangular box using method overloading in java
calculate volume of cube, cylinder and rectangular box using method overloading in java  calculate volume of cube, cylinder and rectangular box using... and rectangular box using method overloading in java
What are prospects of small Business management?
Small business management is the process by which all the available resources.... As by name, it is the case of small business management so such business activity starts with a very low cost and on a part time basis. Small business starts
how to get selected name from combo box
how to get selected name from combo box   i have fetched all records of worker i.e worker name. on a test.jsp and dispayed it into combo box ...my question is that............. i havt to get particular id of worker on selection
how to get selected name from combo box
how to get selected name from combo box   i have fetched all records of worker i.e worker name. on a test.jsp and dispayed it into combo box ...my question is that............. i havt to get particular id of worker on selection
how to get selected name from combo box
how to get selected name from combo box  i have fetched all records of worker i.e worker name. on a test.jsp and dispayed it into combo box ...my question is that............. i havt to get particular id of worker on selection
how to get selected name from combo box
how to get selected name from combo box  i have fetched all records of worker i.e worker name. on a test.jsp and dispayed it into combo box ...my question is that............. i havt to get particular id of worker on selection
how to get selected name from combo box
how to get selected name from combo box  i have fetched all records of worker i.e worker name. on a test.jsp and dispayed it into combo box ...my question is that............. i havt to get particular id of worker on selection
A small programming task, plz respond at the ealiest..
A small programming task, plz respond at the ealiest..  Hi Guys ,small task to you all... sam seeks your help to know the longest run possible with the given peaks
Html+jsp+database is enough to do the small operation
Html+jsp+database is enough to do the small operation  Hai , If u want to do simple insetion and data retrival operation throw jsp ?.you need not to bother about whole code.just u consentration on html,ajax,jsp,any db.here i
First Window
(Graphical User Interface) window that you can make. The window is very small... 17 //--- basic_windows/FirstWindow.java - Creates a very small window..., but you can see that the close box works // and the window can be resized. // Fred
Small Business SEO Writing,Best SEO Writing Services for Small Business - Rose India SEO Services
Solutions for Internet Marketing – Small Business SEO Writing Small businesses cannot easily carry out Internet marketing activities because... in such a way that your visitors get concisely directed to their required information
Top 10 CRM Software for Small Business
across the business establishments, small or big. Though business biggies... highest productivity and business output, small businesses only for few years... of CRM software for small business and though some of them charge almost a premium
I have a small problem in my datagridview - Design concepts & design patterns
I have a small problem in my datagridview  i have datagridviewer in c#(platform) and i try that change cell beckground, this cell Should be for example 5(integer!) if in my datagridwiewer Will be 5(whatwhich should be take in my
what is diffrence between the spring and ejb which is better for small application - Spring
what is diffrence between the spring and ejb which is better for small application  what is diffrence between the spring and ejb which is better for small application. and why do we need to use sping or ejb for web
How to get data from DB in to Text box by using Jsp & Ajax
How to get data from DB in to Text box by using Jsp & Ajax   I want to get the data from database in to text box in a jsp page by using Ajax. If I enter the letter A in the textbox it should show only those values which starts
Top 10 Benefits of Cloud Computing for Small Business
Top 10 Benefits of Cloud Computing for Small Business For some years... for small business are simply enormous. Just until a few years back a small... specific. Cloud computing is continuing to change the way small business
How to get the values from the Combo Box - JSP-Servlet
How to get the values from the Combo Box   Sir, Actually i am getting the values in the combo box from table.I want what ever... in their respective text box. Please give some code hint how to do
Best Cloud Computing Applications for Small Business
of computing. In relating here best cloud computing applications for small business... in selecting some of the best cloud computing applications for small business we... cloud computing applications for small business. Google Drive Undoubtedly
write a program to calculate volume of a cube, cylinder, rectangular box using method overloading
write a program to calculate volume of a cube  write a program to calculate volume of a cube, cylinder, rectangular box using method overloading..., 8, 9); System.out.println("Volume of rectangular box
sir i want small project with of health care system with struts and hibernate plz help me
sir i want small project with of health care system with struts and hibernate plz help me  sir i want small project on health care system with struts and hibernate plz help me
How to "Get data froom MySQL DB on giving a value in a tex-box in a JSP file."
How to "Get data froom MySQL DB on giving a value in a tex-box in a JSP file."  Hi, How to get data from MYSQL Database tables on giving a "text" in a text-box in a JSP file. Ex:dept table; if we give dept_no in a text-box in JSP
How to Make iPhone Window Application
How to Make iPhone Window Application  Hi, For Making iphone window application, what parameters i have to follow or provide example related to iphone window application. Thanks
Window
Window  how to create an window of a person like regestration form
How to create a confirmation box?
How to create a confirmation box?  How to create a confirmation box
How to create an input box?
How to create an input box?  How to create an input box
I have one small doubt , does this code read Microsoft Office suit file format data such as .doc , .docx etc ?
I have one small doubt , does this code read Microsoft Office suit file format data such as .doc , .docx etc ?  import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; public class ReadFileExample
how to insert check box
how to insert check box   how to insert check box into jtable row in swing
JFrame - Window
pane. Use either get or set, but not both. w.setContentPane(c); Sets window's content pane to c (or subclass JPanel). Handling the window's close box...); This is how to add a menubar to the window. w.setLocationRelativeTo(null
how to focus on the new window opened from JSF ?
how to focus on the new window opened from JSF ?  Hi guys, I have commandLink with action which using javascript to open a new window(window.open()). Problem is, the new window opens at background behind the current window
How to clear a Dos Window? - Java Beginners
How to clear a Dos Window?  problem with the following code: This code is opening another dos window.Is it possible to close the first dos window without exiting from the second window...I don't want to open two windows...how
Example - Tiny Window
to create tiny window in swing. The TinyWindow.java - Creates a very small window... is what you get if you drag the lower-right corner to enlarge the window... a very small window! // This is just about the smallest GUI program you can write
child window - Development process
child window  I want to create new small window on my website using java script. But i couldn't hide the status bar in small window. How to do this one ? Kindly help me.   Hi Friend, Please visit the following
 

 

 

DMCA.com