35,618 Topics

Member Avatar for
Member Avatar for narayanabhilash

Code for Upload.... strLegalDocId = strMerchantId + strLegalStruct; String strSql = "{call Insert_FileData(?, ?, ?, ?, ?, ?,?)}"; objCst = objCon.prepareCall(strSql); objCst.setString(1, strMId); objCst.setString(2, strLS); objCst.setString(3, strFieldId); objCst.setString(4, strFileName); objCst.setString(5, strLDId); bFileSize = inpStream.available(); objCst.setBinaryStream(6, inpStream, bFileSize); objCst.registerOutParameter(7, Types.CHAR); objCst.executeUpdate(); strStatus = objCst.getString(7); System.out.println("strStatus : " + strStatus); Code for …

0
90
Member Avatar for bryan69

hi, i would like to design an intrusion detection system-type of software. is it best to use Java for it?

Member Avatar for bryan69
0
145
Member Avatar for alsoumhi

hi all , I am new to this forum I have a simple question why getParameter() doesn't work with me . My java server page is as follow: [code=Java] import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class InputServlet extends HttpServlet { public void doGet(HttpServletRequest request,HttpServletResponse response)throws IOException, ServletException { String …

Member Avatar for alsoumhi
0
294
Member Avatar for Web_Sailor

Hi, I need to create a program in java that will create versions for the different text files I upload to my specific folders. Like suppose:- 1) I have downloaded 1st batch of files. Version control software will create some version ID for them based on date. 2) When I …

Member Avatar for JamesCherrill
0
87
Member Avatar for nipa.pillai

Below is the scenario.. First Page Second Page Radio button 1 Radio button 2 Submit. I select the first Radio Button and submit and then i go to second page where i have some content. Now when i go back to first page the same radio button which i had …

Member Avatar for kvprajapati
0
253
Member Avatar for masterjiraya

