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

 
 


harini
how to get small rectangular box or small window
1 Answer(s)      3 years 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.
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 Pages:
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
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
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
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
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 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
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
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
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
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
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
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
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
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
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
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
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
Popup dialog box in java
Popup dialog box in java  How to display popup dialog box in java?   Dialog Box- A dialog box is an independent small window which appear... can create popup dialog box. Java swing toolkit provide tow types of dialog box
Window
Window  how to create an window of a person like regestration form
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
window closing
window closing  hello, In my project i have login,logout... script. and i need one solution that,when ever user trying to close browser window ,one confirm box will appear and if he clicked ok button then logout.jsp should
JFrame Close Box
that you wouldn't normally change. However, the close box only closes the window... to get the window that is being closed, but this is rarely necessary... Java: JFrame Close Box Terminating the program when the close box
opening new window - Java Beginners
window.i.e., I want to know, how a new window(B) can be opened by clicking a button on the first(parent)window.The show() method does open a new window but the parent window is not disabled when the child(new) window is showing.The show() method
Second Window
Java NotesExample - Second Window The main program of this example is basically identical to that in Example - First Window, but here we define a subclass of JFrame (a window) that constructs a JPanel to put the one component
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
Small businesses and social media marketing
businesses. Get together with other small businesses If you thought you were...Small businesses and social media marketing Social media marketing is so... to advertise. If you are a small business owner then there are a few things
Damn Small Linux 2.3 RC1 has been released now
Damn Small Linux 2.3 RC1 has been released now New check and prompt to save... Linux distribution. Damn Small is small enough and smart enough to do... will be amazed at how fast your computer can be!) 8. Modularly grow -- DSL is highly
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
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
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
Java Get Example
get windows Username In this section, you will learn how to obtain the window's... Get examples like how to get the date and time, IP Address or memory size etc... is method and how to use the get method in Java, this example is going
How to compile & get output for JSP
How to compile & get output for JSP  HI My Roseindia friend has given the answer as RUN the JSP How to run the JSP Program? But what i mean is that i... the said above one. So Kinly tell me the solution how to get the output
JavaScript Open Modal Window
; In this section, you will learn how to open Modal window in JavaScript... the button, a new window will get open which does not allow the user... JavaScript Open Modal Window
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
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
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
DSL-N 0.1 Alpha is available
DSL-N 0.1 Alpha is available Damnsmall The Damn Small Linux project has released the first development build of DSL-N (Damn Small Linux Not), an enhanced live CD based on Damn Small Linux, but not limited to 50MB in size. Besides
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
Benefits of Window 8 for Business
As Windows 8 has recently unveiled, most of the people want to know, how this new operating system can benefit them, and Benefits of Windows 8 for Businesses... that is a good news for the businesses. It takes very small time to upload the desktop
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

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.