Showing results 1 to 40 of 52
Search took 0.01 seconds.
Posts Made By: Chaster
Forum: JSP 26 Days Ago
Replies: 0
Views: 307
Posted By Chaster
JSF, request

Hello,

Can somebody help me out? Well, the problem is the following:
I have a JSF page, and the address bar contains a query string, like "...?author=something&title=something". I also have a...
Forum: JSP Nov 15th, 2008
Replies: 1
Views: 331
Posted By Chaster
Java EE problem

Hi, I'v been trying to write a simple Java EE app, which deals with car renting. The entity beans and session beans are ready, so I've created a JSP for representation. It contains a single method,...
Forum: Java Nov 11th, 2008
Replies: 3
Views: 225
Posted By Chaster
Re: creating a method for texts

String s = new String("");
String s1 = new String("");
System.out.println("enter String : ");
Scanner keyboard = new Scanner(System.in);

while(!s.equals("end")){
s =...
Forum: Java Nov 1st, 2008
Replies: 4
Views: 303
Posted By Chaster
Re: can anyone find my mistake in TrainingZone.java

well you have a few mistakes.. For ex. ageOf Interest is what? I mean is it a variable (and should be ageOfInterest)? Then, you define twice the variable trainingzone. The second one should be...
Forum: Java Oct 30th, 2008
Replies: 1
Views: 225
Posted By Chaster
Getting session

Hello,

How can I get a reference to a session? I have a page, which forms a query string, and in another page I would like to display the attributes of it. I don't want to introduce scriplets, so I...
Forum: C Oct 22nd, 2008
Replies: 4
Views: 324
Posted By Chaster
Re: Simple program [urgent]

I've compiled and run it without problems;
Enter the number corresponding to ... : 1
Please enter the number of ... : 40
Output:
Gross Pay - 365.50
Payable Tax - 58.10
Net Pay - 307.40

Which was...
Forum: C Oct 22nd, 2008
Replies: 2
Views: 223
Posted By Chaster
Re: Setting up counter.

You could try a double variable, like this:


for (float c=0.0;c<2.1;c+=0.02) {
...
}

Inside that for, you compute the values for your function, then you save these either in an...
Forum: Java Oct 22nd, 2008
Replies: 2
Views: 195
Posted By Chaster
Re: java problem

I'm sure Google will help you out. Try searching for 'Power Set Java'
Why do you take OOP courses (or whatever) if you don't want to learn?
Forum: C# Oct 19th, 2008
Replies: 4
Views: 210
Posted By Chaster
Re: language

Ok, I see. What is your question? Or your contribution? Well, I tell you, nobody will help you, unless you show some effort. So please, ask (a) question(s).
Forum: Java Oct 19th, 2008
Replies: 3
Views: 244
Posted By Chaster
Re: help counting choices

Try this:
have a variable for each drink (you can have an array as well, if you want) and proceed as follows:
- when a new person comes, increment the person variable
- read their choice
- if choice...
Forum: Java Oct 18th, 2008
Replies: 8
Views: 551
Posted By Chaster
Re: Need help! (Simple programs...)

Well, if you know for sure that the license plate has the format "LLL NNN" (I mean letter by L and number by N), then you can get the integer value like this:

int anIntegerValue =...
Forum: Java Oct 18th, 2008
Replies: 4
Views: 286
Posted By Chaster
Re: Need a Java Progect

Excuse me, are you looking for ideas or complete source code??? For project themes check this out: http://mindprod.com/jgloss/jagg.html. If you want a complete project... then sorry, you won't take...
Forum: Java Oct 18th, 2008
Replies: 3
Views: 705
Posted By Chaster
Re: reading and writing java text files

Files in Java are usually holders of different kinds of data. Reading a text file usually means taking a piece of information out of the file. This piece of information will now be usable by your...
Forum: Java Oct 16th, 2008
Replies: 1
Views: 254
Posted By Chaster
Merging text files

Hi,
I have some project in which I have to deal with similar text files merging. Is there any java package for this task? If no, does anyone know how CVS (or any other version control tool) deals...
Forum: ASP.NET Oct 15th, 2008
Replies: 1
Views: 358
Posted By Chaster
Data Binding issue

I've got some homework to do, but I cannot go through this issue. I want my .aspx page to display my database records, one below another. In order to do this I use a GridView, while the data is...
Forum: JSP Oct 11th, 2008
Replies: 0
Views: 569
Posted By Chaster
JSPs and Servlets

Hi,

I have a little servlet which does the following:

package Services;

import java.io.*;
import java.net.*;
import javax.servlet.*;
import javax.servlet.http.*;
Forum: JSP Oct 9th, 2008
Replies: 0
Views: 401
Posted By Chaster
JSF question

Hello.
Well, I've been trying to create a a web app, using JSP+JSF technologies. I've completed writing the background classes, and also created a test jsp page:

<html...
Forum: Java Sep 9th, 2008
Replies: 1
Views: 179
Posted By Chaster
Java application + an external one

Hi guys,

the thing is: suppose that there is an application (assumed that we are using Windows) waiting for some input data. This could be a password, path, search criteria (for example in the case...
Forum: Java Aug 25th, 2008
Replies: 3
Views: 679
Posted By Chaster
Re: Help:find repeating substrings in sting

Suppose you have a variable of type string. Let's apply a string tokenizer on it (contained in java.util if i'm not mistaken), with the SPACE character as delimiter. Let's have for example a variable...
Forum: Java Aug 14th, 2008
Replies: 7
Views: 458
Posted By Chaster
Re: Whats wrong with this code?

That's because height is an ARRAY but you here need a PRIMITIVE. You can use either a temp variable (as I described earlier), or try this: height[i] = Double.parseDouble(...);
Forum: Java Aug 14th, 2008
Replies: 7
Views: 458
Posted By Chaster
Re: Whats wrong with this code?

I mean:
double temp = Double.parseDouble(keyIn.readLine());

an then: height[i] = temp;
Forum: Java Aug 14th, 2008
Replies: 7
Views: 458
Posted By Chaster
Re: Whats wrong with this code?

You should read a value, parse it put in your array and then start over. You cannot have parsedouble[] (actually the correct version is parseDouble(args)). When you read a value, you cannot convert...
Forum: C Aug 13th, 2008
Replies: 9
Views: 968
Posted By Chaster
Re: Airline Ticket Reservations System

Right... If he/she cannot even describe what the problem is...;)
Forum: Java Aug 13th, 2008
Replies: 6
Views: 301
Posted By Chaster
Re: Java OOP(got Lost!)

