Vikram Anand

Greenhorn
+ Follow
since May 17, 2002
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 Vikram Anand

try to put the scope as session in the struts-config.xml it may help you.
20 years ago
Action form replaces the session of the normal MVC. so its upto you to think where the session is of the MVC.
20 years ago
take the buffer elements as MDBs where upon the reaching the limit the message is delivered and the data is populated using the MDB(session bean) to the entity beans.
I want to use the pool data in Db2
Oracle gives the code as simple as
/*
* A simple Pooled Connection Sample
*/
import java.sql.*;
import javax.sql.*;
import oracle.jdbc.driver.*;
import oracle.jdbc.pool.*;
class PooledConnection1
{
public static void main (String args [])
throws SQLException
{
// Create a OracleConnectionPoolDataSource instance
OracleConnectionPoolDataSource ocpds =
new OracleConnectionPoolDataSource();
// Set connection parameters
ocpds.setURL("jdbc racle ci8:@");
ocpds.setUser("scott");
ocpds.setPassword("tiger");
// Create a pooled connection
PooledConnection pc = ocpds.getPooledConnection();
// Get a Logical connection
Connection conn = pc.getConnection();
// Create a Statement
Statement stmt = conn.createStatement ();
// Select the ENAME column from the EMP table
ResultSet rset = stmt.executeQuery ("select ENAME from EMP");
// Iterate through the result and print the employee names
while (rset.next ())
System.out.println (rset.getString (1));
// Close the RseultSet
rset.close();
rset = null;
// Close the Statement
stmt.close();
stmt = null;
// Close the logical connection
conn.close();
conn = null;
// Close the pooled connection
pc.close();
pc = null;
}
}

can any one help me for DB2.
thankyou
I am using iPlanet Directory server using LDAP to store authentication information for users. I want the dat to be tranformd to xml from directory server and from xml to the directory server data.
I want the hierarchy of the directory stucture to be maintained as in the directory structure.
Can any one help.
Vikram
hi all
I m trying to learn struts and m using Apache Tomcat 4.0.4. the very first example itself is not running.In the browser window it is showing the cause as
"java. lang. ExceptionInInitializerError"
The example i m trying to do is from the "strutstutorial.pdf" author is stephen weisner. I ve followed all the steps and placed all the jar and war files in place but still that "BookView" example is not running.
plz help ..
thanx in advance
gaurav
21 years ago
I am writing a JSp to show a table. The table items are populated wih the some data which I get using a servlet from a database and put it in a session.
But my problem is the html code that is generated is not not complete for some data which i newly enter into the database. so i get only a pat of the table. it works fine all existing data.
please help me out. all my logic is failing over here.
21 years ago
JSP
In my code I open the connection in the init() method of the servlet and close it in the destroy method.
after some inputs to the database the database returns a error telling the connection is already in use with stmt already in use.
i am using sql server with jdbc-odbc.
plz help
i tried installing mQSeries 5.2 with support pack ma88.HOw do u integrate it.After setting up the environment when i tried run IVTRun batch file...i got the following exception.
Exception in thread "main" java.lang.NoSuchMethodError
at com.ibm.mq.jms.services.ConfigEnvironment.<clinit>(ConfigEnvironment.java:173)
at com.ibm.mq.jms.MQJMSIVT.main(MQJMSIVT.java:149)
PLease help,
vikram
21 years ago
i am having aproblem with the bmps when accessing the data from the DB2 using.
i am getting the error as DataSourceConncetionPool class not found.
can anyone helpl me out.
Vikram
21 years ago