Skip to Content
0
Former Member
Jan 31, 2005 at 03:45 PM

Convert javascript var into a java String

568 Views

Hi all,

I have an iview that receives an event. I tried to work with JSP this time. After I received the event I have a java-script var. I would like to put the content of the var into a htmlb-component:

<script>

EPCM.subscribeEvent( 'urn:com.test.EPCFExample', 'Event', getEvent);

function getEvent( evt ) {

var nameEvent = EPCM.loadClientData('urn:com.test.EPCFExample','textInput');

}

</script>

I have completly no clue what to do with the variable. Can this be transferred into a java-String? If I use it as value-parameter for an InputField it will be interpreted as a String ;-(

<hbj:inputField

id="eventField"

value=nameEvent

width="90"

visible="TRUE"

disabled="TRUE"

/>

Thanks for any help!

Martina