35,618 Topics

Member Avatar for
Member Avatar for coervivekmca

hey friends how are you?I need to develop a web consumer forum,will u please tell me how can i develop it using j2ee???

Member Avatar for peter_budo
0
71
Member Avatar for sasi_88

<a href="d:\jsp.pdf">view</a> this is not working but jsp.pdf is within the web application ( href="jsp.pdf" ) is fine. The problem is when i run the program the url is always start with http:\localhost\ so if i give ( href="d:\jsp.pdf") like this the url is http:\localhost\d:\jsp.pdf how to resolve this please …

Member Avatar for coervivekmca
0
83
Member Avatar for stephy1

How to do form based authentication? I submit my code here. [CODE] <html> <head> <title>Enter your name and password</title> </head> <body bgcolor="#999966"> <p>&nbsp;</p> <form method="POST" action="Order.jsp"> <p><font color="#800000" size="5">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enter your company name:</font><input type="text" name="coname" size="20"></p> <p><font color="#800000" size="5"> Enter your password:</font><input type="password" name="password" size="20"></p> <p><input type="submit" value="Submit" name="B1"></p> <% …

Member Avatar for masijade
0
117
Member Avatar for sureshksk

Hi members, When i use tiles framework,is my header, side menu and footer will be reloaded in each jsp page along with body content,Or only body content will be reloaded. Thanks&regards k.suresh

0
53
Member Avatar for coervivekmca
Member Avatar for coervivekmca
0
73
Member Avatar for stephy1

Is there anything like that links should be given inside(outside) the <form></form> tags. Can form tag be left without any action?

Member Avatar for masijade
0
309
Member Avatar for LianaN

Hi! I'm a newbie in JSP and, therefore, my question could be totally incorrect. Sorry for this. So, I've developed a Java SWING application that is actually the image processing tool. Is it possible to update this software to a web-application? For example, could I place Java classes in WEB-INF/classes/, …

Member Avatar for pushkar honey
0
123
Member Avatar for Arsench

Hello all, I’m getting one strange error on my web. The web was developed with spring and has a tomcat pool connection configured for Oracle DB. After upload the web content into the server, when restarting the server and trying to open the web page, first time display error: [ICODE] …

Member Avatar for pushkar honey
0
95
Member Avatar for tracydo

[I]Hi, I'm just 2 weeks into computer science 1. New to the world of java. I'm working on the Monthly Mortgage Payment program and having some problems that I don't know how to fix. Any help greatly appreciated! I'm using JEdit & Terminal on imac. Thanx.[/I] [code]import java.text.*; //for Decimal …

Member Avatar for FireBlah
1
161
Member Avatar for Taimoor Rana

Hello guys, I'm currently working on a project that simulates a projectile motion. So far I'm preparing the flowchart of the program. I'm stuck when it comes to designing the path([B]2D Line[/B]) of the projectile Motion. So my question is, what fields,methods my class need in order to draw (in …

0
178
Member Avatar for kangkan_14

How to read only integers from a file in java? Suppose the file has something like this: (14,2,3),(2,3,4) (2,6,78) Now I want to read only the integers not the brackets and commas.How do I do it?

Member Avatar for ztini
0
3K
Member Avatar for Darren76

