Bhuvana Bala

Greenhorn
+ Follow
since Jul 19, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Bhuvana Bala

Hi All,

I have uploaded a portal .
The server being the Tomacat ,JSP on Unix with Mysql database.
When I try to submit a page ,the page logs out to the logOut.jsp but the URL is directed.
But this is not the case all the time.
At times I am able to login.
The same code, works v.fine at the development server.
I went for a shared Hosting.
Pl. help me out in fixing the problem.
Thanx alot.Bye
Bhuvana
22 years ago
JSP
hi Jamie,
Thanx for ur suggestions. I also tried the second method u have mentioned and closing pstmt never works.
The problem could be with the driver.
The same procedure works in the Mysql database.
thanx a lot.
Bhuvana
Hi Dave,
Thanx. I cleared it.
In the same jsp I had include <jsp:include /flush="true"/>.
when I deleted the above line I was able to redirect to the next page,Thanx once Again,
Bhuvana
22 years ago
hi All,
I am checking a particular condition and forwarding to a jsp page using forward tag in jsp.
It throws java.io.IOException :Error Attempting to clear a buffer that has aready been flushed.
I also changed the sameusing sendRedirect("eeee.jsp").
It throws java.lang.IllegalStateException.Pl. hep .I am not able to proceed further.
Thanx in advance..
22 years ago
Hi all,
In the given code :
1. I fetch integer records from the database.
2. In the same method I am trying to access trying to update a record with the aboove obtained value.
I have a problem,
I am able to fetch records from the database.But the resultse doesnt move to the next record. The line before executeUpdate is printing where as the line after the executeUpdate() is not printingand it gives NO data Found Error. Pl. help,
Thanx
Bhuvana
public boolean updateOtherLawyers(String casebirthno, int status)
{
boolean check = false;
PreparedStatement pstmt = null;
PreparedStatement psup = null;
ResultSet rsup = null;
try {
psup =conn.prepareStatement(
"select [lawportal].[dbo].[caseflow].[CAF_lawid] from [lawportal].[dbo].[caseflow] where [lawportal].[dbo].[caseflow].[CAF_casebirthno]=? ");
psup.setString(1, casebirthno);

rsup = psup.executeQuery();
while (rsup.next()) {
System.out.println(rsup.getInt(1));
pstmt =conn.prepareStatement("update [lawportal].[dbo].[caseflow] set [lawportal].[dbo].[caseflow].[CAF_lawstatus]=? where [lawportal].[dbo].[caseflow].[CAF_lawid]=? and [lawportal].[dbo].[caseflow].[CAF_casebirthno]=?);
pstmt.setInt(1, status);
pstmt.setInt(2, rsup.getInt(1));
pstmt.setString(3, casebirthno);
pstmt.executeUpdate();
pstmt.close();
}


psup.close();
check = true;
} finally {

return check;
}
}
hi all,
I have initialises in server.xml of Tomcat as follows.
<Context path="/portal"
docBase="c:/portal"
crossContext="false"
debug="0"
reloadable="true" >
</Context>
I am not able to access the folders in the root folder portal.It accesss only the root mentioned. Pl. help
Thanks a Lot.
Bhuvana
22 years ago
hi can u tell me the procedure ad the code to uplaod in Jsp.More Over I should upload only the pdf files. pl. help.I am stuck.
22 years ago

Originally posted by dip ch:
Use getTime() method of java.sql.Date to instantiate java.sql.Timestamp(long time).



Can u please be clear. I tried with it .But I dont get it.
Now I need to convert calendar. to Timestamp.
Calendar c1= Calendar.getInstance();
c1.set(2000,12,32);
java.util.Date d= c1.getDate();
java.sql.Date dt=new java.sql.Date(d.getTime);
Now dt is the sql Date. I need java.sql.Timestamp format.Pl. help
pl. see
Thanx

[This message has been edited by Bhuvana Bala (edited July 24, 2001).]
hi all,
Can anybody help me to convert to convert 12-JAN-2000 to timestamp.
Also:
If I declare the date variable as java.sql.Date with the above input I am not able to get the timestamp format
I have declare date as Datetime in SQL SERVER.
In java should I declare as java.sql.Date OR java.sql.Timestamp?
In either way pl. help me with the code.
thanx a lot.
Hi shiva,
Thanks a lot .It worked
Regards,Bhuvana

Originally posted by Shiva Kumar:
Hi

1. java.sql.ResultSet RS = pstmt8.executeQuery();
2. RS.next();
3. if(RS.next())
4. {
5. ***System.out.println(RS.getInt(1))// I get the output.
6. ***ht1.put("AC_userid", new Integer(RS.getInt(1)).toString());
7. ht1.put("AC_userlogin",RS.getString(2));
8. ht1.put("AC_password",RS.getString(3));
9. ht1.put("AC_accesstype",RS.getString(4));
10. }
11. RS.close();
After Getting First String from ResultSet, not possible to get the Same once again. You did that in Line No.5 and 6. Just Remove Line No.5 and Execute. It will work.
Another thing in Line 2. you just put RS.next() suppose if your Query return more than One Row you will get the Loaded Hashtable
other wise also you will get null.
Shiva.