smriti singla

Greenhorn
+ Follow
since Nov 14, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by smriti singla

hello
I am a new user of tomcat and i want to do database connectivity under it. I prepared a database and a servlet which add data to database.User make entries in a web form and clicking on submit button invoke the servlet.My problem is that it doesn't make entries in database.I configure the ODBC also.I am using Microsoft Access as database and tomcat as standalone application.Please suggest me is there any need to configure any file in tomcat to make it compatible with Access database.I can access webpages successfully with tomcat.What's the possible cause of above problem?please suggest me.Any help will be highly appreciated.
Thanks
hello
I want to install Tomcat 3.2.2 on windows 2000 but i don't know how to configure its environment variables.I consulted documentation even then i am facing difficulties.Please suggest me how can i configure it or from where i can get good installation notes.Any help will be highly appreciated
thanks
Smriti
23 years ago
Hello
i am using Gypsee pro as an GIF Animator.I selected loop forever option but still it is not working.I constructed five frames and i added these frames one after another in a sequence.After that i created .gif animation file and save it in a file folder.From there i embed it in a web page created in internet explorer.I also checked option playing animations in explorer properties and it is selected.But in web page, animation works only from frame1 to frame5.Loop is not working.Please suggest me some other good animation software available in the market as i want to create musical .gif animations.and please tell me should i use java script for this purpose or this problem can be solved with "img src" tag in html only. any help will be highly appreciated.
Thanks
smriti
hello
I want to embed .gif animation in html page as background.I used normal <body background> tag for this but problem is that when i open explorer to view page animation works only once.However it runs fine in image viewer "Irfan view".should I use any script for this purpose?What is the problem and how can i rectify it?Please help.
Thanks
Smriti
hello
In khalid's book chapter 3 problem 3.7 on page 56,please tell me how the following expression results to 7
int k = 1;
int i=++k + k++ + + k;
In above expression what's the meaning of "+ k" as it is not a prefix or postfix increment operator.Is one + sign is missing here?Answer given is 2+2+3=7.In answer value 3 is assigned to this but if it is not a prefix increment operator then how the incremented value is assigned to this?
Thanks
24 years ago
hello
In Khalid's book on page number 60 (chapter 3) in the program

Pizza a=new Pizza("Sweet&Sour");
Pizza b=new Pizza("Sweet&Sour");
boolean test = a == b;
author shows the value of test is false.Please tell me why the objects in this case are not equal?Both are the objects of Pizza class and parameters are also same.Only difference is of references.
Thanks
24 years ago
hello
i am facing problem with string type arrays.In the following part of program there is a class Search whose method p() return a String of characters.Class Engine extends class Search and in main we make an object of super class and call its method p().the returned string is now in object sss . i want to store it in an String array. how can i store it?with string array i mean an array like (String[] args). i tried to store it in an array of char type but it does not solve my purpose.
public class Search
{
ss=new TextField(50);
add(ss);
public String p()
{
return ss.getText();;
}


}
public class Engine extends Search
{
public static String sss=new String();
public static void main(String[] args)
{
Search sr=new Search();
sss=sr.p();
Engine run=new Engine(sss);
}
Any help in this regard will be highly appreciated.
Thanks
Smriti Singla
24 years ago
hello
thanks for ur replies.I am going to forward this question to Mock Errata section.Thanks for ur advice niraj.
Smriti Singla
24 years ago
hello
in problem 1.4 (review questions,chapter 1)in Khalid's book it is given that Thing is a class and how many objects and reference variables are created by the following code
Thing item, stuff;
item = new Object();
Thing entity = new Object();
According to me the answer should be no object is created and three reference variables are created as creating an object involves using the new operator togather with a call to constructor of the class(given on page 4 in book under topic "class instantiation") and 'Object()' is not a constructor of class Thing as constructor always has the same name as that of the class.But answers given in the book on page 623 shows that options b and f are true which shows that two objects and three reference variables are created.i could not understand this.please explain this if anybody knows.any help will be highly appreciated.
Thanks
Smriti Singla
24 years ago
hello
in problem 1.4 (review questions,chapter 1)in Khalid's book it is given that Thing is a class and how many objects and reference variables are created by the following code
Thing item, stuff;
item = new Object();
Thing entity = new Object();
According to me the answer should be no object is created and three reference variables are created as creating an object involves using the new operator togather with a call to constructor of the class(given on page 4 in book under topic "class instantiation") and 'Object()' is not a constructor of class Thing as constructor always has the same name as that of the class.But answers given in the book on page 623 shows that options b and f are true which shows that two objects and three reference variables are created.i could not understand this.please explain this if anybody knows.any help will be highly appreciated.
Thanks
Smriti Singla
24 years ago
hello
i have posted the 1.1 assignment but didn't get the feed back.please tell me the exact procedure of posting these assignment as i posted it via EMail.
thanks
Smriti Singla
24 years ago
hello
i am facing a problem in the following program based on SequenceInputStream class.i am getting a compile time error as following
Sequence.java:63:cannot resolve symbol
symbol : constructor SequenceInputStream(S)
location: class java.io.SequenceInputStream
InputStream d=new SequenceInputStream(s);
^
The program is as follows:
import java.io.*;
import java.util.*;
class Seq implements Iterator
{
public String[] g;
public int f=0;

public Seq(String[] g)
{
this.g=g;
}
//-----------------------------------------------------
public boolean hasNext()
{
if(f*g.length)
/* please take sign "*" as (less than) sign in above statement as i am facing difficulty in posting this program as it is taking it as a HTML tag*/
{
return true;
}
else
{
return false;
}
}
//-----------------------------------------------------
public Object next()
{
InputStream i=null;
if(!hasNext())
{
throw new NoSuchElementException("no more files");
}
else
{
String next=g[f];
f++;
try{
i=new FileInputStream(next);
}
catch(FileNotFoundException e){
System.err.println("ListOfFiles: Can't open " + next);}
}
return i;
}
//-----------------------------------------------------
public void remove()
{}
}
//-----------------------------------------------------
public class Sequence
{
public static void main(String[] args) throws IOException
{
int j;
Seq s=new Seq(args);
InputStream d = new SequenceInputStream(s);
while ((j = d.read()) != -1)
System.out.write(j);
System.out.print((char)j);
d.close();
}
}
Any help will be highly appreciated.
Thanks
Smriti Singla
[This message has been edited by smriti singla (edited January 31, 2001).]
24 years ago
Great score!Congratulations
24 years ago
hello
u can set ur path in autoexec.bat file as dir:\jdk1.3;dir:\jdk1.3\bin; This will help u and u need not to bother about path each and every time u will compile ur program.to compile it just use command "javac filename.java".also be sure that u are in the same directory where ur .java file is placed on command prompt.
Smriti Singla
24 years ago
Hello
I am using jdk1.3 to develop java applications.In programs error messages given by jdk1.2.2 are more explanatory by nature and point to the actual error but in jdk1.3 error mesages are short. i only get the message "cannot resolve symbol" in so many situations.this does not explain what the error is.Is this due to any installation problem or this is due to the different jdk packages.please help me if u know why am i facing this problem.
Thanks
Smriti Singla.
24 years ago