Manish Singh wrote:
>
> Hi Tyla,
>
> u could hv used action attribute of Form tag of html but if u really want
> to reach to the IM servlet through reference then use encodeURL method
> instead of directly concatinating the strings.

Using the form as you suggest should work. However, using encodeURL is
not correct. According to the servlet API,
HttpServletResponse.encodeURL(String) "Encodes the specified URL by
including the session ID in it, or, if encoding is not needed, returns
the URL unchanged."

The problem is more likely that the URL is not properly formed:

> out.print("location.href="+"'"+"http://oldbob.eng.filenet.com:8080/servlet/I
> M    prodcode="+"'"+"+"+"userInput"+"+'&priority="+priority+"'");

There should be a "?" and no white space between 'IM' and 'prodcode':
.../servlet/IM?prodcode=...

K Mukhar

___________________________________________________________________________
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