You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Nikola Milikic <ni...@gmail.com> on 2011/04/29 17:09:49 UTC

Static (html) pages won't render

Hi all,

I suppose this is a trivial question, but couldn't make it work. I want to
have a static html page in my app which would on form submission call a
specific servlet (I'need to use a servlet here). But my page won't render at
all. Then I tried creating as simple html page as

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
> http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
>  <title>Test</title>
> </head>
> <body>
> Test
> </body>
> </html>


named test.html and put it in my webapp folder. But when I call
http://localhost:8080/myapp/test.html, it won't render neither. I don't have
anything specific in my web.xml, but maybe I should have?

I'm using T5.2.5, but it's obviously a trivial question probably not related
with Tapestry version. The output from the console is regular

127.0.0.1 -  -  [29/Apr/2011:15:08:30 +0000] "GET /myapp/test.html HTTP/1.1"
> 200 0 "-" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/534.24 (KHTML, like
> Gecko) Chrome/11.0.696.60 Safari/534.24"


Thanks!

Best,
Nikola Milikic

Re: Static (html) pages won't render

Posted by Nikola Milikic <ni...@gmail.com>.
Oh, really sorry for the false alarm. I had some unnecessary servlet and
filter mappings defined in my web.xml. It's ok now.

Best,
Nikola

On Sat, Apr 30, 2011 at 1:22 AM, Howard Lewis Ship <hl...@gmail.com> wrote:

> Tapestry specifically doesn't handle requests for actual resources,
> such as your test.html.  Is there anything else in your web.xml?
>
> On Fri, Apr 29, 2011 at 8:09 AM, Nikola Milikic
> <ni...@gmail.com> wrote:
> > Hi all,
> >
> > I suppose this is a trivial question, but couldn't make it work. I want
> to
> > have a static html page in my app which would on form submission call a
> > specific servlet (I'need to use a servlet here). But my page won't render
> at
> > all. Then I tried creating as simple html page as
> >
> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
> >> http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> >> <html xmlns="http://www.w3.org/1999/xhtml">
> >> <head>
> >> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
> >>  <title>Test</title>
> >> </head>
> >> <body>
> >> Test
> >> </body>
> >> </html>
> >
> >
> > named test.html and put it in my webapp folder. But when I call
> > http://localhost:8080/myapp/test.html, it won't render neither. I don't
> have
> > anything specific in my web.xml, but maybe I should have?
> >
> > I'm using T5.2.5, but it's obviously a trivial question probably not
> related
> > with Tapestry version. The output from the console is regular
> >
> > 127.0.0.1 -  -  [29/Apr/2011:15:08:30 +0000] "GET /myapp/test.html
> HTTP/1.1"
> >> 200 0 "-" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/534.24 (KHTML, like
> >> Gecko) Chrome/11.0.696.60 Safari/534.24"
> >
> >
> > Thanks!
> >
> > Best,
> > Nikola Milikic
> >
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
>
> The source for Tapestry training, mentoring and support. Contact me to
> learn how I can get you up and productive in Tapestry fast!
>
> (971) 678-5210
> http://howardlewisship.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: Static (html) pages won't render

Posted by Howard Lewis Ship <hl...@gmail.com>.
Tapestry specifically doesn't handle requests for actual resources,
such as your test.html.  Is there anything else in your web.xml?

On Fri, Apr 29, 2011 at 8:09 AM, Nikola Milikic
<ni...@gmail.com> wrote:
> Hi all,
>
> I suppose this is a trivial question, but couldn't make it work. I want to
> have a static html page in my app which would on form submission call a
> specific servlet (I'need to use a servlet here). But my page won't render at
> all. Then I tried creating as simple html page as
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
>> http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>> <html xmlns="http://www.w3.org/1999/xhtml">
>> <head>
>> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
>>  <title>Test</title>
>> </head>
>> <body>
>> Test
>> </body>
>> </html>
>
>
> named test.html and put it in my webapp folder. But when I call
> http://localhost:8080/myapp/test.html, it won't render neither. I don't have
> anything specific in my web.xml, but maybe I should have?
>
> I'm using T5.2.5, but it's obviously a trivial question probably not related
> with Tapestry version. The output from the console is regular
>
> 127.0.0.1 -  -  [29/Apr/2011:15:08:30 +0000] "GET /myapp/test.html HTTP/1.1"
>> 200 0 "-" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/534.24 (KHTML, like
>> Gecko) Chrome/11.0.696.60 Safari/534.24"
>
>
> Thanks!
>
> Best,
> Nikola Milikic
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

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