[OFBiz] Users - need help, please
Jacopo Cappellato
tiz at sastau.it
Thu Oct 6 01:32:37 EDT 2005
Hao,
you have probably written an event method; if so, you should return
"success" or "error" and then use them in the controller to redirect to
the proper pages (you'll see a lot of examples of this in many OFBiz
components (see for example the product/catalog application).
Jacopo
Hao Jiang wrote:
> Hello
>
> I have a web form target to a java method, which takes
> (javax.servlet.http.HttpServletRequest request,
> javax.servlet.http.HttpServletResponse response)
> as parameters, after it's done, back to the same page.
>
> Now the java code worked OK, did what I expected. But this time I want
> to have success/error message show up after this action. I have read
> some source code, it seems that return "ServiceUtil.returnSuccess()"
> will do that, however, ServiceUtil.returnSuccess() is a "map" type and
> the method I wrote can only return String type.
>
> How can I do to have those return messages appear on the web page?
>
> Thanks
>
> Hao
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.ofbiz.org
> http://lists.ofbiz.org/mailman/listinfo/users
>
More information about the Users
mailing list