-
1. Re: Hide J2EE Seam Server
amontobin Oct 21, 2007 4:56 PM (in response to amontobin)I forgot to say that i'm using :
- JBoss 5 Beta 1
- Seam 2 CR2 -
2. Re: Hide J2EE Seam Server
gagool Oct 21, 2007 5:19 PM (in response to amontobin)That won't work, it is quite easy to identify the server as a seam/jsf/richfaces-server by looking at how it renders the html/js and request variables.
If you just want to change the file extension, do it in web.xml Faces Servlet url-mapping. -
3. Re: Hide J2EE Seam Server
modoc Oct 21, 2007 5:30 PM (in response to amontobin)PHP and Java (Seam) are totally different languages. If you mean you just want the page extensions to be .php or .html that is easy, as gagool said.
In your web.xml you use this:
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>
If you aren't using a lot of AJAX stuff (RichFaces, IceFaces, etc..) then I think you can hide it pretty easily. 10minutemail.com page source looks like any other page source for the most part.
If you meant something else when you said: "transform the server into a php server. (It will serve php files, but the php files are seam files). " Please clarify and we will help if we can:) -
4. Re: Hide J2EE Seam Server
amitev Oct 22, 2007 3:36 AM (in response to amontobin)You cannot hide things like:
<input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" />
which the form renders -
5. Re: Hide J2EE Seam Server
modoc Oct 22, 2007 11:50 AM (in response to amontobin)true:) That's why I put "for the most part". But as far as a simple "make this site look like a normal html or php site" it's very doable. If people start pouring through your source code, and poking around at your server headers and error pages, they can always find more.