36,051 Topics

Member Avatar for
Member Avatar for TheAdjustment

I'm having major issues trying to do the following: Write a program that reads in a line of text and then outputs that line of text first in all uppercase letters and then in all lowercase letters. If anyone can help me with that I'd greatly apprciate it.

Member Avatar for masijade
0
127
Member Avatar for Dallos

Hi im trying to write a program that sorts an array in alphabetical order and then into phone book order, Eg input: Jane Pascal 364756 Bob Smith 364758 Joe Bloggs 253647 The output should be: Bloggs, Joe 253647 Pascal, Jane 364756 Smith, Bob 364758 The plan is to have each …

Member Avatar for titaniumdecoy
0
70
Member Avatar for alex86

Hello, I have been working recently on an assignment which requires me to build a web application using JSP. After a few weeks grafting code I became frustrated with JSP, it just wasn't 'fun' and while I welcome the (almost) enforced MVC pattern it's hard to work passionately about something …

Member Avatar for jwenting
0
108
Member Avatar for avadhut

hi every1 .. i'm bsy doin project which has facility of markin attendance... i'm using JSP for that.. and by using session i hv employee's " empID". I hv made a dynamic calendar..which can move to previous and next months....resp. and displayed using <table> My idea is to mark employee …

Member Avatar for jwenting
0
131
Member Avatar for staneja

I need to get information about the time taken by tomcat server to get restarted and also when i paste some war file inside Webapps folder i dont observe anything on the startup.bbat file............I mean it should register with that file I think there must be some property file with …

Member Avatar for jwenting
0
60
Member Avatar for aslamkhanb

how to retrive the value from database and print browser using jsp and usebean, servlet i need code urgently help me

Member Avatar for jwenting
0
66
Member Avatar for jeet_portal

Hi all, I am new member in this community.I am a software developer in java/j2ee platform. Recently i have develop a web site in jsp. I use Tomact 4.1,Mysql data base . Now its working fine inside my LAN .Every one can access with my IP address in my LAN. …

Member Avatar for jwenting
0
193
Member Avatar for vinod_javas

Hi Guys! Can any one help me out... I just want to know how to create webservice in java or jsp?

Member Avatar for jwenting
0
123
Member Avatar for harish333

i have OS sever2003 i have create four servlet files and one html file when i type URL of html file it execute but after that i click on submit buttto the firstservlet is not displayed an Error massage display that is "cannot display this page cannot find server or …

Member Avatar for jwenting
0
68
Member Avatar for ram maradola
Member Avatar for jwenting
0
95
Member Avatar for Unfettered

