> I'm trying to build my first real app using wicket and am looking for advice
> on how to structure it.  I expect it will have moderately heavy traffic but
> most things can be cached with a simple ehcache Filter.

Don't cache session internal pages though... be sure to only cache
bookmarkable pages if you really want to. Better: don't cache the
output of pages at all, but instead focus in making your
business/service layer more efficient (e.g. cache your domain model/
queries etc). If you still need a higher throughput, generating static
pages is a better solution than just caching imo.

> The issue i see is that if i want to have wicket generated content on the
> root page, i need to map the application servlet to:
>  <url-pattern>/*</url-pattern>
>
> But if i do that, it looks like all the static content has to go through
> wicket too.  Is there any way to have the web server directly serve content
> under: /static/*?

You can put a filter on top of the Wicket servlet, and if it matches
with static content, you just don't pass control further the chain
(Wicket).

> Alternatively i guess i could map multiple application to deeper paths, but
> that seems like a bad idea.

Is it that bad to have /app or /dyn or whatever in your path?

> I've read that 2.0 will switch to a filter model

It already has had that for quite a while.

> what is the best practice
> until then?

I don't know if there is any. Different people like different things.
Personally, I'm not worried at all by having e.g. /app for the Wicket
part of your app.

Eelco

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to