[ http://mc4j.org/jira/browse/STS-323?page=comments#action_10545 ]
Ben Gunter commented on STS-323:
--------------------------------
You have to tell the servlet container in web.xml what URLs to map to the
Stripes servlet. This is generally done with an extension (*.action) or a
prefix (/action/*). You can do what you're suggesting with the current version
of Stripes using @UrlBinding if you map Stripes using a prefix:
@UrlBinding("/action/dictionary")
public class Dictionary extends BaseActionBean {
Then you can hit /context/dictionary/stripes and your bean will execute. You'll
have to pull the param from the request on your own, though. There has been
some discussion of clean URLs. They would work something like this.
> To avoid the .action sufix with the ActionBean binding
> ------------------------------------------------------
>
> Key: STS-323
> URL: http://mc4j.org/jira/browse/STS-323
> Project: Stripes
> Issue Type: Improvement
> Components: ActionBean Dispatching
> Reporter: Mesorca
> Assigned To: Tim Fennell
>
> Fact:
> With the current version 1.4.2, Stripes will automatically bind the action
> URL to the actionBean class.
> e.g., Calculator.action will automatically bind with CalculatorActionBean.java
> Requirement:
> It would be nice if we remove the '.action' sufix like Ruby on Rails
> (We have to make some modification in the web.xml as well.)
> See, the following URL
> http://dictionary.reference.com/browse/stripes
> where,
> browse => action name
> stripes => parameter
> Can we invoke an action like http://myhost:port/context/Calculator ?
> Thanks
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://mc4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development