kiruvembai thalam

Greenhorn
+ Follow
since May 05, 2004
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 kiruvembai thalam

Hi Everyone,

I want to create a new plugin in struts. Primary purpose of the new plugin is to automatically run a java file that needs two parameters which involves manual intervention. My question here , whether it is possible to run a java file while loading the container. ie.. Is there any way that ServletContext can execute a method in a java file while the application is loading. I know that we can create an instance of an class using ServletContext in our own Plugin like

ServletContext context = servlet.getServletContext();
context.setAttribute(anyname,new anyClassName());

But, I don't want the object creation alone in the Plugin. I need to run a method using the object created within the Plugin.

Can someone help in this regard ?

Awaitng your earlier replies,
Kiruba
18 years ago
Hi,

I too had this problem.. I got solution from Microsoft and it's working fine.

Here is the General Solution given by the Microsoft to the blank window problem:

Problem seemed like happening because of syncronization between open() function and other functions. Do the following.

1. Include

var win1;

win1 = window.open('', 'eah', 'top='+((screen.height - 600) / 2)+',left='+((screen.width - 800) / 2)+'+,toolbar=no,status=no,resizable=no,width=800,height=600,scrollbars=yes');

win1.focus();
window.setTimeout('eah',200);

Hope this would help you..