This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.

rajesh mara

Greenhorn
+ Follow
since Nov 30, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by rajesh mara

how it can be achieved using jsp, it will be thankful if you send me an example using jsp i.e repopulating
17 years ago
JSP
ya i configured all the classpaths required for javamail to run
17 years ago
import java.io.*;
import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
import javax.mail.Address.*;
import javax.mail.internet.InternetAddress;

public class SendApp {
public static void send(String smtpHost, int smtpPort,
String from, String to,
String subject, String content)
throws AddressException, MessagingException {
// Create a mail session
java.util.Properties props = new java.util.Properties();
props.put("mail.smtp.host", smtpHost);
props.put("mail.smtp.port", ""+smtpPort);
Session session = Session.getDefaultInstance(props, null);

// Construct the message
Message msg = new MimeMessage(session);
msg.setFrom(new InternetAddress(from));
msg.setRecipient(Message.RecipientType.TO, new

InternetAddress(to));
msg.setSubject(subject);
msg.setText(content);

// Send the message
Transport.send(msg);
}

public static void main(String[] args) throws Exception {
// Send a test message
send("localhost", 2525, "company_pro@yahoo.com",

"vinay@hotmail.com",
"hi ", "How are you WithRegards Vinay"); }
}

I am getting error as

Exception in Thread "main" java.lang.NoClassDefFoundError: javax/mail/Address
17 years ago
Hi everyone,

I have a doubt of how to repopulate fields with error messages below the fields when one of the fields left with blank.


For example

User name -------(Text Box)
Password ------ (Text Box)
Submit(Button)
if user doesn't enters user name or password i should get display like the following

User name -------(Text Box)
Password ------ (Text Box)
Submit(Button)
- User Name Required(in red marks)
please help me anyone how to get display like above instead of getting an alert prompt.

Thank You.
17 years ago
JSP
Hi i am new to springs please any help me out how to learn springs n send me the links of resources(materials) of Springs

Thank You.
Hi Friends,

What is Ant n for what it is used for can please anyone reply me

Thank You.
17 years ago
Hi,

I am a fresher n in interviews i have been asked abt the differences between Abstraction and Encapsulation can anyone please reply with an example each abt the difference

Thank You.
17 years ago
i have stored all sql statements in sql.properties
(for example: retrieve =" select * from emp")

how can i retrieve this statements from sql.properties using java.util package can please anyone send me the code how to get from sql.properties
17 years ago
please can anyone tell how to implement pagination using JSTL Tags, i have seen in JSPFAQ but still i couldn't get,if any links are there abt detailed description regarding Pagination Using JSTL(Pagination Tag) please post me

Thank You in advance
17 years ago
JSP
Why Xml only used as Deployment Descriptor?
17 years ago