Permalink
Browse files

working better

  • Loading branch information...
1 parent f6e6c46 commit 36bddde7109b228e5ba841993d1f77536e7c24da Nosh Petigara committed May 16, 2011
@@ -33,5 +33,7 @@
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
+
+
</web-app>
View
@@ -32,6 +32,6 @@ Messages<br/>
</c:forEach>
</table>
-<br/><a href="addmsg.jsp">New message</a>
+<br/><a href="/addmsg.jsp">New message</a>
</body>
</html>
@@ -52,7 +52,7 @@ public Resolution addMsg() {
return null;
}
- return new ForwardResolution("MessageList.action");
+ return new ForwardResolution("/messages");
}
@@ -8,6 +8,7 @@
import net.sourceforge.stripes.action.DefaultHandler;
import net.sourceforge.stripes.action.ForwardResolution;
import net.sourceforge.stripes.action.Resolution;
+import net.sourceforge.stripes.action.UrlBinding;
import com.mongodb.DB;
import com.mongodb.DBCollection;
@@ -16,6 +17,7 @@
import com.mongodb.Mongo;
import com.mongodb.MongoURI;
+@UrlBinding("/messages")
public class MessageListActionBean implements ActionBean {
private ActionBeanContext context;

0 comments on commit 36bddde

Please sign in to comment.