Hi friend :-)
1. use
<stripes:form beanclass="net.sourceforge.stripes.com.test.TestActionBean.java">
</stripes:form>
instead of
<stripes:form action="/test/Test.action">
</stripes:form>
2. Read this doc:
http://www.stripesframework.org/display/stripes/Use+Defaults+More
You will find the following information:
The set of rules used to generate URL bindings are quite simple:

   1. Take the fully qualified class name
   2. Remove any extra package names from the from (more on this in a minute)
   3. Remove ActionBean or Action or Bean from the end of the class
name if present
   4. Replace periods with slashes
   5. Append ".action"
The package name is truncated by removing the packages up until any of
a set of "base packages" is encountered. By default that set of
packages is: "web", "www", "stripes", "action".

So /com/test/Test.action is the url I'd expect the action to be mapped to.

Regards,
Richard
-- 
Richard Hauswald
Blog: http://tnfstacc.blogspot.com/
LinkedIn: http://www.linkedin.com/in/richardhauswald

On Wed, Jun 17, 2009 at 6:21 AM,
SivaKumarl<[email protected]> wrote:
>
> Hi friends,
>             My problem is ,i am unable to bound the url according package
> configuration, stripes working according to its own style. What i am doing
> is , i configured ActionResolver.Packages as follows
>
>        <init-param>
>            <param-name>ActionResolver.Packages</param-name>
>            <param-value>net.sourceforge.stripes.com</param-value>
>        </init-param>
>
> my ActionBean is in net.sourceforge.stripes.com.test-->TestActionBean.java
>
> and i am binding in jsp page as
>
> <stripes:form action="/test/Test.action">
> </stripes:form>
>
> While doing in the above mentioned way i am unable to bind the url,but while
> using url as /com/test/Test.action its working fine.
>
> What i understood is its working as default way i.e., its removing
> net.sourceforge.stripes and binding from com.ycs without bothering
> ActionResolver.Packages parameter.
>
> Friends ,kindly explain me how to bind the url in the above mentioned way
> and correct me if my assumption is wrong.
>
>  And one more thing i forgot to say.
> its working fine if i doesn't use default package name i.e., net.test.xxx
> instead of net.sourceforge.stripes.test
>
> Thanks in advance
> ---------------
> Siva
> --
> View this message in context: 
> http://www.nabble.com/ActionResolver.Packages-configuration-is-not-working-properly-tp24066791p24066791.html
> Sent from the stripes-users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to