Hi anoop,

  If it is necessary to use the applet may be u could try as below:

1) In the static html file use the following javascript code:

  <SCRIPT LANGUAGE="JavaScript">
<!--

var querystr = window.location.search.substring(1);
function sendToApplet() {
return querystr;
  }

//-->
</SCRIPT>

2) In the Applet  use the following java code

import netscape.javascript.JSObject; // comes with both IE & Netscape

...
In the applet init() method .. you can access the querystr value using the code..


JSObject win;
String querystr;
 try
 {
      win = JSObject.getWindow(this);
      querystr = (String)win.call("sendToApplet", new String[0]);
  }
  catch(Exception ex)
  {
     querystr = null;
  }

you can then parse the querystr as per your requirement

Regards,
srini

___________________________________________________________________________
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

Reply via email to