Kaustubh Hande

Greenhorn
+ Follow
since Apr 10, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Kaustubh Hande

Hi,

I have two different WAR's in my web Application that is deployed on IBM WebSphere Server 6.1. Currently I maintain shared session between the two WAR's based upon a db value set as the user logs in the application; User can login from either of the WAR's. I have a sessionListnere in place to destroy session as the session time out value is reached if the suer is inactive for the timeout value set in web.xml

When I select the option of "Shared Session Context" in the application descriptor to share between two WAR's I can login to the application but as the session timeout is reached my Listener code does not work, the sessionDestroyed() method is not called, thus the sesion are not invalidated.

Can some one help on how to ensure that sessionDEstroyed() method is called when I check the "Shared Session Context " option in application descriptor setting in Websphere6.1.

Thanks
15 years ago
Thanks for the reply Paul,

The container does invalidate the session, but I want to keep running a process that checks if the user has been logged in fop more than the session time out value with inactivity on app and as the session ends he is redirected to login page automatically but not upon his next click in the application.

Thanks
15 years ago
Thanks Smitesh,

But my requirement is to rediredct the user automatically to login page as his session has ended and not wait him to click any link on app.
With setting a session attribute i will have to wait till he clicks some link on the app.

Thanks
15 years ago
Hi,

Not sure if Im posting my question into correct section.

I am using WebSpheer application server for my application,with session time out set to 15 mins. I have implementd a session listener that destroy's all invalid sessions once the session has ended upon inactivity from user for more than 15 mins.
Is there any way that I can send the user directly to login screen without having him to click any link on the application to check if the session is valid/invalid.
I am not able to find any means how can I continously check for a logged in user if his session had ended and forcefully sending him to login screen upon inactivity on the application.

Please help.

Thanks
15 years ago
Hi,
Working in a struts environment,im using ajax autocomplete tag for a textbox. Following is the code that I have written in the jsp file for the autocomplete funtionality on textbox with property name as "location".

<%@ taglib uri="/WEB-INF/ajaxtags.tld" prefix="ajax" %>

<script language="JavaScript" SRC="scripts/prototype.js"></script>
<script language="JavaScript" SRC="scripts/scriptaculous/scriptaculous.js"></script>
<script language="JavaScript" SRC="scripts/overlibmws/overlibmws.js"></script>
<script language="JavaScript" SRC="scripts/overlibmws/overlibmws_crossframe.js"></script>
<script language="JavaScript" SRC="scripts/overlibmws/overlibmws_iframe.js"></script>
<script language="JavaScript" SRC="scripts/overlibmws/overlibmws_hide.js"></script>
<script language="JavaScript" SRC="scripts/overlibmws/overlibmws_shadow.js"></script>

<script language="JavaScript" SRC="scripts/ajax/ajaxtags.js"></script>
<script language="JavaScript" SRC="scripts/ajax/ajaxtags_controls.js"></script>
<script language="JavaScript" SRC="scripts/ajax/ajaxtags_parser.js"></script>

<link rel="stylesheet" type="text/css" href="css/ajaxtags.css" />
<link rel="stylesheet" type="text/css" href="css/displaytag.css" />


<td><html:text name="merchantTransactionHistoryForm" property="location" size="20" styleClass="celltext" />
</td>


<ajax:autocomplete
baseUrl="${pageContext.request.contextPath}/getLocation.do?location=1"
source="location"
target="location"
className="autocomplete"
indicator="indicator"
minimumCharacters="1"
parameters="location={location}"/>

Here getLocation is the action which will process the request and im sending location as a parameter with value as 1 along in the request.

Problem is the moment I add the <ajax:autocomplete> tag into my code the jsp page starts giving me erros and does not load.

Can some one tell me where am I going wrong.

Awaiting response.
Thanks
Kaustubh
Hi,
Working in a struts environment,im using ajax autocomplete tag for a textbox. Following is the code that I have written in the jsp file for the autocomplete funtionality on textbox with property name as "location".

<%@ taglib uri="/WEB-INF/ajaxtags.tld" prefix="ajax" %>