I have 2 applets One applet adds in some labeled text fields and reads in some user variables. The second Applet Starts a simple pong game. As you may have already guessed I'm trying to get the pong game to start up with the values I've read in. (the values …

Member Avatar for jwenting
0
101
Member Avatar for staneja

I am trying to acess Bean thorugh JSP using useBean tag ,but its giving me ClassNotfoundExcetption i think i am missing somewhere in structure of JSP program Can anyone tell me where shall i place this Bean class so it can be read Currently i have putted it inside WEB-INF …

Member Avatar for aruna_k_2006
0
59
Member Avatar for anju114

Hi I am having problem compiling a java file Main.java which uses an object of another class, named Pet I am using Netbeans 5.5 and I don't know where to put the class file Pet.class. I don't have Pet.java No matter where I keep it the error message I get …

Member Avatar for thekashyap
0
147
Member Avatar for ajay_tabbu

i m using window xp and jdk1.6.0. i set environment variables as follow user variables i creat new and in variable name "classpath" and in variable value .;C:\Program Files\Java\jdk1.6.0\bin;.;C:\World after that i edit system variable as follow i edit variable "path" in variable value I append "C:\Program Files\Java\jdk1.6.0\bin" right side …

Member Avatar for jwenting
0
368
Member Avatar for uswatun

anyone can explain to me what is the concept of inheritance and access modifier. actually, i can't understand how it be used in java program

Member Avatar for PoovenM
0
123
Member Avatar for nnobakht

hey guys im trying to write a simple caclculator. i have written the code and the functions for it but the the main when i try to use the Scanner function to get user input and to put it all together it does not work. the code is below i …

Member Avatar for iamthwee
0
106
Member Avatar for TingTing

[B]this is my 1st time to post. help pls.[/B] [B]can anyone help me program tictactoe (java w/ gui)? req. are comp vs player, player vs player, 2d array, replay, undo..plssss...i need your help :sad: rep asap..thank u very much :cheesy: .. pls:sad: [/B]

Member Avatar for TingTing
0
141
Member Avatar for harish333

i am using internet explorer using a form to save the results to a file but when i submit the form, a page comes up saying page can not be found with the error. "HTTP 405 - Resource not allowed Internet Information Services" any Ideas how to resolve this.

Member Avatar for jwenting
0
39
Member Avatar for Cerberus

Hi, does anyone know how to set a JFileChoosers default filter back to accept all files after custom filters have been added? Thanks.

Member Avatar for peter_budo
0
171
Member Avatar for Sukanto

I am new to JNDI, JTA, javax.sql though I am familiar with java.sql I want to access a database (a Derby database) using JNDI lookup and UserTransaction (as I want to learn about Distributed DB Transactions). I am using [b]Sun Java Application Server(SJAS) 8.2[/b] Database: [b]Derby[/b] Directory Services of : …

Member Avatar for Sukanto
0
155
Member Avatar for nnobakht

hey guys im supposed to write a simple calculator in java. Not in applet. Stack class has already been given and i was supposed to tokenize the input, have a function convert to take it from infix to postfix notation and eval to evaluate it. i have written the code …

Member Avatar for iamthwee
0
417
Member Avatar for jk1998

In my JApplet, I am able to change the background color of the panel but not the currentSurface which is an instance of PaintSurface extends JComponent. Could someone please help me out? Many thanks [code] import java.applet.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.awt.geom.*; public class Tanks extends JApplet …

Member Avatar for jk1998
0
179
Member Avatar for bluebird

Hello! Please help me! I display the data from the arrylist xx in the table. But the program shows the table several times. I did not notice that before. Now whenever I click the menu, it shows the table 26 times. What is the problem? I am in trouble. Please …

Member Avatar for peter_budo
0
82
Member Avatar for Java_il

<code> <%@ page import="javax.portlet.RenderResponse,javax.portlet.RenderRequest,javax.portlet.PortletURL, javax.portlet.WindowState,java.util.*"%> <% System.out.println("Inside addCategory.jsp"); RenderResponse renderResponse = (RenderResponse)request.getAttribute("javax.portlet.response"); if (renderResponse == null) { out.println ("unable to get RenderResponse object"); return; } RenderRequest renderRequest = (RenderRequest) request.getAttribute ("javax.portlet.request"); if (renderRequest == null) { out.println ("unable to get RenderRequest object"); return; } PortletURL actionURL = renderResponse.createActionURL(); %> <% …

Member Avatar for rgtaylor
0
63
Member Avatar for venkat.103

[INDENT]Hi, All I am new to servlets, i wrote one servlet file, it is compiling well.but if i try to run this servlet. Its giving Error like: "Exception in thread "main" java.lang.NoSuchMethodError: main". is their any problem with classpath, already i set servlet.jar file as a classpath.So let me know …

Member Avatar for masijade
0
77
Member Avatar for Stoney

Hey everyone. I have a problem. I can't find why my code won't convert Fehrenheit to Celsius. :sad: [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; public class CTemp extends JFrame implements ActionListener { private JButton button; public static void main(String[] args) { CTemp frame = new CTemp(); frame.setSize(400, 300); frame.createGUI(); frame.setVisible(true); …

Member Avatar for masijade
-1
184
Member Avatar for Stoney

I can't find this typing error. Somewhere on Line 44. [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Weight extends JFrame implements ActionListener { private JButton button; public static void main(String[] args) { Weight frame = new Weight(); frame.setSize(400, 300); frame.createGUI(); frame.setVisible(true); } private void createGUI() { setDefaultCloseOperation(EXIT_ON_CLOSE); Container window …

Member Avatar for rgtaylor
0
329
Member Avatar for Stoney

I get a tip of $8.0 when I want $8.4. What am I missing here? [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Tip extends JFrame implements ActionListener { private JButton button; public static void main(String[] args) { Tip frame = new Tip(); frame.setSize(400, 300); frame.createGUI(); frame.setVisible(true); } private void …

Member Avatar for Shashikant
0
106
Member Avatar for volscolts16

Background: > An n x n matrix that is filled with the numbers 1, 2, 3, ... n squared is a magic square if the sum of the elements in each row, in each column, and in the two diagonals is the same value. Write a program that reads in …

Member Avatar for iamthwee
0
1K
Member Avatar for rushe20

I am currently making a game were jam jars are mixed up and they must be placed in the correct numerical order. One pot must be picked up and swapped with wich ever one the user wants. I have the program working that they can dragged a jam jar to …

Member Avatar for iamthwee
0
86
Member Avatar for Cerberus

Hey, does anyone know what inteface is needed to listen for a file being loaded into a jtextcomponent. Thanks.

Member Avatar for Cerberus
0
94
Member Avatar for parthiban

Hi all , I developed Entity Bean(BMP) and i created Deployment Descriptor in NetBeans 5.5. I'm getting following error . Error: === [code] XML validation started. Checking file:/G:/my_prgs/Xml/learning/Store_Data/build/jar/META-INF/jonas-ejb-jar.xml... Referenced entity at "[URL]http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd[/URL]". schema_reference.4: Failed to read schema document '[URL]http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd'[/URL], because 1) could not find the document; 2) the document could …

0
98
Member Avatar for taineechan

Hi I'm coding a game of towers in java. I'm having trouble moving a stack from one button to another. I have eventlisteners for buttons A and B. If Button A is clicked and then button B is clicked, the value at button A must be added to the value …

Member Avatar for taineechan
0
155
Member Avatar for Cerberus

Hello. I'm using a JOptionPane to display some application information when the user selects the Help-About menu option. If the about option has been selected and you click on an alternative application (e.g. a browser) when you return to the application the JOptionPane is lost and the application can't continue. …

Member Avatar for Cerberus
0
236
Member Avatar for staneja

I am learning JSP can anyone tell me how shall i proceed with JSP I mean what should be sequence of things that will make learning convinent for me Please do suggest me which kinda aaplication i should make in JSP........some ideas I have done core java and servlets

Member Avatar for jwenting
0
154
Member Avatar for uswatun

anyone can help me.. i have a task to coplete below is the question : create class called Arithmetic for performing arithmetic process. use two integer variables to represent the private data of the class. provide a constructor function that enables an object of this class to be initialized when …

Member Avatar for uswatun
0
174
Member Avatar for Venks

Hai friends please help me printing the file through Parallell port, iam doing project in comm ports, i want to print a particular file or string through parallel ports...thanks in advance.

Member Avatar for blufab
0
83
Member Avatar for volscolts16

I am taking a Java Beginner class, which I have explained in an earlier thread. I read the chapters and do understand them to an extent, but when it comes to doing the homework, I am at total loss. I have put in for a tutor, and hopefully one comes …

Member Avatar for blufab
0
173
Member Avatar for parthiban

Hi all , I'm new to EJB Programming. I need your suggestion of which type of Entity bean i can use for my task . Here's the task i need to accomplish : ============================ I have data in XML now i need to store in SQL SERVER tables which i …

Member Avatar for jwenting
0
104
Member Avatar for Masood Ali

Hi All I m a C++ programmer and now I want to study Java... Can somebody tell me from where I can get a free download for the book Java Complete Reference Or Some other beginner level book... Thanks...

Member Avatar for sangramtheroot
0
91
Member Avatar for rdkmini
Member Avatar for darylharkin

i'm currently in the middle of a Java programming assignment, and having quite a spot of bother! for some reason, when i run my code (which has no visible errors), a small window appears with the words Swing Example in blue italics. anyone got any idea what coud be causing …

Member Avatar for darylharkin
0
79
Member Avatar for captain.charli

write java to access classes that are saved in different files. write java code to read following string as input from user. "JaVa-Is-A-pRoGrAmMiNg-LaNgUaGe" Display and convert it into the following format. "Java is a programming Language"

Member Avatar for Phaelax
-1
74
Member Avatar for hlnren

HI everyone, i need to enter all those values and add them up. but have some trouble storing numbers to a array list. plz help~~! [import java.util.*; public class array { public static void main (String []args) { Scanner sc= new Scanner (System.in); int value; System.out.print("How many values are in …

Member Avatar for keya_datta
0
113
Member Avatar for shishir

hello everyone.i have just started programming in EJB.i am tring to make an application for online banking system.During the compilation, i am getting the error of missing return statement in all functions where retrun type is String.i am trying to get the output in a JSP page....here is one of …

Member Avatar for peter_budo
0
148
Member Avatar for staneja

I am new to JSP and was trying a very simple program that adds/Divide/multiply/Subtract 2 numbers I am taking two numbers from a web page and as per the button pressed performing the action on JSP page. I have kept a vraiable c for output If i write int c=0 …

Member Avatar for staneja
0
103
Member Avatar for peter_budo
Member Avatar for peter_budo
0
210
Member Avatar for nnobakht

Hey guys, i jsut got this assignment and i have 1 week to implement it but i have no idea where to start. The link to the question is [URL="http://www.cs.sfu.ca/%7Emitchell/cmpt-126/a2/a2.pdf"]http://www.cs.sfu.ca/~mitchell/cmpt-126/a2/a2.pdf[/URL] and i have also attached it as a pdf. the Stack class refered to in the assignment is [code] class …

Member Avatar for jwenting
0
116
Member Avatar for san_fran_crisko

Hi, I am trying to store details in a Vector and then recall them using different search categories. I'm getting no errors but the details I enter are either not being stored or not being recalled. I don't know what one it is. I attached the code rather than copy …

Member Avatar for san_fran_crisko
0
110
Member Avatar for san_fran_crisko

Hi, I cannot for the life of me figure out why I keep getting the error message, "cannot find symbol method methodname()" when I try to call methods from another method. I have tried changing the main method so its not static but it makes no difference. Anyone who could …

Member Avatar for san_fran_crisko
0
147

The End.