sajeev JS

Greenhorn
+ Follow
since May 06, 2003
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by sajeev JS

Thanks for your help Pradeep and expects the same in future too.
18 years ago
JSP
Hi All
I want to reset a flag in database when session get expired.
How can I call a method at the very time when session expires.
Pls help me. It is urgent
with best regards
Sajeev
18 years ago
JSP
Dear Friends
Hi. I am in need of taking a printout in IE.
In javascript I used 'window.print()', It gave me printout but with it's own
header and footer. I can disable it in IE settings.
I want to know whether it is possible by using Javascript to set headers and footers , also I want to know How to disable the print
dialog which appears soon after I click the button which prompts me
to specify the no. of pages and all.
Any suggessions from your side will be greatly appreciated.
regards
Sajeev Jaladharan
18 years ago
JSP
Dear Friends
Hi. I am in need of taking a printout in IE.
In javascript I used 'window.print()', It gave me printout but with it's own
header and footer. I can disable it in IE settings.
I want to know whether it is possible by using Javascript to set headers and footers , also I want to know How to disable the print
dialog which appears soon after I click the button which prompts me
to specify the no. of pages and all.
Any suggessions from your side will be greatly appreciated.
regards
Sajeev Jaladharan
18 years ago
JSP
Dear frinds
I am currently involved in a JSP project .An unsolvable scenarion is there.Whenever a user logs I am putting the details in session variables and checking it in every pages.
My doubt is this
"whenever a user clicks the back button of browser the session should get expired he should be prompted to login again."
i tried with some response headers.but not working
please help me.
regards
Sajeev J.
18 years ago
JSP
hai my dear friends
I am doing a jsp project and i want to send mails in it.I got code for this from net and tried it with the smtp host as my company id.But it is not working.can u pls suggest where would have went wrong.My code is given bellow.]
************************************************
<%@ page import="java.util.*, javax.mail.*, javax.mail.internet.*" %>
<%
try
{
Properties props = new Properties();
props.put("mail.smtp.host", "softron.softron.com");
Session s = Session.getInstance(props);
MimeMessage message = new MimeMessage(s);
InternetAddress from = new InternetAddress("sajeev@softron.softron.com");
message.setFrom(from);
InternetAddress to = new InternetAddress("aparna@softron.softron.com");
message.addRecipient(Message.RecipientType.TO, to);

message.setSubject("Test from JavaMail.");
message.setText("Hello from JavaMail!");
Transport.send(message);
}catch(Exception e)
{
}
%>
<html>
<p align="center">A Message has been sent.<br>Check your inbox.</p>
<p align="center"><a href="sendmail.jsp">Click here to send another!</a></p>
</html>
**************************************************
regards
sajeev
18 years ago
JSP