actiona name without .action suffix

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

actiona name without .action suffix

ted_smith2010
I am using freemarker
 
   <servlet-mapping>
        <servlet-name>Freemarker</servlet-name>
        <url-pattern>*.ftl</url-pattern>
    </servlet-mapping>

in order to do this, I have to put .action
    <servlet-mapping>
        <servlet-name>StripesDispatcher</servlet-name>
        <url-pattern>*.action</url-pattern>
    </servlet-mapping>

without explicit suffix, if I just use <url-pattern>*</url-pattern>
*.ftl are also sent to the dispatchers instead of freemarker servlet.

Is there any way to work around this so that I can use url like
http://host/context/createuser   instead of
http://host/context/createuser.action

Thanks


------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users
Reply | Threaded
Open this post in threaded view
|

Re: actiona name without .action suffix

samaxes
It is possible using clean URLs.

See slide #16 at http://www.slideshare.net/samaxes/java-web-development-with-stripes.

Cheers,

--
Samuel Santos
http://www.samaxes.com/


On Fri, Jan 13, 2012 at 9:26 AM, <[hidden email]> wrote:
I am using freemarker
 
   <servlet-mapping>
        <servlet-name>Freemarker</servlet-name>
        <url-pattern>*.ftl</url-pattern>
    </servlet-mapping>

in order to do this, I have to put .action
    <servlet-mapping>
        <servlet-name>StripesDispatcher</servlet-name>
        <url-pattern>*.action</url-pattern>
    </servlet-mapping>

without explicit suffix, if I just use <url-pattern>*</url-pattern>
*.ftl are also sent to the dispatchers instead of freemarker servlet.

Is there any way to work around this so that I can use url like
http://host/context/createuser   instead of
http://host/context/createuser.action

Thanks


------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users



------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users
Reply | Threaded
Open this post in threaded view
|

Re: actiona name without .action suffix

ted_smith2010
That would require "prefixing" with something like
/context/action/actionaName

I was looking to
/context/actionaName

without the /action/ prefix part.



From: "Samuel Santos" <[hidden email]>
To: "Stripes Users List" <[hidden email]>
Sent: Friday, January 13, 2012 9:16:41 AM
Subject: Re: [Stripes-users] actiona name without .action suffix

It is possible using clean URLs.

See slide #16 at http://www.slideshare.net/samaxes/java-web-development-with-stripes.

Cheers,

--
Samuel Santos
http://www.samaxes.com/


On Fri, Jan 13, 2012 at 9:26 AM, <[hidden email]> wrote:
I am using freemarker
 
   <servlet-mapping>
        <servlet-name>Freemarker</servlet-name>
        <url-pattern>*.ftl</url-pattern>
    </servlet-mapping>

in order to do this, I have to put .action
    <servlet-mapping>
        <servlet-name>StripesDispatcher</servlet-name>
        <url-pattern>*.action</url-pattern>
    </servlet-mapping>

without explicit suffix, if I just use <url-pattern>*</url-pattern>
*.ftl are also sent to the dispatchers instead of freemarker servlet.

Is there any way to work around this so that I can use url like
http://host/context/createuser   instead of
http://host/context/createuser.action

Thanks


------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users



------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users

------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users
Reply | Threaded
Open this post in threaded view
|

Re: actiona name without .action suffix

Ben Gunter
I think Samuel meant to point you to DynamicMappingFilter, which was introduced with clean URLs.


-Ben

On Fri, Jan 13, 2012 at 4:18 PM, <[hidden email]> wrote:
That would require "prefixing" with something like
/context/action/actionaName

I was looking to
/context/actionaName

without the /action/ prefix part.



From: "Samuel Santos" <[hidden email]>
To: "Stripes Users List" <[hidden email]>
Sent: Friday, January 13, 2012 9:16:41 AM
Subject: Re: [Stripes-users] actiona name without .action suffix

It is possible using clean URLs.

See slide #16 at http://www.slideshare.net/samaxes/java-web-development-with-stripes.

Cheers,

--
Samuel Santos
http://www.samaxes.com/


On Fri, Jan 13, 2012 at 9:26 AM, <[hidden email]> wrote:
I am using freemarker
 
   <servlet-mapping>
        <servlet-name>Freemarker</servlet-name>
        <url-pattern>*.ftl</url-pattern>
    </servlet-mapping>

in order to do this, I have to put .action
    <servlet-mapping>
        <servlet-name>StripesDispatcher</servlet-name>
        <url-pattern>*.action</url-pattern>
    </servlet-mapping>

without explicit suffix, if I just use <url-pattern>*</url-pattern>
*.ftl are also sent to the dispatchers instead of freemarker servlet.

Is there any way to work around this so that I can use url like
http://host/context/createuser   instead of
http://host/context/createuser.action

Thanks


------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users



------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users

------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users



------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users
Reply | Threaded
Open this post in threaded view
|

Re: actiona name without .action suffix

ted_smith2010
I see. thanks.


From: "Ben Gunter" <[hidden email]>
To: "Stripes Users List" <[hidden email]>
Sent: Friday, January 13, 2012 4:47:30 PM
Subject: Re: [Stripes-users] actiona name without .action suffix

I think Samuel meant to point you to DynamicMappingFilter, which was introduced with clean URLs.


-Ben

On Fri, Jan 13, 2012 at 4:18 PM, <[hidden email]> wrote:
That would require "prefixing" with something like
/context/action/actionaName

I was looking to
/context/actionaName

without the /action/ prefix part.



From: "Samuel Santos" <[hidden email]>
To: "Stripes Users List" <[hidden email]>
Sent: Friday, January 13, 2012 9:16:41 AM
Subject: Re: [Stripes-users] actiona name without .action suffix

It is possible using clean URLs.

See slide #16 at http://www.slideshare.net/samaxes/java-web-development-with-stripes.

Cheers,

--
Samuel Santos
http://www.samaxes.com/


On Fri, Jan 13, 2012 at 9:26 AM, <[hidden email]> wrote:
I am using freemarker
 
   <servlet-mapping>
        <servlet-name>Freemarker</servlet-name>
        <url-pattern>*.ftl</url-pattern>
    </servlet-mapping>

in order to do this, I have to put .action
    <servlet-mapping>
        <servlet-name>StripesDispatcher</servlet-name>
        <url-pattern>*.action</url-pattern>
    </servlet-mapping>

without explicit suffix, if I just use <url-pattern>*</url-pattern>
*.ftl are also sent to the dispatchers instead of freemarker servlet.

Is there any way to work around this so that I can use url like
http://host/context/createuser   instead of
http://host/context/createuser.action

Thanks


------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users



------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users

------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users



------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users

------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users