Hi,
I have a form(HTML page) with some text fields in it and a Apply button.
I firstly throw this HTML page in my doget method of Servlet.
the same servelet goes on to get the data from the dbase...
After throwing the complete page, and getting data from DB,
i am filling the fields of the same page with data using javascript in
servlet.
I am attaching the code.
****************************************************************************
********************
public void doGet (HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException
{
PrintWriter out = res.getWriter();
res.setContentType("text/html");
//THIS FUNCTION THROWS COMPLETE HTML PAGE
writeHtml("Test.html",out);
String value=null;
Compute comp=new Compute();
try
{
out.println("<SCRIPT LANGUAGE='JavaScript'>");
out.flush();
//document.values.PRICE its a text field on the
same html page
//this way i am filling all the fields.
value=comp.getValueFromDB();
out.println("document.values.PRICE.value="+value);
out.flush();
out.println("</SCRIPT>");
}
catch(Exception e)
{
}
}
****************************************************************************
********************
In the try block ,I am getting values for all the fields.
When i enter this block, i want to change the cursor to hourglass and when i
leave it,
curosr should be back to normal.
How can i do that using Javascript??
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html