Online Hibernate Training just in Rs. 1000

One week online training in Hibernate ORM framework. Learn Hibernate Framework and enhance your skills. Best Online Hibernate training at 90% discount. Join Now!! Offer is valid Only for limited Period!!! Online Training Big Data and Hadoop Training Java Training  
 

how to get small rectangular box or small window

Ads

 
 

Share on Google+Share on Google+

harini
how to get small rectangular box or small window
1 Answer(s)      7 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.
Ads
View Answers

May 11, 2010 at 5:15 PM


Hi Friend,

Try the following code:

<[email protected] 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

Ads









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
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 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 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
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 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 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
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
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
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
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
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
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