aspose file tools*
The moose likes Servlets and the fly likes Seam Resource Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Seam Resource Servlet" Watch "Seam Resource Servlet" New topic
Author

Seam Resource Servlet

Roger manning
Greenhorn

Joined: May 02, 2011
Posts: 6
Hi,
We're using seam as our web framework and I was just wondering how to get more information on what types of content the Seam resource servlet covers?

Looking at the seam docs it mentions captcha and remoting, etc. and I took a look at the seam source and saw the image resources, etc.
But what I really want is a full list of the resources that the servlet recognises?

For example, within our framewok we have some generated html pages that reside under our /docs folder of our project.
We've configured the seam resource servlet to :-


Now when we redirect to the url seam/resource/document/[filename].html , instead of the html pages being served as html and thus the browser displaying the page as html, it's serving the .html file as a file and thus the user is asked whether they want to save or open the document.

I get that the html files are in the wrong place but because I don't know all the resource servlets mappings, I can't work out where these html pages should sit?
Any help would be appreciated.


PS. The need to have the files served by the resource servlet is pretty strict for reasons I won't outline here, so just suggesting that we move the files elsewhere is not a solution, I'd like a bit more information regarding the seam resource servlet and why we shouldn't use it if this is what you suggest.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Seam Resource Servlet