<script language="JavaScript" SRC="scripts/prototype.js"></script>
<script language="JavaScript" SRC="scripts/scriptaculous/scriptaculous.js"></script>
<script language="JavaScript" SRC="scripts/overlibmws/overlibmws.js"></script>
<script language="JavaScript" SRC="scripts/overlibmws/overlibmws_crossframe.js"></script>
<script language="JavaScript" SRC="scripts/overlibmws/overlibmws_iframe.js"></script>
<script language="JavaScript" SRC="scripts/overlibmws/overlibmws_hide.js"></script>
<script language="JavaScript" SRC="scripts/overlibmws/overlibmws_shadow.js"></script>

<script language="JavaScript" SRC="scripts/ajax/ajaxtags.js"></script>
<script language="JavaScript" SRC="scripts/ajax/ajaxtags_controls.js"></script>
<script language="JavaScript" SRC="scripts/ajax/ajaxtags_parser.js"></script>

<link rel="stylesheet" type="text/css" href="css/ajaxtags.css" />
<link rel="stylesheet" type="text/css" href="css/displaytag.css" />


<td><html:text name="merchantTransactionHistoryForm" property="location" size="20" styleClass="celltext" />
</td>


<ajax:autocomplete
baseUrl="${pageContext.request.contextPath}/getLocation.do?location=1"
source="location"
target="location"
className="autocomplete"
indicator="indicator"
minimumCharacters="1"
parameters="location={location}"/>

Here getLocation is the action which will process the request and im sending location as a parameter with value as 1 along in the request.

Problem is the moment I add the <ajax:autocomplete> tag into my code the jsp page starts giving me erros and does not load.

Can some one tell me where am I going wrong.

Awaiting response.
Thanks
Kaustubh
Hi,
Im using Ajax to refresh my list boxes. I there some way by which I can dynamically match list items based on the character typed in the list box to minimise the selection time. If yes please send me some example or the link where in I can find the example.

Awaiting response.

Thanks
Kaustubh
Hello,
I have two dropdown in a jsp page in which values have already been populated using the controler servlet of application. Now when the user selects some value in 1st dropdown, based on this selection I need to populate the values of 2nd dropdown at runtime. What should I do for this as I need to query to the DB with the value selected in 1st dropdown to fetch values of 2nd dropdown. Can I do it in jsp if yes please tell how can it be dome.

Thanks
Kaustubh
17 years ago
JSP
Hello,
Im suppose to open a new window when user clicks a link "help". Now if the user clicks on the same link even though the previously opened window has not been closed, then I am suppose to bring the same window into view. I wrote the following code but it does not work.

var winHelp // Declared as global

winHelp=window.open( "./mam/pdf/Merchant Manager Reference Guide 5.0.pdf","winHelp","width=800,height=600,status=yes,titlebar=no,menubar=no,resizable=yes,left=0,top=0,scrollbars=yes");

winHelp.focus();

Please guide

Thanks
Kaustubh
Hello,
Can I somehow remove the ScrollBars in textarea which in my application has enough rows to accomodate my data and thus there is no need for the scrollbar which appear as disabled.
If yes i'll appreciate if someone can help me with.

Thanks
Kaustubh
Hello,
Im supose to use a textarea in which im suppose to se the text that is comming from the request. Is it possible to set the text of textarea dynamically?? if yes kindly tell how can it be done..

Thanks
Kaustubh
Hello,
Is there ne way that an alert can be closed with some method or without clicking the "OK" button or is there ne way to execute the code follwing the alert without clicking "OK" button or closing the alert??? because as i understand unless we click "OK" the code that follows the alert does not get executed. Does clicking on "OK" reset the server session timeout???

Please help

Thanks
Kaustubh
Hello,
Is there ne way that an alert can be closed with some method or without clicking the "OK" button or is there ne way to execute the code follwing the alert without clicking "OK" button or closing the alert??? because as i understand unless we click "OK" the code that follows the alert does not get executed. Does clicking on "OK" reset the server session timeout???

Please help

Thanks
Kaustubh
18 years ago
JSP
Thanks for that reply,
Im using setInterval("method called",time in millisec);
The method that i call then uses window.showModelessDialog("PageExp.jsp","",..);
Now when the pop jsp is opens is this operation taken as a server request??
does this operation resets the server session timeout??
Please help.

Thanks
Kaustubh
18 years ago
JSP
Hello,
Im working with JSP in WSAD 5.0. I wanted to know if do
setInterval("action","interval in millisec") and
setTimeout("action","interval in millisec") methods keep the session active they being executed as backgroud process, even if the application is left idle for the set server session timeout??
Please help.

Thanks
Kaustubh
18 years ago
JSP