[LIST=1] [*]import java.util.Scanner; [*]public class retailPrice { [*]public static void main (String[]args) { [*]Scanner input = new Scanner(System.in); [*]double wholesale, markup, retail=0; [*]System.out.println("Enter the wholesale price! "); [*]wholesale = input.nextDouble(); [*] [*]System.out.println("Enter the markup percentage! "); [*]markup = input.nextDouble(); [*] [*]calculateRetail(wholesale, markup, retail); [*]System.out.printf("The retail price of the item is …

Member Avatar for ztini
0
161
Member Avatar for robbio87

Hi, I've recently started learning java in college. Hoping someone can throw me a bone. I was give an assignment to make a method to reverse a sentence. I can only use loops, if statements and other methods(no arrays). For example "Hello there how are you" would be output as …

Member Avatar for ztini
0
218
Member Avatar for kxpatel29

Requirement 1) Modify the code to find and print sum of the same series from 1/2 through 1/n multiple times, where each n is read from data file. Requires nested loop with the inner loop summing up series and outer loop allow inner code to repeat once for each n …

Member Avatar for kxpatel29
0
178
Member Avatar for agent7

hi guys, how can i insert image in a doc file ?? using java... is fileoutputstream can write image? thankz...

Member Avatar for agent7
0
76
Member Avatar for kukuruku

Hi I need help with bubble sort ,Why doesnt work Thanks [CODE] public void printList(){ System.out.print(patientsList.get(0).getFirstName()); for(int i=0;i<patientsList.size();i++){ for(int j = 0; j < patientsList.size(); j++){ for (int b=(j+1);b< patientsList.size(); b++){ int first=patientsList.get(j).getPriority(); int second=patientsList.get(b).getPriority(); if(first>=second){ int temp=first; first=second; second=temp; } } } String fname = patientsList.get(i).getFirstName(); String lname = …

Member Avatar for BestJewSinceJC
0
103
Member Avatar for tracydo

Hi there! So I did this yesterday in class using Grasg, every thing is good. But when i go home and re-do again using JEdit & Terminal cause I'm using Mac. And keep having 1 error that I can't fix, please help! Thx //Lab 2- Find Monthly morgage Payment //File: …

Member Avatar for BestJewSinceJC
0
117
Member Avatar for Torm7311

I am in the process of taking my first java programming class, and this question may be simple for some of you. Here is the question.. Write an application that reads five numbers between 1 and 30. For each number that is read, your program should display the same number …

Member Avatar for Torm7311
0
170
Member Avatar for Progr4mmer

I was watching the java game tutorials by thenewboston on youtube but he stopped making them. Anyone know of any good tutorials for making java 2d or 3d games?

0
75
Member Avatar for Katana24

Im aware of the different data types in java but say if one wanted to have two different types of data in a single array; integer and string, would this be possible? Im aware that java can have an array of each type but I stumbled upon using this and …

Member Avatar for Katana24
0
197
Member Avatar for curbster

Hi all, I have to declare an array of LibraryBook objects and sort them either by title, author or page count, as the user requests. I've got the basics down but I'm missing something. [CODE]public class LibraryBookSort { public static void main(String[] args) { LibraryBook[] myBook = new LibraryBook[5]; myBook[0] …

Member Avatar for jon.kiparsky
0
235
Member Avatar for mani2
Member Avatar for z00t

implement a class Employee. an employee has a name (a string) and a salary (a double). provide a constructor with two parameters. public Employee (String employeeName, double currentSalary) methods: public String getName() public double getSalary() public void raiseSalary(double byPercent) this is what i have so far: [ICODE]public class Employee { …

Member Avatar for z00t
0
4K
Member Avatar for SaberExcalibur

I have an average knowledge in the whole programming thing but I would really like to excel to this field. I would like to ask our IT professionals and programmers if what books do you recommend me to refer to while learning Books for *Java *advance css,web page *Visual basic …

Member Avatar for jlego
0
188
Member Avatar for StevoLord

Hi All, I am a newbie at java and need some help. I have a JFrame setup where basically I want to show two pictures. I have everything setup however at sleep, timers ect dont currently work and I dont know why. The snipplet of code below should show imagePanel1 …

Member Avatar for StevoLord
0
116
Member Avatar for Harliquin

Ok, so I have to write a program for school that will read data from a text file, split the data (comma delimited) into the correct type, pass that information on to a class, store the class object into an array. This is what I have so far: [CODE]import java.io.*; …

Member Avatar for Harliquin
0
151
Member Avatar for bagichris

Hello All Am having some challenges getting a value in a variable from another class; the code that computes the variable happens to be in a timertask method however if i move that same line of code to the constructor, the second class is able to fetch the value. When …

Member Avatar for Akill10
0
152
Member Avatar for boifang

i have been strugling to identify my error but i have failed to solve the problem my code errors is incompatible types in line 11. [CODE]import java.io.*; public class Appliance { public static void main(String args[]) { try { File file=new File("Name.txt"); FileReader f=new FileReader(file); int ch; while(ch=f.read()) { System.out.print((char)ch); …

Member Avatar for masijade
0
131
Member Avatar for Phatsimo Mosiam

when i write the following code the results tell me that no mainmethods, applets or MIDlets found in file: [CODE]import java.io.*; public class Appliance { NIIT Developing Object Based Applications in Java Assignment A.9 public static void main(String args[]) { try { File file=new File("Name.txt"); FileReader f=new FileReader(file); int ch; …

Member Avatar for masijade
0
62
Member Avatar for haribasker

[CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.sql.*; import java.util.*; import java.net.*; import java.io.*; import javax.swing.border.*; public class userdetails extends JFrame { private JLabel jLabel1; private JLabel jLabel2; private JLabel jLabel3; private JLabel jLabel4,jLabel5; private JLabel jLabel7; private JLabel jLabel8; private JTextField jTextField1; private JComboBox jComboBox1; private JComboBox jComboBox2; private …

Member Avatar for masijade
0
269

The End.