on 03-18-2004 3:20 PM
Hi folks,
I have created a component based on a JSP DynPage and uploaded the par to the Portal (EP5 SP5).
I would like to launch this component from a link (url) from another page and also pass a parameter as part of the url. The JSP DynPage should then retrieve the parameter from the request.
I have tried to launch the component and pass a parameter called name using the following url and then retrieve the value from the request object(as per standard JSP practice)http://<portalIP:port>/irj/<etc>....<MyComponentName.default>?name=Adam
but this doesn't appear to work.
Can anyone see where I'm going wrong or provide a different way of achieving this?
Thanks.
p.s. good to see that there's other people with Java and SAP skills!
You have to call it using the <PAR name>.<component name> ex:
PurchaseOrder.displayPDF?9000000184_0000
Then in the component displayPDF you have to do:
IResource ir = request.getResource(IResource.JSP,"jsp/displayPDF.jsp");
request.dispatchRequest(ir,response);
Then in your JSP page you can do a request.getQueryString() to get the querystring.
It is a long process but it works....
Good luck
Marjolaine
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Come on peeps, someone out there must now how to launch a portal component from a URL!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.