Plssss someone help me in JAVA? I have the code here name the file as ifmdas.java: (the code is) [CODE=java] import java.io.*; public class ifmdas{ public static void main(String[] args) throws IOException{ BufferedReader stdin=new BufferedReader(new InputStreamReader(System.in)); String option, firstnum, secondnum; int num1, num2, prod, quo, sum, diff, choice; System.out.print("Choose An …

Member Avatar for dharmajava
0
306
Member Avatar for kg4cxl

New to Java and need some help...I am getting several Errors and I am not sure why here is the code and the error messages: [Code] import java.io.*; import java.util.Scanner; import javax.swing.JOptionPane; import java.util.*; import java.text.*; import java.lang.*; import java.math.*; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.net.URL; public class …

Member Avatar for di2daer
0
189
Member Avatar for hardik.rajani

My Spring.xml is something like this: [CODE] <beans> <bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl"> <property name="host" value="_local-mail-server_" /> </bean> <bean id="businessLogic" class="com.logic.BusinessLogicImpl"> <property name="mailSender" ref="mailSender"></property> </bean> </beans>[/CODE] And bean definition is as below: [CODE] import org.springframework.mail.MailException; import org.springframework.mail.MailSender; import org.springframework.mail.SimpleMailMessage; public class BusinessLogicImpl implements BusinessLogic { private MailSender mailSender; public void setMailSender(MailSender mailSender) …

Member Avatar for hardik.rajani
0
3K
Member Avatar for CoSIS1

Hi everyone ; I have read The JFreeChart Class Library Version 1.0.13 Installation Guide and I follow the instruction there but I got some errors while the Installation; allow me to show the steps that I have followed and the errors I got : 1. Download jfreechart-1.0.13.zip and jcommon-1.0.16 files …

0
67
Member Avatar for BestJewSinceJC

After a little research I discovered some Calendar methods that were pretty nice. [CODE=Java]Date date = new Date(); int daysSinceSeen = - ( rand.nextInt() % 365 ); Calendar calendar = Calendar.getInstance(); calendar.setTime(date); calendar.add(Calendar.DATE, daysSinceSeen);[/CODE] How could this code be returning a date in 2010? Do I have a bug that …

Member Avatar for BestJewSinceJC
0
104
Member Avatar for JohnPhilipps

Good evening, I have the need to learn how to make a picture jigsaw with java. I have been looking for hours on the web for some kind of tutorial, source code example, something anything and I haven't been successfull in finding something I could work with. Would somebody have …

Member Avatar for JohnPhilipps
0
543
Member Avatar for waqaskhan1

plz tell java script checks for not insert blank value in database when using fckeditor????? when i not insert any record,the script runs like enter ans but value also inserted in data base..i want not insert blank value and check also runs .... my code is that: [code=php] <script type="text/javascript"> …

Member Avatar for emarshah
0
196
Member Avatar for peter_budo

I'm back to start again with GBL. Application start-up layout is as desired. However as soon as I draw upon "main page view panel" with paintComponent() page view panel does overlay thumbnail panel on the left. [attach]10801[/attach] Code for main panel to group up 3 main components [code=Java]public class RottrMainPanel …

Member Avatar for peter_budo
0
157
Member Avatar for MonicaClare

Hi to all programmers.. i have a problem about this code .. i don't know what to do to this code.. i change a lot of code .. but always appear the error "illegal start of expression" .. I'm a newbie in Java.. please help me in this case.. thanks.. …

Member Avatar for llemes4011
0
178
Member Avatar for llemes4011

Hi. I have some data that I need to store in a file, and (for simplicity's sake) I was considering using bitwise operators to pack it all into a single hex or dec number. I've never user bitwise operators, as they really confuse me. If anyone has any pointers and …

Member Avatar for llemes4011
0
479
Member Avatar for vuchko

Hi, I have a problem repainting Jpanel. I wrote a simple code just to check whether it works, but notnihg is happening. Function initPanelAnswer should initialize answer panel with some image, but I wanted to make it more simply. So, according to my logic, this should print out "Paint Component", …

Member Avatar for vuchko
0
691
Member Avatar for CoSIS1

Hi everybody, I am going to develop a web application by using jsp, in this application when I retrieve multiple rows from table into form as following : [code=jsp]<%Vector v1,v2; jmm.Database database = new jmm.Database(pageContext.getServletContext().getRealPath("/WEB-INF/config.txt")); database.jdbcConnect(); String sql; sql = "select question_text from tableA where type = 'Student'' "; v1=database.jdbcMultipleRowQuery(sql); …

Member Avatar for CoSIS1
0
124
Member Avatar for CoSIS1

Hi everyone; I have table contains question and answer columns , the answer either yes or no , I want to count the answer yes and answer no then compare the two results and if the count(answer) yes is greater than count (answer) no print yes else print no I …

Member Avatar for CoSIS1
0
189
Member Avatar for rizillion

Hi!, I have created a user inteface named "helpGUI". This user interface contains a JTextArea. I also have created a text file named "help.txt". I need to show the "help.txt" file in the JTextArea. As I'm new to JAVA I have no idea how to do this. Given below is …

Member Avatar for peter_budo
0
750
Member Avatar for akulkarni

i wish to print sll the combinations of digits of a number eg 123 gives 321 132 231 132.... [code] class numbers { public static void main(String args[]) { int num=123; int x=num%10; int y=num/10; int z=100*x+y; System.out.println(z); } } [/code] this is all my brain is letting me to …

Member Avatar for JamesCherrill
0
112
Member Avatar for sotvisal

import java.util.*; class Array { Scanner in() { return new Scanner(System.in); } void out(String n) { System.out.print(n); } int[] getarray(int n) { int a[]=new int[n]; for(int i=0;i<a.length;i++) { out("Enter A["+i+"]: "); a[i]=in().nextInt(); } return a; } void showarray(int[] a) { for(int c:a) out("Array: " +c); out("\n"); } void sortinc(int[] a,int …

Member Avatar for zeeven
0
117
Member Avatar for akulkarni

[code] i want a program which asks the user to type the password. If he goes wrong three times exit.this is my code import java.io.*; class password1 { public static void main(String args[])throws Exception { String pass="samarth"; boolean flag=false; BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String [] password=new String[20]; int i; for(i=0;i<3;i++) …

Member Avatar for tux4life
0
290
Member Avatar for rizillion

Hi! I have added an action listener for a button. When i click this button it should go to the second tab in the tabbed pane which i have created. I have created two tabs as follows: [CODE] tab.addTab("Change Password", panel1); tab.addTab("Add new User", panel2); [/CODE] and the action listener …

Member Avatar for llemes4011
0
2K
Member Avatar for Tmanchester

Howdy, I am quite unskilled on UI but have been tasked with looking at behavioral problems on our site. It has been observed that the app acts differently when a user clicks on a submit button with a mouse versus tabbing to it and the pressing Enter on the keyboard. …

Member Avatar for Airshow
0
113
Member Avatar for lakshay

Hi JavaExperts I have done few program in Java using Bit wise AND OR operator... But Not getting the proper output or May be I am doing something wrong Can any body explain why I am getting output class Bit { public static void main(String args[]) { System.out.println(010|4); } } …

Member Avatar for llemes4011
0
108
Member Avatar for memegha123

hi! this is what i m trying to do i m trying to display a form which has a drop down menu n a table displaying some basic data....now i want once user selects an item i want the form to submit to itself with the selected item as parameter..n …

Member Avatar for javaAddict
0
151
Member Avatar for gshockneo

Hi, I am really struggling with this problem. For ex. I have a login jsp page . After user logs in , I store their username and password in session object in next page. Now if I want more than 1 user to abe able to login from same browser. …

Member Avatar for gshockneo
0
994
Member Avatar for mimsc

Hey Fellas...Im getting this error on a "select box"...im trying to parse some info: PWC6197: An error occurred at line: 88 in the jsp file: /jsp/cpanel/HomeSellerList.jsp PWC6199: Generated servlet error: string:///HomeSellerList_jsp.java:147: cannot find symbol symbol : method indexOf(java.lang.String) location: class java.lang.Object PWC6197: An error occurred at line: 88 in the …

Member Avatar for hkansal
0
90
Member Avatar for George2

Hello everyone, I am looking for some approaches which can prevent my .class file being decompiled. My questions are, - I have heard that there is an approach called "obfuscated", I am wondering whether it is the best approach which meets my goal. If it is, where is the best …

Member Avatar for masijade
0
144
Member Avatar for manfosys

i wrote a code for download image from the website using URL class in java.The code is working fine.But the problem is after some time it shows- java.net.ConnectException:Connection timed out .Here i didnt use any proxy server and firewall.some sites gave soln as like change proxy settings or it is …

Member Avatar for manfosys
0
112

The End.