You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Alexander Kolesnikov <ak...@galactica.ru> on 2005/06/11 22:09:43 UTC

Line feed in a resource phrase

In a localized application I am inserting a phrase from a resource file.
I want the phrase to be on two different lines in HTML, like this:

Some
phrase

So I tried to specify it in the resource file like this:

phrase=Some<br/> Phrase

but Tapestry encodes angle brackets, so in HTML it looks like

&lt;br /&gt;

I tried then to encode them myself:

&lt;br /&gt;

but Tapestry encoded ampersand then, so the whole thing gave

&amp;lt;br/&amp;gt;

Attempts with \n gave nothing. Is there any way to insert a line break
together with a string inserted from a resource file?

Thanx

Alex 


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


Configuring URLRewriteFilter (Tuckey) for Tapestry in web.xml

Posted by sa...@women-at-work.org.
I only want to use the UrlRewriteFilter for *.html

How do I tell within web.xml to use for all other requests
the tapestry filter? 

Usually it is set to "/"....and you can only work with "*" within
url-pattern.....

<filter>
    <filter-name>UrlRewriteFilter</filter-name>
   
<filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class>
	</filter>
	
	<filter-mapping>
    <filter-name>UrlRewriteFilter</filter-name>
	    <url-pattern>*.html</url-pattern>
	</filter-mapping>


    <filter>
        <filter-name>redirect</filter-name>
        <filter-class>org.apache.tapestry.RedirectFilter</filter-class>
    </filter>
    
    <filter-mapping>
        <filter-name>redirect</filter-name>
        <url-pattern>/</url-pattern>
    </filter-mapping>
    

Another question is about tomcat:

I want to have domainA.com for web application A and domainB.com for
application B and maybe access tomcat manager at manager.domainA.com

By default you always get long URLS like /domainA/app /domainB/app
and I want to have the homepage at www.domainA.com within any additional
stuff in the url....

Or is that impossible with tomcat ?

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


Re: Line feed in a resource phrase

Posted by Alexander Kolesnikov <ak...@galactica.ru>.
Thanks!

It also worked like this:

<span key="phrase" raw="true">

On Sat, 2005-06-11 at 23:11 +0300, Mind Bridge wrote:
> <span jwcid="@Insert" ... raw="true"/>
> 
> ----- Original Message ----- 
> From: "Alexander Kolesnikov" <ak...@galactica.ru>
> To: "Tapestry users" <ta...@jakarta.apache.org>
> Sent: Saturday, June 11, 2005 11:09 PM
> Subject: Line feed in a resource phrase
> 
> 
> > In a localized application I am inserting a phrase from a resource file.
> > I want the phrase to be on two different lines in HTML, like this:
> > 
> > Some
> > phrase
> > 
> > So I tried to specify it in the resource file like this:
> > 
> > phrase=Some<br/> Phrase
> > 
> > but Tapestry encodes angle brackets, so in HTML it looks like
> > 
> > &lt;br /&gt;
> > 
> > I tried then to encode them myself:
> > 
> > &lt;br /&gt;
> > 
> > but Tapestry encoded ampersand then, so the whole thing gave
> > 
> > &amp;lt;br/&amp;gt;
> > 
> > Attempts with \n gave nothing. Is there any way to insert a line break
> > together with a string inserted from a resource file?
> > 
> > Thanx
> > 
> > Alex 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> > 
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


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


Re: Line feed in a resource phrase

Posted by Mind Bridge <mi...@yahoo.com>.
<span jwcid="@Insert" ... raw="true"/>

----- Original Message ----- 
From: "Alexander Kolesnikov" <ak...@galactica.ru>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Saturday, June 11, 2005 11:09 PM
Subject: Line feed in a resource phrase


> In a localized application I am inserting a phrase from a resource file.
> I want the phrase to be on two different lines in HTML, like this:
> 
> Some
> phrase
> 
> So I tried to specify it in the resource file like this:
> 
> phrase=Some<br/> Phrase
> 
> but Tapestry encodes angle brackets, so in HTML it looks like
> 
> &lt;br /&gt;
> 
> I tried then to encode them myself:
> 
> &lt;br /&gt;
> 
> but Tapestry encoded ampersand then, so the whole thing gave
> 
> &amp;lt;br/&amp;gt;
> 
> Attempts with \n gave nothing. Is there any way to insert a line break
> together with a string inserted from a resource file?
> 
> Thanx
> 
> Alex 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 

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