cancel
Showing results for 
Search instead for 
Did you mean: 

Calling another Portal Component inside a Portal Application and pass param

Former Member
0 Kudos

Hello ...

I would like to call another PortalComponent inside my PortalApplication to handle form-data. Both components are AbrstractPortalComponents and inside the PortalApplication.

first component


response.write("<form action='PortalApplication.PortalComponent2'>"+
                      "<input type='text' name='textfield'>"+
                      "<input type='submit' value='post'></form>");

the second component should handle the passed data by the request Objekt.

How can I do that?

Edited by: Jochen Schmitz on Dec 10, 2008 6:47 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Maybe I misunderstand. Is the first component going to launch another URL, which is the 2nd component? If so, just get the passed parameters in the 2nd component using request.getParameter("paramname").

If you want to have both components on the page at the same time, then you'll probably need eventing.

Answers (1)

Answers (1)

Former Member
0 Kudos

You might want to read up about iView eventing, which is one of the mechanisms for passing data between iViews.

Former Member
0 Kudos

Hello Michael...

Of course that's a possible way... I attended the EP120 course two weeks ago and mr kurfess mentioned something like that. But isn't there a simpler way handling the form-data? E.g. cgi scripts with php or perl or even "normal" jsp-pages can handle form-data via the request object or special system variables. So this must be possible between components as well, isn't it?

Greets,

Jochen