Hi,
IF this is a standalone wd java application that holds the theme as URL parameter, then you can get it this way:
You can put this to the wdDoInit():
IWDProtocolAdapter protocolAdapter = WDProtocolAdapter.getProtocolAdapter();
IWDProtocolAdapter protocolAdapter = WDProtocolAdapter.getProtocolAdapter();
IWDRequest request = protocolAdapter.getRequestObject();
String URLparam = request.getParameter("MyParam");
wdComponentAPI.getMessageManager().reportSuccess(URLparam);
Which will print on the screen "Hello World!" assuming that the URL looks this way:
This note might help how to use stylesheets in URL parameter:
#1891996 How to display standalone WD Java applications in different themes via URL param
This post addresses only standalone WD Java applications, if your issue is not related to standalone wd java applications then you can ignore this post.
Regards,
Ervin