Q1. I would like to synchronize data from mssql to postgresql in a schedule job. I did this by VB use Windows scheduler. Can java do this also? OS may be Linux or Window.
Answer: You can run a Thread which will wait for a certain time period and then run the process again.
Q2. Can jsp ask OS...
I use something like this in WebLogic Server
I hope this shuld be the same for JBoss also.
<session>
<ejb-name>Hello2Bean</ejb-name>
<home>com.its.ejb.Hello2Home</home>
<remote>com.its.ejb.Hello2</remote>
<ejb-class>com.its.ejb.Hello2Bean</ejb-class>...
You cant select a directory using the FIle HTML Element. You need to think of doing something else like a Applet for FTPing teh files under a directory
Modify the method confirmDelete()
as
// Confirm Delete Request
function confirmDelete(iSection) {
var yes=confirm('Are you sure you wish to delete ' + iSection + '?');
if (yes) {
return onDeleteSection(iSection);// This is the place where you had missed out
}
else {...
See whether this helps
/*
* Function to compare two dates
*/
function compareDates(strFieldMinVal, strFieldMaxVal)
{
var arrData = new Array(3);
var intDay = 0;
var intMonth = 0;
var intYear = 0;
arrData = strFieldMinVal.split('/');
intMonth = parseInt(arrData[0], 10)...
What Server are u using???? Is it Tomcat???
If it is so, then u need to put the classes12.zip in the
D:\Tomcat\shared\lib folder where
D:\Tomcat is teh folder where I have installed Tomcat.
Why do u want to create hidden elements to send data from the form. You have the form elements which is sent when u post the form...
If u still wanna do it...
Create the hidden elements when u form the HTML itself. Now u have the HTML painted with the regular form as well as Hidden elements...
Netscape lower versions doesa not support disabled attribute...
One Option modify ur scripts to blur the text field when the user is clicking on it.
else
submit to teh server and come back with READONLY INPUT TYPE
I have attached a JS Function which will validate a date in teh format u have specified. You can do it in the front end itself rather than going to the middler Layer for this purpose.
Hope this helps...
/* Function to validate the date */
function validateDate(strDate)
{
var strFormatError...
I seriously dint understand ur first question
This is the Answer for ur 2nd Question:
response.sendRedirect ("Login.jsp");
This is the Answer for ur 3rd Question:
response.setHeader("Pragma", "No-cache") ;
response.setDateHeader("Expires", 0) ...
First of all u need to import
import java.util.Random;
Next is u cannot access the method nextInt as it is not a static method. have a object instantiated and then do it...
As far as I know, u can save it the data as Comma Separated Values in a CSV file which is compatible with MS Excel.
If u are specifically looking out for suppot for XLS Files with Macros, etc, then u might have to depend on third party JAVA - COM Bridges. For example third party softwares like...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.