35,618 Topics

Member Avatar for
Member Avatar for Rasika Gonekar /

How to forward data to jsp from Servlet multiple times using request dispatcher. I have tried with timer in servlet with request dispatcher to forward updated data from databases to jsp page to display result. i laso tried with page refreshing with single jsp page

Member Avatar for cool_zephyr
0
129
Member Avatar for Mr.M

Hi DW I created a program in NaviCoder For Java and now I want to export it so that it can be a exe file so that it can be executed on a computer on it own without the need of an IDE. Thanks

Member Avatar for JamesCherrill
0
162
Member Avatar for reincom

public class PolarCoordinates { public static void main(String[] args){ int r=10; double x=0,y=0,theta=30; x=r*Math.cos(theta); y=r*Math.sin(theta); System.out.println("The value of x is :" +x); System.out.println("The value of y is :" +y); } } help please? it gives me wrong answer. 10cos(30) should equal to 8.7, but it gives me 11.7 ans. 10sin(30) …

Member Avatar for reincom
0
272
Member Avatar for Mr.M

Hi Dw I'm creating an atm appication and now my research pointed me to use the Java Point Of Service/Sale (JPOS) my application allow user to choose the amount from the options displayed on the screen and the user will use the number keypad to make his/her selection and the …

Member Avatar for Mr.M
0
597
Member Avatar for murali2489

Hi all, I have created an abstract class Named Employee and one Sub-Class named FullTimeEmployee. In my abstract class "Employee", i have defined two constructors one without parameter and one with two parameter, both used to intializee first name and last name. My aim is to print payroll for employee …

Member Avatar for murali2489
0
205
Member Avatar for corliss

Hi All, I have created an application that allows a user to select a diectory, where we parse the photos, and upload to a database. The issue that I am having is that I have a button on the form found in the newJFrame.java class called upload that when pressed …

Member Avatar for corliss
0
378
Member Avatar for JamesCherrill

I know this is going to be really simple, and I'm going to look like a fool when someone answers it, but... I'm tryingto replace any occurrenxe of any of these characters - ?_ with a * in a String I start with replaceAll("[ _-]", "*"); and all is well …

Member Avatar for masijade
1
236
Member Avatar for somjit{}

