How to call javascript function on onload in struts-tiles

2008-10-07 Thread Sulabha Walavalkar
Hi,

 

I have a requirement as - on click of submit button call should be made to
database to check if any batch processes are running or not.

If any batch process is running then a message should be displayed on the
same screen else the data should be displayed in new window.

 

Since I am using tiles and layout.jsp page,  tag contains in
layout.jsp.  How can I check the value set by action class in javascript
function on onLoad event and then decide whether to open new window or stay
on the same screen?

 

If anyone has come across this situation or have any idea, please reply.

 

Thanks & Regards,
Sulabha Walavalkar


John Lewis Partnership, Zensar Technologies 
Zensar Knowledge Park, Plot#4, MIDC, 
Kharadi, Off Nagar Road, Pune - 411014
Landline :  +91-20-66074888   | +91-9765204544

 

Email  :   [EMAIL PROTECTED]| website:  www.zensar.com
<http://www.zensar.com/> 

 



Help in resetting multiple form data

2008-09-18 Thread Sulabha Walavalkar
Hi,

 

I am using 4 forms in one jsp, the reason being few select UI components &
search are common to other use cases. 

The problem I'm facing is with resetting the fields on successful completion
of any transaction.

 

One option is calling reset() method on all the forms in java script
function on onload even of body. But my application is using tiles & master
layout jsp because of which my function on body onload is not getting
called.

 

Can someone help me out giving any options to clear the data for all the
forms displayed in jsp?

 

Thanks & Regards,
Sulabha