-
1. Re: Can i use different pattern instead of *.seam
jimk1723 Apr 4, 2008 7:41 PM (in response to sriramsudheer)Nope.
-
2. Re: Can i use different pattern instead of *.seam
jimk1723 Apr 4, 2008 10:17 PM (in response to sriramsudheer)Clarification: no, there's nothing else you need to change.
-
3. Re: Can i use different pattern instead of *.seam
sriramsudheer Apr 7, 2008 1:30 AM (in response to sriramsudheer)Hi James, Thanks for the response but i tried doing that and I am getting pagenotfound exception.
You can regenerate the exception by following these steps:
1.generate a helloworld program of seam project
2. change the servlet mapping in web.xml to .xyz
3. Run the application
Thanks in advance
Sriramsudheer -
4. Re: Can i use different pattern instead of *.seam
jimk1723 Apr 8, 2008 12:41 AM (in response to sriramsudheer)Then you have some other problem...
I just sanity tested this with the Seam Booking example. The normal start page url is http://localhost/seam-booking/home.seam. If I want to change this to http://localhost/seam-booking/home.xyz I make the following changes in web.xml...
<servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>*.seam</url-pattern> </servlet-mapping>
...changes to...
<servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>*.xyz</url-pattern> </servlet-mapping>
-
5. Re: Can i use different pattern instead of *.seam
sriramsudheer Apr 18, 2008 5:43 AM (in response to sriramsudheer)Its my blindness after i changed to .xyz i am trying to access .seam
-
6. Re: Can i use different pattern instead of *.seam
garapatichowdary Sep 19, 2008 10:49 AM (in response to sriramsudheer)we can use any type of <url-pattern>, not only *.seam.
Before that you can put some statements in the components.xml.
Those are:
xmlns:web="http://jboss.com/products/seam/web"
put this namespace in the <component> tag.
and add this <web:context-filter url-pattern="/pollin/*" />
Then you can add in the web.xml
<servlet>
<servlet-name>Generate Script Servlet</servlet-name>
<servlet-class>com.nableinc.pollin.action.GenerateScriptPollServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Generate Script Servlet</servlet-name>
<url-pattern>/pollin/*</url-pattern>
</servlet-mapping>
like this we can add anytype of url to our application. -
7. Re: Can i use different pattern instead of *.seam
nimo22 Sep 20, 2008 11:26 AM (in response to sriramsudheer)Is this not enough to change the .seam to .xyz?
<servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>*.xyz</url-pattern> </servlet-mapping>
for what is this (for using pure servlets instead of jsf)?
<web:context-filter url-pattern="/pollin/*" />
<servlet> <servlet-name>Generate Script Servlet</servlet-name> <servlet-class>com.nableinc.pollin.action.GenerateScriptPollServlet</servlet-class> </servlet>
Can you explain the difference between yours and the first (shorter) one?
-
8. Re: Can i use different pattern instead of *.seam
bashan Sep 21, 2008 8:07 PM (in response to sriramsudheer)I think the first is enough (working for me...)