doing this works : contentPane = new JPanel(); contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); contentPane.setLayout(new BorderLayout(0, 0)); textArea = new JTextArea(); scrollPane = new JScrollPane(textArea); contentPane.add(scrollPane,BorderLayout.CENTER); setContentPane(contentPane); however this doesnt : contentPane = new JPanel(); textArea = new JTextArea(); scrollPane = new JScrollPane(textArea); contentPane.add(scrollPane,BorderLayout.CENTER); contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); contentPane.setLayout(new BorderLayout(0, …

Member Avatar for somjit{}
0
354
Member Avatar for lakshmia

i would like to know the connection between socket and webservice,ws replace sockets?or can i embed cocket programing in ws?

Member Avatar for jwenting
0
120
Member Avatar for LEO FRANCIS

PLEASE.... I NEED A TOPIC TO DO A PROJECT WORK IN NETWORKING BASED ON .NET OR JAVA.....PLEASE HELP ME OUT SOON

Member Avatar for malaysarkar
0
69
Member Avatar for lena1990

hi all, i have a java program that store arabic data in ms access to let the arabic writing apper i should change the uni code of the operating system but when i give it to my friends to insert data on thier laptop but they forget to change the …

Member Avatar for lena1990
0
126
Member Avatar for KellzDD

I am trying to figure out how to print these number patterns. pattern 1 6 56 456 3456 23456 123456 pattern 2 1 212 32123 4321234 543212345 65432123456

Member Avatar for cool_zephyr
0
114
Member Avatar for Andy_2

I've tried installing the jackcess libaray (http://sourceforge.net/projects/jackcess/files/) into my project using Project/Preferences/install jar. However, when I try import static com.healthmarketscience.jackcess.Database.*; it just says 'Incorrect package'. How do you install this type of libarary? (I'm a real nooob so sorry if this is obvious). Also - why so many programmers so …

Member Avatar for JamesCherrill
0
314
Member Avatar for mesbahuk

I'm currently working in a java to c# conversion project. In one part I got this Java code snippet. public CustomType someMethod(Message msg) throws IOException { byte[] data = msg.toString().getBytes(); } to my understanding, data contains the byte representation of the string *msg.toString()* But when I try to write it …

Member Avatar for mesbahuk
0
266
Member Avatar for reincom

public static void main(String[] args){ /*The number of bacteria, B, in a culture that’s subject to refrigeration can be approximated by this formula: B=300000*e^-0.032t Using this formula, write a program that prompts the user for a value of time, calculates the number of bacteria in the culture, and displays the …

Member Avatar for reincom
0
108
Member Avatar for benjo.s.lucas

import java.util.Scanner; public static void main (String [] args) { Scanner p = new Scanner(System.in); String w; System.out.print("Enter something :"); w = p.next(); String[] m = w.split("\\s+"); for (int i=0; i<m.length;i++){ System.out.println(m[i]); } } } if i input: a s d the output is: a only

Member Avatar for JamesCherrill
0
194
Member Avatar for cool_zephyr

Hello everyone..i'm trying to use spring to develop a website..but I am stuck with this snippet..what is the difference between @RequestMapping(value="/addBook",method=RequestMethod.GET) public ModelAndView Login() { ModelAndView model=new ModelAndView("addBook"); return model; } and this @RequestMapping(value="/addBook",method=RequestMethod.GET) public String Login() { return "addBook" } I'm really confused with this..don't both of them do …

Member Avatar for LastMitch
0
200
Member Avatar for Zdneth_1

Hi.. I want to seek help about database in SQL and Jtable in Netbeans. In our sales inventory system, we have these tables in database namely 'stockmasterlist' and 'pricemasterlist'. They are relational since they have in common with regards to their 'ProductNumber'. Now, since they are of different tables but …

Member Avatar for pbj.codez
0
250
Member Avatar for java_help

Firstly, I am a beginner in Java, and I have never been into any programming before, so it seems like I need a little help to solve a task. The task is "I've a text file with the size of more than 5 MB, & I need to clear the …

Member Avatar for JamesCherrill
-2
546
Member Avatar for mc.sQr

i'm newbie ,i just started learning the basics of java. how much time-give or take- would it take to have working knowledge of java? how much ican learn on my own studying 4h a day?

Member Avatar for JamesCherrill
0
276
Member Avatar for titusnainggolan

Hi, Guys! Actually I want to ask about servlet and ajax. Sorry if I post in wrong room, I have search the room that suitable for my question, but the most suitable is here. I'm developing a push notification for web using servlet + ajax. I have done an tutorial …

Member Avatar for titusnainggolan
0
1K
Member Avatar for Wolfenstien

Hi! Im new to Java and iv been studying GUI's in it. Just started with swing and tried to make this giu for a calcularot. but it doesnt execute and gives me "java.lang.NoClassDefFoundError" error. im a total noob so i cant figure it out. i'd really appreciate it someone could …

Member Avatar for Wolfenstien
0
273
Member Avatar for akashtripathi8

Introduction of iText Itext is often a library that permits you to create and manipulate PDF documents. It enables developers seeking to enhance web- and also other applications with dynamic PDF document generation and/or manipulation. javaaster.com

0
78
Member Avatar for RazaAjmi

public void cosUpdate(String sr,String name,String fname,String adress,String phone,String refernce,String tailor) { try{ String QUERY1 = "UPDATE Info1 SET FatherName = '"+fname+"' WHERE Sr = '"+sr+"'"; JOptionPane.showMessageDialog(null,QUERY1); Class.forName(JDBC_DRIVER); connection=DriverManager.getConnection(DATABASE_URL); statement=connection.createStatement(); result =statement.executeUpdate(QUERY1); if(result >0) JOptionPane.showMessageDialog(null,"Successfull"); else JOptionPane.showMessageDialog(null,"UnSuccessfull"); } catch(Exception ex) { JOptionPane.showMessageDialog(null,"Error in cosUpdate() Method","Error",JOptionPane.ERROR_MESSAGE); } finally{ try{ resultset.close(); statement.close(); connection.close(); …

Member Avatar for stultuske
0
152
Member Avatar for skliz

I have been seeing alot of adverts on c sharp on xamarin. Please for does of you who are experienced on c sharp on xamarin. Can it do every thing that android on xamarin would do.

-1
84
Member Avatar for emanhossnycs

Hello All, I have an open source maven java project. I downloaded it to Eclipse using Git. when I made "maven install" to this open source, it is converted into 4 other projects, where each project has a war archive. I tried to test these projects by adding thier war …

Member Avatar for masijade
0
70
Member Avatar for emanhossnycs

Hello All, I have an open source java project in Eclipse & have a folder contains the javadoc of this project & I need to associate the java doc to this project. can any one tell me how I do this?

Member Avatar for JamesCherrill
0
218
Member Avatar for london-G

Hello, I am storing an image in the database. I would like to know how can I resize the image before actually saving the image. I have a form with a label, a button and a text field to store the image path.Here is my code public void SaveImage() { …

Member Avatar for JamesCherrill
0
290
Member Avatar for vedmack

Hi, I'm looking for an java api which can convert .doc file into .pdf file... i need this solution to work without any intervention of MS Office/Windows. If anyone have any idea about such api , please reply. Thanks ahead Daniel

Member Avatar for stultuske
0
3K
Member Avatar for andi-dev

the jsp cmlode and html <script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>This must be paste in head <a href="#" id="toggle-example2" class="button"></a> <div class="example2"> <p>Una novità nei prodotti speciali! La nostra IP Plus aumenta il numero di ottano, passando da 98 a 100 e dando così vita ad un nuovo prodotto altamente performante: plus 100. …

Member Avatar for andi-dev
0
714

The End.