« Return to Thread: How to get request params easily?

How to get request params easily?

by Andrey1981 :: Rate this Message:

Reply to Author | View in Thread



Dear list members,

I'm newby in Woodstock framework...

Is there any simple way how to set the request params of RequestBean1 object from the request?

This way is too long and awful:

        Map params = getExternalContext().getRequestParameterMap();

        if (params.get("param1") != null)
        getRequestBean1().setParam1(Double.parseDouble(params.get("param1").toString()));


Thanks in advance,
Regards,

 -Andrey

 « Return to Thread: How to get request params easily?

LightInTheBox - Buy quality products at wholesale price!