Re: organizing HTML pages into subdirectories
On Wed, 22 Aug 2007 06:17:17 -0700 (PDT), abhilash wrote > I have a sub directory called admin under WEB-INF .My servlet > mapping isdentaprise name> /app > > i have ListClient.html in admin directory.I am unable to get the page > ListClient.where i have to specify my sub directory? > any ideas? > > -- > View this message in context: http://www.nabble.com/organizing-HTML- > pages-into-subdirectories-tf4311520.html#a12274323 Sent from the > Tapestry - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] You can specify the location in the dentaprise.application file, like this: Put the .page and .html file in the same directory. The dentaprise.application file should be in the WEB-INF directory. Hope this helps... Hans Drexler GeoTax en WOZ-Support b.v. e: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to overwrite the Locale in BaseEngine
On Mon, 02 Jul 2007 13:05:39 +0200, munich wrote > What would be the most reliable way to overwrite the Locale for the > Component and Page messages inside an extended BaseEngine? > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] Our code: private static final Locale NL = new Locale("nl","NL"); public final void setLocale(Locale locale) { if (getLocale() == null ) { super.setlocale(NL); } else { super.setLocale(locale); } Hans Drexler GeoTax en WOZ-Support b.v. e: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OutOfMemoryError after serving N pages
t;>>> > > >>>> What am I doing wrong here? Is it the Spring OpenSessionInView- > > filter > > >>>> that I use that is wasting memory, am I not cleaning-up everything > > >>>> myself? Should I use Tapestry 4.1.1? Can anybody help? The code of > > the > > >>>> page follows: > > >>>> (You can also have a look at > > >>>> http://musicontroller.cvs.sourceforge.net/musicontroller/ for more > > >>>> sourcecode) > > >>>> > > >>>> Thanks, > > >>>> ~Arjan Verstoep > > >>>> > > >>>> > > >>> Hi Arjan, > > >>> I'm having the same problem you had: heap space OOME after serving N > > >>> pages. > > >>> Did you find any solutions? > > >>> Thanks. > > >>> -- > > >>> View this message in context: http://www.nabble.com/ > > >>> OutOfMemoryError-after-serving-N-pages-tf3272095.html#a11338497 > > >>> Sent from the Tapestry - User mailing list archive at Nabble.com. > > >>> > > >>> > > >>> - > > >>> To unsubscribe, e-mail: [EMAIL PROTECTED] > > >>> For additional commands, e-mail: [EMAIL PROTECTED] > > >> > > >> > > >> - > > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > > >> For additional commands, e-mail: [EMAIL PROTECTED] > > >> > > > > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > -- > Jesse Kuhnert > Tapestry/Dojo team member/developer > > Open source based consulting work centered around > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com Hans Drexler GeoTax en WOZ-Support b.v. e: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Create Shoutcast service in Tapestry.
On Tue, 3 Apr 2007 20:49:02 -0400, Jesse Kuhnert wrote > You can still do HttpServletResponse.setStatus(int code, String > message); > > It's deprecated so there may be a better way but who knows..It > wouldn't make sense if they didn't let you do it. > I think the setStatus() will only affect the "200 OK" part, not the "HTTP/1.1" part of the status line. But thanks for the reaction anyway. Hans Drexler > On 4/3/07, Hans Drexler <[EMAIL PROTECTED]> wrote: > > On Tue, 03 Apr 2007 14:11:03 +0100, Richard Kirby wrote > > > Hi Hans, > > > > > > The status line is output by the servlet engine - not Tapestry, > > > since it is a core part of the HTTP spec. > > > > > > What you may be able to do, is create a javax.servlet.Filter which > > > reads the response from Tapestry into a stream, hopefully including > > > the status line - and then just re-output but with your new status > > > line. Don't know if that will work though. > > > > > > Richard. > > > > > > > I already had a hunch that it would be something like this. Thanks for the > > response. I will try to construct a filter. Never did that before, so it > > will > > be a challenge :-) > > > > > Hans Drexler wrote: > > > > We try to create a Tapestry-service that generates a Shoutcast stream. > > > > The > > > > problem is that the shoutcast response must have a status line that > > > > reads: > > > > > > > > ICY 200 OK > > > > > > > > Instead, the status line we get is always: > > > > > > > > HTTP/1.1 200 OK > > > > > > > > Many mediaplayers (WinAmp, Xmms, iTunes) accept the header with HTTP status > > > > line, but some do not. The ICY header is incorrect according to RFC 2616 and I > > > > have been unable to generate a response with this status line. > > > > > > > > Does somebody have a clue on how we could spit out a response with the > > > > ICY > > > > like status line in it? Any help is appreciated. > > > > > > > > > > > > > > > > The code we use now is basically like this: > > > > > > > > private WebResponse _response; > > > > > > > > [...] > > > > > > > > private OutputStream initOutputStream(boolean metadata) throws IOException { > > > > OutputStream out = _response.getOutputStream(new ContentType("audio/mpeg")); > > > > > > > > //Spit out Shoutcast-headers. > > > > _response.setHeader("icy-notice1","This stream requires > > > > > > > href=\"http://www.winamp.com/\";>Winamp"); > > > > _response.setHeader("icy-notice1","MusiController > > > > SHOUTcast-implementation"); > > > > _response.setHeader("icy-name","MusiController"); > > > > _response.setHeader("icy-genre","All sorts"); > > > > _response.setHeader("icy-url","http://musicontroller.sourceforge.net";); > > > > _response.setHeader("icy-pub","1"); > > > > _response.setHeader("icy-br","192"); > > > > if (metadata) _response.setIntHeader("icy-metaint",BUFFER_SIZE); > > > > > > > > log.debug("Outputstream initialized"); > > > > > > > > return out; > > > > } > > > > [...] > > > > > > > > public void setResponse(WebResponse response) { > > > > _response = response; > > > > } > > > > > > > > > > > > > > > > Hans Drexler > > > > > > > > > > > > - > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > Hans Drexler > > GeoTax en WOZ-Support b.v. > > e: [EMAIL PROTECTED] > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > -- > Jesse Kuhnert > Tapestry/Dojo team member/developer > > Open source based consulting work centered around > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Create Shoutcast service in Tapestry.
On Tue, 03 Apr 2007 14:11:03 +0100, Richard Kirby wrote > Hi Hans, > > The status line is output by the servlet engine - not Tapestry, > since it is a core part of the HTTP spec. > > What you may be able to do, is create a javax.servlet.Filter which > reads the response from Tapestry into a stream, hopefully including > the status line - and then just re-output but with your new status > line. Don't know if that will work though. > > Richard. > I already had a hunch that it would be something like this. Thanks for the response. I will try to construct a filter. Never did that before, so it will be a challenge :-) > Hans Drexler wrote: > > We try to create a Tapestry-service that generates a Shoutcast stream. The > > problem is that the shoutcast response must have a status line that reads: > > > > ICY 200 OK > > > > Instead, the status line we get is always: > > > > HTTP/1.1 200 OK > > > > Many mediaplayers (WinAmp, Xmms, iTunes) accept the header with HTTP status > > line, but some do not. The ICY header is incorrect according to RFC 2616 > > and I > > have been unable to generate a response with this status line. > > > > Does somebody have a clue on how we could spit out a response with the ICY > > like status line in it? Any help is appreciated. > > > > > > > > The code we use now is basically like this: > > > > private WebResponse _response; > > > > [...] > > > > private OutputStream initOutputStream(boolean metadata) throws > > IOException { > > OutputStream out = _response.getOutputStream(new > > ContentType("audio/mpeg")); > > > > //Spit out Shoutcast-headers. > > _response.setHeader("icy-notice1","This stream requires > href=\"http://www.winamp.com/\";>Winamp"); > > _response.setHeader("icy-notice1","MusiController > > SHOUTcast-implementation"); > > _response.setHeader("icy-name","MusiController"); > > _response.setHeader("icy-genre","All sorts"); > > > > _response.setHeader("icy-url","http://musicontroller.sourceforge.net";); > > _response.setHeader("icy-pub","1"); > > _response.setHeader("icy-br","192"); > > if (metadata) _response.setIntHeader("icy-metaint",BUFFER_SIZE); > > > > log.debug("Outputstream initialized"); > > > > return out; > > } > > [...] > > > > public void setResponse(WebResponse response) { > > _response = response; > > } > > > > > > > > Hans Drexler > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] Hans Drexler GeoTax en WOZ-Support b.v. e: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Create Shoutcast service in Tapestry.
We try to create a Tapestry-service that generates a Shoutcast stream. The problem is that the shoutcast response must have a status line that reads: ICY 200 OK Instead, the status line we get is always: HTTP/1.1 200 OK Many mediaplayers (WinAmp, Xmms, iTunes) accept the header with HTTP status line, but some do not. The ICY header is incorrect according to RFC 2616 and I have been unable to generate a response with this status line. Does somebody have a clue on how we could spit out a response with the ICY like status line in it? Any help is appreciated. The code we use now is basically like this: private WebResponse _response; [...] private OutputStream initOutputStream(boolean metadata) throws IOException { OutputStream out = _response.getOutputStream(new ContentType("audio/mpeg")); //Spit out Shoutcast-headers. _response.setHeader("icy-notice1","This stream requires http://www.winamp.com/\";>Winamp"); _response.setHeader("icy-notice1","MusiController SHOUTcast-implementation"); _response.setHeader("icy-name","MusiController"); _response.setHeader("icy-genre","All sorts"); _response.setHeader("icy-url","http://musicontroller.sourceforge.net";); _response.setHeader("icy-pub","1"); _response.setHeader("icy-br","192"); if (metadata) _response.setIntHeader("icy-metaint",BUFFER_SIZE); log.debug("Outputstream initialized"); return out; } [...] public void setResponse(WebResponse response) { _response = response; } Hans Drexler - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]