abhijit sane

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

Recent posts by abhijit sane

hi,
please check your import statements in code.
and check about the classpath.
- Abhijit Sane
16 years ago
thank you sir,
sir, i have ceated store succrssfully but there is one more problem
when i write the code for Folder
" Folder inbox=store.getFolder("INBOX");

out.println(inbox.getFullName());

inbox.open(Folder.READ_WRITE);

out.println(inbox.getMessageCount());

but , that is not retriving the any messages.
i am not understanding that, where is the problem that, i have hosted my application on apache web server.
and i have there mailing server access as my login and pass.
now how can i proceed i am not getting.
please, sir, help me regarding this.
16 years ago
hi,
i have my Mailing application.
after session is created successfully, it sends mail but when
i write code to read Mail
"Store store=ssn.getStore();
Folder inbox=store.getFolder("INBOX");"
its giving exception Invalid protocol: null and
javax.mail.NoSuchProviderException: Invalid protocol: null
Please, How can i overcome this problem
-Abhijit Sane
16 years ago
How can you use the RequestDispatcher to click in home page.
If you are putting RequestDispatcher in home page it will direcly
goes to the directed page/jsp.
Put your code properly for that.
16 years ago
hi,
i have my Mailing application.
after session is created successfully, it sends mail but when
i write code to read Mail
"Store store=ssn.getStore();
Folder inbox=store.getFolder("INBOX");"
its giving exception Invalid protocol: null and
javax.mail.NoSuchProviderException: Invalid protocol: null
Please, How can i overcome this problem
-Abhijit Sane
Thnks lot,
Appliction is working.
-Abhijit
16 years ago
Thank you very much Dittmersir,
Exception is resolves.thanks lot.
-Abhijit
[ January 07, 2008: Message edited by: abhijit sane ]
16 years ago
session is created but exception occuring in follwing code
that "com.sun.mail.smtp.SMTPAddressFailedException: smtp is currently not permitted to relay
550-through this server. Perhaps you have not logged into the pop/imap server
550-in the last 30 minutes or do not have SMTP Authentication turned on in your
550 email client.
"

Message msg = new MimeMessage(ssn);
msg.setFrom(new InternetAddress(from));
InternetAddress[] address = {new InternetAddress(to)};
msg.setRecipients(Message.RecipientType.TO, address);
msg.setSubject(subject.toString());
msg.setText(msgtext);
Transport.send(msg);
out.println("Your msg is sent without an exception");
16 years ago
hi,
i have problem regarding UploadFile Servlet
It is running successfully on my local machine.
But when i come across the network and want to upload the
file from clint machine it througing exception
:java.lang.IllegalArgumentException: Not writable: /home/cyansoft/public_html//data
i am using the of com.oreilly.servlet.MultipartRequest package.
i am using the url:
URLwebTempPath = getServletContext( ).getRealPath("/")+"/" +"data";
and using MultipartRequest mpr = new MultipartRequest(
request,webTempPath,10 * 1024 * 1024);
to upload the file.
Will someone help me why it is not working from client machnie.
16 years ago
hi,
i have problem in mailing application that it does not working
that giving Invalid Address Exception

String to,from,smtphost
String msgtext = "--msg--";

boolean debug = Boolean.valueOf(smtphost).booleanValue();

out.println("value of (smtphost).booleanValue()"+debug);

//if is it is returning false. is the server connected?

Properties props = new Properties();
props.put("mail.smtp.host", smtphost);
props.put("mail.debug", "true");
Session ssn = Session.getInstance(props);

// is there required some other authentication in terms of user

//because it is giving exception SMTPAddressFailedException


Please, Help me finding Solutions.
16 years ago
hi,
Still i not have the solution. i am tried that by crating package also.Th
Please, Can you tell me me regarding this.
16 years ago
Hi,
i am using apache tomcat 5.5.9 for my website application. html and jsp
are running succesfully uder public_html folder but when i go to servlet
it giving me error 404:"/home/public_html/HelloServlet" File does not exist. Please, can you tell me regarding this..
16 years ago