cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieving the URL parameter from within WPMF in SAP ME SDK

Former Member
0 Kudos

Hi,

We have a requirement of retrieving the URL parameter from the WPMF framework. In the activity maintenance we have the URL defined for the activity in the Class/Program section as

%PROTOCOL%://%SERVER%:%PORT%/com/test/mes/pod/transfer/web/inventorytransfer.jsf?ACTIVITY_ID=MDT_INV_TRANSFER&PRINTER=XRXGWY075

Now from the java code we need to retrieve the value associated with the PRINTER. Is there any way within the WPMF framework which will provide us the same like we do in standard jsp as request.getParamater("PRINTER")

Thanks

Anirban

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member185234
Active Participant
0 Kudos

Hi Anirban,

I would try the following code:

import javax.faces.context.ExternalContext;
import java.util.Map;
import com.sap.me.wpmf.util.FacesUtility;

ExternalContext eContext = FacesUtility.getExternalContext();
Map<String, String> map = eContext.getRequestParameterMap();
String printer = map.get("PRINTER");

Regards,

Oksana