473,609 Members | 1,831 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

After 1 hour web page (.jsp) expires on tomcat 5.5

3 New Member
In my web app

after 1 hour web page automatically get expired when i checked tomcat status,
the tomcat server is running



Please help me out
May 31 '07 #1
4 6451
r035198x
13,262 MVP
In my web app

after 1 hour web page automatically get expired when i checked tomcat status,
the tomcat server is running



Please help me out
Check the JSP code. How long is your session?
You can increase the session timeout time either using web.xml
<session-config>
<session-timeout>120</session-timeout>
</session-config>

or using session.setMaxI nActiveInterval ()
Jun 1 '07 #2
puneit1234
3 New Member
Check the JSP code. How long is your session?
You can increase the session timeout time either using web.xml
<session-config>
<session-timeout>120</session-timeout>
</session-config>

or using session.setMaxI nActiveInterval ()


Already i have
<session-config>
<session-timeout>180</session-timeout>
</session-config>

code in tomcats web.xml


i am using JSF with Sun Java studio creator
Jun 1 '07 #3
r035198x
13,262 MVP
Already i have
<session-config>
<session-timeout>180</session-timeout>
</session-config>

code in tomcats web.xml


i am using JSF with Sun Java studio creator
Are you calling your jsp from a servlet or is it run as it's own entry point? Also could you post (under code tags) the first 20 or so lines of the JSP.
Jun 1 '07 #4
puneit1234
3 New Member
Are you calling your jsp from a servlet or is it run as it's own entry point? Also could you post (under code tags) the first 20 or so lines of the JSP.

I am not externally calling jsp but my application is developed in JSF framewrk,
FacesServlet(Co ntroller) will be instantiated first.


I am inserting data into a temp table of oracle, on that insert event trigger is fired, this trigger creates a database link and cursor , then the data is synchronized from local database to remote database through database link.


jsp:


