on 04-14-2008 6:44 PM
public class Hoge extends AbstractPortalComponent
{
public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
{
...(call my jsp that has button component with buttonclicked event.)
}
public void doButtonClicked(IPortalComponentRequest request, IPortalComponentEvent event)
{
(I want to redirect for response from here)
}
}
Should I use "request.redirect(URI)"?
or
Should I use "request.getServletResponse(true).sendRedirect(URI) "?
If I have pagelet/test.jsp, I want to call the page from button clicked event.
How should I write the page call?
thank you.
Hi,
request.redirect(URI) should be okay to redirect.
I would recommend to create an AbstractPortalComponent which includes your jsp page (pagelet/test.jsp).
Check this how to create JSP component:
http://help.sap.com/saphelp_nw70/helpdata/EN/8a/4dae42cb9f0f31e10000000a1550b0/frameset.htm
Once the JSPPortalComponent is ready, to redirect do this:
request.redirect("/irj/servlet/prt/portal/prtroot/YourProjectName.YourJSPPortalComponent");
Regards,
Praveen Gudapati
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I had already read the help link, but I don't still understand.
I think that YourProjectName means my project name of NWDS, though.
What is the yourJSPPortalComponent?
Is that a path for pagelet/test.jsp?
or need to define IResource?
If project name is "hoge",
"hoge.pagelet/test.jsp" ?
I don't think such path, though....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
yourJSPPortalComponent is the Component name you defined in portalapp.xml for your component with jsp.
I hope you followed my suggestion in previous post and created an AbstractPortalComponent which includes your jsp page (pagelet/test.jsp).
So you replace yourJSPPortalComponent with Component name of this AbstractPortalComponent.
Hope it is clear now.
Regards,
Praveen Gudapati
User | Count |
---|---|
77 | |
9 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.