Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!

amrita sankar

Greenhorn
+ Follow
since Jan 25, 2006
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 amrita sankar

hi all

I am developing an application in jsp that needs to access the database.
For this i am using jdbc and in connection.jsp i am establishing the connection.
I need to access the database in each and every page....
So as of now i am including the connection.jsp in every page...
Can i maintain a connection session so that i dont need to open the connection.jsp in each and every page....
Any pointers to this or any tutorialfor this ???

Sankar
14 years ago
JSP
Hi all

Thank you for your suggestions.
I havent closed the connections that i have opened before and that might be the problem

Sankar
hi all

I am accessing the table to display its contents using JSP and JDBC
That table is having more than 400 records and it takes too much time to load.The table is having only two columns and it is a look up table.

The code is something like this
Statement stmt = conn.createStatement();
ResultSet rst=stmt.executeQuery("SELECT * FROM lookup");
while(rst.next())
{
City= rst.getString(1);
%>
<tr>
<td > <h4><%out.println(City);%></h4></td>
<%
Pop= rst.getString(2);
%>
<td > <%out.println(Pop);%></h4></td>
</tr>

Can anyone suggest a suitable method to reduce the accessing time

Sankar
hi vel
Best of luck
May your dream come true
I am not having any thing like that
Whatever is it i accept it
Are you preparing for certifications

Sankar
15 years ago
hi vel
i am not satisfied with your reply
i cant understand it too

sankar
15 years ago
hi vel
Reply me whats your dream company

Sankar
15 years ago
Hi,

Congrats
15 years ago
Hi,

Thank you Patel and Aggarwal for your kind reply

Regards

Sankar
15 years ago
hi vel,
sorry for delay.
At present i am in reputed private concern(Chennai).
Vel , whats your position in your company and in which platform you are working?

Sankar
15 years ago
Thank you Ramesh and velan vel.
hi velan vel ,
its a long time that i am meeting you in discussion forum.
I think now you r not posting any questions in SCJP forum.

Regards
Sankar
15 years ago
Can anybody tell me about the work culture in infosys?
15 years ago
line 7 and 9 gives error

not 8 but int range is upto 2^32 -1 only
1 public class Q5
2 {
3 public static void main(String rag[])
4 {
5 byte b=1;
6 b++;
7 byte b=127+1;
8 int i=2147483647+1;
9 b=- -b;
10 }
11 }
Will line no 8 causes error or not ?
Why?
Thanks,
Sankar
Sorry for my late reply.

Thank you for ur clarifications.

Sankar.
Hi,
Will this code compile and give output


public class MyClass
{
public static void main(String args[])
{
System.out.println("In first main()");
}
public static void main(char args[])
{
System.out.println('a');
}
}
(1) Code will not compile and will give "Duplicate main() method declaration" error
(2) Code will compile correctly but will give a runtime exception
(3) Code will compile correctly and will print "In first main()" (without quotes) when run with argument of 'a'.
(4) Code will compile correctly and will print "a" (without quotes) when run with argument of 'a'