RE: RE: Default page like index.m

"Schnitzer, Jeff" <[email protected]>
Newsgroups gmane.comp.web.maverick.general
Message-ID <[email protected]>
> From: Charles N. Harvey III [mailto:[email protected]]
> 
> The ideal solution is the the servlet container would look through
> the config file of the MVC controller you are using.  So, in web.xml
> you would define index.m as the default page.  Then your container
> would look at your maverick.xml file and find the mapping for index.m
> that points to com.mycompany.project.HomeController.  Then you
wouldn't
> have to have an index.jsp/.vm/.html.
> 
> I'm not crazy, I realize how difficult that would be for the servlet
> container.  So I would recommend to keep using index files in the top
> level directory that point to the default servlet mapping.

I would think much, much simpler than that would be to have a
force-welcome-page (or somesuch) element in the container web.xml which
can be used instead of the welcome-file-list.

<force-welcome-page>welcome.m</force-welcome-page>

Instead of searching for a welcome file, it would just take blah/ and
convert it to blah/welcome.m.

I guess this would be pretty easy to implement with a ServletFilter.

Jeff Schnitzer
[email protected]


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
[INVALID FOOTER]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.