Skip to Content
0
Former Member
Mar 04, 2009 at 07:26 PM

Send form values to JWD on submit.

49 Views

I want to get the values from a HTML form,(an input field and dropdown) and pass them dynamically to a webdynpro java application on submit button.

I am using this code in the JWD view (wdDoInit method):


IWDProtocolAdapter protocolAdapter = WDProtocolAdapter.getProtocolAdapter();
IWDRequest request = protocolAdapter.getRequestObject();
String text = request.getParameter("searchText");
String filter = request.getParameter("searchFilter");
wdComponentAPI.getMessageManager().reportSuccess(text);
wdComponentAPI.getMessageManager().reportSuccess(filter);
wdContext.currentContextElement().setSearchString(
				text);
wdContext.currentContextElement().setSearchFor(
				filter);

The text and the filter are showing null, because I am not passing these values from the HTML. How should I go about sending these values from the form.