35,618 Topics

Member Avatar for
Member Avatar for iamsiter

Hi all I made a welcome.jsp page and included loginbox.jsp using<jsp:include> tag While loginbox.jsp is working perfectly (with database),but when i include it in welcome.jsp then it dosen't work!!!!Please help welcome.jsp[CODE]<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <title>JSP Page</title> </head> <style> .bc { background-color:#CCCC00; background-repeat: no-repeat; background-position:center center; } </style> <body …

0
83
Member Avatar for hervens

Hello, I have the current sample xml document below: [CODE]<Units> <category name="Temp"> <unit id="0"> <unit_name>celcius</unit_name> <fromFormula>inFrom0</fromFormula> <-- need this value <toFormula>inTo0</toFormula> </unit> <unit id="1"> <unit_name>fahrenheit</unit_name> <fromFormula>inFrom1</fromFormula> <toFormula>inTo1</toFormula> </unit> </category> <category name="Length"> <unit id="0"> <unit_name>feet</unit_name> <fromFormula>InLengthFrom</fromFormula> <toFormula>inLenghTo</toFormula> </unit> </category> </Units>[/CODE] Now, I am trying to retrieve the value "inFrom0" from the …

0
56
Member Avatar for tammy12w

help im new to this.... why are get method useful?? for example why write this: [CODE]public class name { private String yourname; public void setname(String Fname){ yourname= Fname; } public String getname(){ return yourname; } public void sayying(){ System.out.printf("hello %s", getname()); } }[/CODE] when this also does the same thing …

Member Avatar for stultuske
0
119
Member Avatar for laguardian

So I'm creating a program that calculates the “Sum of Powers” after the user inputs two integers N and M. The sum of powers is computed as N^M+ N^(M-1)+ N^(M-2)….+N^0. But I don't know how to finish it. I'm kinda confused using return method, loops, etc. Here's what I have …

Member Avatar for Slimmy
0
2K
Member Avatar for syeda amna

hi how i can write the code for servlet that accept message from client. i wrote the code for socket server that accepts message from client. but i am unable to write the code for servlet. please help me. thanks

Member Avatar for syeda amna
0
64
Member Avatar for ericfrank