public class User {

protected String userName;
protected String password;
protected String eMail;
private String aString = "I won't be inherited!!!";//It really won't

public User(){
}
Forum: C Aug 13th, 2008
Replies: 9
Views: 968
Posted By Chaster
Re: Airline Ticket Reservations System

How do you store the information? (I mean in the memory, in a text file, database?) Different solutions for different approaches... And also, you should post some code, so we can help you without...
Forum: Java Aug 13th, 2008
Replies: 3
Views: 309
Posted By Chaster
Re: need help coding in a java file

Dude, what is this piece of code supposed to do? By the way, first you should take a look on Java syntax. And also, start with 'Hello World' type applications to learn how to write correct, readable...
Forum: Java Aug 12th, 2008
Replies: 6
Views: 687
Posted By Chaster
Re: About javaMail??

Here is what I use:
public final class Mail {

public static final void sendMessage(String mailAddress, String text,
String subject) throws Exception
{

Properties myProperties=new...
Forum: Java Aug 12th, 2008
Replies: 2
Views: 371
Posted By Chaster
Re: Java Exam

Ok, here you have two constructors, the first one (Counter()) with no parameters, and the other one: Counter(int initValue). You need constructors in creating objects. Here you could create a Counter...
Forum: C Aug 12th, 2008
Replies: 3
Views: 417
Posted By Chaster
Re: problem in creating header files

As far as I can remember, a c header file cannot contain implementation, only functions' signature. You declare your functions and constants in the header file. The implementation is done in that...
Forum: C Aug 12th, 2008
Replies: 6
Views: 417
Posted By Chaster
Re: Hi Its Mithun

Well,
static means (at least in Java, but I think it's the same) that you don't need to create an instance of that class, you can access that method directly: ClassName.methodName([params]).
void...
Forum: Java Aug 12th, 2008
Replies: 3
Views: 395
Posted By Chaster
Re: JDBC, MySQL

Thanks a lot, that did the trick...
Forum: Java Aug 11th, 2008
Replies: 3
Views: 395
Posted By Chaster
JDBC, MySQL

Hi everyone,

well, my problem would be:There is a database server which contains no databases. So there is nothing to connect to (as it is needed by the DriverManager.getConnection instruction). ...
Forum: C May 31st, 2008
Replies: 7
Views: 557
Posted By Chaster
Re: parser for c language help me

Use Lex and Yacc (or Bison) to make your life easier.
Forum: Java May 31st, 2008
Replies: 3
GUI
Views: 424
Posted By Chaster
Re: GUI

The problem is very simple, and the solution is:

Write a GUI program to compute the amount of a certificate of deposit on maturity. The sample data follows:

Amount dep: $6000.00
Years: 15
Interest:...
Forum: C++ Nov 27th, 2007
Replies: 0
Views: 1,299
Posted By Chaster
OpenGl, Visual c++ and textures

Hi everyone,

I created a quite complex model in 3d studio max, then I converted it to an .obj file. In 3dsm I put the textures, everything looks fine. Then, when I load the object file it's gray...
Forum: Java Oct 21st, 2007
Replies: 3
Views: 1,064
Posted By Chaster
Re: Sql + Java

Wow. I thought that 'set CLASSPATH=...' stuff set the variable and added the jars. So I was wrong. Please explain me detailed what should I do, becouse I'm new at this. Thanks for your patience.
Forum: Java Oct 21st, 2007
Replies: 9
Views: 1,050
Posted By Chaster
Re: Help me coding tis.. i dunno how to start....

Right, my bad. I thought we had to make some stats after typing -1 (like: prime numbers were: 2,3,7). :P
Forum: Java Oct 21st, 2007
Replies: 9
Views: 1,050
Posted By Chaster
Re: Help me coding tis.. i dunno how to start....

Wow man. That's piece of cake.

You'll need arrays. Declare it as private int[] array = new int[10];
In order to iterate this you need an integer. the indexing is from 0 (!!!) to that upper...
Forum: Java Oct 21st, 2007
Replies: 9
Views: 1,050
Posted By Chaster
Re: Help me coding tis.. i dunno how to start....

here is a prime function:

public boolean prime(int x)
{
for (int i=2;i<x/2;i++) // actually here you can replece x/2 with square root of x
if (x % i == 0) // if you can divide it by...
Forum: Java Oct 21st, 2007
Replies: 9
Views: 1,050
Posted By Chaster
Re: Help me coding tis.. i dunno how to start....

Please let us know what you have done so far.
Showing results 1 to 40 of 52

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 12:17 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC