import net.sourceforge.stripes.action.ActionBean;
import net.sourceforge.stripes.action.ActionBeanContext;
import net.sourceforge.stripes.action.DefaultHandler;
import net.sourceforge.stripes.action.ForwardResolution;
import net.sourceforge.stripes.action.Resolution;
import net.sourceforge.stripes.action.UrlBinding;
@UrlBinding("/hello-{name=}.html")
public class HelloAction implements ActionBean {
private ActionBeanContext context;
private String name;
public ActionBeanContext getContext() {
return context;
}
public void setContext(ActionBeanContext context) {
this.context = context;
}
public void setName(String name) {
this.name = name;
}
public String getName() {
return name;
}
@DefaultHandler
public Resolution view() {
return new ForwardResolution(“/WEB-INF/HelloWorld.jsp”);
}
}
<html><body>
Hello ${actionBean.name}<br/>
<br/>
<s:link beanclass="HelloAction"><s:param name="name" value="John"/>Try again</s:link><br />
</body></html>
No additional configuration files needed.