35,618 Topics

Member Avatar for
Member Avatar for sabeenasyed

Hi.I want to convert telugu text to unicode. please solve my problem. Thankyou --------- sabeena

Member Avatar for rubberman
0
136
Member Avatar for bogoreh_1

hi everyone, i am new in jsp and i would like to have your advise to develop an online chatting application use jsp. i would like to know is it possible to develop chat application using jps and sockect or should i have to use websocket an do i need …

Member Avatar for stultuske
0
123
Member Avatar for JamesCherrill

I've opened this thread following rotten69's suggestion for "Java projects for beginners". To get things started I've posted a project in a format that makes sense to me; please feel free to follow that format, or to do it in some completely different style if that seems better. Let's see …

Member Avatar for Alok_5
20
3K
Member Avatar for dtpp

Ive been having this issue for quite a long time. When coding in Java my IDE (Eclipse) will not allow me to create JAR file. Ive googled quite alot only to see there is no direct solution to this and the causing factor may be Win8.1. I thought - ok …

Member Avatar for stultuske
0
229
Member Avatar for mutago

Good day experts, i want to upload image and forms input to database using apachae method but it returns an error display below [CODE] org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 36 in the jsp file: /jsp/cat1.jsp name cannot be resolved 33: String fvalue = …

Member Avatar for Mangesh_2
0
1K
Member Avatar for Ankit_18

