You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Kevin Menard <km...@servprise.com> on 2006/06/24 19:47:12 UTC
Tapestry 4.1 JARs
Jesse,
Is there any possibility of naming the JARs like they were named with
Tapestry 4.0.x? Having JARs kicking around like "annotations-4.1.0.jar"
and "framework-4.1.0.jar" can make it confusing as to what these files
really are.
Thanks,
Kevin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
Re: Friendly URLS Bug?
Posted by Jesse Kuhnert <jk...@gmail.com>.
I double checked the source and see nothing that would lead me to believe
extension length would break things. (ie it just looks for "." and takes the
rest of the extension )
It probably is just that the examples on the website show how to do it for
*.html and not *.htm perhaps? I think I've actually used both before with no
issue but might be wrong.
On 6/24/06, James Carman <ja...@carmanconsulting.com> wrote:
>
> What do you have your tapestry servlet mapped to? *.html?
>
> -----Original Message-----
> From: Mike Grundvig [mailto:mike@electrotank.com]
> Sent: Saturday, June 24, 2006 8:06 PM
> To: Tapestry development
> Subject: Friendly URLS Bug?
>
> Hi all; I just want to thank everyone for an excellent framework and for
> all
>
> the hard work you do! Now onto the issue... It looks like a friendly URL
> shorter then four digits fails for no clear reason. I promise that I'm
> not
> crazy. I've uploaded two versions of a tiny example webapp at these URLs:
>
> Uses .html and works
> http://www.electrotank.com/junk/mike/tapestry/UrlBugHtml.zip
>
> Uses .htm and fails
> http://www.electrotank.com/junk/mike/tapestry/UrlBugHtm.zip
>
> You can download those, extract em and drop them into Tomcat (or any other
> app server) to see the problem.
>
> Url on your machine to test(working):
> http://127.0.0.1:8080/UrlBugHtml/Home.html
>
> Url on your machine to test (buggy):
> http://127.0.0.1:8080/UrlBugHtm/Home.htm
>
> I ran into this when trying to migrate a static site into Tapestry. The
> site
>
> was created with .htm extensions, not .html. It took me quite a while to
> determine that the pages were failing due to the extension, not due to
> configuration. Is this documented somewhere and I just missed it or is
> this
> really a bug? If this is intentional, why?
>
> Thanks again for all the hard work!
>
> Michael Grundvig
> Electrotank, Inc
> http://www.electrotank.com
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
>
>
--
Jesse Kuhnert
Tacos/Tapestry, team member/developer
Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.
Re: Friendly URLS Bug?
Posted by Geoff Longman <gl...@gmail.com>.
Suprisingly enough, that feature has been coded into the new stuff (it
is as of yet untested)
Of course, I don't handle annotations yet, but <meta> is equivalent
Geoff
On 6/25/06, Howard Lewis Ship <hl...@gmail.com> wrote:
> From:
>
> http://tapestry.apache.org/tapestry4/UsersGuide/configuration.html
>
> org.apache.tapestry.template-extension
>
>
> You can set this value to "htm" within a page or component specification to
> affect just that specification. I.e. @Meta("
> org.apache.tapestry.template-extension=htm")
>
> You can set this inside your .application file, to affect all pages and
> components within your application. Other libraries, including the
> framework, will resolve as normal.
>
> These special rules drive Geoff crazy ... I don't know if Spindle does or
> ever will support this.
>
> On 6/24/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> >
> > Ok I found an answer for you Mike :)
> >
> > The friendly URL stuff allows incoming requests to resolve correctly (even
> > if they end in .htm instead of .html ), but you must still have your
> > template pages end in .html regardless of how the users requests/thinks
> > they
> > are stored.
> >
> > The reason for this is that there are ~other~ html templates that tapestry
> > uses itself, like Exception pages / Components / etc...
> >
> > You can override this setting if you like, but then you'd have to somehow
> > make all the rest of those templates available in .htm form as well..
> >
> > My best advice is to not fight the system in how you name templates unless
> > there is a very good reason to do so. (like a 250m war! :)
> > )...Umm....Create
> > a quick perl script ? I've pasted the set of global properties for you to
> > see below, the one you could set if you were feeling like "bringing on the
> > pain" would be org.apache.tapestry.template-extension.
> >
> > <contribution configuration-id="hivemind.FactoryDefaults">
> > <default symbol="org.apache.tapestry.engine-class" value="
> > org.apache.tapestry.engine.BaseEngine"/>
> > <default symbol="org.apache.tapestry.visit-class" value="
> > java.util.HashMap"/>
> > <default symbol="org.apache.tapestry.output-encoding" value="UTF-8"/>
> > <default symbol="
> > org.apache.tapestry.enhance.disable-abstract-method-validation"
> > value="false"/>
> > <default symbol="org.apache.tapestry.default-page-class" value="
> > org.apache.tapestry.html.BasePage"/>
> > <default symbol="org.apache.tapestry.template-extension"
> > value="html"/>
> > <default symbol="org.apache.tapestry.jwcid-attribute-name"
> > value="jwcid"/>
> > <default symbol="org.apache.tapestry.default-binding-prefix"
> > value="ognl"/>
> > </contribution>
> >
> > On 6/24/06, Mike Grundvig <mi...@electrotank.com> wrote:
> > >
> > > Ok, I double checked by creating a copy of Html.html and calling it
> > > test.html. That worked fine in the UrlBugHtml app. Then I did the same
> > > thing
> > > with Home.htm calling it test.htm in the UrlBugHtm app. It failed the
> > same
> > > way Home.htm fails.
> > >
> > > Michael Grundvig
> > > Electrotank, Inc
> > > http://www.electrotank.com
> > >
> > >
> > > ----- Original Message -----
> > > From: "Mike Grundvig" <mi...@electrotank.com>
> > > To: "Tapestry development" <de...@tapestry.apache.org>
> > > Sent: Saturday, June 24, 2006 7:41 PM
> > > Subject: Re: Friendly URLS Bug?
> > >
> > >
> > > > When I played with this before, I recall none of them working
> > properly.
> > > > Let me go double check though.
> > > >
> > > > Michael Grundvig
> > > > Electrotank, Inc
> > > > http://www.electrotank.com
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: "Jesse Kuhnert" <jk...@gmail.com>
> > > > To: "Tapestry development" <de...@tapestry.apache.org>
> > > > Sent: Saturday, June 24, 2006 7:34 PM
> > > > Subject: Re: Friendly URLS Bug?
> > > >
> > > >
> > > >> Is it possible that Home.htm is the only victim that isn't resolved?
> > I
> > > >> think
> > > >> this has something to do with the HomeService but am not completely
> > > sure.
> > > >> What if you add another page, anything at all...Can you resolve urls
> > > >> correctly to it ?
> > > >>
> > > >> On 6/24/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> > > >>>
> > > >>> Ok...will check the unit tests now and report back.
> > > >>>
> > > >>>
> > > >>> On 6/24/06, Mike Grundvig <mi...@electrotank.com> wrote:
> > > >>> >
> > > >>> > In the UrlBugHtml zip, it's mapped to .html. In the UrlBugHtm zip,
> > > >>> > it's
> > > >>> > mapped to .htm. The first zip works, the second doesn't. If the
> > site
> > > >>> > had
> > > >>> >
> > > >>> > used .html extensions everywhere, I'd be good to go :)
> > > >>> > The specific Tapestry error is the "page not found" one that you
> > get
> > > >>> > when
> > > >>> > you try to find a page file that doesn't exist.
> > > >>> >
> > > >>> > Michael Grundvig
> > > >>> > Electrotank, Inc
> > > >>> > http://www.electrotank.com
> > > >>> >
> > > >>> >
> > > >>> > ----- Original Message -----
> > > >>> > From: "James Carman" <james@carmanconsulting.com >
> > > >>> > To: "'Tapestry development'" <de...@tapestry.apache.org>
> > > >>> > Sent: Saturday, June 24, 2006 7:13 PM
> > > >>> > Subject: RE: Friendly URLS Bug?
> > > >>> >
> > > >>> >
> > > >>> > > What do you have your tapestry servlet mapped to? *.html?
> > > >>> > >
> > > >>> > > -----Original Message-----
> > > >>> > > From: Mike Grundvig [mailto:mike@electrotank.com]
> > > >>> > > Sent: Saturday, June 24, 2006 8:06 PM
> > > >>> > > To: Tapestry development
> > > >>> > > Subject: Friendly URLS Bug?
> > > >>> > >
> > > >>> > > Hi all; I just want to thank everyone for an excellent framework
> > > and
> > > >>> > for
> > > >>> > > all
> > > >>> > >
> > > >>> > > the hard work you do! Now onto the issue... It looks like a
> > > friendly
> > > >>> > URL
> > > >>> > > shorter then four digits fails for no clear reason. I promise
> > > that
> > > >>> > I'm
> > > >>> > > not
> > > >>> > > crazy. I've uploaded two versions of a tiny example webapp at
> > > these
> > > >>> > URLs:
> > > >>> > >
> > > >>> > > Uses .html and works
> > > >>> > > http://www.electrotank.com/junk/mike/tapestry/UrlBugHtml.zip
> > > >>> > >
> > > >>> > > Uses .htm and fails
> > > >>> > > http://www.electrotank.com/junk/mike/tapestry/UrlBugHtm.zip
> > > >>> > >
> > > >>> > > You can download those, extract em and drop them into Tomcat (or
> > > any
> > > >>> > other
> > > >>> > > app server) to see the problem.
> > > >>> > >
> > > >>> > > Url on your machine to test(working):
> > > >>> > > http://127.0.0.1:8080/UrlBugHtml/Home.html
> > > >>> > >
> > > >>> > > Url on your machine to test (buggy):
> > > >>> > > http://127.0.0.1:8080/UrlBugHtm/Home.htm
> > > >>> > >
> > > >>> > > I ran into this when trying to migrate a static site into
> > > Tapestry.
> > > >>> > The
> > > >>> > > site
> > > >>> > >
> > > >>> > > was created with .htm extensions, not .html. It took me quite a
> > > >>> > > while
> > > >>> > to
> > > >>> > > determine that the pages were failing due to the extension, not
> > > due
> > > >>> > > to
> > > >>> > > configuration. Is this documented somewhere and I just missed it
> > > or
> > > >>> > > is
> > > >>> >
> > > >>> > > this
> > > >>> > > really a bug? If this is intentional, why?
> > > >>> > >
> > > >>> > > Thanks again for all the hard work!
> > > >>> > >
> > > >>> > > Michael Grundvig
> > > >>> > > Electrotank, Inc
> > > >>> > > http://www.electrotank.com
> > > >>> > >
> > > >>> > >
> > > >>> > >
> > > >>> > >
> > > ---------------------------------------------------------------------
> > > >>> > > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> > > >>> > > For additional commands, e-mail: dev-help@tapestry.apache.org
> > > >>> > >
> > > >>> > >
> > > >>> > >
> > > >>> > >
> > > ---------------------------------------------------------------------
> > > >>> > > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> > > >>> > > For additional commands, e-mail: dev-help@tapestry.apache.org
> > > >>> > >
> > > >>> > >
> > > >>> >
> > > >>> >
> > > >>> >
> > > >>> >
> > > ---------------------------------------------------------------------
> > > >>> > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> > > >>> > For additional commands, e-mail: dev-help@tapestry.apache.org
> > > >>> >
> > > >>> >
> > > >>>
> > > >>>
> > > >>> --
> > > >>> Jesse Kuhnert
> > > >>> Tacos/Tapestry, team member/developer
> > > >>>
> > > >>> Open source based consulting work centered around
> > > >>> dojo/tapestry/tacos/hivemind.
> > > >>>
> > > >>
> > > >>
> > > >>
> > > >> --
> > > >> Jesse Kuhnert
> > > >> Tacos/Tapestry, team member/developer
> > > >>
> > > >> Open source based consulting work centered around
> > > >> dojo/tapestry/tacos/hivemind.
> > > >>
> > > >
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> > > > For additional commands, e-mail: dev-help@tapestry.apache.org
> > > >
> > > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: dev-help@tapestry.apache.org
> > >
> > >
> >
> >
> > --
> > Jesse Kuhnert
> > Tacos/Tapestry, team member/developer
> >
> > Open source based consulting work centered around
> > dojo/tapestry/tacos/hivemind.
> >
> >
>
>
> --
> Howard M. Lewis Ship
> Independent J2EE / Open-Source Java Consultant
> Creator and PMC Chair, Apache Tapestry
> Creator, Jakarta HiveMind
>
> Professional Tapestry training, mentoring, support
> and project work. http://howardlewisship.com
>
>
--
The Spindle guy. http://spindle.sf.net
Blog: http://jroller.com/page/glongman
Other interests: http://www.squidoo.com/spaceelevator/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
Re: Friendly URLS Bug?
Posted by Mike Grundvig <mi...@electrotank.com>.
Thanks! That will save at least a week of effort on the HTML side of things.
I'll go ahead and play with that today.
Michael Grundvig
Electrotank, Inc
http://www.electrotank.com
----- Original Message -----
From: "Howard Lewis Ship" <hl...@gmail.com>
To: "Tapestry development" <de...@tapestry.apache.org>
Sent: Sunday, June 25, 2006 10:46 AM
Subject: Re: Friendly URLS Bug?
> From:
>
> http://tapestry.apache.org/tapestry4/UsersGuide/configuration.html
>
> org.apache.tapestry.template-extension
>
>
> You can set this value to "htm" within a page or component specification
> to
> affect just that specification. I.e. @Meta("
> org.apache.tapestry.template-extension=htm")
>
> You can set this inside your .application file, to affect all pages and
> components within your application. Other libraries, including the
> framework, will resolve as normal.
>
> These special rules drive Geoff crazy ... I don't know if Spindle does or
> ever will support this.
>
> On 6/24/06, Jesse Kuhnert <jk...@gmail.com> wrote:
>>
>> Ok I found an answer for you Mike :)
>>
>> The friendly URL stuff allows incoming requests to resolve correctly
>> (even
>> if they end in .htm instead of .html ), but you must still have your
>> template pages end in .html regardless of how the users requests/thinks
>> they
>> are stored.
>>
>> The reason for this is that there are ~other~ html templates that
>> tapestry
>> uses itself, like Exception pages / Components / etc...
>>
>> You can override this setting if you like, but then you'd have to somehow
>> make all the rest of those templates available in .htm form as well..
>>
>> My best advice is to not fight the system in how you name templates
>> unless
>> there is a very good reason to do so. (like a 250m war! :)
>> )...Umm....Create
>> a quick perl script ? I've pasted the set of global properties for you to
>> see below, the one you could set if you were feeling like "bringing on
>> the
>> pain" would be org.apache.tapestry.template-extension.
>>
>> <contribution configuration-id="hivemind.FactoryDefaults">
>> <default symbol="org.apache.tapestry.engine-class" value="
>> org.apache.tapestry.engine.BaseEngine"/>
>> <default symbol="org.apache.tapestry.visit-class" value="
>> java.util.HashMap"/>
>> <default symbol="org.apache.tapestry.output-encoding" value="UTF-8"/>
>> <default symbol="
>> org.apache.tapestry.enhance.disable-abstract-method-validation"
>> value="false"/>
>> <default symbol="org.apache.tapestry.default-page-class" value="
>> org.apache.tapestry.html.BasePage"/>
>> <default symbol="org.apache.tapestry.template-extension"
>> value="html"/>
>> <default symbol="org.apache.tapestry.jwcid-attribute-name"
>> value="jwcid"/>
>> <default symbol="org.apache.tapestry.default-binding-prefix"
>> value="ognl"/>
>> </contribution>
>>
>> On 6/24/06, Mike Grundvig <mi...@electrotank.com> wrote:
>> >
>> > Ok, I double checked by creating a copy of Html.html and calling it
>> > test.html. That worked fine in the UrlBugHtml app. Then I did the same
>> > thing
>> > with Home.htm calling it test.htm in the UrlBugHtm app. It failed the
>> same
>> > way Home.htm fails.
>> >
>> > Michael Grundvig
>> > Electrotank, Inc
>> > http://www.electrotank.com
>> >
>> >
>> > ----- Original Message -----
>> > From: "Mike Grundvig" <mi...@electrotank.com>
>> > To: "Tapestry development" <de...@tapestry.apache.org>
>> > Sent: Saturday, June 24, 2006 7:41 PM
>> > Subject: Re: Friendly URLS Bug?
>> >
>> >
>> > > When I played with this before, I recall none of them working
>> properly.
>> > > Let me go double check though.
>> > >
>> > > Michael Grundvig
>> > > Electrotank, Inc
>> > > http://www.electrotank.com
>> > >
>> > >
>> > > ----- Original Message -----
>> > > From: "Jesse Kuhnert" <jk...@gmail.com>
>> > > To: "Tapestry development" <de...@tapestry.apache.org>
>> > > Sent: Saturday, June 24, 2006 7:34 PM
>> > > Subject: Re: Friendly URLS Bug?
>> > >
>> > >
>> > >> Is it possible that Home.htm is the only victim that isn't resolved?
>> I
>> > >> think
>> > >> this has something to do with the HomeService but am not completely
>> > sure.
>> > >> What if you add another page, anything at all...Can you resolve urls
>> > >> correctly to it ?
>> > >>
>> > >> On 6/24/06, Jesse Kuhnert <jk...@gmail.com> wrote:
>> > >>>
>> > >>> Ok...will check the unit tests now and report back.
>> > >>>
>> > >>>
>> > >>> On 6/24/06, Mike Grundvig <mi...@electrotank.com> wrote:
>> > >>> >
>> > >>> > In the UrlBugHtml zip, it's mapped to .html. In the UrlBugHtm
>> > >>> > zip,
>> > >>> > it's
>> > >>> > mapped to .htm. The first zip works, the second doesn't. If the
>> site
>> > >>> > had
>> > >>> >
>> > >>> > used .html extensions everywhere, I'd be good to go :)
>> > >>> > The specific Tapestry error is the "page not found" one that you
>> get
>> > >>> > when
>> > >>> > you try to find a page file that doesn't exist.
>> > >>> >
>> > >>> > Michael Grundvig
>> > >>> > Electrotank, Inc
>> > >>> > http://www.electrotank.com
>> > >>> >
>> > >>> >
>> > >>> > ----- Original Message -----
>> > >>> > From: "James Carman" <james@carmanconsulting.com >
>> > >>> > To: "'Tapestry development'" <de...@tapestry.apache.org>
>> > >>> > Sent: Saturday, June 24, 2006 7:13 PM
>> > >>> > Subject: RE: Friendly URLS Bug?
>> > >>> >
>> > >>> >
>> > >>> > > What do you have your tapestry servlet mapped to? *.html?
>> > >>> > >
>> > >>> > > -----Original Message-----
>> > >>> > > From: Mike Grundvig [mailto:mike@electrotank.com]
>> > >>> > > Sent: Saturday, June 24, 2006 8:06 PM
>> > >>> > > To: Tapestry development
>> > >>> > > Subject: Friendly URLS Bug?
>> > >>> > >
>> > >>> > > Hi all; I just want to thank everyone for an excellent
>> > >>> > > framework
>> > and
>> > >>> > for
>> > >>> > > all
>> > >>> > >
>> > >>> > > the hard work you do! Now onto the issue... It looks like a
>> > friendly
>> > >>> > URL
>> > >>> > > shorter then four digits fails for no clear reason. I promise
>> > that
>> > >>> > I'm
>> > >>> > > not
>> > >>> > > crazy. I've uploaded two versions of a tiny example webapp at
>> > these
>> > >>> > URLs:
>> > >>> > >
>> > >>> > > Uses .html and works
>> > >>> > > http://www.electrotank.com/junk/mike/tapestry/UrlBugHtml.zip
>> > >>> > >
>> > >>> > > Uses .htm and fails
>> > >>> > > http://www.electrotank.com/junk/mike/tapestry/UrlBugHtm.zip
>> > >>> > >
>> > >>> > > You can download those, extract em and drop them into Tomcat
>> > >>> > > (or
>> > any
>> > >>> > other
>> > >>> > > app server) to see the problem.
>> > >>> > >
>> > >>> > > Url on your machine to test(working):
>> > >>> > > http://127.0.0.1:8080/UrlBugHtml/Home.html
>> > >>> > >
>> > >>> > > Url on your machine to test (buggy):
>> > >>> > > http://127.0.0.1:8080/UrlBugHtm/Home.htm
>> > >>> > >
>> > >>> > > I ran into this when trying to migrate a static site into
>> > Tapestry.
>> > >>> > The
>> > >>> > > site
>> > >>> > >
>> > >>> > > was created with .htm extensions, not .html. It took me quite a
>> > >>> > > while
>> > >>> > to
>> > >>> > > determine that the pages were failing due to the extension, not
>> > due
>> > >>> > > to
>> > >>> > > configuration. Is this documented somewhere and I just missed
>> > >>> > > it
>> > or
>> > >>> > > is
>> > >>> >
>> > >>> > > this
>> > >>> > > really a bug? If this is intentional, why?
>> > >>> > >
>> > >>> > > Thanks again for all the hard work!
>> > >>> > >
>> > >>> > > Michael Grundvig
>> > >>> > > Electrotank, Inc
>> > >>> > > http://www.electrotank.com
>> > >>> > >
>> > >>> > >
>> > >>> > >
>> > >>> > >
>> > ---------------------------------------------------------------------
>> > >>> > > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
>> > >>> > > For additional commands, e-mail: dev-help@tapestry.apache.org
>> > >>> > >
>> > >>> > >
>> > >>> > >
>> > >>> > >
>> > ---------------------------------------------------------------------
>> > >>> > > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
>> > >>> > > For additional commands, e-mail: dev-help@tapestry.apache.org
>> > >>> > >
>> > >>> > >
>> > >>> >
>> > >>> >
>> > >>> >
>> > >>> >
>> > ---------------------------------------------------------------------
>> > >>> > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
>> > >>> > For additional commands, e-mail: dev-help@tapestry.apache.org
>> > >>> >
>> > >>> >
>> > >>>
>> > >>>
>> > >>> --
>> > >>> Jesse Kuhnert
>> > >>> Tacos/Tapestry, team member/developer
>> > >>>
>> > >>> Open source based consulting work centered around
>> > >>> dojo/tapestry/tacos/hivemind.
>> > >>>
>> > >>
>> > >>
>> > >>
>> > >> --
>> > >> Jesse Kuhnert
>> > >> Tacos/Tapestry, team member/developer
>> > >>
>> > >> Open source based consulting work centered around
>> > >> dojo/tapestry/tacos/hivemind.
>> > >>
>> > >
>> > >
>> > >
>> > > ---------------------------------------------------------------------
>> > > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
>> > > For additional commands, e-mail: dev-help@tapestry.apache.org
>> > >
>> > >
>> >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
>> > For additional commands, e-mail: dev-help@tapestry.apache.org
>> >
>> >
>>
>>
>> --
>> Jesse Kuhnert
>> Tacos/Tapestry, team member/developer
>>
>> Open source based consulting work centered around
>> dojo/tapestry/tacos/hivemind.
>>
>>
>
>
> --
> Howard M. Lewis Ship
> Independent J2EE / Open-Source Java Consultant
> Creator and PMC Chair, Apache Tapestry
> Creator, Jakarta HiveMind
>
> Professional Tapestry training, mentoring, support
> and project work. http://howardlewisship.com
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
Re: Friendly URLS Bug?
Posted by Howard Lewis Ship <hl...@gmail.com>.
From:
http://tapestry.apache.org/tapestry4/UsersGuide/configuration.html
org.apache.tapestry.template-extension
You can set this value to "htm" within a page or component specification to
affect just that specification. I.e. @Meta("
org.apache.tapestry.template-extension=htm")
You can set this inside your .application file, to affect all pages and
components within your application. Other libraries, including the
framework, will resolve as normal.
These special rules drive Geoff crazy ... I don't know if Spindle does or
ever will support this.
On 6/24/06, Jesse Kuhnert <jk...@gmail.com> wrote:
>
> Ok I found an answer for you Mike :)
>
> The friendly URL stuff allows incoming requests to resolve correctly (even
> if they end in .htm instead of .html ), but you must still have your
> template pages end in .html regardless of how the users requests/thinks
> they
> are stored.
>
> The reason for this is that there are ~other~ html templates that tapestry
> uses itself, like Exception pages / Components / etc...
>
> You can override this setting if you like, but then you'd have to somehow
> make all the rest of those templates available in .htm form as well..
>
> My best advice is to not fight the system in how you name templates unless
> there is a very good reason to do so. (like a 250m war! :)
> )...Umm....Create
> a quick perl script ? I've pasted the set of global properties for you to
> see below, the one you could set if you were feeling like "bringing on the
> pain" would be org.apache.tapestry.template-extension.
>
> <contribution configuration-id="hivemind.FactoryDefaults">
> <default symbol="org.apache.tapestry.engine-class" value="
> org.apache.tapestry.engine.BaseEngine"/>
> <default symbol="org.apache.tapestry.visit-class" value="
> java.util.HashMap"/>
> <default symbol="org.apache.tapestry.output-encoding" value="UTF-8"/>
> <default symbol="
> org.apache.tapestry.enhance.disable-abstract-method-validation"
> value="false"/>
> <default symbol="org.apache.tapestry.default-page-class" value="
> org.apache.tapestry.html.BasePage"/>
> <default symbol="org.apache.tapestry.template-extension"
> value="html"/>
> <default symbol="org.apache.tapestry.jwcid-attribute-name"
> value="jwcid"/>
> <default symbol="org.apache.tapestry.default-binding-prefix"
> value="ognl"/>
> </contribution>
>
> On 6/24/06, Mike Grundvig <mi...@electrotank.com> wrote:
> >
> > Ok, I double checked by creating a copy of Html.html and calling it
> > test.html. That worked fine in the UrlBugHtml app. Then I did the same
> > thing
> > with Home.htm calling it test.htm in the UrlBugHtm app. It failed the
> same
> > way Home.htm fails.
> >
> > Michael Grundvig
> > Electrotank, Inc
> > http://www.electrotank.com
> >
> >
> > ----- Original Message -----
> > From: "Mike Grundvig" <mi...@electrotank.com>
> > To: "Tapestry development" <de...@tapestry.apache.org>
> > Sent: Saturday, June 24, 2006 7:41 PM
> > Subject: Re: Friendly URLS Bug?
> >
> >
> > > When I played with this before, I recall none of them working
> properly.
> > > Let me go double check though.
> > >
> > > Michael Grundvig
> > > Electrotank, Inc
> > > http://www.electrotank.com
> > >
> > >
> > > ----- Original Message -----
> > > From: "Jesse Kuhnert" <jk...@gmail.com>
> > > To: "Tapestry development" <de...@tapestry.apache.org>
> > > Sent: Saturday, June 24, 2006 7:34 PM
> > > Subject: Re: Friendly URLS Bug?
> > >
> > >
> > >> Is it possible that Home.htm is the only victim that isn't resolved?
> I
> > >> think
> > >> this has something to do with the HomeService but am not completely
> > sure.
> > >> What if you add another page, anything at all...Can you resolve urls
> > >> correctly to it ?
> > >>
> > >> On 6/24/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> > >>>
> > >>> Ok...will check the unit tests now and report back.
> > >>>
> > >>>
> > >>> On 6/24/06, Mike Grundvig <mi...@electrotank.com> wrote:
> > >>> >
> > >>> > In the UrlBugHtml zip, it's mapped to .html. In the UrlBugHtm zip,
> > >>> > it's
> > >>> > mapped to .htm. The first zip works, the second doesn't. If the
> site
> > >>> > had
> > >>> >
> > >>> > used .html extensions everywhere, I'd be good to go :)
> > >>> > The specific Tapestry error is the "page not found" one that you
> get
> > >>> > when
> > >>> > you try to find a page file that doesn't exist.
> > >>> >
> > >>> > Michael Grundvig
> > >>> > Electrotank, Inc
> > >>> > http://www.electrotank.com
> > >>> >
> > >>> >
> > >>> > ----- Original Message -----
> > >>> > From: "James Carman" <james@carmanconsulting.com >
> > >>> > To: "'Tapestry development'" <de...@tapestry.apache.org>
> > >>> > Sent: Saturday, June 24, 2006 7:13 PM
> > >>> > Subject: RE: Friendly URLS Bug?
> > >>> >
> > >>> >
> > >>> > > What do you have your tapestry servlet mapped to? *.html?
> > >>> > >
> > >>> > > -----Original Message-----
> > >>> > > From: Mike Grundvig [mailto:mike@electrotank.com]
> > >>> > > Sent: Saturday, June 24, 2006 8:06 PM
> > >>> > > To: Tapestry development
> > >>> > > Subject: Friendly URLS Bug?
> > >>> > >
> > >>> > > Hi all; I just want to thank everyone for an excellent framework
> > and
> > >>> > for
> > >>> > > all
> > >>> > >
> > >>> > > the hard work you do! Now onto the issue... It looks like a
> > friendly
> > >>> > URL
> > >>> > > shorter then four digits fails for no clear reason. I promise
> > that
> > >>> > I'm
> > >>> > > not
> > >>> > > crazy. I've uploaded two versions of a tiny example webapp at
> > these
> > >>> > URLs:
> > >>> > >
> > >>> > > Uses .html and works
> > >>> > > http://www.electrotank.com/junk/mike/tapestry/UrlBugHtml.zip
> > >>> > >
> > >>> > > Uses .htm and fails
> > >>> > > http://www.electrotank.com/junk/mike/tapestry/UrlBugHtm.zip
> > >>> > >
> > >>> > > You can download those, extract em and drop them into Tomcat (or
> > any
> > >>> > other
> > >>> > > app server) to see the problem.
> > >>> > >
> > >>> > > Url on your machine to test(working):
> > >>> > > http://127.0.0.1:8080/UrlBugHtml/Home.html
> > >>> > >
> > >>> > > Url on your machine to test (buggy):
> > >>> > > http://127.0.0.1:8080/UrlBugHtm/Home.htm
> > >>> > >
> > >>> > > I ran into this when trying to migrate a static site into
> > Tapestry.
> > >>> > The
> > >>> > > site
> > >>> > >
> > >>> > > was created with .htm extensions, not .html. It took me quite a
> > >>> > > while
> > >>> > to
> > >>> > > determine that the pages were failing due to the extension, not
> > due
> > >>> > > to
> > >>> > > configuration. Is this documented somewhere and I just missed it
> > or
> > >>> > > is
> > >>> >
> > >>> > > this
> > >>> > > really a bug? If this is intentional, why?
> > >>> > >
> > >>> > > Thanks again for all the hard work!
> > >>> > >
> > >>> > > Michael Grundvig
> > >>> > > Electrotank, Inc
> > >>> > > http://www.electrotank.com
> > >>> > >
> > >>> > >
> > >>> > >
> > >>> > >
> > ---------------------------------------------------------------------
> > >>> > > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> > >>> > > For additional commands, e-mail: dev-help@tapestry.apache.org
> > >>> > >
> > >>> > >
> > >>> > >
> > >>> > >
> > ---------------------------------------------------------------------
> > >>> > > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> > >>> > > For additional commands, e-mail: dev-help@tapestry.apache.org
> > >>> > >
> > >>> > >
> > >>> >
> > >>> >
> > >>> >
> > >>> >
> > ---------------------------------------------------------------------
> > >>> > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> > >>> > For additional commands, e-mail: dev-help@tapestry.apache.org
> > >>> >
> > >>> >
> > >>>
> > >>>
> > >>> --
> > >>> Jesse Kuhnert
> > >>> Tacos/Tapestry, team member/developer
> > >>>
> > >>> Open source based consulting work centered around
> > >>> dojo/tapestry/tacos/hivemind.
> > >>>
> > >>
> > >>
> > >>
> > >> --
> > >> Jesse Kuhnert
> > >> Tacos/Tapestry, team member/developer
> > >>
> > >> Open source based consulting work centered around
> > >> dojo/tapestry/tacos/hivemind.
> > >>
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: dev-help@tapestry.apache.org
> > >
> > >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: dev-help@tapestry.apache.org
> >
> >
>
>
> --
> Jesse Kuhnert
> Tacos/Tapestry, team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind.
>
>
--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Jakarta HiveMind
Professional Tapestry training, mentoring, support
and project work. http://howardlewisship.com
Re: Friendly URLS Bug?
Posted by Mike Grundvig <mi...@electrotank.com>.
Thanks for looking into this so quickly. Ugh, this is going to be a real
problem for the site. Is there any way to tweak the engine so it recognizes
the difference between internal and external files? Internal use one
extension and external use whatever is specified? The reason I make a big
deal out of this is that creating a new site with Tapestry is quite simple.
Migrating an existing site into Tapestry is tricky... The pages have to
validate as XML (not a big deal for new sites, a nightmare for migrating),
friendly URLs have to be enabled, every page on the site has to have the
same extension (friendly URLs don't support multiple extensions), you need
to use a URL Rewrite servlet filter to handle linked directories (
site/abc/index.html works, site/abc doesn't), and now all pages have to be
.html. I suppose a bulk rename of the files and then another URL rewrite
rule would work but that's very scary. The site is already too dependent on
URL rewriting. Thanks!
Michael Grundvig
Electrotank, Inc
http://www.electrotank.com
----- Original Message -----
From: "Jesse Kuhnert" <jk...@gmail.com>
To: "Tapestry development" <de...@tapestry.apache.org>
Sent: Saturday, June 24, 2006 8:04 PM
Subject: Re: Friendly URLS Bug?
> Ok I found an answer for you Mike :)
>
> The friendly URL stuff allows incoming requests to resolve correctly (even
> if they end in .htm instead of .html ), but you must still have your
> template pages end in .html regardless of how the users requests/thinks
> they
> are stored.
>
> The reason for this is that there are ~other~ html templates that tapestry
> uses itself, like Exception pages / Components / etc...
>
> You can override this setting if you like, but then you'd have to somehow
> make all the rest of those templates available in .htm form as well..
>
> My best advice is to not fight the system in how you name templates unless
> there is a very good reason to do so. (like a 250m war!
> :) )...Umm....Create
> a quick perl script ? I've pasted the set of global properties for you to
> see below, the one you could set if you were feeling like "bringing on the
> pain" would be org.apache.tapestry.template-extension.
>
> <contribution configuration-id="hivemind.FactoryDefaults">
> <default symbol="org.apache.tapestry.engine-class" value="
> org.apache.tapestry.engine.BaseEngine"/>
> <default symbol="org.apache.tapestry.visit-class" value="
> java.util.HashMap"/>
> <default symbol="org.apache.tapestry.output-encoding" value="UTF-8"/>
> <default symbol="
> org.apache.tapestry.enhance.disable-abstract-method-validation"
> value="false"/>
> <default symbol="org.apache.tapestry.default-page-class" value="
> org.apache.tapestry.html.BasePage"/>
> <default symbol="org.apache.tapestry.template-extension"
> value="html"/>
> <default symbol="org.apache.tapestry.jwcid-attribute-name"
> value="jwcid"/>
> <default symbol="org.apache.tapestry.default-binding-prefix"
> value="ognl"/>
> </contribution>
>
> On 6/24/06, Mike Grundvig <mi...@electrotank.com> wrote:
>>
>> Ok, I double checked by creating a copy of Html.html and calling it
>> test.html. That worked fine in the UrlBugHtml app. Then I did the same
>> thing
>> with Home.htm calling it test.htm in the UrlBugHtm app. It failed the
>> same
>> way Home.htm fails.
>>
>> Michael Grundvig
>> Electrotank, Inc
>> http://www.electrotank.com
>>
>>
>> ----- Original Message -----
>> From: "Mike Grundvig" <mi...@electrotank.com>
>> To: "Tapestry development" <de...@tapestry.apache.org>
>> Sent: Saturday, June 24, 2006 7:41 PM
>> Subject: Re: Friendly URLS Bug?
>>
>>
>> > When I played with this before, I recall none of them working properly.
>> > Let me go double check though.
>> >
>> > Michael Grundvig
>> > Electrotank, Inc
>> > http://www.electrotank.com
>> >
>> >
>> > ----- Original Message -----
>> > From: "Jesse Kuhnert" <jk...@gmail.com>
>> > To: "Tapestry development" <de...@tapestry.apache.org>
>> > Sent: Saturday, June 24, 2006 7:34 PM
>> > Subject: Re: Friendly URLS Bug?
>> >
>> >
>> >> Is it possible that Home.htm is the only victim that isn't resolved? I
>> >> think
>> >> this has something to do with the HomeService but am not completely
>> sure.
>> >> What if you add another page, anything at all...Can you resolve urls
>> >> correctly to it ?
>> >>
>> >> On 6/24/06, Jesse Kuhnert <jk...@gmail.com> wrote:
>> >>>
>> >>> Ok...will check the unit tests now and report back.
>> >>>
>> >>>
>> >>> On 6/24/06, Mike Grundvig <mi...@electrotank.com> wrote:
>> >>> >
>> >>> > In the UrlBugHtml zip, it's mapped to .html. In the UrlBugHtm zip,
>> >>> > it's
>> >>> > mapped to .htm. The first zip works, the second doesn't. If the
>> >>> > site
>> >>> > had
>> >>> >
>> >>> > used .html extensions everywhere, I'd be good to go :)
>> >>> > The specific Tapestry error is the "page not found" one that you
>> >>> > get
>> >>> > when
>> >>> > you try to find a page file that doesn't exist.
>> >>> >
>> >>> > Michael Grundvig
>> >>> > Electrotank, Inc
>> >>> > http://www.electrotank.com
>> >>> >
>> >>> >
>> >>> > ----- Original Message -----
>> >>> > From: "James Carman" <james@carmanconsulting.com >
>> >>> > To: "'Tapestry development'" <de...@tapestry.apache.org>
>> >>> > Sent: Saturday, June 24, 2006 7:13 PM
>> >>> > Subject: RE: Friendly URLS Bug?
>> >>> >
>> >>> >
>> >>> > > What do you have your tapestry servlet mapped to? *.html?
>> >>> > >
>> >>> > > -----Original Message-----
>> >>> > > From: Mike Grundvig [mailto:mike@electrotank.com]
>> >>> > > Sent: Saturday, June 24, 2006 8:06 PM
>> >>> > > To: Tapestry development
>> >>> > > Subject: Friendly URLS Bug?
>> >>> > >
>> >>> > > Hi all; I just want to thank everyone for an excellent framework
>> and
>> >>> > for
>> >>> > > all
>> >>> > >
>> >>> > > the hard work you do! Now onto the issue... It looks like a
>> friendly
>> >>> > URL
>> >>> > > shorter then four digits fails for no clear reason. I promise
>> that
>> >>> > I'm
>> >>> > > not
>> >>> > > crazy. I've uploaded two versions of a tiny example webapp at
>> these
>> >>> > URLs:
>> >>> > >
>> >>> > > Uses .html and works
>> >>> > > http://www.electrotank.com/junk/mike/tapestry/UrlBugHtml.zip
>> >>> > >
>> >>> > > Uses .htm and fails
>> >>> > > http://www.electrotank.com/junk/mike/tapestry/UrlBugHtm.zip
>> >>> > >
>> >>> > > You can download those, extract em and drop them into Tomcat (or
>> any
>> >>> > other
>> >>> > > app server) to see the problem.
>> >>> > >
>> >>> > > Url on your machine to test(working):
>> >>> > > http://127.0.0.1:8080/UrlBugHtml/Home.html
>> >>> > >
>> >>> > > Url on your machine to test (buggy):
>> >>> > > http://127.0.0.1:8080/UrlBugHtm/Home.htm
>> >>> > >
>> >>> > > I ran into this when trying to migrate a static site into
>> Tapestry.
>> >>> > The
>> >>> > > site
>> >>> > >
>> >>> > > was created with .htm extensions, not .html. It took me quite a
>> >>> > > while
>> >>> > to
>> >>> > > determine that the pages were failing due to the extension, not
>> due
>> >>> > > to
>> >>> > > configuration. Is this documented somewhere and I just missed it
>> or
>> >>> > > is
>> >>> >
>> >>> > > this
>> >>> > > really a bug? If this is intentional, why?
>> >>> > >
>> >>> > > Thanks again for all the hard work!
>> >>> > >
>> >>> > > Michael Grundvig
>> >>> > > Electrotank, Inc
>> >>> > > http://www.electrotank.com
>> >>> > >
>> >>> > >
>> >>> > >
>> >>> > >
>> ---------------------------------------------------------------------
>> >>> > > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
>> >>> > > For additional commands, e-mail: dev-help@tapestry.apache.org
>> >>> > >
>> >>> > >
>> >>> > >
>> >>> > >
>> ---------------------------------------------------------------------
>> >>> > > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
>> >>> > > For additional commands, e-mail: dev-help@tapestry.apache.org
>> >>> > >
>> >>> > >
>> >>> >
>> >>> >
>> >>> >
>> >>> >
>> ---------------------------------------------------------------------
>> >>> > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
>> >>> > For additional commands, e-mail: dev-help@tapestry.apache.org
>> >>> >
>> >>> >
>> >>>
>> >>>
>> >>> --
>> >>> Jesse Kuhnert
>> >>> Tacos/Tapestry, team member/developer
>> >>>
>> >>> Open source based consulting work centered around
>> >>> dojo/tapestry/tacos/hivemind.
>> >>>
>> >>
>> >>
>> >>
>> >> --
>> >> Jesse Kuhnert
>> >> Tacos/Tapestry, team member/developer
>> >>
>> >> Open source based consulting work centered around
>> >> dojo/tapestry/tacos/hivemind.
>> >>
>> >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
>> > For additional commands, e-mail: dev-help@tapestry.apache.org
>> >
>> >
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: dev-help@tapestry.apache.org
>>
>>
>
>
> --
> Jesse Kuhnert
> Tacos/Tapestry, team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
Re: Friendly URLS Bug?
Posted by Jesse Kuhnert <jk...@gmail.com>.
Ok I found an answer for you Mike :)
The friendly URL stuff allows incoming requests to resolve correctly (even
if they end in .htm instead of .html ), but you must still have your
template pages end in .html regardless of how the users requests/thinks they
are stored.
The reason for this is that there are ~other~ html templates that tapestry
uses itself, like Exception pages / Components / etc...
You can override this setting if you like, but then you'd have to somehow
make all the rest of those templates available in .htm form as well..
My best advice is to not fight the system in how you name templates unless
there is a very good reason to do so. (like a 250m war! :) )...Umm....Create
a quick perl script ? I've pasted the set of global properties for you to
see below, the one you could set if you were feeling like "bringing on the
pain" would be org.apache.tapestry.template-extension.
<contribution configuration-id="hivemind.FactoryDefaults">
<default symbol="org.apache.tapestry.engine-class" value="
org.apache.tapestry.engine.BaseEngine"/>
<default symbol="org.apache.tapestry.visit-class" value="
java.util.HashMap"/>
<default symbol="org.apache.tapestry.output-encoding" value="UTF-8"/>
<default symbol="
org.apache.tapestry.enhance.disable-abstract-method-validation"
value="false"/>
<default symbol="org.apache.tapestry.default-page-class" value="
org.apache.tapestry.html.BasePage"/>
<default symbol="org.apache.tapestry.template-extension"
value="html"/>
<default symbol="org.apache.tapestry.jwcid-attribute-name"
value="jwcid"/>
<default symbol="org.apache.tapestry.default-binding-prefix"
value="ognl"/>
</contribution>
On 6/24/06, Mike Grundvig <mi...@electrotank.com> wrote:
>
> Ok, I double checked by creating a copy of Html.html and calling it
> test.html. That worked fine in the UrlBugHtml app. Then I did the same
> thing
> with Home.htm calling it test.htm in the UrlBugHtm app. It failed the same
> way Home.htm fails.
>
> Michael Grundvig
> Electrotank, Inc
> http://www.electrotank.com
>
>
> ----- Original Message -----
> From: "Mike Grundvig" <mi...@electrotank.com>
> To: "Tapestry development" <de...@tapestry.apache.org>
> Sent: Saturday, June 24, 2006 7:41 PM
> Subject: Re: Friendly URLS Bug?
>
>
> > When I played with this before, I recall none of them working properly.
> > Let me go double check though.
> >
> > Michael Grundvig
> > Electrotank, Inc
> > http://www.electrotank.com
> >
> >
> > ----- Original Message -----
> > From: "Jesse Kuhnert" <jk...@gmail.com>
> > To: "Tapestry development" <de...@tapestry.apache.org>
> > Sent: Saturday, June 24, 2006 7:34 PM
> > Subject: Re: Friendly URLS Bug?
> >
> >
> >> Is it possible that Home.htm is the only victim that isn't resolved? I
> >> think
> >> this has something to do with the HomeService but am not completely
> sure.
> >> What if you add another page, anything at all...Can you resolve urls
> >> correctly to it ?
> >>
> >> On 6/24/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> >>>
> >>> Ok...will check the unit tests now and report back.
> >>>
> >>>
> >>> On 6/24/06, Mike Grundvig <mi...@electrotank.com> wrote:
> >>> >
> >>> > In the UrlBugHtml zip, it's mapped to .html. In the UrlBugHtm zip,
> >>> > it's
> >>> > mapped to .htm. The first zip works, the second doesn't. If the site
> >>> > had
> >>> >
> >>> > used .html extensions everywhere, I'd be good to go :)
> >>> > The specific Tapestry error is the "page not found" one that you get
> >>> > when
> >>> > you try to find a page file that doesn't exist.
> >>> >
> >>> > Michael Grundvig
> >>> > Electrotank, Inc
> >>> > http://www.electrotank.com
> >>> >
> >>> >
> >>> > ----- Original Message -----
> >>> > From: "James Carman" <james@carmanconsulting.com >
> >>> > To: "'Tapestry development'" <de...@tapestry.apache.org>
> >>> > Sent: Saturday, June 24, 2006 7:13 PM
> >>> > Subject: RE: Friendly URLS Bug?
> >>> >
> >>> >
> >>> > > What do you have your tapestry servlet mapped to? *.html?
> >>> > >
> >>> > > -----Original Message-----
> >>> > > From: Mike Grundvig [mailto:mike@electrotank.com]
> >>> > > Sent: Saturday, June 24, 2006 8:06 PM
> >>> > > To: Tapestry development
> >>> > > Subject: Friendly URLS Bug?
> >>> > >
> >>> > > Hi all; I just want to thank everyone for an excellent framework
> and
> >>> > for
> >>> > > all
> >>> > >
> >>> > > the hard work you do! Now onto the issue... It looks like a
> friendly
> >>> > URL
> >>> > > shorter then four digits fails for no clear reason. I promise
> that
> >>> > I'm
> >>> > > not
> >>> > > crazy. I've uploaded two versions of a tiny example webapp at
> these
> >>> > URLs:
> >>> > >
> >>> > > Uses .html and works
> >>> > > http://www.electrotank.com/junk/mike/tapestry/UrlBugHtml.zip
> >>> > >
> >>> > > Uses .htm and fails
> >>> > > http://www.electrotank.com/junk/mike/tapestry/UrlBugHtm.zip
> >>> > >
> >>> > > You can download those, extract em and drop them into Tomcat (or
> any
> >>> > other
> >>> > > app server) to see the problem.
> >>> > >
> >>> > > Url on your machine to test(working):
> >>> > > http://127.0.0.1:8080/UrlBugHtml/Home.html
> >>> > >
> >>> > > Url on your machine to test (buggy):
> >>> > > http://127.0.0.1:8080/UrlBugHtm/Home.htm
> >>> > >
> >>> > > I ran into this when trying to migrate a static site into
> Tapestry.
> >>> > The
> >>> > > site
> >>> > >
> >>> > > was created with .htm extensions, not .html. It took me quite a
> >>> > > while
> >>> > to
> >>> > > determine that the pages were failing due to the extension, not
> due
> >>> > > to
> >>> > > configuration. Is this documented somewhere and I just missed it
> or
> >>> > > is
> >>> >
> >>> > > this
> >>> > > really a bug? If this is intentional, why?
> >>> > >
> >>> > > Thanks again for all the hard work!
> >>> > >
> >>> > > Michael Grundvig
> >>> > > Electrotank, Inc
> >>> > > http://www.electrotank.com
> >>> > >
> >>> > >
> >>> > >
> >>> > >
> ---------------------------------------------------------------------
> >>> > > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> >>> > > For additional commands, e-mail: dev-help@tapestry.apache.org
> >>> > >
> >>> > >
> >>> > >
> >>> > >
> ---------------------------------------------------------------------
> >>> > > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> >>> > > For additional commands, e-mail: dev-help@tapestry.apache.org
> >>> > >
> >>> > >
> >>> >
> >>> >
> >>> >
> >>> >
> ---------------------------------------------------------------------
> >>> > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> >>> > For additional commands, e-mail: dev-help@tapestry.apache.org
> >>> >
> >>> >
> >>>
> >>>
> >>> --
> >>> Jesse Kuhnert
> >>> Tacos/Tapestry, team member/developer
> >>>
> >>> Open source based consulting work centered around
> >>> dojo/tapestry/tacos/hivemind.
> >>>
> >>
> >>
> >>
> >> --
> >> Jesse Kuhnert
> >> Tacos/Tapestry, team member/developer
> >>
> >> Open source based consulting work centered around
> >> dojo/tapestry/tacos/hivemind.
> >>
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: dev-help@tapestry.apache.org
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
>
>
--
Jesse Kuhnert
Tacos/Tapestry, team member/developer
Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.
Re: Friendly URLS Bug?
Posted by Mike Grundvig <mi...@electrotank.com>.
Ok, I double checked by creating a copy of Html.html and calling it
test.html. That worked fine in the UrlBugHtml app. Then I did the same thing
with Home.htm calling it test.htm in the UrlBugHtm app. It failed the same
way Home.htm fails.
Michael Grundvig
Electrotank, Inc
http://www.electrotank.com
----- Original Message -----
From: "Mike Grundvig" <mi...@electrotank.com>
To: "Tapestry development" <de...@tapestry.apache.org>
Sent: Saturday, June 24, 2006 7:41 PM
Subject: Re: Friendly URLS Bug?
> When I played with this before, I recall none of them working properly.
> Let me go double check though.
>
> Michael Grundvig
> Electrotank, Inc
> http://www.electrotank.com
>
>
> ----- Original Message -----
> From: "Jesse Kuhnert" <jk...@gmail.com>
> To: "Tapestry development" <de...@tapestry.apache.org>
> Sent: Saturday, June 24, 2006 7:34 PM
> Subject: Re: Friendly URLS Bug?
>
>
>> Is it possible that Home.htm is the only victim that isn't resolved? I
>> think
>> this has something to do with the HomeService but am not completely sure.
>> What if you add another page, anything at all...Can you resolve urls
>> correctly to it ?
>>
>> On 6/24/06, Jesse Kuhnert <jk...@gmail.com> wrote:
>>>
>>> Ok...will check the unit tests now and report back.
>>>
>>>
>>> On 6/24/06, Mike Grundvig <mi...@electrotank.com> wrote:
>>> >
>>> > In the UrlBugHtml zip, it's mapped to .html. In the UrlBugHtm zip,
>>> > it's
>>> > mapped to .htm. The first zip works, the second doesn't. If the site
>>> > had
>>> >
>>> > used .html extensions everywhere, I'd be good to go :)
>>> > The specific Tapestry error is the "page not found" one that you get
>>> > when
>>> > you try to find a page file that doesn't exist.
>>> >
>>> > Michael Grundvig
>>> > Electrotank, Inc
>>> > http://www.electrotank.com
>>> >
>>> >
>>> > ----- Original Message -----
>>> > From: "James Carman" <james@carmanconsulting.com >
>>> > To: "'Tapestry development'" <de...@tapestry.apache.org>
>>> > Sent: Saturday, June 24, 2006 7:13 PM
>>> > Subject: RE: Friendly URLS Bug?
>>> >
>>> >
>>> > > What do you have your tapestry servlet mapped to? *.html?
>>> > >
>>> > > -----Original Message-----
>>> > > From: Mike Grundvig [mailto:mike@electrotank.com]
>>> > > Sent: Saturday, June 24, 2006 8:06 PM
>>> > > To: Tapestry development
>>> > > Subject: Friendly URLS Bug?
>>> > >
>>> > > Hi all; I just want to thank everyone for an excellent framework and
>>> > for
>>> > > all
>>> > >
>>> > > the hard work you do! Now onto the issue... It looks like a friendly
>>> > URL
>>> > > shorter then four digits fails for no clear reason. I promise that
>>> > I'm
>>> > > not
>>> > > crazy. I've uploaded two versions of a tiny example webapp at these
>>> > URLs:
>>> > >
>>> > > Uses .html and works
>>> > > http://www.electrotank.com/junk/mike/tapestry/UrlBugHtml.zip
>>> > >
>>> > > Uses .htm and fails
>>> > > http://www.electrotank.com/junk/mike/tapestry/UrlBugHtm.zip
>>> > >
>>> > > You can download those, extract em and drop them into Tomcat (or any
>>> > other
>>> > > app server) to see the problem.
>>> > >
>>> > > Url on your machine to test(working):
>>> > > http://127.0.0.1:8080/UrlBugHtml/Home.html
>>> > >
>>> > > Url on your machine to test (buggy):
>>> > > http://127.0.0.1:8080/UrlBugHtm/Home.htm
>>> > >
>>> > > I ran into this when trying to migrate a static site into Tapestry.
>>> > The
>>> > > site
>>> > >
>>> > > was created with .htm extensions, not .html. It took me quite a
>>> > > while
>>> > to
>>> > > determine that the pages were failing due to the extension, not due
>>> > > to
>>> > > configuration. Is this documented somewhere and I just missed it or
>>> > > is
>>> >
>>> > > this
>>> > > really a bug? If this is intentional, why?
>>> > >
>>> > > Thanks again for all the hard work!
>>> > >
>>> > > Michael Grundvig
>>> > > Electrotank, Inc
>>> > > http://www.electrotank.com
>>> > >
>>> > >
>>> > >
>>> > > ---------------------------------------------------------------------
>>> > > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
>>> > > For additional commands, e-mail: dev-help@tapestry.apache.org
>>> > >
>>> > >
>>> > >
>>> > > ---------------------------------------------------------------------
>>> > > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
>>> > > For additional commands, e-mail: dev-help@tapestry.apache.org
>>> > >
>>> > >
>>> >
>>> >
>>> >
>>> > ---------------------------------------------------------------------
>>> > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
>>> > For additional commands, e-mail: dev-help@tapestry.apache.org
>>> >
>>> >
>>>
>>>
>>> --
>>> Jesse Kuhnert
>>> Tacos/Tapestry, team member/developer
>>>
>>> Open source based consulting work centered around
>>> dojo/tapestry/tacos/hivemind.
>>>
>>
>>
>>
>> --
>> Jesse Kuhnert
>> Tacos/Tapestry, team member/developer
>>
>> Open source based consulting work centered around
>> dojo/tapestry/tacos/hivemind.
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
Re: Friendly URLS Bug?
Posted by Mike Grundvig <mi...@electrotank.com>.
When I played with this before, I recall none of them working properly. Let
me go double check though.
Michael Grundvig
Electrotank, Inc
http://www.electrotank.com
----- Original Message -----
From: "Jesse Kuhnert" <jk...@gmail.com>
To: "Tapestry development" <de...@tapestry.apache.org>
Sent: Saturday, June 24, 2006 7:34 PM
Subject: Re: Friendly URLS Bug?
> Is it possible that Home.htm is the only victim that isn't resolved? I
> think
> this has something to do with the HomeService but am not completely sure.
> What if you add another page, anything at all...Can you resolve urls
> correctly to it ?
>
> On 6/24/06, Jesse Kuhnert <jk...@gmail.com> wrote:
>>
>> Ok...will check the unit tests now and report back.
>>
>>
>> On 6/24/06, Mike Grundvig <mi...@electrotank.com> wrote:
>> >
>> > In the UrlBugHtml zip, it's mapped to .html. In the UrlBugHtm zip, it's
>> > mapped to .htm. The first zip works, the second doesn't. If the site
>> > had
>> >
>> > used .html extensions everywhere, I'd be good to go :)
>> > The specific Tapestry error is the "page not found" one that you get
>> > when
>> > you try to find a page file that doesn't exist.
>> >
>> > Michael Grundvig
>> > Electrotank, Inc
>> > http://www.electrotank.com
>> >
>> >
>> > ----- Original Message -----
>> > From: "James Carman" <james@carmanconsulting.com >
>> > To: "'Tapestry development'" <de...@tapestry.apache.org>
>> > Sent: Saturday, June 24, 2006 7:13 PM
>> > Subject: RE: Friendly URLS Bug?
>> >
>> >
>> > > What do you have your tapestry servlet mapped to? *.html?
>> > >
>> > > -----Original Message-----
>> > > From: Mike Grundvig [mailto:mike@electrotank.com]
>> > > Sent: Saturday, June 24, 2006 8:06 PM
>> > > To: Tapestry development
>> > > Subject: Friendly URLS Bug?
>> > >
>> > > Hi all; I just want to thank everyone for an excellent framework and
>> > for
>> > > all
>> > >
>> > > the hard work you do! Now onto the issue... It looks like a friendly
>> > URL
>> > > shorter then four digits fails for no clear reason. I promise that
>> > I'm
>> > > not
>> > > crazy. I've uploaded two versions of a tiny example webapp at these
>> > URLs:
>> > >
>> > > Uses .html and works
>> > > http://www.electrotank.com/junk/mike/tapestry/UrlBugHtml.zip
>> > >
>> > > Uses .htm and fails
>> > > http://www.electrotank.com/junk/mike/tapestry/UrlBugHtm.zip
>> > >
>> > > You can download those, extract em and drop them into Tomcat (or any
>> > other
>> > > app server) to see the problem.
>> > >
>> > > Url on your machine to test(working):
>> > > http://127.0.0.1:8080/UrlBugHtml/Home.html
>> > >
>> > > Url on your machine to test (buggy):
>> > > http://127.0.0.1:8080/UrlBugHtm/Home.htm
>> > >
>> > > I ran into this when trying to migrate a static site into Tapestry.
>> > The
>> > > site
>> > >
>> > > was created with .htm extensions, not .html. It took me quite a while
>> > to
>> > > determine that the pages were failing due to the extension, not due
>> > > to
>> > > configuration. Is this documented somewhere and I just missed it or
>> > > is
>> >
>> > > this
>> > > really a bug? If this is intentional, why?
>> > >
>> > > Thanks again for all the hard work!
>> > >
>> > > Michael Grundvig
>> > > Electrotank, Inc
>> > > http://www.electrotank.com
>> > >
>> > >
>> > >
>> > > ---------------------------------------------------------------------
>> > > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
>> > > For additional commands, e-mail: dev-help@tapestry.apache.org
>> > >
>> > >
>> > >
>> > > ---------------------------------------------------------------------
>> > > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
>> > > For additional commands, e-mail: dev-help@tapestry.apache.org
>> > >
>> > >
>> >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
>> > For additional commands, e-mail: dev-help@tapestry.apache.org
>> >
>> >
>>
>>
>> --
>> Jesse Kuhnert
>> Tacos/Tapestry, team member/developer
>>
>> Open source based consulting work centered around
>> dojo/tapestry/tacos/hivemind.
>>
>
>
>
> --
> Jesse Kuhnert
> Tacos/Tapestry, team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
Re: Friendly URLS Bug?
Posted by Jesse Kuhnert <jk...@gmail.com>.
Is it possible that Home.htm is the only victim that isn't resolved? I think
this has something to do with the HomeService but am not completely sure.
What if you add another page, anything at all...Can you resolve urls
correctly to it ?
On 6/24/06, Jesse Kuhnert <jk...@gmail.com> wrote:
>
> Ok...will check the unit tests now and report back.
>
>
> On 6/24/06, Mike Grundvig <mi...@electrotank.com> wrote:
> >
> > In the UrlBugHtml zip, it's mapped to .html. In the UrlBugHtm zip, it's
> > mapped to .htm. The first zip works, the second doesn't. If the site had
> >
> > used .html extensions everywhere, I'd be good to go :)
> > The specific Tapestry error is the "page not found" one that you get
> > when
> > you try to find a page file that doesn't exist.
> >
> > Michael Grundvig
> > Electrotank, Inc
> > http://www.electrotank.com
> >
> >
> > ----- Original Message -----
> > From: "James Carman" <james@carmanconsulting.com >
> > To: "'Tapestry development'" <de...@tapestry.apache.org>
> > Sent: Saturday, June 24, 2006 7:13 PM
> > Subject: RE: Friendly URLS Bug?
> >
> >
> > > What do you have your tapestry servlet mapped to? *.html?
> > >
> > > -----Original Message-----
> > > From: Mike Grundvig [mailto:mike@electrotank.com]
> > > Sent: Saturday, June 24, 2006 8:06 PM
> > > To: Tapestry development
> > > Subject: Friendly URLS Bug?
> > >
> > > Hi all; I just want to thank everyone for an excellent framework and
> > for
> > > all
> > >
> > > the hard work you do! Now onto the issue... It looks like a friendly
> > URL
> > > shorter then four digits fails for no clear reason. I promise that
> > I'm
> > > not
> > > crazy. I've uploaded two versions of a tiny example webapp at these
> > URLs:
> > >
> > > Uses .html and works
> > > http://www.electrotank.com/junk/mike/tapestry/UrlBugHtml.zip
> > >
> > > Uses .htm and fails
> > > http://www.electrotank.com/junk/mike/tapestry/UrlBugHtm.zip
> > >
> > > You can download those, extract em and drop them into Tomcat (or any
> > other
> > > app server) to see the problem.
> > >
> > > Url on your machine to test(working):
> > > http://127.0.0.1:8080/UrlBugHtml/Home.html
> > >
> > > Url on your machine to test (buggy):
> > > http://127.0.0.1:8080/UrlBugHtm/Home.htm
> > >
> > > I ran into this when trying to migrate a static site into Tapestry.
> > The
> > > site
> > >
> > > was created with .htm extensions, not .html. It took me quite a while
> > to
> > > determine that the pages were failing due to the extension, not due to
> > > configuration. Is this documented somewhere and I just missed it or is
> >
> > > this
> > > really a bug? If this is intentional, why?
> > >
> > > Thanks again for all the hard work!
> > >
> > > Michael Grundvig
> > > Electrotank, Inc
> > > http://www.electrotank.com
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: dev-help@tapestry.apache.org
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: dev-help@tapestry.apache.org
> > >
> > >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: dev-help@tapestry.apache.org
> >
> >
>
>
> --
> Jesse Kuhnert
> Tacos/Tapestry, team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind.
>
--
Jesse Kuhnert
Tacos/Tapestry, team member/developer
Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.
Re: Friendly URLS Bug?
Posted by Jesse Kuhnert <jk...@gmail.com>.
Ok...will check the unit tests now and report back.
On 6/24/06, Mike Grundvig <mi...@electrotank.com> wrote:
>
> In the UrlBugHtml zip, it's mapped to .html. In the UrlBugHtm zip, it's
> mapped to .htm. The first zip works, the second doesn't. If the site had
> used .html extensions everywhere, I'd be good to go :)
> The specific Tapestry error is the "page not found" one that you get when
> you try to find a page file that doesn't exist.
>
> Michael Grundvig
> Electrotank, Inc
> http://www.electrotank.com
>
>
> ----- Original Message -----
> From: "James Carman" <ja...@carmanconsulting.com>
> To: "'Tapestry development'" <de...@tapestry.apache.org>
> Sent: Saturday, June 24, 2006 7:13 PM
> Subject: RE: Friendly URLS Bug?
>
>
> > What do you have your tapestry servlet mapped to? *.html?
> >
> > -----Original Message-----
> > From: Mike Grundvig [mailto:mike@electrotank.com]
> > Sent: Saturday, June 24, 2006 8:06 PM
> > To: Tapestry development
> > Subject: Friendly URLS Bug?
> >
> > Hi all; I just want to thank everyone for an excellent framework and for
> > all
> >
> > the hard work you do! Now onto the issue... It looks like a friendly URL
> > shorter then four digits fails for no clear reason. I promise that I'm
> > not
> > crazy. I've uploaded two versions of a tiny example webapp at these
> URLs:
> >
> > Uses .html and works
> > http://www.electrotank.com/junk/mike/tapestry/UrlBugHtml.zip
> >
> > Uses .htm and fails
> > http://www.electrotank.com/junk/mike/tapestry/UrlBugHtm.zip
> >
> > You can download those, extract em and drop them into Tomcat (or any
> other
> > app server) to see the problem.
> >
> > Url on your machine to test(working):
> > http://127.0.0.1:8080/UrlBugHtml/Home.html
> >
> > Url on your machine to test (buggy):
> > http://127.0.0.1:8080/UrlBugHtm/Home.htm
> >
> > I ran into this when trying to migrate a static site into Tapestry. The
> > site
> >
> > was created with .htm extensions, not .html. It took me quite a while to
> > determine that the pages were failing due to the extension, not due to
> > configuration. Is this documented somewhere and I just missed it or is
> > this
> > really a bug? If this is intentional, why?
> >
> > Thanks again for all the hard work!
> >
> > Michael Grundvig
> > Electrotank, Inc
> > http://www.electrotank.com
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: dev-help@tapestry.apache.org
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: dev-help@tapestry.apache.org
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
>
>
--
Jesse Kuhnert
Tacos/Tapestry, team member/developer
Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.
Re: Friendly URLS Bug?
Posted by Mike Grundvig <mi...@electrotank.com>.
In the UrlBugHtml zip, it's mapped to .html. In the UrlBugHtm zip, it's
mapped to .htm. The first zip works, the second doesn't. If the site had
used .html extensions everywhere, I'd be good to go :)
The specific Tapestry error is the "page not found" one that you get when
you try to find a page file that doesn't exist.
Michael Grundvig
Electrotank, Inc
http://www.electrotank.com
----- Original Message -----
From: "James Carman" <ja...@carmanconsulting.com>
To: "'Tapestry development'" <de...@tapestry.apache.org>
Sent: Saturday, June 24, 2006 7:13 PM
Subject: RE: Friendly URLS Bug?
> What do you have your tapestry servlet mapped to? *.html?
>
> -----Original Message-----
> From: Mike Grundvig [mailto:mike@electrotank.com]
> Sent: Saturday, June 24, 2006 8:06 PM
> To: Tapestry development
> Subject: Friendly URLS Bug?
>
> Hi all; I just want to thank everyone for an excellent framework and for
> all
>
> the hard work you do! Now onto the issue... It looks like a friendly URL
> shorter then four digits fails for no clear reason. I promise that I'm
> not
> crazy. I've uploaded two versions of a tiny example webapp at these URLs:
>
> Uses .html and works
> http://www.electrotank.com/junk/mike/tapestry/UrlBugHtml.zip
>
> Uses .htm and fails
> http://www.electrotank.com/junk/mike/tapestry/UrlBugHtm.zip
>
> You can download those, extract em and drop them into Tomcat (or any other
> app server) to see the problem.
>
> Url on your machine to test(working):
> http://127.0.0.1:8080/UrlBugHtml/Home.html
>
> Url on your machine to test (buggy):
> http://127.0.0.1:8080/UrlBugHtm/Home.htm
>
> I ran into this when trying to migrate a static site into Tapestry. The
> site
>
> was created with .htm extensions, not .html. It took me quite a while to
> determine that the pages were failing due to the extension, not due to
> configuration. Is this documented somewhere and I just missed it or is
> this
> really a bug? If this is intentional, why?
>
> Thanks again for all the hard work!
>
> Michael Grundvig
> Electrotank, Inc
> http://www.electrotank.com
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
RE: Friendly URLS Bug?
Posted by James Carman <ja...@carmanconsulting.com>.
What do you have your tapestry servlet mapped to? *.html?
-----Original Message-----
From: Mike Grundvig [mailto:mike@electrotank.com]
Sent: Saturday, June 24, 2006 8:06 PM
To: Tapestry development
Subject: Friendly URLS Bug?
Hi all; I just want to thank everyone for an excellent framework and for all
the hard work you do! Now onto the issue... It looks like a friendly URL
shorter then four digits fails for no clear reason. I promise that I'm not
crazy. I've uploaded two versions of a tiny example webapp at these URLs:
Uses .html and works
http://www.electrotank.com/junk/mike/tapestry/UrlBugHtml.zip
Uses .htm and fails
http://www.electrotank.com/junk/mike/tapestry/UrlBugHtm.zip
You can download those, extract em and drop them into Tomcat (or any other
app server) to see the problem.
Url on your machine to test(working):
http://127.0.0.1:8080/UrlBugHtml/Home.html
Url on your machine to test (buggy):
http://127.0.0.1:8080/UrlBugHtm/Home.htm
I ran into this when trying to migrate a static site into Tapestry. The site
was created with .htm extensions, not .html. It took me quite a while to
determine that the pages were failing due to the extension, not due to
configuration. Is this documented somewhere and I just missed it or is this
really a bug? If this is intentional, why?
Thanks again for all the hard work!
Michael Grundvig
Electrotank, Inc
http://www.electrotank.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
Friendly URLS Bug?
Posted by Mike Grundvig <mi...@electrotank.com>.
Hi all; I just want to thank everyone for an excellent framework and for all
the hard work you do! Now onto the issue... It looks like a friendly URL
shorter then four digits fails for no clear reason. I promise that I'm not
crazy. I've uploaded two versions of a tiny example webapp at these URLs:
Uses .html and works
http://www.electrotank.com/junk/mike/tapestry/UrlBugHtml.zip
Uses .htm and fails
http://www.electrotank.com/junk/mike/tapestry/UrlBugHtm.zip
You can download those, extract em and drop them into Tomcat (or any other
app server) to see the problem.
Url on your machine to test(working):
http://127.0.0.1:8080/UrlBugHtml/Home.html
Url on your machine to test (buggy):
http://127.0.0.1:8080/UrlBugHtm/Home.htm
I ran into this when trying to migrate a static site into Tapestry. The site
was created with .htm extensions, not .html. It took me quite a while to
determine that the pages were failing due to the extension, not due to
configuration. Is this documented somewhere and I just missed it or is this
really a bug? If this is intentional, why?
Thanks again for all the hard work!
Michael Grundvig
Electrotank, Inc
http://www.electrotank.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
Re: Tapestry 4.1 JARs
Posted by Jesse Kuhnert <jk...@gmail.com>.
Yep...Don't thank me, thank the maven folks :)
On 6/24/06, Kevin Menard <km...@servprise.com> wrote:
>
> On Sat, 24 Jun 2006 16:13:05 -0400, Jesse Kuhnert <jk...@gmail.com>
> wrote:
>
> > Sounds reasonable to me. Howard had mentioned this about another section
> > as
> > well. I'm fixing now and will deploy a new snapshot in the next few
> > minutes.
>
> Wow, that was easy. Thanks :-)
>
> --
> Kevin
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
>
>
--
Jesse Kuhnert
Tacos/Tapestry, team member/developer
Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.
Re: Tapestry 4.1 JARs
Posted by Kevin Menard <km...@servprise.com>.
On Sat, 24 Jun 2006 16:13:05 -0400, Jesse Kuhnert <jk...@gmail.com>
wrote:
> Sounds reasonable to me. Howard had mentioned this about another section
> as
> well. I'm fixing now and will deploy a new snapshot in the next few
> minutes.
Wow, that was easy. Thanks :-)
--
Kevin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
Re: Tapestry 4.1 JARs
Posted by Jesse Kuhnert <jk...@gmail.com>.
Sounds reasonable to me. Howard had mentioned this about another section as
well. I'm fixing now and will deploy a new snapshot in the next few minutes.
On 6/24/06, Kevin Menard <km...@servprise.com> wrote:
>
> Jesse,
>
> Is there any possibility of naming the JARs like they were named with
> Tapestry 4.0.x? Having JARs kicking around like "annotations-4.1.0.jar"
> and "framework-4.1.0.jar" can make it confusing as to what these files
> really are.
>
> Thanks,
> Kevin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
>
>
--
Jesse Kuhnert
Tacos/Tapestry, team member/developer
Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.