-
1. Re: Question on Seam Request/Response Cycle
christian.bauer Apr 3, 2007 11:26 AM (in response to ajaneesh)index.html is always the default welcome file, in any webserver i know.
-
2. Re: Question on Seam Request/Response Cycle
ajaneesh Apr 3, 2007 11:49 AM (in response to ajaneesh)My question was, how is "http://localhost:8080/jboss-seam-registration/" getting resolved to "http://localhost:8080/jboss-seam-registration/registration.seam" or how is "http://localhost:8080/jboss-seam-booking/" getting resolved to "http://localhost:8080/jboss-seam-booking/home.seam"
index.html is not getting used. i even changed it and it had no effect on the above defaulting behaviour. -
3. Re: Question on Seam Request/Response Cycle
pmuir Apr 3, 2007 11:54 AM (in response to ajaneesh)via the meta tag in index.html. You're change not showing up is probably due to your browser cache or sth. To check this better use a browser that doesn't cache at all e.g. lynx
-
4. Re: Question on Seam Request/Response Cycle
norman.richards Apr 3, 2007 1:27 PM (in response to ajaneesh)It is the index.html file. Perhaps your browser is caching the page or something?
-
5. Re: Question on Seam Request/Response Cycle
vedavyas Apr 4, 2007 4:58 AM (in response to ajaneesh)But even after changing the index.html and clearing the browser cache the url "http://localhost:8080/jboss-seam-registration" is getting resolved to "http://localhost:8080/jboss-seam-registration/registration.seam"
-
6. Re: Question on Seam Request/Response Cycle
christian.bauer Apr 4, 2007 5:15 AM (in response to ajaneesh)Not possible, /registration.seam is not even an available page. If you mean /register.seam, that is the refresh the index.html is doing. If you get that refresh to that page, you have the index.html with the refresh deployed. There is no other way.
-
7. Re: Question on Seam Request/Response Cycle
christian.bauer Apr 4, 2007 5:17 AM (in response to ajaneesh)If you want to really "debug" this, I recommend you get Firefox and the "Live HTTP headers" plugin installed.
-
8. Re: Question on Seam Request/Response Cycle
christian.bauer Apr 4, 2007 5:20 AM (in response to ajaneesh)This is how an index.html/refresh will look like:
http://localhost:8080/wiki/ GET /wiki/ HTTP/1.1 Host: localhost:8080 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Cookie: JSESSIONID=BAB0B6ADB8532F5FF85FEF7E70E5D12A HTTP/1.x 200 OK Server: Apache-Coyote/1.1 X-Powered-By: Servlet 2.4; JBoss-4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)/Tomcat-5.5 Etag: W/"83-1175545117000" Last-Modified: Mon, 02 Apr 2007 20:18:37 GMT Content-Type: text/html Content-Length: 83 Date: Wed, 04 Apr 2007 09:16:30 GMT ---------------------------------------------------------- http://localhost:8080/wiki/9.html GET /wiki/9.html HTTP/1.1 Host: localhost:8080 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Cookie: JSESSIONID=BAB0B6ADB8532F5FF85FEF7E70E5D12A
Notice the first GET results in the index.html, the second GET is triggered by the refresh inside the index.html. -
9. Re: Question on Seam Request/Response Cycle
vedavyas Apr 4, 2007 7:27 AM (in response to ajaneesh)No, the control does not go to index.html if the url is http://localhost:8080/jboss-seam-registration because even though i change the refresh to some invalid page(invalid.jspx), ideally i should get a page not found error. But thats not happening. I get the default page i.e register.seam
If i explicitly provide the url as http://localhost:8080/jboss-seam-registration/index.html
then i get the error saying page not found -
10. Re: Question on Seam Request/Response Cycle
shane.bryzak Apr 4, 2007 10:18 AM (in response to ajaneesh)It's definitely your browser, have you tried doing a hard refresh? (ctrl-F5). If you really want to prove it, edit jboss/server/default/deploy/jbossweb-tomcat55.sar/conf/web.xml and comment out the welcome-file-list section at the bottom of the file, then restart JBoss and try it again.