Skip to Content
Former Member
Oct 24, 2013 at 08:39 AM

Sending Data out of a SimpleForm to doPost-method of a Servlet


Hey guys,

I am developing my first SAPUI5 Application and it is a lot of fun. Actualy I am facing a problem which is about eventhandling and ajax calls.
So what I want to do is to send some data from severall textfields in a Simpleform via Ajax to a doPost-method of a servlet. My Problem is, that I don't have any clue how to do this. The only thing I know, is that I have to write an eventhandler method in the controler which listens to the press event of the submitbutton of my form. But I think that I have to bind the data of the textfields to a model, right?

Do some of you guys know some tutorials which have this topic?
And is it possible to add each input of the textfields to the parameters of the request so I can fetch the parameters in my doPost method of the servlet?

Best Regards,