I am trying to write a sample program that can call use the main method of "SequenceFilesFromDirectory", which aims to convert a set of files into sequence file format. [CODE]public class TestSequenceFileConverter { public static void main(String args[]){ String inputDir = "inputDir"; String outputDir = "outoutDir"; SequenceFilesFromDirectory.main(new String[] {"--input", inputDir.toString(), …

Member Avatar for NormR1
0
195
Member Avatar for ErangaD

I am a VB.net programmer and I am very new to PHP HTML and Java Scripts I am doing a project for my company using PHP HTML and Java Scripts and I want to Know how to make readonly a text box after it gets the input This text box …

Member Avatar for ErangaD
0
4K
Member Avatar for muthu1802

Unix server - function(). I want to call this function through java program and track the result. help me.

Member Avatar for NormR1
0
75
Member Avatar for aman rathi

Hello everyone first of all thanks to daniweb and all users to help me lots of time. now come to problem i am learning java from last one month today i wrote a program to swap two objects it is running but not performing desired task. all instance fields are …

Member Avatar for aman rathi
0
241
Member Avatar for Aviras

Hello everyone. I just started on 'converting' my multiplayer text RPG into a graphical form. What I am trying to do is this: Create a title window, basicly just a JPanel with one image filling the space. To this JPanel I add a MouseListener. When a user clicks the window …

Member Avatar for Aviras
0
421
Member Avatar for NEEDHELPINJAVA

Hi, I'm new in this forum and I'm here to ask help on a topic the lecture I didn't turn up. I'm new to creating a search function for my Java application where the user can view the information of the books, such as title, author and the price of …

Member Avatar for Killer_Typo
0
235
Member Avatar for ba.accounts

Hi, I am fairly new to Java and am about to begin a programming course in the next week. I am preparing by completing exercises and am stuck on this particular one. Basically, i need to read a file in a certain format and calculate some figures and writing the …

Member Avatar for JeffGrigg
0
292
Member Avatar for Muralidharan.E

Hi friends If we will override nonstatic methods or if we will overload non static methods means shall we say it is the run time polymorphism? Is that so how to give example for compile time polymorphism in java? If i will override static method means, friends are saying it …

Member Avatar for Zetlin
0
268
Member Avatar for rotten69

Hey everyone, my if-statements are working as expected. Actually, they are not working at all. The syntax is right but they are never run. The program terminates before it runs them. [code] public static void main (String args[]){ Scanner input = new Scanner(System.in); Display fName = new Display(); // creating …

Member Avatar for aman rathi
0
132
Member Avatar for Pravinrasal

this is in execute method() { Process p = Runtime.getRuntime().exec(command, env); } System.out.println(r.execute(" C:\\Program Files\\Java\\jdk1.6.0_21\\bin\\javac demo.java” , null)); System.out.println(r.execute(" C:\\Program Files\\Java\\jdk1.6.0_21\\bin\\java demo”, null)); i want to run demo.java from this code i used timer class also. i got the error "Illegal execution time" i dont know why when i run …

Member Avatar for NormR1
0
347
Member Avatar for jaango123

Hi All, Currently we are using the code below to fire soap requests, with an input xml and the endpoint url. However, I would like to sign the input soap request using a jks file. How can I modify the code to perform the sign action as well. [url]http://www.ibm.com/developerworks/xml/library/x-soapcl/[/url]

0
66
Member Avatar for muthu1802

How to Load data with refrential integrity in java (Teradata). if I ran the work flow the data should be loaded to final table. so that i need to populate the source tables with proper refrential data. how to populate refrential data to the source table properly. Thanks in advance.

Member Avatar for muthu1802
0
171
Member Avatar for sathya88
Member Avatar for JoshKumar87

Hello, Can anyone please tell me how to get the arraylist in servlet? Using dao layer, I have connected to database and got the arraylist values. Now I need to pass it to Servlet through service layer. How to use that request.setAttribute in Servlet and how to redirect that arraylist …

0
70
Member Avatar for smi ensi

utilisateurs.java [ICODE]package Model; import Model.base.BaseUtilisateurs; /** * This is the object class that relates to the utilisateurs table. * Any customizations belong here. */ public class Utilisateurs extends BaseUtilisateurs { /*[CONSTRUCTOR MARKER BEGIN]*/ public Utilisateurs () { super(); } /** * Constructor for primary key */ public Utilisateurs (java.lang.Integer _iduser) …

0
74
Member Avatar for pro_learner

Guys,i have to develop a simulator for Merge sort algo in java.I'm familiar with Java.But i have no idea how to do that.Java applet is easy? or it can be done as a Desktop app.My idea is to do as a desktop application.The programme should allow user to input a …

Member Avatar for pro_learner
0
165
Member Avatar for sathya88
Member Avatar for Farhad.idrees

Hi...I did some book exercices..i want to ask you are these code right or not? Question1---Write a programme to display a random choices from a set of 3 choices for breakfast.... i wrote this code... public class Exercice3_1 { public static void main(String[] args) { String breakFast = null; int …

Member Avatar for nmaillet
0
132
Member Avatar for techy23

Hi! Could Someone please explain me the difference between[I][B] "Pass By Value"[/B][/I] & [B][I]"Pass By Reference"[/I][/B] In Java? I can't understand it clearly. Please give some [I][B][COLOR="Green"]easy example[/COLOR][/B][/I] and little [COLOR="Red"][B][I]description[/I][/B][/COLOR]? Any help would be appreciated. Thanks.:-/

Member Avatar for Muralidharan.E
0
177
Member Avatar for madhub2v
Member Avatar for masijade
0
198
Member Avatar for sathya88

hi... am develop simulator project...using java (java run time environment) for that can use applet method or java gui frame method.. suggest me..

Member Avatar for sathya88
0
216
Member Avatar for andy9673

Im really bad at programming just started recently and i was wondering how would you combine these for loops since they look the same except for the paramaters this program makes stairs. Thanks a bunch [code]import java.util.Scanner; public class example { public static final int SUB_HEIGHT = 4; public static …

Member Avatar for JeffGrigg
0
1K
Member Avatar for Muralidharan.E

Hi friends, What is the main benifit of using GWT in web applications? Is there any popular sites which has been developed by using GWT? Which is the best website to learn about GWT with easy examples? Thanks in advance !

Member Avatar for Muralidharan.E
0
140
Member Avatar for carmzy

Hi.. Can you help me to understand clearly ,what is abstract class? And how i will used it, how it behaves in a class. Thank you in advance!

Member Avatar for Um num num
0
167
Member Avatar for mike101290

Here is my code. my problem now is how to convert it to GUI. [CODE]public class ProductController extends ProductModel{ public String getPname(int barCode){ return this.pname(barCode); } public double getPrice(int barCode) { return this.price(barCode); } public void displayCartControl( int retryTrigger ){ this.displayShoppingCart(retryTrigger); } } [/CODE] [CODE]public class ProductModel { public static …

Member Avatar for NormR1
0
457

The End.