Try
java.net.URLEncoder.encode(),
Kevin
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Alex.Zey
Sent: 01 July 1999 05:15
To: [EMAIL PROTECTED]
Subject: space in url
Hello,
I use JSP for a library web user interface. In a JSP I want to
construct an URL for an <a href> tag.
e.g.:
<a href="query.jsp?id=<%= bean.getId() %>">link</a>
My problem:
If the id (bean.getId()) contains a space character the URL isn't
correct (no space allowed in URLs).
Does anybody know a java function to solve this problem or must I write
my own function?
cu/2
Alex
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".