I suggest you read this book if you're serious about understanding Stripes,
http://pragprog.com/book/fdstr/stripes Where you're going: http://localhost:8080/stripes-examples/quickstart/index.jsp?action=launch is wrong. You need to access the action bean not the JSP directly, which would be a call such as http://localhost:8080/stripes-examples/quickstart/Hello.action This would work provided you have HelloActionBean.java which extends ActionBean and is set up in web.xml properly for stripes to find it, ex. <init-param> <param-name>ActionResolver.Packages</param-name> <param-value>net.sourceforge.stripes.examples</param-value> </init-param> With no params the action would go to the method annonated with @DefaultHandler, such as @DefaultHandler public Resolution view() { return new ForwardResolution("example.jsp"); } Check out the Bugzooky example.. it has almost everything you'll ever need. On Mon, Jun 25, 2012 at 3:02 PM, William Krick <kr...@3feetunder.com> wrote: > The index.jsp is being linked directly from the quickstart index.html page. > > I tried adding this to my ActionBean... > > public Resolution launch() { > return new ForwardResolution("/quickstart/index.jsp"); > } > > And I changed the link in the index.html to... > > http://localhost:8080/stripes-examples/quickstart/index.jsp?action=launch > > ...but that doesn't work either. I'm sure I have the URL syntax wrong. > > > If it's not too much trouble, can you provide some sample > ActionBean/JSP code to illustrate how this works? > > > Quoting Mike McNally <emmecin...@gmail.com>: > >> Are you getting to your JSP from a ForwardResolution from that action >> bean? In my experience my action beans usually follow a pattern of >> having a "launch" action to return a ForwardResolution to the JSP >> (after possibly doing some work to initialize the bean), and then a >> "doSomething" action to handle the subsequent form post. >> >> If you're not getting to the JSP page from that same action bean, then >> it won't work. >> >> On Mon, Jun 25, 2012 at 1:37 PM, William Krick <kr...@3feetunder.com> wrote: >>> It doesn't seem to work. >>> >>> I took the stripes calculator sample app and added the following lines: >>> >>> >>> ActionBean: >>> >>> private String operationStr = "1"; >>> public String getOperationStr() { return operationStr; } >>> public void setOperationStr(String operationStr) { this.operationStr = >>> operationStr; } >>> >>> private Boolean operationBool = true; >>> public Boolean getOperationBool() { return operationBool; } >>> public void setOperationBool(Boolean operationBool) { >>> this.operationBool = operationBool; } >>> >>> >>> JSP: >>> >>> <stripes:radio name="operationStr" value="1" />One >>> <stripes:radio name="operationStr" value="2" />Two >>> >>> <stripes:radio name="operationBool" value="true" />True >>> <stripes:radio name="operationBool" value="false" />False >>> >>> >>> But when I launch the JSP, all radio buttons are unselected. >>> >>> >>> >>> Quoting Mike McNally <emmecin...@gmail.com>: >>> >>>> Stripes will set a radio button to "checked" when its value matches >>>> the value of the property on the action bean. Thus, if you've got >>>> >>>> <s:radio name='xyz' value='1'> >>>> >>>> and your action bean has an "xyz" property whose value is 1, then that >>>> radio button will be checked. >>>> >>>> >>>> On Mon, Jun 25, 2012 at 12:25 PM, William Krick >>>> <kr...@3feetunder.com> wrote: >>>>> I can't seem to get the stripes:radio control to bind to my ActionBean. >>>>> >>>>> Whenever my JSP loads, none of the radio buttons are selected. I >>>>> would like to be able to specify a default value so that when the JSP >>>>> is loaded, one of the radio buttons are selected. >>>>> >>>>> The stripes documentation indicates that the the "checked" value is >>>>> pulled from the ActionBean, but I'm not seeing that happen. >>>>> >>>>> Is there something subtle about the way stripes radio buttons work or >>>>> the syntax that I'm missing? >>>>> >>>>> I've tried to find working sample code on the internet, but everyone >>>>> seems to be asking the same question as me but not getting any answers. >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Live Security Virtual Conference >>>>> Exclusive live event will cover all the ways today's security and >>>>> threat landscape has changed and how IT managers can respond. Discussions >>>>> will include endpoint security, mobile security and the latest in malware >>>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>>> _______________________________________________ >>>>> Stripes-users mailing list >>>>> Stripes-users@lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/stripes-users >>>> >>>> >>>> >>>> -- >>>> Turtle, turtle, on the ground, >>>> Pink and shiny, turn around. >>>> >>>> ------------------------------------------------------------------------------ >>>> Live Security Virtual Conference >>>> Exclusive live event will cover all the ways today's security and >>>> threat landscape has changed and how IT managers can respond. Discussions >>>> will include endpoint security, mobile security and the latest in malware >>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>> _______________________________________________ >>>> Stripes-users mailing list >>>> Stripes-users@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/stripes-users >>>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Live Security Virtual Conference >>> Exclusive live event will cover all the ways today's security and >>> threat landscape has changed and how IT managers can respond. Discussions >>> will include endpoint security, mobile security and the latest in malware >>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> _______________________________________________ >>> Stripes-users mailing list >>> Stripes-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/stripes-users >> >> >> >> -- >> Turtle, turtle, on the ground, >> Pink and shiny, turn around. >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Stripes-users mailing list >> Stripes-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/stripes-users >> > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Stripes-users mailing list > Stripes-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/stripes-users ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users