On 3/4/99 12:45 PM, Chainlu Sharma wrote:

Hi all
I have a small problem . I am having a HTML form where on clicking a
button, I open a subwindow which contains a combo
box. The value selected in combobox is returned to the form element.
    On submitting the form details, I printout the HTML thru servlet.
Now, when I click the same button again to open the
subwindow, the error message "Error file was not found.(servlet
name=AssignEngr.html)appears.
        How can I open the  subwindow?IS there any way of returning the
formelement values without actually reprinting the
HTML form thru the servlet(ie, only reading the values and then returning
the values to a static HTML page).

Thanx in advance.
CODE PIECES ARE AS FOLLOWS
In html page :
a]
<script language='javascript'>
function assignEngr(){
          if(myWin.name==null){

myWin=window.open("AssignEngr.html","subwindow","HEIGHT=100,width=350")
          }else{
                myWin.focus()
                }
</script>

----------------------------------------------

In the following statement "AssignEngr.html" is being interpreted as a
relative URL from the URL of document in which it appears:

  myWin=window.open("AssignEngr.html","subwindow","HEIGHT=100,width=350")

Because the URL that created this page starts with "/servlet", the URL
created by this statment also begins with "/servlet" which the server
(and servlet engine) is interpreting as a request for a servlet.

The solution is to use the full (absolute) URL to AssignEngr.html in your
JavaScript.

----------------------------------------------------------------------
Vince Bonfanti                                    [EMAIL PROTECTED]
New Atlanta Communications, LLC             http://www.newatlanta.com/
----------------------------------------------------------------------
                  "Java Servlet Technology Leaders"

___________________________________________________________________________
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