Skip to Content
0
Former Member
Oct 18, 2007 at 05:08 AM

"response cannot be resolved error" in an event handler method in WebDynPro

257 Views

Hi all,

When I use following event handler method in a WebDynPro, its giving "response cannot be resolved" error. I'm I missing some imports? or some .jar files

Please advise me

Thanks in advance

public void onPlugfromStartView(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

{

//@@begin onPlugfromStartView(ServerEvent)

String firstname = wdThis.wdGetExc_ContectController().wdGetContext().currentContextElement().getCmpCtx_firstname();

String lastname = wdThis.wdGetExc_ContectController().wdGetContext().currentContextElement().getCmpCtx_lastname();

if((firstname != null) & (lastname != null)){

<b>response</b> = "Hello, "firstname" "+lastname;

}else{

<b>response</b> = "Hello, stranger";

}

wdContext.currentContextElement().setCtx_txtviewResult(<b>response</b>);

//@@end

}

Reg,

Naresh