You need to encode your URLs. When you make a get request to a (any) web
server, spaces are not permitted in the request string. Take a look at the
core class java.net.URLEncoder.
Hope this helps.
- Chinmay.
> ----------
> From: kavitha ramasamy[SMTP:[EMAIL PROTECTED]]
> Reply To: A mailing list for discussion about Sun Microsystem's Java
> Servlet API Technology.
> Sent: Tuesday, November 02, 1999 12:56 PM
> To: [EMAIL PROTECTED]
> Subject: problem in link
>
> Hi,
> My problem is
>
> In this label value is
> Visit 1
> out.print("<body><a href=http://127.0.0.1:7001/triallist?trialid=");
> out.print(trialid);
> out.print("&eventid=");
> out.print(label);
> out.println(">"+ label+ "</a><br>");
>
> But I am getting
> http://127.0.0.1:7001/triallist?trialid=1000&eventid=Visit
>
> It is rejecting the value after space(Visit instead of Visit 1)
> How to overcome this?
> bye
> kavitha
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>
> __________________________________________________________________________
> _
> 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
>
___________________________________________________________________________
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