import java.util.ArrayList; import java.util.Arrays; import java.util.List; class Counter { public void split(String a,ArrayList<String> al) { char ch[]=a.toCharArray(); int p=0; for(int i=0;i<ch.length;i++) { if(ch[i]==32) {List<String> l=al.subList(p,i); ArrayList<String> al1=new ArrayList<String>(l); //String str=new String[al1.size()]; //al1.toArray(str); //al1.add(str); //al1.add(al1); //why this is also wrong al1.add(al.sublist(p,i)); p=i; System.out.println(al1); } } } public static void main(String... s) …

Member Avatar for stultuske
0
260
Member Avatar for new_2_java

Hello all, I have a function in JS, that I need to translate in Java to be used in my JSP as part of server side script. I need to find out what's the equavalent of JSON.stringify() in Java? This is my current JS function. This functioin takes a CSV …

Member Avatar for peter_budo
0
2K
Member Avatar for rajashree g.s.

1.Take input for boarding place,arriving place and date. 2.Date validation for 120 days(if date is more than 120 days you are not able to book the ticket).if days are less than 120 days then ask for the count of passengers. 3.Take passengers age and gender. 4.If age is less than …

Member Avatar for JamesCherrill
0
390
Member Avatar for Sandeep_13

Hi I am new in java. I am trying to get the stored date in the database and display the same in jdatepicker in frontend. But I failed. Can any one of you suggest how to do the same. Regards Sandeep

Member Avatar for mKorbel
-1
625
Member Avatar for Hsn_1

Hello everybody I'am trying to execute JavaScript in GeckoWebBrowser my code is : Hide Copy Code GeckoWebBrowser1.Navigate("javascript:void(" + TextBox2.Text.Replace("""", """""") + ")")` my JavaScript is : Hide Copy Code var r = confirm("Press a button"); if (r == true) { x = "You pressed OK!"; } else { x = …

Member Avatar for stultuske
0
1K
Member Avatar for Szabi Zsoldos

Hi guys, I've made an application in JavaFX and I do want to export it into a runnable jar. When I run it from Eclipse or Netbeans, it works well. But when I run it from windows as an executable jar I get this error for my layout. Exception in …

Member Avatar for Szabi Zsoldos
0
4K
Member Avatar for new_2_java

Hello everyone, I need to pass some parameters from my servlet to my JSP. I am able to access 2 of my parameters from the request object, but one of them is returning null value. Here's my servlet snipet: request.setAttribute("selectedA", aBook); request.setAttribute("selectedB", bBook); request.setAttribute("book_ref", book_ref); logger.info("book_ref = " + book_ref); …

Member Avatar for new_2_java
0
251
Member Avatar for Rachna_2

in an examination the grades are given according to the marks obtained. wap in java to display the grades acordingly 80% and above-distinction 60% or more but less than 80%- first divison 45% or more but less than 60%-second division 40% or more but less then 45- pass Less then …

Member Avatar for JamesCherrill
0
175
Member Avatar for paul.deku.50_1
Member Avatar for kapil456
Member Avatar for skaa

I need to use Drools 6.2.0.Final. Is it possible to use Guvnor with it? Any example? Thank you.

Member Avatar for rproffitt
0
208
Member Avatar for mama12

I want to find min in o(1) and each time min is called min should be deleted static ArrayList <Integer> numbers = new ArrayList <Integer> (); static ArrayList <Integer> min = new ArrayList <Integer> (); public static void add(int num){ numbers.add(num); if(min.isEmpty() || num < min.get(min.size()-1)) min.add(num); } public static …

Member Avatar for JamesCherrill
0
137
Member Avatar for Saidivya

Hi, I want to edit the file in the following way My Sample File: 101 273970116 2719674681506161941D094101METABANK WAVECREST 5220Taxi Charger Micro Deposit - Cr A271967468WEBP2P 150616 1273970110000001 6220110000156534057672 0000000007GreenGrP2C386daTest User S 0273970110000001 6220110000156534057672 0000000005ClarkGrP2C386dcTest User S 0273970110000002 82200000020002200002000000000000000000000012A271967468 273970110000001 9000001000001000000020002200002000000000000000000000012 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 In the above file, wherever if …

Member Avatar for JamesCherrill
0
176
Member Avatar for new_2_java

Hello all, I have an index.jsp that has 3 frames [banner, menu, main]. My menu options are in "menu" frameset, and when I click on a menu option, it calls the servlet, then based on that, it does some processing in my servlet, and forward the request/response to specific JSP. …

0
136
Member Avatar for Michael_43

I am trying to validate if this is a BST or not and return a true or false. I believe I have the code right but i cannot get it to print properly if I could get any help how to fix my problem it would be greatly appreciated. Test …

0
162
Member Avatar for sam_7

I will be implementing MVC model in my program but before that, I have done a simple program based on my understanding of the MVC model. I have three pages: - The user will enter a value in page one and click the next button. - The value will be …

Member Avatar for JamesCherrill
0
271
Member Avatar for Dhaval3731

Basic Code Requirements •create a project called TheShipment •create at least two classes 1.Main a.contains the main method b.runs the program 2.Shipment a.calculates the cost of the Shipment Main Class (the class that contains the main method) •prompts the user to enter a id and to enter details about a …

Member Avatar for JamesCherrill
-1
165
Member Avatar for Ahmed_62

public static boolean isEmpty(int grid[][]) { for (int r = 0; r < grid.length; r++) for (int c = 0; c < grid.length; c++) if (grid[r][c]==0) { return true; } return false; } the question is : after returning true it back to (for loop) or not ????

Member Avatar for stultuske
0
157
Member Avatar for SpottyBlue

Hi, The ticket counter program looks fine, but I have ran into a different problem. It is regarding about the transaction class (lines 64 - 110). After I input the number of tickets to print out, it will register to the transaction class. But when I want to view the …

Member Avatar for JamesCherrill
0
1K
Member Avatar for Michael_43

I have been working on this String Split method and the special for loop that I am currently trying to get to properly work does not seem to be working no matter what I do. It keeps printing just the parent directory and not the lower directories. public boolean moveDown(String …

Member Avatar for stultuske
0
200
Member Avatar for Michael_43

Hi Ive been working on this for a while and have everything wokring excep the movedown method which does not work properly. It wont allow me to go to a subdirectory and cannot seem to get it do do properly Ive tried nested loops and while loops none of which …

Member Avatar for JamesCherrill
0
362
Member Avatar for SpottyBlue

Hey, it's been a year never using Java. I want to get help with this, so I was trying to print the number of ticket entered, but got error. Can help? import java.util.*; class Transport { protected double price; // Price per person for each transport protected int seatsRemaining; // …

Member Avatar for JamesCherrill
0
705
Member Avatar for rohtashrathore

Hi All, I have a problem in my jdialog(child) and the parent frame is jframe,it is taking two events to close the jdialog,both from the close caption available at the upperright corner of the dialog,as well as from the button add where i have used dipose() to close on single …

Member Avatar for mKorbel
0
255
Member Avatar for sam_7

my confirm button action listener is not printing the username and password even though I added a Actionlistener for it. please help thanks. Codes LoginDialog.java import java.awt.BorderLayout; import java.awt.FlowLayout; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JDialog; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JPasswordField; import javax.swing.JTextField; @SuppressWarnings("serial") …

Member Avatar for sam_7
0
394
Member Avatar for laguardian

Hello guys! So I'm trying to create this online shopping system for a project. I was wondering if there is a way to gather user input piece by piece then consolidating them in an ArrayList? The first part I'm working on is the registration part. I'm planning to make the …

Member Avatar for jwenting
0
204

The End.