因此,我尝试使用Java的Stripes框架来运行hello world应用程序。在这里使用维基百科上的例子:http://en.wikipedia.org/wiki/Stripes_%28framework%29#Example
因此,在我的tomcat服务器中使用jsp文件和java文件,我尝试运行jsp文件,它只得到:
你好
再试试
这就是jsp文件中的内容,但它似乎没有使用java文件。
有没有其他东西是我应该拥有的,或者我试图以错误的方式访问它?
发布于 2013-04-23 21:33:30
不确定,但我知道你的二传手,
public void setContext(ActionBeanContext context) {
this.context = context;
}在你的getter之前应该是,
public ActionBeanContext getContext() {
return context;
}不是在那之后。
发布于 2013-04-24 08:43:33
看看Stripes UrlBinding的官方网页
http://stripes.sourceforge.net/docs/current/javadoc/net/sourceforge/stripes/action/UrlBinding.html
我可以看到代码应该工作得很好,但是正如Dave所问的,你调用的是什么Url?
http://localhost:8080/hello-/Paul.html 应该可以工作,但您也可以简单地使用UrlBinding -根据提供的链接。
https://stackoverflow.com/questions/16170448
复制相似问题