132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sweetheartjava

javax.servlet.ServletException: Servlet execution threw an exception i am getting this error root cause [ java.lang.NoSuchMethodError: javax.servlet.http.HttpSessionBindingEvent.<init>(Ljavax/servlet/http/HttpSession;Ljava/lang/String;Ljava/lang/Object;)V org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1306) org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:176) masterservlet.CheckLogin.doPost(CheckLogin.java:87) javax.servlet.http.HttpServlet.service(HttpServlet.java:760) javax.servlet.http.HttpServlet.service(HttpServlet.java:853) note The full stack trace of the root cause is available in the Tomcat logs. =================== my CheckLogin code is: ================ [code=java] package masterservlet; import java.io.IOException; import java.io.PrintWriter; import …

Software Development apache java java-jsp session
Member Avatar for ksaxena
0
151
Member Avatar for TheBeast32

I have been making a prime number generator. It works, but it's considerably slow if a user enters a high number. If anyone has any suggestions on how to make it faster, please post it. Here's the genrator code: [code] unsigned long int theNumber; unsigned long int Factor1 = 1, …

Software Development c++
Member Avatar for TheBeast32
0
108
Member Avatar for tcr.biju

i would like to know how can i access MS Word file in my visual basic application form. Iam describing my logic below, An VB application form with a command button; when i click on the command button, i need to open the already saved MS Word Document. Would you …

Software Development visual-basic
Member Avatar for venkatramasamy
0
78
Member Avatar for djJonno

