<servlet-mapping>
        <servlet-name>StripesDispatcher</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping> 

I added the above and it worked.  Thanks!!!

--- On Fri, 8/29/08, Poitras Christian <[EMAIL PROTECTED]> wrote:

> From: Poitras Christian <[EMAIL PROTECTED]>
> Subject: RE: [Stripes-users] Stripes Action Before Serving Page
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>, "'Stripes Users List'" 
> <[email protected]>
> Date: Friday, August 29, 2008, 9:14 AM
> You might need to change 3 things.
> 
> First, don't use <stripes:useActionBean> tag in
> home.jsp unless you really want to instantiate another
> action bean in the jsp. Your HomeActionBean will be
> available in the jsp as a request attribute under
> ${actionBean}.
> Second, make sure stripes handles the "/" url.
> You will need to configure stripe's DispatcherServlet or
> DynamicMappingFilter in order to do this.
> Third, make sure your container hits the "/"
> action bean when user acces the site.
>     <welcome-file-list>
>         <welcome-file>/</welcome-file>
>     </welcome-file-list>
> (under tomcat)
> 
> Christian
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Coder One
> Sent: Friday, August 29, 2008 12:00 PM
> To: [email protected]
> Subject: [Stripes-users] Stripes Action Before Serving Page
> 
> Hi,
> 
> Given a request to http://xyz.com/
> 
> I would need to have the above request hit a Stripes action
> which in turn sends a resolution to http://xyz.com/home.jsp.
> 
> In general, I'd like all requests to hit an action
> first before the page is served.  I read up on
> stripes:useActionBean, but alas, it's quite unclear to
> me how that works.
> 
> I've tried the below without success. I'd
> appreciate all your help.  A description of the data flows
> would be greatly appreciated.
> 
> Thanks!
> 
> @UrlBinding("/")
> public class HomeActionBean
>     extends BaseActionBean
> {
>     @DefaultHandler
>     public Resolution home()
>     {
>         return new
> ForwardResolution("/home.jsp");
>     }
> }
> 
> 
> 
> 
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move
> Developer's challenge Build the coolest Linux based
> applications with Moblin SDK & win great prizes Grand
> prize is a trip for two to an Open Source event anywhere in
> the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users


      


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to