on 12-10-2008 5:47 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You might want to read up about iView eventing, which is one of the mechanisms for passing data between iViews.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.