<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http ://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
<jsp:directive. page contentType="te xt/html;charset=UT F-8" pageEncoding="U TF-8"/>
<f:view>
<ui:page binding="#{Sync Status.page1}" id="page1">
<ui:html binding="#{Sync Status.html1}" id="html1">
<ui:head binding="#{Sync Status.head1}" id="head1">
<ui:link binding="#{Sync Status.link1}" id="link1" url="/resources/stylesheet.css"/>
</ui:head>
<ui:body binding="#{Sync Status.body1}" id="body1" imageURL="/resources/mainback.jpg" style="backgrou nd-color: rgb(22, 155, 224); -rave-layout: grid">
<ui:form binding="#{Sync Status.form1}" id="form1">
<table border="0" cellpadding="0" cellspacing="0" height="12" width="100%">
<tr>
<td>&amp;nbsp;& amp;nbsp;&amp;n bsp;&amp;nbsp;& amp;nbsp;&amp;n bsp;
<font color="#BFDBE8"
face="verdana" style="strong">
<script language="JavaS cript">
//To Display Current Time and Date
var d= new Date();
document.write( d.toLocaleStrin g());
</script>
</font>
</td>
<td align="right" class="whitetop navtxt" style="height: 16px">
<a onclick="window .open('http://localhost:8090/fm/SMS%20Document/main.htm');">
<font color="#BFDBE8" face="verdana" style="strong"> Help</font>
</a>
<font color="#BFDBE8" face="verdana" style="strong"> | </font>
<a href="index.jsp ">
<font color="#BFDBE8" face="verdana" style="strong"> </font>
</a>
</td>
<td width="30">
<table border="0" cellpadding="0" cellspacing="0" width="30">
<tr>
<td width="32"></td>
</tr>
</table>
<ui:button action="#{SyncS tatus.logout_ac tion}" binding="#{Sync Status.logout}" id="logout" text="Logout"/>
</td>
</tr>
</table>
<!-- <table border="0" cellpadding="0" cellspacing="0" height="12" width="100%">
<tr>
<td align="right" class="whitetop navtxt" style="height: 28px" width="50%"></td>
<td style="width: 75px" width="8%"></td>
<td width="10%"></td>
<td width="30">
<table border="0" cellpadding="0" cellspacing="0" width="30">
<tr>
<td width="32">
<br/>&amp;nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>-->
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="20">
<img alt="" height="12" src="images/base/GRID_03.jpg" width="20"/>
</td>
<td background="ima ges/base/GRID_04.jpg">
<img alt="" height="12" src="images/base/GRID_04.jpg" width="748"/>
</td>
<td width="15">
<img alt="" height="12" src="images/base/GRID_05.jpg" width="15"/>
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td style="height: 29px" width="20">
<img alt="" height="32" src="images/base/GRID_07.jpg" width="20"/>
</td>
<td bgcolor="#FFFFF F" valign="top" width="91">
<img height="29" src="images/misc/toplogo.jpg" width="91"/>
</td>
<td bgcolor="#FFFFF F" width="79%">&am p;nbsp;</td>
<td bgcolor="#FFFFF F" width="190">
<img height="15" src="images/misc/topmotto.jpg" width="190"/>
</td>
<td width="15">
<img alt="" height="32" src="images/base/GRID_09.jpg" width="15"/>
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="19">
<img alt="" height="119" src="images/base/GRID_10.jpg" width="20"/>
</td>
<td background="ima ges/base/GRID_10a.jpg" valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="659">
<tr>
<td height="14" width="659">
<img height="14" src="images/misc/topnavbarbck.jp g" width="659"/>
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="top">
<td height="100" width="659">
<table border="0" cellpadding="0" cellspacing="0" width="659">
<tr valign="top">
<td height="100" width="27">
<img height="100" src="images/misc/topnavbarbcklt. jpg" width="27"/>
</td>
<td width="92">
<!-- <a href="faces/Menu.jsp" onmouseout="MM_ swapImgRestore( )" onmouseover="MM _swapImage('Ima ge1','','images/misc/navschedule2.jp g',1)">-->
<img border="0" height="100" id="Image1" name="Image1" src="images/misc/navschedule1.jp g" width="92"/>
<!-- </a>-->
</td>
<td width="5">
<img height="101" src="images/misc/topnavbarsep.jp g" width="5"/>
</td>
<td width="94">
<!-- <a href="faces/gridViewPGAU.js p" onmouseout="MM_ swapImgRestore( )" onmouseover="MM _swapImage('gri dnav','','image s/misc/navgrid2.jpg',1 )">-->
<img alt="Grid" border="0" height="101" name="gridnav" src="images/misc/navgrid1.jpg" width="94"/>
<!-- </a>-->
</td>
<td width="5">
<img height="101" src="images/misc/topnavbarsep.jp g" width="5"/>
</td>
<td width="94">
<!-- <a href="faces/FMCTargets.jsp" onmouseout="MM_ swapImgRestore( )" onmouseover="MM _swapImage('tar get','','images/misc/navtarget2.jpg' ,1)">-->
<img alt="Target" border="0" height="101" name="target" src="images/misc/navtarget1.jpg" width="94"/>
<!-- </a>-->
</td>
<td width="5">
<img height="101" src="images/misc/topnavbarsep.jp g" width="5"/>
</td>
<td width="93">
<!-- <a href="faces/offerSummary.js p" onmouseout="MM_ swapImgRestore( )" onmouseover="MM _swapImage('off er','','images/misc/navoffer2.jpg', 1)">-->
<img alt="Offer" border="0" height="101" name="offer" src="images/misc/navoffer1.jpg" width="93"/>
<!-- </a>-->
</td>
<td width="5">
<img height="101" src="images/misc/topnavbarsep.jp g" width="5"/>
</td>
<td width="94">
<!-- <a href="faces/orderSummary.js p" onmouseout="MM_ swapImgRestore( )" onmouseover="MM _swapImage('ord er','','images/misc/navorder2.jpg', 1)">-->
<img alt="Order" border="0" height="101" name="order" src="images/misc/navorder1.jpg" width="94"/>
<!-- </a>-->
</td>
<td width="5">
<img height="101" src="images/misc/topnavbarsep.jp g" width="5"/>
</td>
<td background="ima ges/misc/topnavbarsep.jp g" width="98">
<!-- <a href="Report%20 Weekly%20Analys is.htm" onmouseout="MM_ swapImgRestore( )" onmouseover="MM _swapImage('Ima ge2','','images/misc/navreport2.jpg' ,1)">-->
<img border="0" height="101" id="Image2" name="Image2" src="images/misc/navreport1.jpg" width="94"/>
<!-- </a>-->
</td>
<td width="42">
<img height="100" src="images/misc/topnavbarbckrt. jpg" width="42"/>
</td>
</tr>
</table>
</td>
<td align="right">
<!-- <a href="faces/SPGAU.jsp" onmouseout="MM_ swapImgRestore( )" onmouseover="MM _swapImage('syn chmanager','',' images/buttons/synchmanager2.j pg',1)">-->
<img alt="Synch Manager" border="0" height="96" name="synchmana ger" src="images/buttons/synchmanager1.j pg" width="75"/>
<!-- </a>-->
</td>
</tr>
</table>
</td>
<td width="15">
<img alt="" height="119" src="images/base/GRID_11.jpg" width="15"/>
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="20">
<img alt="" height="50" src="images/base/GRID_12.jpg" width="20"/>
</td>
<td background="ima ges/base/litebluebarmid. jpg">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="21%">
<img height="41" src="images/SyncManager/title_sync.jpg" width="225"/>
</td>
<td align="left" valign="middle" width="79%">
<table border="0" cellpadding="0" cellspacing="0" width="413">
<tr>
<td style="height: 16px" width="5%"></td>
<td align="right" style="height: 20px" valign="middle" width="208">
<span class="gray1txt ">
<img height="10" src="images/misc/spacer.gif" width="10"/>
</span>
<span class="dbluenav smalltxt">
<!-- <font color="RED">
<strong>Selec t Item to sync</strong>
</font>-->
</span>
<span class="gray1txt "></span>
</td>
<td align="left" valign="middle" width="205">
<span class="gray1txt ">
<img height="10" src="images/misc/spacer.gif" width="10"/>
</span>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<ui:panelGrou p binding="#{Sync Status.groupPan el1}" id="groupPanel1 " style="border: 2px solid white; background-color: white; height: 644px; left: 0px; top: 264px; position: absolute; width: 1004px"/>
<ui:panelGrou p binding="#{Sync Status.groupPan el2}" id="groupPanel2 " style="border: 3px groove rgb(134, 205, 205); background-color: rgb(255, 255, 255); height: 354px; left: 120px; top: 360px; position: absolute; width: 762px"/>
<img height="30" src="images/misc/bottomlogo.jpg" style="left: 0px; top: 936px; position: absolute" width="172"/>
<ui:button action="#{SyncS tatus.btnRefres hStat_action}" binding="#{Sync Status.btnRefre shStat}" id="btnRefreshS tat" rendered="false "
style="height: 24px; left: 119px; top: 744px; position: absolute; width: 107px; z-index: 520" text="Refresh Status"
toolTip="Refres hes the Status for Synchronization " visible="false"/>
<ui:alert binding="#{Sync Status.alert1}" id="alert1" style="left: 672px; top: 936px; position: absolute; width: 166px"/>
<ui:label binding="#{Sync Status.label1}" id="label1"
style="height: 22px; left: 120px; top: 312px; position: absolute; width: 131px; z-index: 521" text="SYNC STATUS:"/>
<ui:button action="#{SyncS tatus.btnBack_a ction}" binding="#{Sync Status.btnBack} " id="btnBack"
style="height: 20px; left: 791px; top: 744px; position: absolute; width: 97px; z-index: 522;color:red" text="Back"/>
<ui:panelLayo ut binding="#{Sync Status.lpSyncSt at}" id="lpSyncStat " panelLayout="fl ow" style="height: 310px; left: 144px; top: 384px; position: absolute;overfl ow:scroll; width: 718px; z-index: 523">
<ui:table augmentTitle="f alse" binding="#{Sync Status.tblSyncS tat}" id="tblSyncStat " title="Synchron ization Status" width="120">
<script><![CDATA[
/* ----- Functions for Table Preferences Panel ----- */
/*
* Toggle the table preferences panel open or closed
*/
function togglePreferenc esPanel() {
var table = document.getEle mentById("form1 :table1");
table.toggleTbl ePreferencesPan el();
}
/* ----- Functions for Filter Panel ----- */
/*
* Return true if the filter menu has actually changed,
* so the corresponding event should be allowed to continue.
*/
function filterMenuChang ed() {
var table = document.getEle mentById("form1 :table1");
return table.filterMen uChanged();
}
/*
* Toggle the custom filter panel (if any) open or closed.
*/
function toggleFilterPan el() {
var table = document.getEle mentById("form1 :table1");
return table.toggleTab leFilterPanel() ;
}
/* ----- Functions for Table Actions ----- */
/*
* Initialize all rows of the table when the state
* of selected rows changes.
*/
function initAllRows() {
var table = document.getEle mentById("form1 :table1");
table.initAllRo ws();
}
/*
* Set the selected state for the given row groups
* displayed in the table. This functionality requires
* the 'selectId' of the tableColumn to be set.
*
* @param rowGroupId HTML element id of the tableRowGroup component
* @param selected Flag indicating whether components should be selected
*/
function selectGroupRows (rowGroupId, selected) {
var table = document.getEle mentById("form1 :table1");
table.selectGro upRows(rowGroup Id, selected);
}
/*
* Disable all table actions if no rows have been selected.
*/
function disableActions( ) {
// Determine whether any rows are currently selected
var table = document.getEle mentById("form1 :table1");
var disabled = (table.getAllSe lectedRowsCount () > 0) ? false : true;
// Set disabled state for top actions
document.getEle mentById("form1 :table1:tableAc tionsTop:delete Top").setDisabl ed(disabled);
// Set disabled state for bottom actions
document.getEle mentById("form1 :table1:tableAc tionsBottom:del eteBottom").set Disabled(disabl ed);
}]]></script>
<ui:tableRowGro up binding="#{Sync Status.tableRow Group1}" id="tableRowGro up1" rows="10"
sourceData="#{S yncStatus.sync_ statusDataProvi der}" sourceVar="curr entRow">
<ui:tableColu mn binding="#{Sync Status.tableCol umn1}" headerText="STA TUS" id="tableColumn 1">
<ui:staticTex t binding="#{Sync Status.staticTe xt1}" id="staticText1 " text="#{current Row.value['OPERATIONDESC']}"/>
</ui:tableColumn>
</ui:tableRowGrou p>
</ui:table>
</ui:panelLayout>
<ui:messageGrou p binding="#{Sync Status.messageG roup1}" id="messageGrou p1" style="left: 744px; top: 792px; position: absolute; width: 190px"/>
</ui:form>
</ui:body>
</ui:html>
</ui:page>
</f:view>
</jsp:root>
Jun 4 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1201
by: b.orsini | last post by:
Is it possible to know if a row is the first row in a table after a page break ? After a page break, the header is put in the page ( it's ok ) but in some case i must display the first row differently :( please help ! thank you.
1
2169
by: Ed | last post by:
Don't know where else to ask this question...AFS people tell me they can't answer JavaScript questions...it's a little of both with vbscript mixed in. I have a series of select statements such as this one that gets it's options from our database. At the end of the select statment(s) is a script to create another row of select statements so a person needing more than one account to process an order can do just that. Problem is I can't...
3
6683
by: Ghanathe | last post by:
Hello!!! Can any one tell how to retrieve user name and other details like first name,address,contact no. and so on.... and display in welcome page after login page using c# and sql server plzzzzzzzzzzzz Thanking u Regards, Deepshika
3
6372
by: sungung | last post by:
Hi group, I want to back orginal scroll postion after reload page. Is it possible? My situation is call popup windows -enter data on popup -close popup -refresh parent page -reload data. As you know, scroll position will be 0,0 after reloading page. But I want to go the postion where user click the link for popup windows.
6
2604
by: =?Utf-8?B?Rmx5Z3V5?= | last post by:
I am trying to keep from reloading my XmlDocument every time my page reloads. To do this I am using ViewState. System.Xml.XmlDocument myDataXmlDoc = new System.Xml.XmlDocument(); myDataXmlDoc.Load("myData.xml"); ViewState = myDataXmlDoc; When I do this I get the following error: Type 'System.Xml.XmlDocument' in Assembly 'System.Xml, Version=2.0.0.0,
3
1972
by: myNameIsChris | last post by:
Sporadically, I am receiving "out of memory" errors on my websites. In my performance monitor (Debug Diagnostic Tool), I can watch virtual bytes skyrocket until it causes an "out of memory" error on my website. What could be causing this? Even if I have piss-poor code with plenty of unclosed, un-nothing'ed objects, shouldn't the memory be freed after the page is served to the user? That is, nothing should be persisted from one page visit...
1
2067
by: myNameIsChris | last post by:
Sporadically, I am receiving "out of memory" errors on my websites. In my performance monitor (Debug Diagnostic Tool), I can watch virtual bytes skyrocket until it causes an "out of memory" error on my website. What could be causing this? Even if I have piss-poor code with plenty of unclosed, un-nothing'ed objects, shouldn't the memory be freed after the page is served to the user? That is, nothing should be persisted from one page visit...
4
9321
oranoos3000
by: oranoos3000 | last post by:
hi can i change id attribute an element with below command in jquery $("#error").attr("id", "warning"); i know this code is not reasonable but i want to know change id's element after load page is incorrect and hos is state of validate code after change id an element?
0
8555
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8232
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8408
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7024
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5524
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4032
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4098
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2540
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1686
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.