سؤال

I have an actionbean receiving a form POST request:

public class MyBean implements ActionBean {}

I need to handle the POST data, looks like I need to override doPost() or doGet() but that can only be done if I extend HttpServlet? Which I can't because implementing ActionBean? I've just tried creating another class which extends HttpServlet to handle it but the overrides don't get called?

Thanks!

هل كانت مفيدة؟

المحلول

Post data parameters are directly mapped to setters in a Stripes ActionBean (don't use getContext().getRequest().getParameter..!) Please see Stripes helloworld example.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top