kajal sharma

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

Recent posts by kajal sharma

Dear java guru's
I am in fianl semester of my postgraduate program(MCA).I have to make a project .As I know java,jdbc,jsp,servlets and with ongoing downslide in every field I have decided to stick to java which has given me my first job.And I love coding in it.At present I am not able to decide what project should I do in it.Whether it should be web enabled or an application.
Any idea?
Thanking you all in advance.
kajal sharma

Dear java guru's
I am in fianl semester of my postgraduate program(MCA).I have to make a project .As I know java,jdbc,jsp,servlets and with ongoing downslide in every field I have decided to stick to java which has given me my first job.And I love coding in it.At present I am not able to decide what project should I do in it.Whether it should be web enabled or an application.
Any idea?
Thanking you all in advance.
kajal sharma

Dear java guru's
I am in fianl semester of my postgraduate program(MCA).I have to make a project .As I know java,jdbc,jsp,servlets and with ongoing downslide in every field I have decided to stick to java which has given me my first job.And I love coding in it.At present I am not able to decide what project should I do in it.Whether it should be web enabled or an application.
Any idea?
Thanking you all in advance.
kajal sharma
23 years ago
Dear java guru's
I want to know what is the diffrence between using
getServletConfig().getServletContext().getRequestDispatcher("/report/wait.jsp").forward(req, res);
and
res.sendRedirect("/report/wait.jsp");
kajal sharma
23 years ago
I have class object rand and it has got method getRn1() getRn2() up 10 so I am using loop but it is inserting name of method as string rather then value
for(int i=1;i<11;i++){
String one="rand.getRn"+i+"()";
String two="rand.getOc"+i+"()";
System.out.println(one);
System.out.println(two);
if(one.equals("") | | two.equals("")){}else{
String si="INSERT INTO random " +"(random_no,outcomecode)"+
"VALUES(\'"+one+"\',\'"+two+"\')";
System.out.println(si);
rows = myStatement.executeUpdate(si);
System.out.println(rows);}}
please help me
kajal_sharma

I have class object rand and it has got method getRn1() getRn2() up 10 so I am using loop but it is inserting name of method as string rather then value
for(int i=1;i<11;i++){
String one="rand.getRn"+i+"()";
String two="rand.getOc"+i+"()";
System.out.println(one);
System.out.println(two);
if(one.equals("") | | two.equals("")){}else{
String si="INSERT INTO random " +"(random_no,outcomecode)"+
"VALUES(\'"+one+"\',\'"+two+"\')";
System.out.println(si);
rows = myStatement.executeUpdate(si);
System.out.println(rows);}}
please help me
kajal_sharma

23 years ago
Dear javaguru's,
I wrote following letter to US based Immigration Attorney on work permit related issues.
""
I am working on small projects for the past 2 years. Since last 6 month I am working on a project in java for (Inclen USA) .But I was not directly consisder or recruited by company.I got these
projects though some individual(A professor in medical college) who hire programmer just like me and work in India .So whether these projects experience would count or not .Or should I go for a job in proper company for my next work.
If these experience count any way then how can I show them (means what documents are needed to show proper experience).
She replied "
These projects will probably not count as work experience, so I also suggest
you get a job with a tech company and start with them. How do you prove
experience, by experience letter from the company stating date of
employment, designation and responsibilities. Thanks.
Nandini "

As I am science graduate with three year degree course, I need 3 year experience also to qualify for H-1B visa.I am also doing MCA(masters in computer application) from IGNOU(www.ignou.org) which is a three year distance learning program.She replied " Correspondence degree has no value in US to qualify for H-1B visa. "
Well when I read the job discussion I got that "java guru's" encourage entry level programmers to do project even made by themselves and post it to the net.Some java programmer even work from home.
I should quit my job where I am programming using jdbc,swing,jsp,servlets and start from a tech company as a "tester".
kajal sharma
23 years ago
I am using following servlet to save a file on server but making new URL creates a new session.How Can I do this without creating new session.

23 years ago
I want that page to saved automatically by program at server side.
Kajal sharma
23 years ago
I want to save my jsp page as a html file so that I can later email it as an attachment.A jsp page is a dynamic page so how all the information could be saved as a file as user see it in his browser .
kajal sharma
23 years ago
Dear java guru,

when I tried timestamp as this
{ts '1999-11-11 00:00:00.000000000'}
I got the following run time exception
java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss.fffffffff
If i use time stamp as
1999-11-11 00:00:00.000000000
now exception is
java.sql.SQLException: [Microsoft][ODBC Driver Manager] Invalid argument value
I am setting time stamp as
String ydate=a2+" 00:00:00.000000000";
updater.setTimestamp(3,Timestamp.valueOf(ydate));
What is the right ways to use timestamp
kajal
[This message has been edited by kajal sharma (edited March 20, 2001).]
[This message has been edited by kajal sharma (edited March 20, 2001).]
Dear java guru's

When I try to insert records in Access97 ---> no problem
but when I enter records in MS sql server then I got the following runtime exception
java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Optional feature not implemented
---------------------------------mycode---------------------------------------

SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
java.util.Date xdate=sdf.parse(a2);
//java.sql.Date date=java.sql.Date.valueOf(a2);//I even try this but same exception
//System.out.println(date);
System.out.println(new java.sql.Date(xdate.getTime()));//2000-12-09
PreparedStatement updater = myConnection.prepareStatement("update FormA set age= ? ,"+
" cough= ? "
+ " where sitesrno= ? ");
updater.setInt(1,Integer.parseInt(a4));
updater.setString(2,a7);

updater.setDate(3,new java.sql.Date(xdate.getTime()));
updater.setInt(4,Integer.parseInt(s));

int updateCount = updater.executeUpdate();
updater.clearParameters();

any suggestions
kajal
Thanks Maha ,
It is working now.Your help solved my problem.
You are really a great person.
with regards
kajal
23 years ago
I am using
<jsp:useBean id="report1" class="login.Report1" scope="session" />

is this a way to make session bean.
I am setting the propertires
<jsp:useBean id="report1" class="login.Report1" scope="session">
<jsp:setProperty name="report1" property="*"/>
</jsp:useBean>
but they are null.
If I use scope =request then it is working.
Any help from java guru's
23 years ago