Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
0 Endorsements
Ranked #11.7K
Ranked #2K
~7K People Reached
Favorite Tags

15 Posted Topics

Member Avatar for sweta2010

check Java Mail API some references to do so: - [URL="http://java.sun.com/products/javamail/"]http://java.sun.com/products/javamail/[/URL] - [URL="http://java.sun.com/products/javamail/javadocs/index.html"]http://java.sun.com/products/javamail/javadocs/index.html[/URL] - [URL="http://code.google.com/appengine/docs/java/mail/"]http://code.google.com/appengine/docs/java/mail/[/URL] hope it helps.

Member Avatar for chackboom
-1
117
Member Avatar for surabhi.awh

Maybe because the file path separator you used not consistent: [code] File savedFile = new File("C:/apache-tomcat-6.0.16/webapps/example/"+"images\\"+finalimage); [/code] if you using Windows, change your file path separator to '\' instead of '/': [code] File savedFile = new File("C:\\apache-tomcat-6.0.16\\webapps\\example\\"+"images\\"+finalimage); [/code]

Member Avatar for jaka.ramdani
0
166
Member Avatar for Member 784740

I don't think method type matter (GET or POST) in this case, in case of form submission you better use onSubmit action rather than onClick. CMIIW.

Member Avatar for jaka.ramdani
0
518
Member Avatar for exchequer598

You could try this code: [code=java] <%-- Document : index Created on : Jul 27, 2010, 2:09:50 PM Author : jaka --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@page import="java.io.File" %> <%@page import="java.io.FileFilter" %> <%@page import="java.io.IOException" %> <% String currDirStr = getServletContext().getRealPath(""); File[] folders = null; try { File currDir = new File(currDirStr); …

Member Avatar for EloiseJoseph
0
807
Member Avatar for gingerfish

You can use Observer-Pattern, i made a quite simple sample which will printing current datetime to console and within relatively same time append same current datetime to an JTextArea, scheduled every 5 seconds, infinitely (till program closed). [CODE] /* * MyFrame.java * * Created on Jan 7, 2010, 10:40:13 AM …

Member Avatar for adams161
0
3K
Member Avatar for rahul8590

as far as i know, mysql driver class is "mysql.jdbc.Driver" without "root" as in your code, and you don't have to call newInstance() method, try to change your code like this: [CODE]public class Test { public static void main(String[] args) { try { Class.forName("mysql.jdbc.Driver"); System.out.println("Good to go"); } catch (Exception …

Member Avatar for rahul8590
0
98
Member Avatar for sneharaveendran

[QUOTE=sneharaveendran;876383]Hi all I need to read an Excel sheet using java and I need to know how many columns are there in that excel sheet. Please drop a code snippet to this thread[/QUOTE] Try using [URL="http://jxl.sourceforge.net"]JXL[/URL]. Below some simple approach for getting total rows and columns of a Worksheet in …

Member Avatar for jaka.ramdani
0
169
Member Avatar for Truffy

it just a matter of escape character '' in windows, you need to type '\' for single backslash '', and for double backslash you'll need '\\\', so instead of [code=Java] file = new File("\\10.123.45.67\apps\user\staging\aa\log\success.*"); [/code] you must use: [code=Java] file = new File("\\\\10.123.45.67\\apps\\user\\staging\\aa\\log\\success.log"); [/code] don't use success.* cause Java will …

Member Avatar for Truffy
0
122
Member Avatar for Nperic

[QUOTE=Nperic;876170]Thanks a lot for the replies! I have just looked up some i18n (internationalization) tutorials. It is pretty much what i am looking for. I wasn't sure what to use to implement the language feature. That's where i needed the assistance. We are constructing a desktop application btw :D If …

Member Avatar for jaka.ramdani
0
111
Member Avatar for caps_lock

[QUOTE=caps_lock;875695]i got the recursion working, couldnt quite implent the new for loop, moved on to the next step, ei. trying to compare files in two ArrayLists, and the first hiccup is as follows: [code] ArrayList arrayList = new ArrayList(); ArrayList arrayListAgain = new ArrayList(); File[] files= f.listFiles(); for(int index = …

Member Avatar for caps_lock
0
161
Member Avatar for Majestics

You may want to change your code like this: [code] import javax.swing.*; import java.awt.*; public class keyboard { public static void main(String args[]) { String s[] = {"esc","F1","F2","F3","F4","F5", "F6","F7","F8","F9","F10","F11","F12", "psc","slk","pau" }; JButton j[] = new JButton[s.length]; for(int i=0; i < s.length; i++) { //initialise buttons j[i] = new JButton(s[i]); //j[i].setText(s[i]); …

Member Avatar for Majestics
0
113
Member Avatar for Ghost

[QUOTE=kanna999666333;875315]send me code which finds sytem information in java[/QUOTE] try using this: [code] import java.util.Map.Entry; import java.util.Properties; import java.util.Set; public class Foo { public static void main(String args[]) { Properties systemProps = System.getProperties(); Set<Entry<Object, Object>> sets = systemProps.entrySet(); System.out.println("systems properties:"); for(Entry<Object,Object> entry : sets) { System.out.println("name: " + entry.getKey() + …

Member Avatar for jaka.ramdani
0
1K
Member Avatar for sach_ak47

[QUOTE=sach_ak47;684319]hi , actully i have read filters in servlet. but i didnt understand , the actual working of filters ( in practicle environment). i want to know that , when i am sending request to server and i am using filter before request went to server. so that process is …

Member Avatar for ~s.o.s~
0
103
Member Avatar for prateeknigamk

[QUOTE=prateeknigamk;685118]i am new in java can any one please tell me the main use of constructor if we can use method in what cases its necessary to use constuctor[/QUOTE] just give it a simple though, there is Object in Java, and the Object has Method which is its accessor. SO …

Member Avatar for jaka.ramdani
0
90
Member Avatar for kevinpeterson22

Just guessing, coz you don't provide the line where the error occured. Try delete the [code]throw new UnsupportedOperationException("Not yet implemented");[/code] from your [code]accessDBinit[/code] method. Tell me if it's working. Just suggestion, why don't you use [code]PreparedStatement[/code] instead of [code]Statement[/code] for cleaner code, and try-finally block when you dealing with open-close …

Member Avatar for jaka.ramdani
-1
142

The End.