<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<%@ include file="/common/TopInclude.jsp" %>
<TITLE>SelectServiceToCreateStorage.jsp</TITLE>
<script>
function cancelAction(){
document.location.href="createStorageOpenCycle.do?cancel=true";
}
function init () {
if (document.layers) {
document.waitpart.visibility = 'hide';
document.mainpart.visibility = 'show';
} else if(document.all) {
document.all.waitpart.style.visibility = 'hidden';
document.all.mainpart.style.visibility = 'visible';
} else if (document.getElementById) {
var elm = document.getElementById('waitpart');
elm.style.visibility ='hidden';
elm = document.getElementById('mainpart');
elm.style.visibility ='visible';
}
}
</script>
</HEAD>
<BODY marginwidth="0" marginheight="0" leftmargin="0" topmargin="0"
onLoad="init();">
<% crown.fw.appconfig.AppConfigReader.refreshAppConfig(); %>
<DIV ID="waitpart">
<center><H2><i> Wait please ... </i></H2></center>
</DIV>
<%
//make sure the contents so far has been flushed
out.flush();
%>
<DIV ID="mainpart">
<cfw-form:form action="/sbw/createStorageOpenCycle.do">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top" scope="row"><img
src="images/empty.jpg"
width="4" height="4"></td>
</tr>
<tr>
<td height="19" align="left" valign="middle"
class="ContTableHeader"
scope="row"> Storage -Select Service</td>
</tr>
<tr>
<td align="left" valign="top" scope="row"><img
src="images/empty.jpg"
width="4" height="4"></td>
</tr>
<tr>
<td height="25" align="left" valign="top"
scope="row"><input
name="Submit" type="submit" class="Buttons"
value="Create Storage">
<html:button value="Cancel" styleClass="Buttons"
onclick="cancelAction()" property="button"> </html:button></td>
</tr>
<tr>
<td align="left" valign="top"
class="PageContentoutline" scope="row">
<cfw-DSingular:layout property="storageBO" >
<table width="100%" border="0" cellspacing="0"
cellpadding="0">
<tr align="left" valign="middle">
<td width="140" height="20"
class="PageContentdetails"
scope="row"> </td>
<td height="20"
class="PageContentdetails"> </td>
</tr>
<tr align="left" valign="middle">
<td height="20" align="left"
class="PageColHighlight" scope="row">
Service No</td>
<td height="20"
class="PageContentdetails"> <cfw-DSingular:text
property="serviceNo"
styleClass="TextField"/>
<cfw-genericPopup:popupButton
sqlId="storage/selectservicesql">
<cfw-genericPopup:parameters>
<cfw-genericPopup:parameter
parameterName="billingOfficeCode"
parameterValueProperty="strOrgUnitCodes" />
</cfw-genericPopup:parameters>
<cfw-genericPopup:populateFields>
<cfw-genericPopup:populateField
populateFromField="serviceNo"
populateToField="serviceNo" />
</cfw-genericPopup:populateFields>
<cfw-genericPopup:displayFields>
<cfw-genericPopup:displayField width="100px"
fieldLabel="Service No" field="serviceNo" />
<cfw-genericPopup:displayField width="100px"
fieldLabel="Customer Name" field="customerName"
/>
</cfw-genericPopup:displayFields>
<cfw-genericPopup:config noOfPages="5" rowsPerPage="5"
popupHeight="300"
popupTitle="Select Service"
popupWidth="300" />
</cfw-genericPopup:popupButton></td>
</tr>
<tr align="left" valign="middle">
<td height="20" align="left"
class="PageContentdetails"
scope="row"> </td>
<td height="20"
class="PageContentdetails"> </td>
</tr>
</table>
</cfw-DSingular:layout></td>
<tr>
<td align="left" valign="top" scope="row">
<p> </p>
</td>
</tr>
<tr>
<td height="25" align="left" valign="top"
scope="row"><input
name="Submit" type="submit" class="Buttons"
value="Create Storage">
<html:button value="Cancel" styleClass="Buttons"
onclick="cancelAction()" property="button"> </html:button></td>
</tr>
</table>
</cfw-form:form>
</DIV>
</BODY>
</HTML>
This is my page
On Apr 7, 2005 3:39 PM, Shiva Narayana <[EMAIL PROTECTED]> wrote:
> Asuthosh,
>
> This one is different from my requirement...i want to display the
> message when the action class loading ...but in this case it it is
> displaying the message when the page is loading...
>
> regards
> Shiva
>
> On Apr 7, 2005 3:17 PM, Ashutosh Satyam <[EMAIL PROTECTED]> wrote:
> > Hi Shiva,
> > I'm enclosing a sample JSP page which you can use
> > for giving the appearance that it's waiting till
> > the DB processing goes through.
> >
> > - - - - - - - - - - - - wait.jsp - - - - - - - - - - - - - - - - -
> > <html>
> > |
> > <head>
> > |
> > <style type="text/css">
> > |
> > #waitpart { position: absolute; }
> > |
> > #mainpart { position: absolute; visibility: hidden; } |
> > </style>
> > |
> >
> > |
> > <script language="JavaScript"> |
> > function init () {
> > |
> > if (document.layers) {
> > |
> > document.waitpart.visibility = 'hide'; |
> > document.mainpart.visibility = 'show'; |
> > } else if(document.all) {
> > |
> > document.all.waitpart.style.visibility = 'hidden'; |
> > document.all.mainpart.style.visibility = 'visible'; |
> > } else if (document.getElementById) {
> > |
> > var elm = document.getElementById('waitpart'); |
> > elm.style.visibility ='hidden'; |
> > elm = document.getElementById('mainpart'); |
> > elm.style.visibility ='visible';
> > |
> > }
> > |
> > }
> > |
> > </script>
> > |
> > </head>
> > |
> >
> > |
> > <body onLoad="init();">
> > |
> > <DIV ID="waitpart">
> > |
> > <center><H2><i> Wait please ... </i></H2></center> |
> > </DIV>
> > |
> > <%
> > |
> > //make sure the contents so far has been flushed |
> > out.flush();
> > |
> > %>
> > |
> > <DIV ID="mainpart">
> > |
> > <%
> > |
> > //just for testing.
> > |
> > // Your DB Processing relevant code comes here |
> > for (int i=0; i <100000; i++) {
> > |
> > out.println("Record:"+i);
> > |
> > out.println("<br>");
> > |
> > }
> > |
> > %>
> > |
> > <H1> Here comes the page............ </H1> |
> > </DIV>
> > |
> > </body>
> > |
> > </html>
> > |
> > - - - - - - - - - - - - - end page - - - - - - - - - - - - - - - -
> >
> > Hope this gives you enough insight and you may think of better
> > alternative and share with others.
> >
> > Regards,
> > Ashutosh
> >
> > -----Original Message-----
> > From: Shiva Narayana [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, April 07, 2005 2:43 PM
> > To: [email protected]
> > Subject: Please wait page
> >
> > hi all,
> >
> > I m developing an application using WSAD 5.1.1,Struts.
> > I m trying to fetch data from the database. I m writing the code in
> > action class...
> > i want to display a page while doing the processing....
> >
> > please help me.....
> >
> > the same logic is implemented in the site www.travelocity.com
> >
> > --
> > Regards
> > Shiva
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> --
> Regards
> Shiva
>
--
Regards
Shiva
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

