35,618 Topics
![]() | |
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??? | |
<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 … | |
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> </p> <form method="POST" action="Order.jsp"> <p><font color="#800000" size="5"> 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> <% … | |
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®ards k.suresh | |
Is there anything like that links should be given inside(outside) the <form></form> tags. Can form tag be left without any action? | |
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/, … | |
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] … | |
[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 … | |
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 … | |
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? ![]() | |
[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 … ![]() | |
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 … ![]() | |
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 … | |
hi guys, how can i insert image in a doc file ?? using java... is fileoutputstream can write image? thankz... | |
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 = … | |
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: … | |
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 … | |
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? | |
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 … | |
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] … | |
what is the difference Between JSP and Servlet? | |
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 { … | |
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 … | |
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 … | |
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.*; … | |
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 … | |
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); … | |
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; … | |
[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 … |
The End.