You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Dan Marchant <da...@fulcruminteraction.com> on 2003/10/15 22:51:13 UTC

Best way to deploy hivemind in a web application

What is the best way to deploy Hivemind in a web application?

Thanks

Dan

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


[lang] 8-bit characters and StringEscapeUtils

Posted by Pelle Nilsson <pe...@lysator.liu.se>.
Hi

When using StringEscapeUtils to generate XML or HTML to be encoded as
UTF-8 or ISO-8859-1 it should perfectly ok (I think) to leave certain
symbols unescaped (like swedish characters å, ä and ö) instead of
reaplacing them with markup entities. Of course depending on the
encoding of the document the strings are meant to be used with there
are different sets of characters that can be left unescaped. Have
anyone thought of adding encoding sensitive methods to
StringEscapeUtils (like has been done in many places in java.lang and
java.util in later versions of Java)? Something like

    public static String escapeXml(String str, String encoding);
    public static String escapeHtml(String str, String encoding);
    etc

Examples
    escapeHtml("ä&") => "&auml;&amp;"
    escapeHtml("ä&, "US-ASCII") => "&auml;&amp;"
    escapeHtml("ä&", "UTF-8") => "ä&amp;"

/Pelle




---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


RE: Best way to deploy hivemind in a web application

Posted by "Howard M. Lewis Ship" <hl...@comcast.net>.
Put the jars into WEB-INF/lib

Have a servlet initialize the registry.

That's something that's pretty missing; a servlet filter that would construct the registry and take
care of the end-of-request call to the ThreadNotifier.

--
Howard M. Lewis Ship
Creator, Tapestry: Java Web Components
http://jakarta.apache.org/tapestry
http://jakarta.apache.org/commons/sandbox/hivemind/
http://javatapestry.blogspot.com

> -----Original Message-----
> From: Dan Marchant [mailto:dan@fulcruminteraction.com] 
> Sent: Wednesday, October 15, 2003 4:51 PM
> To: Howard M. Lewis Ship [hlship@comcast.net]
> Cc: commons-dev@jakarta.apache.org
> Subject: Best way to deploy hivemind in a web application
> 
> 
> 
> What is the best way to deploy Hivemind in a web application?
> 
> Thanks
> 
> Dan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org