the trick is to use createActionUrl() from the javax.portlets.RenderResponse class, and set that value as the target for your form. This will specifically send submit the form values to your portlet, and you can handle them in the processAction() method of the portlet. Actually I couldn't find a form examplee myself, but it's quite straightforward if you know something about html forms..


ypomonh wrote:
I have written my first "Hello World" portlet and I'm just trying to figure out how to hadle form posts, but I can't find a simple example on how to:

print a form (doView) ---> post to the same portlet ---> do something with the data.

Is there somewhere a simple example with forms..?


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to