cancel
Showing results for 
Search instead for 
Did you mean: 

Urgent: Passing parameters from One Form to another form

Former Member
0 Kudos

Hi,

In my Abstract Portal component, i need to navigate from one page to another page. While navigating, i am not getting the parameters in the Second page that are used in the first Page. Can anyone help me to rectify this. Also can anyone provide how to navigate from one page to other page in the same component.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Can anyone help me how to retrieve the IPortalComponentRequest in the JSP in Abstract Portal Component to pass parameters from one Component to another component.

Former Member
0 Kudos

Hi pavanakrishna reddy,

Here's how to get the request and response in the JSP.

IPortalComponentRequest currentRequest =
    (IPortalComponentRequest)pageContext.getAttribute(
        javax.servlet.jsp.PageContext.REQUEST);

IPortalComponentResponse currentResponse =
    (IPortalComponentResponse)pageContext.getAttribute(
        javax.servlet.jsp.PageContext.RESPONSE);

Hope this has solved your issue. If so kindly consider rewarding points.

Regards,

Prem.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

First create two portal components and then in the first portal compent's controller... put the value in a bean class which is in session scope.

And in the second portal controller use the jsp:usebean tag to refer the bean....

and the access the parameter from the bean class....

Please give points if answer is helpfull.

Thanks

ritu

Former Member
0 Kudos

Hi,

When you mean Page are you talking about a Portal Page?

Ok, what I Understand is that you have one Portal project and 1 form where you input some values and retrieve it on the next JSP, Right??

It goes like this:

Create 1 portal project Proj1

Create 1 portal component Comp1 with attached JSP say comp1.jsp and another portal component Comp2 with another attached JSP say comp2.jsp

In comp1.jsp

<form action = "Proj1.Comp2" method = post>

<input type.......>

</form>

In comp2.jsp

<%

String a = request.getParameter(...)

%>Of course if you are attaching a JSP to your abstract portal component, you will have to retrieve the IPortalComponentRequest in the JSP.

So in other words you must create 2 components for the 2 pages.

Refer:http://help.sap.com/saphelp_nw70/helpdata/en/49/4dae42cb9f0f31e10000000a1550b0/content.htm

P.S. If this helped consider rewarding points.

Regards,

Prem

SAP.