You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Todd Breiholz <tb...@acm.org> on 2004/03/21 16:37:05 UTC

Another configuration problem (I think)

I must be missing something here.  I am getting my home page when I  
request http://localhost:8080/app (Thanks, John!). But if I try to get  
http://localhost:8080/app/Home.html I get a 404 error. Likewise, trying  
to access other pages directly  
(http://localhost:8080/app/Register.html, for example) results in a  
404, but I can get to the page through the home page as  
http://localhost:8080/app?service=page/Register.

I've got the pages specified in my .application file as below.  
Shouldn't I be able to access the various pages directly?

Thanks!

Todd Breiholz


<application name="fileshare"
     engine-class="org.apache.tapestry.engine.BaseEngine">

     <description>File Share Application</description>
     <property name="org.apache.tapestry.visit-class"  
value="org.breiholz.fileshare.Visit"/>
     <property  
name="org.apache.tapestry.global- 
class">org.breiholz.fileshare.HibernateGlobal</property>

     <page name="Home" specification-path="Home.page"/>
     <page name="Register" specification-path="Register.page"/>
     <page name="Test" specification-path="Test.page"/>

     <library id="contrib"  
specification-path="/org/apache/tapestry/contrib/Contrib.library"/>
</application>


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


Re: Another configuration problem (I think)

Posted by Harish Krishnaswamy <hk...@comcast.net>.
No. Pages in Tapestry are not plain html files, they have to weaved by a 
service to be rendered propertly hence the url you see. But there's no 
reason there shouldn't be an easier way to access a page but there is 
not one available right now.

-Harish

Todd Breiholz wrote:

> I must be missing something here.  I am getting my home page when I  
> request http://localhost:8080/app (Thanks, John!). But if I try to 
> get  http://localhost:8080/app/Home.html I get a 404 error. Likewise, 
> trying  to access other pages directly  
> (http://localhost:8080/app/Register.html, for example) results in a  
> 404, but I can get to the page through the home page as  
> http://localhost:8080/app?service=page/Register.
>
> I've got the pages specified in my .application file as below.  
> Shouldn't I be able to access the various pages directly?
>
> Thanks!
>
> Todd Breiholz
>
>
> <application name="fileshare"
>     engine-class="org.apache.tapestry.engine.BaseEngine">
>
>     <description>File Share Application</description>
>     <property name="org.apache.tapestry.visit-class"  
> value="org.breiholz.fileshare.Visit"/>
>     <property  name="org.apache.tapestry.global- 
> class">org.breiholz.fileshare.HibernateGlobal</property>
>
>     <page name="Home" specification-path="Home.page"/>
>     <page name="Register" specification-path="Register.page"/>
>     <page name="Test" specification-path="Test.page"/>
>
>     <library id="contrib"  
> specification-path="/org/apache/tapestry/contrib/Contrib.library"/>
> </application>
>
>
> ---------------------------------------------------------------------
> 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