http://localhost:8080/ui/Calculator.action

You have to include the application name. For example if your app is
named KillerApp, it is deployed under http://localhost:8080/KillerApp
.
If you want to access the bean under
com.legalleads.stripes.ui.CalculatorActionBean and configured
ActionResolver.Packages to com.legalleads.stripes.ui you can access
this bean under http://localhost:8080/KillerApp/Calculator.action .

There are two pitfalls:
1. You get a 404 from tomcat itself. In this case, stripes is never
called so its a setup issue of stripes
2. If you get a stripes exception telling you the "no actionBean is to
xxx" the requested url is recieved by the stripes filter but no
actionBean is bound to the url. Example: You configured
ActionResolver.Packages to com.legalleads.stripes.ui and want to
request the bean under com.legalleads.stripes.ui.CalculatorActionBean
with the url http://localhost:8080/KillerApp/ui/Calculator.action you
will get this exception since the package defined in
ActionResolver.Packages is complete removed from the path.

On Fri, Jun 5, 2009 at 9:57 AM, jitendra <[email protected]> wrote:
> Hi Team,
>
> I am new to Stripes. I have start with quick guide program. I am trying to 
> make
> my own jsp for Stripes.
>
> I created my class in below way package:
>
> com.legalleads.stripes.ui.CalculatorActionBean
>
> �...@defaulthandler
>    public Resolution addition() {
>        System.out.println("Testing is doing");
>        result = getNumberOne() + getNumberTwo();
>        System.out.println("Result is doing");
>        return new ForwardResolution("index.jsp");
>    }
>
> Web.xml
>
>        <init-param>
>            <param-name>ActionResolver.Packages</param-name>
>            <param-value>com.legalleads.stripes.ui</param-value>
>        </init-param>
>
>
> Stripes.jsp
>
> <stripes:form action="/ui/Calculator.action" focus="">
>
> But it gives me error
>
> http://localhost:8080/ui/Calculator.action
> The requested resource (/ui/Calculator.action) is not available.
>
> I think it is path issue.I am rendering in this issue since 3 to 4 days..
>
> Can somebody help me out?
>
> Thanks in advance
> Jitendra
>
>
>
>
> ------------------------------------------------------------------------------
> OpenSolaris 2009.06 is a cutting edge operating system for enterprises
> looking to deploy the next generation of Solaris that includes the latest
> innovations from Sun and the OpenSource community. Download a copy and
> enjoy capabilities such as Networking, Storage and Virtualization.
> Go to: http://p.sf.net/sfu/opensolaris-get
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to