Hi Guys, In my recent thread on a [URL="http://www.daniweb.com/forums/thread102215.html"]polymorphism problem[/URL] I thought I had it all figured out but now I have I new problem. Now I want to pass in 2 objects of either type bird or pigeon [code=cpp] int main() { Bird B1; Pigeon P1; DoSomething ( &B1, …

Software Development c++
Member Avatar for djJonno
0
92
Member Avatar for adrive

Hi, I can't seem to find any information at all...about how I can assign an Array into TStringList. I'd like to do something like that : for i:=0 to 10 do begin vArr[0] := intToStr(i); vArr[1] := intToStr(i + 1); vAStringList.addObject(inttostr(i), vArr); end; I'm trying to build a data structure …

Software Development data-structure pascal
Member Avatar for Smola
0
717
Member Avatar for magneto

OK, I am very new in programming, and I installed python2.5.1 and pygame, and I wrote the hello world programme etc. and I ran it in the python shell. But the problem is, I can't run any python document outside the shell. I tried an example in pygame, and the …

Software Development python
Member Avatar for laseredd
0
106
Member Avatar for genuis1

Hi, everybody i need help so fast ....... i work in project that translate from english to arabic & from arabic to english and i have database that containing english words and there opposite & i made interface that is textbox1 & textbox2 and one button when i enter a …

Software Development c#
Member Avatar for jireh
0
126
Member Avatar for mccarthp

Hello, I am very new to Python and have, what I think, is a rather simple question. First, I am running Python 2.1 on Win XP. What I want to do is open a CF page after my process has run and pass the processID, that I will set, and …

Software Development first-post google python sql
Member Avatar for jrcagle
0
519
Member Avatar for sa-al

hello i have a question .how can i write a program that gets a statement from user & prints the result sth like below: 2*3+sin(1-cos(0)) please help me

Software Development c
Member Avatar for ssharish2005
0
89
Member Avatar for n.aggel

hi guys, i have the following code: main.c [CODE=c] #include <unistd.h> #include <stdio.h> #include <errno.h> #include <limits.h> //defines PATH_MAX #define _GNU_SOURCE #ifndef PATH_MAX #define PATH_MAX 255 #endif int main(void) { char mycwd[PATH_MAX]; fprintf(stderr, "\nThe PATH_MAX is %d\n", PATH_MAX); if (getcwd(mycwd, PATH_MAX) == NULL) { perror("Failed to get current working directory"); …

Software Development c
Member Avatar for ssharish2005
0
651
Member Avatar for zawpai

Hi , Could you please give me some suggestions? I would like to create a small buffer in my code because the memory of the hardware is quite small. If so, it can't receive all of the data that I send. Sometimes, the data are over write. How should I …

Software Development c
Member Avatar for ssharish2005
0
118
Member Avatar for jobs

strcpy(buf, "my_id_%d_",i) strcpy(buf1, "my_com_id_%d", j) First I want to place value of i into "my_id_1" like so and copy to buf. And do the same thing in second line the code. Now I want to join both buf and buf1 so it will give me a new string "my_id_1_my_com_id_2". How …

Software Development c
Member Avatar for ssharish2005
0
116
Member Avatar for n.aggel

hi, i am reading the book "Operating Systems Design and Implementation 3rd edition" which analyzes the minix source code... in the part of filesystems we see this code [CODE=c]PUBLIC _PROTOTYPE (int (*call_vec[]), (void) ) = { no_sys, /* 0 = unused */ do_exit, /* 1 = exit */ do_fork, /* …

Software Development c open-source operating-system
Member Avatar for n.aggel
0
104
Member Avatar for Jishnu

Hello, I know this much that I want to include two files in my program. But can I decide which files to include at run time? Is this possible? Thanks in advance, -Jishnu.

Software Development c
Member Avatar for Jishnu
0
356
Member Avatar for mrityunjay22

the code is given as #!/bin/sh i=1; while [ $i -le 5 ] do echo "welcome $i times"; i= 'expr $i + 1 '; done it enters into infinite loop and does not increment the i variable plz suggest something exit 0;

Software Development shell-scripting
Member Avatar for eggi
0
97
Member Avatar for mrityunjay22

i have installed cygwin with vim and vi editor but when i type into those editor nothing gets written and message comes that no string under cursor plz help somebody

Software Development shell-scripting
Member Avatar for eggi
0
12K
Member Avatar for kartik07

Hi,I am new to VB6 and doin a project on it. 1.) I need to create a Listbox in a form1 which wil display data from another table in DB(MS ACCESS).Whenever any changes occur in that table,it should get reflected in the listbox. Ex:We have a table containing country names …

Software Development visual-basic
Member Avatar for venkatramasamy
0
140
Member Avatar for phalaris_trip

I'm trying to make the second parameter a default parameter that is the same as the first, or different if I want it to be different.. Why doesn't this work? And is there a way around it, other than by iterative overloads? void LoadFile (std::string filename, std::string key=filename) { //blah …

Software Development c++
Member Avatar for phalaris_trip
0
117
Member Avatar for Queatrix

I have been a C/C++ programmer for 4 years now, and now that I'm actually reading a tut on it, I have to say, I am impressed! The whole concept of the DS really is cool; and it's flexability is the best I have seen. While I was reading one …

Software Development assembly
Member Avatar for Duoas
0
86
Member Avatar for AqAbAwE

hey guys, I was wondering if interrupts works with wireless-USB keyboards, I wrote a code thats reads a key and displays it, but its not working, I thought i'd check whether the keyboards is causing the problem or not. [code] mov ah,06H mov dl,0ffh INT 21h mov ah,06h mov DL,AL …

Software Development assembly
Member Avatar for Ryu
0
89
Member Avatar for toko

I have been reading "Sams Teach Yourself C++ in 24 Hours". This is the code that has confused me: [CODE=c++] #include <iostream> class Cat { public: int GetAge(); void SetAge (int age); void Meow(); private: int itsAge; }; int Cat::GetAge() { return itsAge; } void Cat::SetAge(int age) { itsAge = …

Software Development c++
Member Avatar for Max_Payne
0
105
Member Avatar for MattVonFat

Hi, I tried having a go at creating my own boot disk that would write text to the screen. The code is here: [CODE] ;---------------------------------------------------------------------- ; Simple boot program that prints the letter 'H' ; and then hangs ; Joel Gompert 2001 ; ; Disclaimer: I am not responsible for …

Software Development assembly video
Member Avatar for Ryu
0
611
Member Avatar for FallenPaladin

Hi all, I am hoping that someone will be able to point me in the correct direction. I am trying to print an error log (simple txt file) from a c# console application. I have created the txt file and can access and display the information caontained within it. However …

Software Development
Member Avatar for Jugortha
0
1K
Member Avatar for jobs

I am getting an error when I do this in C program: execl("/bin/cp","../data/data_.txt","../data/data.txt",0); error is as follows: ../data/data_.txt: missing destination file operand after `../data/data.txt' Try `../data/data_.txt --help' for more information. I tried this too, it didn't help. execl("/bin/cp ../data/data_.txt ../data/data.txt",0); All I am trying to do is this: cp ../data/data_.txt …

Software Development c
Member Avatar for kv79
0
668
Member Avatar for Omar Allam

i can say u r so professional if u finish it just after 1 day it contain many things and it will improve ur programming for sure the programs in Attachment file if anyone just try to start it ,,, let me know 2day plz and connect with me at …

Software Development c c# c++
Member Avatar for Omar Allam
0
125
Member Avatar for atrusmre

Is there any way to detect that I am no longer receiving data on a TCP connection in C#. For example, I have the following program: [code] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Net; using System.Net.Sockets; namespace SocketTest { …

Software Development c c# c++
Member Avatar for Jugortha
0
104
Member Avatar for jonrmoore

I copy a form in explorer and even gave it than a slightly different name than an existing form. When I try to add the form to the project, it gives me an error and says a form by that name already exists. How can I get around this?

Software Development visual-basic
Member Avatar for hkdani
0
90
Member Avatar for sulphox

Hi all. Is Visual Basic same as VBA? I need to do my final year project in Excel using VBA. The project is in such a way that i can generate curves using Excel. I have been searching for the samples source code for cosine, sine and FFT source code, …

Software Development visual-basic
Member Avatar for hkdani
0
237
Member Avatar for plusplus

At runtime I want to check if a certain form is open. I know how to check if a form is open. I do it like this(where form1 and form2 contain the names of the form) [CODE]For Each fForm In Forms If fForm.Name = Form1 Or fForm.Name = form2 Then …

Software Development visual-basic
Member Avatar for hkdani
0
139
Member Avatar for Karkaroff

Please help me in self documenting the program below. All u have to do is, take a quick glance at the following code to see if u can understand wat each part is doing. If u have any difficulty in understanding(at a quick glance that is!), pls tell me so …

Software Development c++ ios queue
Member Avatar for n.aggel
0
302
Member Avatar for kv79

How to make win32 app with login? Is there some command or i need to make my function by myself?

Software Development c
Member Avatar for dubeyprateek
0
91
Member Avatar for daino

Hi I'm wondering why you would learn C++ for use in finance when you can do so many calculations on an excel spreadsheet and use VBA. I am not an expert on either though could someone tell me why C++ is better and if not why excel and VBA is …

Software Development c c# c++ finance
Member Avatar for dubeyprateek
0
234
Member Avatar for Karkaroff

i made a program to evaluate an expression, "expeval.cpp" [find attached]. i then tried to go further..... i made the program to read characters from the keyboard and write it into a file["file.cpp",find attached]. if an expression is encountered, it is evaluated and the result is displayed after the line …

Software Development c++
Member Avatar for Karkaroff
0
115
Member Avatar for #include<DAN.h>

I want to how to use a character that isn't on the keyboard in the out put of my program. I've gone into eudcedit.exe to create characters that I want to use in my program and saced them under the font that I use for output, but what I want …

Software Development c++
Member Avatar for Salem
0
125
Member Avatar for naveed.pasha

Hi all! I've started a little late doing my final year university project, but I know what I want to do so it's probably better than a few of the other students out there! I do enjoy reading and studying about the wide variety of topics that are encompassed by …

Software Development c++
Member Avatar for Salem
0
586
Member Avatar for Allasso

Hello, I would like to use a simple "if then" test to check if an argument to a command begins with "http://" as follows: if [[ $2 == [url]http://*[/url] ]]; then command fi but the wildcard just seems to be ignored, ie., it will only execute the command if the …

Software Development shell-scripting
Member Avatar for eggi
0
107
Member Avatar for jobs

int file file = open("./some.txt", O_RDONLY); Above line file=open giving me compile error: 'O_RDONLY' undeclared (first use in this function) What is the problem here? I am running linux and gcc 4.1.

Software Development c
Member Avatar for jobs
0
3K
Member Avatar for mr.cool

i have a question, why can't i do this, there are three errors and i don't know what they mean [code] #include<iostream.h> float celsius_to_fahrenheit(float); int main() { float fahrenheit; float celsius=22.5; fahrenheit=celsius_to_fahrenheit(celsius); cout<<celsius<<"C="<<fahrenheit<<"F\n"; return 0; } celsius_to_fahrenheit(float celsius) { return(celsius*(9.0/5.0)+32.0); } [/code]

Software Development c++
Member Avatar for Narue
0
97
Member Avatar for AaronASterling

Hello All, I have a user define class, [code=vb] <Serializable()> Public Class City Public Name As String = "" Public State As String = "" Public URL As String = "" Public Sub New(ByVal state As String, ByVal name As String, ByVal url As String) me.State = state me.Name = …

Software Development listview vb.net
0
103
Member Avatar for death_oclock

If I call the MessageBox function: [CODE]MessageBox(NULL, "Message", "Message", MB_OK);[/CODE] for example, the box will not appear. It will make the beeping sound, though.

Software Development c
Member Avatar for death_oclock
0
104
Member Avatar for kv79

Hi , [code=C] /* Inputs a list of strings from the keyboard, sorts them */ /* in ascending or descending order, and then displays them */ /* on the screen. */ #include <stdlib.h> #include <stdio.h> #include <string.h> #define MAXLINES 25 int get_lines(char *lines[]); void sort(char *p[], int n, int sort_type); …

Software Development c storage
Member Avatar for kv79
0
76
Member Avatar for kv79

Hi i always mix up a NULL and '\0' and 0. Can you write me when to use these things?

Software Development c
Member Avatar for kv79
0
185
Member Avatar for spacecookie

can anyone give me a link to a good turbo vision tutorial. i have been searching for one for months now and would be greatful for any help.

Software Development pascal
Member Avatar for Logomachist
0
119
Member Avatar for peeta

hello again i have mac computer and i have xcode on it. i am looking for some use full beginners books or tutorials. Right from start i have no previous knowledge of c++. can any one suggests any book for site for beginners which specially deal with g++ and xcode. …

Software Development c++
Member Avatar for peeta
0
120
Member Avatar for That Asian Guy

I was trying to delete the currently selected listview item using MFC methods, but obviously they werent compatible How can I accomplish this in VS 2005 (standard .NET windows forms NOT MFC? I have tried [code=C++] void CMyListView::DeleteSelectedRow() { int nIndex = GetListCtrl().GetSelectionMark(); if(nIndex != -1) { GetListCtrl().DeleteItem(nIndex); } } …

Software Development c++ listview
Member Avatar for That Asian Guy
0
102
Member Avatar for Blondeamon

Ok i'll try to be brief. As part of one of my essays i thought of creating source code for implementation of a binary tree and its basic functions. My code is both from books,lecture notes and googling but for some reason on the printing of the nodes using inOrder …

Software Development c++ open-source
Member Avatar for Blondeamon
0
98
Member Avatar for djJonno

Hi, I've now spent hours looking at this and no joy, wondering if any of you guys can help. I am passing an object that uses dynamically allocated memory into a method, but for some reason when it finishes my original object has changed/been destroyed. header file: [CODE=cpp] class Multiset …

Software Development c++
Member Avatar for djJonno
0
383
Member Avatar for Queatrix

How would I execute a C/C++ program without using a windows library? (Like ShellExecute)

Software Development assembly
Member Avatar for Queatrix
0
152
Member Avatar for TimeIsCyclical

I'm creating a billing program for my college's print shop. I'm doing this with a class called "orders" that signifies each new order that is taken. I'm having trouble figuing out how to create new variables of that class without prompting the user to input anything though... After the previous …

Software Development c++
Member Avatar for Bench
0
99
Member Avatar for TheBeast32

Hi, i have been making a program that tests a computer owner's firewall. It gets input from the client i made, and does a system() with it. Is there any way to make the firewall not block the program right when i make a scocket? Oh, im using Dev-C++ 4.9.9.2 …

Member Avatar for WolfPack
0
353

The End.