You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by to...@meinsenf.at on 2001/11/07 23:57:56 UTC
standard functions for web-programming
I'm heavily missing standard functions for web-programming like you find in php:
nl2br:
takes a string and changes all "\n" to "<br>\n"
htmlentities:
takes a string an encodes characters like "<>�" to "<>ö"
urlencode:
takes a URL's query-string an encodes it:
like
variable: abc
value: X =?0?&"X
"http://localhost/index.jsp?abc=X =?0?&"X"
to
"http://localhost/index.jsp?abc=X%20%3D%3F0%3F%26%22X"
are these functions already existing and I'm not finding them?
or does anyone know a source???
thanks
michi