RaviSingh Kumar

Ranch Hand
+ Follow
since Sep 04, 2007
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 RaviSingh Kumar

I have more than 10 thousands of files in the list. I dont want to do File I/O every time.
12 years ago
Hi,

I have a list of filenames present under a directory.

I want to delete all the files from that directrory at one go.

Dont want to iterate the list and delete file one by one.

Thanks in advance
12 years ago
using query to feteched the data from DB2. No temporary table is used. Fetcing data using simple joins and with some run time parameters.
13 years ago
Hi,

I have developed an application using RADS. When i searched for the particular report, it takes pretty much time to load the data from database.
Reviewed the query and found tht it is optimized. Also done jsp precompilation option in RADS.
But still it takes longer time to load the screen. Below is the output in milliseconds. Can anyone guide me on this.

For fist time:

time for Query :: 24391 ms
time for coming out of DAO:: 17968 ms
time for coming out of Servlet :: 23968 ms

For second time
time for Query :: 4391 ms
time for coming out of DAO:: 7968 ms
time for coming out of Servlet :: 7968 ms
13 years ago
Hi,
Am using a form for inserting records in database using struts. In actionform i am validating 13 fields before inserting.

Now i want to use the same form in order to update the inserted record. And i dont want to validate some of the fields(Empid,first name etc) as these fields are prepopulated and disabled. Please let us know how to proceed in this direction.

Thanks in advance

13 years ago
Hi,

I am new to struts. I have include Header.jsp page in my all jsp page(ex Login.jsp). In header.jsp page i have used <img> tag to include a bitmap image.
When Login.jsp page is accessed for the first time , Image is displayed, but when i submit with invalid name and password, the same login page is shown with validation errors. But this time the image is not shown. Instead a cross mark is displayed.

Please let me know if am missing something. Thanks in advance.
13 years ago
Am validating all the fields values on the Form
13 years ago
Hi,

Am creating a small application where i am using dispatch action class for Login as well as Change Password button. The login form has two input fields viz Username and Password and both fields cannot be empty.

It is working fine when we click on Login button.

But when we are not entering any inputs and wants to change password, it is not working until and unless i entered some values in two fields.

Please help how to change password for the above case without entering any fields values.

Thanks in advance.
13 years ago
Hi,

I want to enable and disable fields on jsp page through some properties or common file. I have three new fields on several jsp page. But client want not to implement right now. But if required then all the fields on all jsp pages must be enabled my changing some particular entry in properties file or some other common file.


Please help .
Thanks in advance
14 years ago
JSP
Hi

I am new to JSP. I have to show District dropdown values based on Region selected from dropdown. Both values are stores in Region and District table in database.

Please let me know how to proceed. I am stuck as how to get all the values of district of particular region and then to show it in jsp page.

Thanks in advance
14 years ago
JSP
Hi,

I am new to struts. Just want to redirect users to login page when user click logout or session time expires.

Currently i am checking the session in every jsp page . But is to difficult to maintain it. Also same code get repeated over several jsp page.

Can it be possible with some centralized manner.

Please help in this regard. Thanks in Advance
14 years ago
Hi,

I newbee in struts. I have a link in jsp page "Dowload Zip file" which call an action class.

I want action class to zip the entire content of the specified directory and send zip file for downloading.

Please help in order to proceed.

Thanks in advance.
14 years ago
Please also let me know how to find that my driver support updateable resultset or not.

Thanks
Below is the code snippet

ResultSet rs = stmt.executeQuery("select * from employees");
rs.absolute(104);
rs.updateString(2,"Test");
rs.updateRow();
Hi,

I want to just update database using resultset. When i m trying to do that , getting error as resultset is read only.

I have made resultset as concur_updateable and scroll-sensitive. But still getting the same error.

Please provide some inputs. Thanks in advance