View Full Version : java answers


Pages : 1 2 3 [4] 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27

  1. How to convert simple java class to executable windows services
  2. The month of date cannot be displayed properly in java selection list
  3. Date cannot be displayed properly in java drop-down selection list
  4. changing request url
  5. How to read number values stored in columns in a text file into an array?
  6. How to read number values stored in columns in a text file into an array?
  7. Exception in JSP
  8. How to resolve Invalid Security Tocken Provided Error?
  9. display array stored from another class.
  10. Java Stack Operations Help
  11. Error in my Program[URGENT]
  12. Exception in thread "main" java.util.NoSuchElementException
  13. Create 50 element boolean array, set first 25 elements true, rest false
  14. How to display numerical data on a splash page? Draw or text?
  15. How to update a table in database when changes are made to already existing records?
  16. How sub classes of abstract classes interact?
  17. Why the COM4 status is free when my phone modem is using it ?
  18. How to read from file and store some info into array?
  19. Is it possible to have an empty integer?
  20. How to connect to smtp server?
  21. How to pass parameters with sendRedirect().
  22. How to pass values from jsp to flash?
  23. How to create a loop that exits when I press enter twice?
  24. Thread Safty w/ WeakReferences
  25. looking for java based OCR
  26. isDigit & isLetter methods
  27. Can anyone help me to solve that? RSA encryption/decryption
  28. How to decrypt byte after encoding it to a string?
  29. How to Filter Multiple SharePoint Lists with Form Web Part?
  30. How to enable keyboard,mouse(windows-swings app)
  31. Why am I getting the Error "No source is available"?
  32. how to detect bluetooth devices near by a pc using bluetooth in java?
  33. Problem with tabbed pane containing an image - never calls paint method on tab select
  34. This doesnt give a resultSet but it updates the db
  35. could not find DB driver
  36. How to write a static method for an array list.
  37. While loop Problem
  38. How to completely stop autodownloading or prompting to update java versions?
  39. dynamic value for the offset attribute of logic:iterator
  40. How to create a login window with particula password?
  41. How to set the size of a button in java when the text on it is empty?
  42. How to turn this to mirror BACK to FRONT
  43. How to print 10 prime numbers per line and continue on the next line?
  44. How to get the array list values in jsp?
  45. How to replace a number in an array
  46. How do a get to read the next line in a text file?
  47. Could you suggest me a free software to practise on Java exercises??
  48. Regular Expression: how match a whole word?
  49. Double Join Key Map, possible?
  50. How to turn a colorful image into a black-white one with java?
  51. Check if a phone number is valid
  52. How to fix a NumberFormatException error?
  53. How to connect web page to program before server
  54. How to get url from web browser in java
  55. Why am I getting a static reference error and how do I fix it?
  56. Clarification for quicksort
  57. How to write strings with double quotes in csv files?
  58. how do i get the number to display only 2 decimal places?
  59. How to change color of a text box based on tag value
  60. How to configure the Download file button in jsp page design?
  61. Listener Class not found
  62. problem in javax.comm package . it is showing package does not exist.....
  63. How do I turn this for loop into a for each loop?
  64. Simple check box value return
  65. How to design my application
  66. what is the syntax to this for loop in java for(double a:accounts).
  67. I can not figure out how to set the first, second, and third to equal correctly.
  68. what is the maximum size of the array list in java
  69. Is it possible to write a constructorless class? if yes, how?
  70. Negation detection in text
  71. What is the difference between object !=null and null !=object?
  72. how to write a print statement,& to calcualate running totals at the end?
  73. Help testing two words, then printing the cross of where the same chars are..
  74. How do I test the implementation of my ArrayList class in netbeans?
  75. Can I access one object from another?
  76. Regarding PrintWriter
  77. Experiencing a StringIndexOutOfBoundsException
  78. How To Loop Checkboxes and Radios and Display in Alert
  79. How can I add a node in a singly linked list with a value x after i node ?
  80. Not sure what is wrong with this code
  81. Batch program cannot execute JAVA command
  82. Can't install Java on my Windows 7 system?
  83. How to develop a "small" application in Java?
  84. How to convert a long string into an array for encoding and decoding purposes?
  85. Why java Runtime.exec("rasdial.exe MyVPN login pwd") freezes Win2003 server 64 ?
  86. How to call an array in one class in another class
  87. how do I make a binary to decimal converter?
  88. Commons-logging not found, logging through JDK logger
  89. How to sort the columns using gwt? Is there any direct method to sort column in GWT?
  90. How to execute one java program from another?
  91. Problems with a Java infix converter
  92. How to combine "implement" and "imports" in java?
  93. cannot access a string
  94. How to copy an image a few dozen times into the same picture with dif coordinates.
  95. Application of Java in BlueJ
  96. how do I fix a "string index out of bounds" error
  97. How to get the variable value to pass to other methods.
  98. How to use checksum in a DatagramPacket in java?
  99. Cannot find symbol class (Java swing)
  100. ArrayIndexOutOfBoundsException ( Partition )
  101. How to add a backspace in calculator.java using swing?and remove the decimal
  102. illegal start of expression errors?
  103. unable to connect db with java program
  104. i am getting class not found exception
  105. Add, subtract, multiply, divide fractions...
  106. java socket programming
  107. Binary search tree implementation problem
  108. How to read text file via JSP
  109. file uploading functionality and tag description in jsf 1.2
  110. org.apache.jasper.JasperException: Unable to compile class for JSP:
  111. How to create instance of a class in jsp
  112. How to Add, Update, Delete Save and Cancel New a Record
  113. link to download beans development kit ?
  114. How to connect to Database Table in the Embedded JavaDB in NetBeans
  115. Dynamically create textboxes
  116. Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException:
  117. Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException:
  118. How to make an array without setting the size first?
  119. java.lang.ClassCastException:
  120. How to Write the Read-only file in java?
  121. how can i put multiple classtypes in 1 array/arraylist
  122. Unable to delete the file after writing
  123. How can I convert a byte array to an object ?
  124. why strings in java when we can have array of characeter or viceversa?
  125. (List)Web server n app. server
  126. numberformatException when i convert from string to decimal
  127. How to split a file into tokens
  128. How to fill drop-down list in JSP with JDbc on page load event
  129. What is the purpose of abstract classes and when are they used?
  130. how to display all ouput using pop up dialog boxes
  131. Multiple threads, require a synchronized list, which can hold multiple variables
  132. how to deploy web service in java using netbeans??
  133. Why am I getting java.lang.ClassCastException ?
  134. log4j writes to system out after changes made to unix system
  135. How to call a JSP variable inside a java class
  136. unreported exception ,exception to be caught r declared ,error is this
  137. Manipulation to be done in arrays.
  138. reached end of file while parsing
  139. missing some import class(may be)
  140. Reading a value from a string.
  141. Open Source License for my project
  142. Respond to key stroke in command line programs
  143. Using given WSDL URL and Key need to call web service dynamically in java
  144. Error: invalid method declaration;retrun type required
  145. Can't establish connection between Servlet and MySQL
  146. Dynamic invocation of web service client through wsdl and SOAP
  147. Java Inheritance woes
  148. System configuration for log4j
  149. Java split regex
  150. how to create a java method that removes a random element
  151. How to create a select list based on options from another select list
  152. How to round float values up at .6 and down if .5 and below
  153. how to read and write the japanese language in java
  154. Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
  155. Array of buttons
  156. the import java.util.regex cannot be resolved... what am I missing?
  157. reached end of file while parsing
  158. This program won't execute
  159. No input source supplied to the exporter.
  160. Identical request in browser and Java with different responses, why does this happen?
  161. How to store information in the JSP form in the database SQL server 2005?
  162. java.awt.Robot - Stimulate Key Press Not Working
  163. How to change the values of a drop box based on another drop box
  164. I'm getting "Wrapped java.lang.ArrayIndexOutOfBoundsException: -1" on DB read
  165. How to upload data to a server using gprs connection?
  166. Two problems in debugging: results var "cannot be resolved" & if stmt syntax error
  167. My COCINStudent Refused to Compile
  168. Having trouble understanding inheritance
  169. Recommendations for beginner Spring tutorials
  170. How to send Http Request in Swing?
  171. SshPrivateKeyFile-- Private key is not in the default format
  172. How to convert user input to Date
  173. How do I connect MYSQL to Eclipse?
  174. How I can solve the out of memory Exception in my java project?
  175. what is the use of interfaces in java?& why we interface in java?
  176. Trying to SSH to a trusted server
  177. apache tomcat
  178. sparce matix
  179. JXTable
  180. how to try catch this?
  181. how to access user inputted port number client-server
  182. import - cannot resolve symbol io.PrintWriter & BufferedReader
  183. how do i read data from a data file into respective objects.!!1
  184. ssh from one passwordless server to another passwordless server
  185. How to place links inside confirmation boxes.
  186. Request JDK 5 Download Link
  187. Can I have join between entities in openJPA with transaction-type="RESOURCE_LOCAL" in
  188. non-static variable calcGrade cannot be referenced from a static context
  189. hidden Iframe and div parent -child jsp
  190. What is diffrence b/w JDK1.5 & 1.6?????
  191. how to build a dashboard report in struts?
  192. Why doesnt my code correctly display correct and wrong answers?
  193. How to select Checkbox by clicking on a table element td
  194. Cannot connect to TIBCO bus using eclipse after adding tibrv.jar library
  195. How to make my programs as executable applications ?
  196. how to change date in one timezone to another timezone.
  197. How to modify particular cells just prior appearance to JTable
  198. Why doesn't character datatype take up more than one character ?
  199. How to execute "AT" command using java ?
  200. How do i run an applet on browser with permission
  201. what is the use of inheritance
  202. how to convert byte code to sourse code
  203. i want to override method with different return type is it possible?
  204. what is the difference between jdk1.6 and jdk1.7
  205. What is the meaning of "static" in Java
  206. what is use of public static void main
  207. File.delete returns false.
  208. My program gives the same result whether i input the correct account or not
  209. why is my program printing the same thing twice
  210. how can i incorporate my reader file to my program
  211. What does the following stack trace means and how can I correct my codes?
  212. Why my run method is not working?
  213. HasSet vs ArrayList and modelling issue
  214. Need to create XSD from WSDL using Eclipse IDE
  215. I can not run Apache Tomcat for servlets!
  216. May you help me create a java program that performs integer division.
  217. class or interface expected error
  218. how to get a boolean value with the conditions given here?
  219. i want to autorun a program
  220. Test Input Java
  221. java threading question
  222. Java in web page using object tag
  223. Database in j2me
  224. how to compare contents of two files in java?
  225. how to get the divisible of 3 using do?
  226. How to send SMS ?
  227. 2 variables in 1 "if" (new to java)
  228. Can a string literal extend over several lines?
  229. String.replace
  230. how to retain selected value of dropdown in jsp
  231. how to handle this java.lang.ArrayIndexOutOfBoundsException
  232. Please state the error in following program.
  233. Database in j2me
  234. Tamil font in J2me
  235. Object oriented design for more than one class . Java
  236. Implementation of RFB protocol
  237. difference between initialisation and declearation
  238. how to resolve Connection to mysql database from jApplet on webpage
  239. How to calculate difference between old date/time captured in mysql and present date
  240. how to access the database from applet which is embedded in jsp
  241. override equals and hash code
  242. Need help with creating a hashset and selecting distinct sorted data
  243. How to fix Servlet as is not available error
  244. how can i redirect jsp page on a blank page
  245. org.apache.poi.hssf eclipse compiler tells cannot reslove symbol?how can i solve this
  246. What does static int ConvertArg do? How do i evaluate this code?
  247. how to view the attachment ?
  248. how can i do web scraping using java?
  249. code for dialing a specific number (eg *123#)from mobile
  250. problem in checking the dimensions of an image.
  251. How can I use stanford parser package?
  252. display an error msg saying wrong format.
  253. Why is the java compiler throwing a NullPointerException?
  254. jar files not working
  255. setting path in java
  256. how can I stop my applet freezing?
  257. How to make a jsp look nice, Netbeans 6.5
  258. i want to create a session in jsp and i want to mantain it on other pages
  259. coding with java
  260. exception
  261. How to get result from 2 fields and populate a 3rd field in Acrobat 9
  262. server.xml:has to do anything with database access pools
  263. how can i connect jdbc driver to sql server2005 while i am having jdbc driver?
  264. How to find a word in multiple text files ?
  265. how to show the particular div in a jsp page?
  266. I want to use https:// over LocalHost tomcat (vista) but failed, I used
  267. how do i get my program to add a $15 fee if the balance falls below $400
  268. Image processing
  269. How do you flip an image?
  270. println whitespace
  271. I want to know how to store video into a MySql database using Java?
  272. How to connect two devices in an ad hoc network using JAVA?
  273. JSP Popups
  274. how can I get the source code of Algorithm Apriori_IMLMS in jave or any language ?
  275. JavaFX Sequence Declaration
  276. about NumberFormatException
  277. How can i open any file using voice command.
  278. how to run it on live server to make, a live webserver to a particular port
  279. Need webservice to tell JSP To change page
  280. Java Class.forName slowed down due to Xml Annotations?
  281. jsp-ajax-servlet
  282. how can i send request through ajax on servlet from jsp and and get back data on jsp
  283. How to use payment gateway in JAVA ?
  284. how should I make interface to stanford-part-of-speech tagger in java?
  285. an error while inserting data in access database through jsp
  286. Interthread communication in java
  287. How to forward to or run a Java Swing application from JSP?
  288. Read a PDF and print content in console
  289. Why is my server not responding?
  290. Custom loading class
  291. Send webservice parameters through java bean to exequte page
  292. how do I do this on java
  293. in java.io what is the stream class used to restore state of object
  294. how to connect jsp page with the db2 database?
  295. How to make interface to stanford patrs-of-speech tagger (stanford-postagger.jar)?
  296. HOW detect EOF at below code
  297. Can you find the bug in <div> I do NOT get sample xml data[bookrss.xml]... RSS Client
  298. in Java.io package state of the object from the serialized stream
  299. Insert query problem
  300. How do I check chars in a string for predetermined criteria?
  301. data insertion problem
  302. how to pick a random suit/rank from an array?
  303. Want to make Text to speech example ?
  304. I am developing an application, Where i used a jar file and error pop ups as below
  305. How to make Text to Speech in Java ?
  306. Accessing an archived database
  307. differance between string[ ] and args[ ]
  308. Problem in including dynamic image in BIRT Report.
  309. Need help opening a project in Netbeans 5.5 with Tomcat 6
  310. How can i play Mp3 file by the Java program ?
  311. How to check whether it is first entry or second entry
  312. What is abstract how can we use it?
  313. how to send an object from a servlet to a jsp
  314. How to create a paint in java ?
  315. How to compile and java file by the use of Jsp or Servlet ?
  316. I want to make a java program for text to speech application.
  317. Help needed WRT text based adaptation of the TicTacToe game.
  318. packages in jdk1.6.0_02
  319. email input displayed on another page
  320. How to count the number of times each word appears and store in table?
  321. i have a question?help me
  322. how to copy database as it is to a new database by java code
  323. How To Configure Firewall Access For An Application By Java Program.
  324. Registry Entry For A Application in Windows\system32\ Directory
  325. JCombobox Problem
  326. How To Create "Startup Entry" With Java Script in Windows XP?
  327. why we use goto statement?
  328. What is goto statement used for? Provide a simple example
  329. I get a jCarousel....abort when I use foxnews.com. How do I eliminate this error
  330. upload file in jsp
  331. Java command passing args, help?
  332. help to compile java
  333. hashmap to treemap
  334. How do i implement password encryption in Spring framework??
  335. how to store and retrieve doc and pdf files from data base using struts2
  336. Eclipse xsd problem
  337. enum and 2D array
  338. Help me in using mouselistener
  339. incorrect listing
  340. Where can I get the tutorial of sun.misc ?
  341. code to copy and paste a folder from cd to a specified destination folder
  342. can anyone explain me fibonacci number program?
  343. how to develop application using MVC pattern?
  344. Derived class mystery
  345. How to read a txt file with ObjectInputStream
  346. why do we really need to "throw " exceptions in java programing??
  347. Differences in increment operators used in a while loop
  348. how to apply color to an edge in prefuse by using source and target node id?
  349. Cross-Domain Cookies
  350. How an action1.java can call a method from action2.java?
  351. i have 2 cannot find symbol errors, one for method getCurrSkillLevel(int).
  352. if javascript is not object oriented language then why we use methods in javascript?
  353. steps for creating a histogram for binary image in JAVA
  354. How do I make a network game on JAVA?
  355. i m unable to solve this problem in netbeans:
  356. Error message: symbol cannot be found
  357. Runtime errors while getting property file in netbeans 6.5
  358. problem in getting already existing values
  359. how to set no data when no data from db in jasper report?
  360. Quick Velocity Template Example
  361. Doesn't displaying image in servlet ?
  362. problem with the path with Class.forname() method
  363. How to add xml schema attributes using JAXB?
  364. how to do checking of the value
  365. Add two copies of a JPanel to a program's main JPanel with Netbeans GUI editor
  366. problem in deleting the file
  367. How to add xml schema attributes into the java object using JAXB?
  368. JAXB @xmlSchema and package-info.java error
  369. Netbeans labels not showing
  370. Write a program to enter the 1st 20 perfect numbers in an 1D array. Use For loop.
  371. unable to view my file in browser
  372. servletconfig
  373. how to view the existing xml file
  374. Is the syntax of the url for getConnection() method in jdbc correct?
  375. What does the following codes do?
  376. Why the command prompt specifies "Could not find the class '
  377. sample code for maplet framework ?
  378. Why am I getting a n exception with these codes?
  379. How to get a .jrxml file using java?
  380. How can I create a jar file?
  381. Am I using the SecurityManager class welll?
  382. what is the problem in the following code?
  383. createFilteredReader - how does it work?
  384. How to use the Date class to get days in month, day of week for date, etc
  385. java.lang.NullPointerException Error when compiling java application
  386. eclipse problem PermGen Space
  387. I had a doubt on how to use java.io.read(). How it works
  388. Error java.lang.ClassNotFoundException using loadClass
  389. how to print the highest length of word in a string ?
  390. How to correct format of the output
  391. How do I tag parts of speech to tokens(substrings) in my java program?
  392. Why JVM is in RAM
  393. reached end of file while parsing - Help?
  394. add attachment using webdav
  395. how to parse an address string
  396. What is wrong with the following java boolean codes?
  397. unable to get the output value in format
  398. How to create a database with java
  399. How do I get this result in the following expressions?
  400. How can I use the following operators in java?
  401. How to send email using data from PDF form
  402. Can Java do drag and drop object creation?
  403. What is the function of a channel in java?
  404. Reflection
  405. Maven Is Complaining that Eclipse is Running in JRE, and Not a JDK
  406. What is the difference between core java and j2se?
  407. thunder head tool
  408. Java countdown application
  409. DB Connection
  410. how to eliminate weird characters?
  411. getelementsByTagname()
  412. ectract the content of <div class="abstr">
  413. In hibernate is it necessary to use Transaction while reading?
  414. Error in Displaying Image
  415. what is drill- down report in jasper i report?
  416. I can't get this program correct. Someone please help me.
  417. how do i tokenize a string on the base of special characters such as ' and . ect?
  418. Multiple-step OLE DB operation generated errors
  419. Why i am I getting "Connection refused ":connect error ?
  420. Please Helpi to Debug My Java Program....
  421. How do I download a Java Compiler?
  422. how to fix "Cannot find symbol"
  423. Pass by Reference in java
  424. how do i get rid of my error
  425. Doctype for ie8
  426. an example of class and subclass program
  427. ip automatic configuration on LAN through server source code
  428. Regarding Excel file Location
  429. Multicast in java
  430. Convert Java to Servlet
  431. Change .jar image
  432. How to change DIV IDs onClick
  433. How to find data into the class database?
  434. How to create java mobile application?
  435. Parse a string to int.
  436. passing value from servlet to html
  437. About JDBC
  438. Beanshell string manipulation
  439. how to store data in xml file...
  440. how can i raise the error massage in jasper i report if no record found in database?
  441. Why I am not getting an alert dialog box?
  442. Can't shuffle
  443. extracting Html tags usin HTMLUNIt
  444. JAVA project, Urgent help needed
  445. extract URLs using HtmlUnit
  446. Triple DES encryption
  447. dynamic array of string
  448. class, interface, or enum expected error
  449. Open source text editor to turn into application
  450. java: create zip-file with password
  451. Could not find the main class: javaapplication3.Main
  452. Hi , can you help me to make a main method (test method ) for this application ?
  453. Sudoku, just need help on generating random numbers... and then checking
  454. one - jar Unable to locate com.simontuffs.onejar.Boot in the java.class.path:
  455. Fitting image on Canvas Control
  456. utility of java in web based applications
  457. How to edit existing record using jsp
  458. Do you have any answers?
  459. How to create a jar file?
  460. double cannot be dereferenced error
  461. Identifer expect error
  462. Multplication table
  463. how can i draw more rectangle?
  464. java,socket,,ports
  465. Accessing java Control panel properties in java
  466. Throwing exception makes window freeze
  467. java synchronization
  468. Why won't this these links work?
  469. scrollPathToVisible() problem
  470. SHA1 C# Encryption to Java.Digest SHA-1 Encryption
  471. why is the equal method of Object class is getting called?
  472. How to retrieve value from database
  473. Running multiple instances of Javaw.exe
  474. Display result from db onto webpage
  475. Java array that gets sum, mean, highest num, lowest num, and exits on input Zero
  476. Windows calculator
  477. Using JOGL with Eclipse under Ubuntu 10.05
  478. Insert a number at a specified position
  479. What is wrong with my java codes?
  480. print setup
  481. constant height of a table in Itext
  482. Related to adding java source to test jar in Maven
  483. Is it safe to call a instance method from constructor?
  484. How to embed java code into a jsp scriptlet
  485. 2 dimention bubble sort
  486. throw and throws
  487. Store the numbers in a array in Java
  488. Java application to copy as400 data to sql server database/table
  489. How to send data from a client to a server via the POST method.
  490. How to read data from a file and splitting them into an array list (java)?
  491. Null field . I got this error : java.lang.NullPointerException
  492. How to overwrite a file in Java
  493. causevalidation issue
  494. how to get the pixel of tha image
  495. get pixel value of image which is already displayed
  496. 2ways ssl not working: bad certificate
  497. programming a game of azad
  498. Alignment working properly in IE and not in Mozilla
  499. How do I prepare for a scjp java exam
  500. Populating a three demensional array from a file
  501. benes looping algorithm
  502. How to write to the .doc file using apache POI
  503. Encrypt/Decrypt
  504. Textboxes array
  505. java Gui actionListener help
  506. How to load a big XML file in Java
  507. How to display progress image while waiting?
  508. How to fix servlet threw exception error
  509. How to set the environment variables for new processes
  510. How to send SMS over/using GPRS MODEM
  511. How to deploy common library in Tomcat
  512. java.lang.StringIndexOutOfBoundsException
  513. How to fix Circle.java:18: variable radius might not have been initialized error
  514. how can i move the text ?
  515. Configuring ENVIROMENT
  516. onclick not working in IE6
  517. Usage of net.sf.saxon.TransformerFactoryImpl
  518. Using Regular Expression (regex) in Java Programming
  519. Trouble with arrays
  520. combo box with ajax
  521. Print String array values
  522. How to fix 'Symbol not found' error
  523. How to sort the contents of dataTable component using tomahawk
  524. Match a part of String using Reg Exp
  525. Can we create a database in DB2 using JDBC drivers.
  526. stringTokenzier....
  527. lulea alorithms program required
  528. random prime number generation for RSA
  529. a program-inventory management
  530. having trouble with finding and counting the unique numbers
  531. Extract Descriptions
  532. How to copy the contents an incoming XML from an application and store it in a file
  533. How to insert data to database using hibernet & struts
  534. How to load database values on a JSP page
  535. tell me any site for java excrises....
  536. Help with "ArrayIndexOutOfBoundsException" on code using Vector class and methods
  537. explain the effect of the cut (!) predicates in PROLOG?
  538. FileRead.java:79: cannot find symbol
  539. path,classpath problem in my system
  540. How to replace a specidfic character in a phrase
  541. invalidate session
  542. How to display asteriks according to total salary
  543. JSP: JNDI to SQL Server 2008
  544. How to drag many JLabels contain images to JPanel?
  545. regd "class,interface or enum expected error" in java
  546. Check whether the user enterd values is blank or not
  547. Problem on Import struts2 plugin in netbeans 6.8
  548. Tree
  549. Distinguishing integer numbers from if statements?
  550. How to get checked boxes parameter into database using Java Servlet?