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".

Reply via email to