Passing parameter in href to a different Portal page

Hello All,
I have requirement where I have a portlet A in portal page 1. Portlet A is a JSP which has a href pointing to the url of a different portal page (page 2) having the portlet B.
<a href=".../pls/portal30/url/page/page2
When I click on the link on portlet A, I need to pass some parameters to the portlet B in second page.
I know there's no straight forward way to do this. Could you all please share me your experiences and advice me asap.
Thanks in anticipation.

I have an example of two portlets on the same page and parameter is passed from one
to another. The idea should be the same
is the other portlet in on another page.
Hope this helps.
Report 1: summary report
SQL report, on scott.dept:
select htf.anchor('http://iasqa-ultra1.us.oracle.com:7777/servlet/page?_pageid=117&_dad=wwv_30898&_schema=WWV_30898&_mode=3&dept='&#0124; &#0124;deptno, deptno) aaa, dname, loc from SCOTT.dept
The url here is the page url with extra parameter for dept, the bind variable
in the detail report
Report 2: detail report
SQL report, on scott.emp
select * from scott.emp where deptno = :dept
Add the following PL/SQL code in the "before displaying the page"
wwv_30898.wwv_name_value.replace_value(
l_arg_names, l_arg_values, p_reference_path&#0124; &#0124;'.dept', wwv_30898.wwv_standard_util.string_to_table2(nvl(get_value('dept'), 10)));
Build a page and include these 2 portlets, then when you click
on the link of the summary report, the page will be refreshed,
and the detail report changed based on the data from the summary report.
Here is the url for my example,
http://iasqa-ultra1.us.oracle.com:7777/servlet/page?_pageid=117&_dad=wwv_30898&_schema=WWV_30898&_mode=3
null

Similar Messages

  • Display different portal page or portlet depend on user's

    can I display different portal page or portlet depend on user's
    profile,such as: if user's gender is male, display a portal
    page named "malePortal",if the user's gender is female, display
    a portal page named "femalePortal"

    This can be accomplished by using Entitlements Segments.
    You can define them in EBCC. you will have to define a user profile which
    will contain user information (like gender).
    Once you have two segments defined, you can use portal administration site
    to configure entitlements for pages and portlets.
    Regards
    Mike
    "Joshua Davies" <[email protected]> wrote in message
    news:3d1c78cb$[email protected]..
    >
    "xxxx" <[email protected]> wrote:
    can I display different portal page or portlet depend on user's
    profile,such as: if user's gender is male, display a portal
    page named "malePortal",if the user's gender is female, display
    a portal page named "femalePortal"If it has to be a portlet, you'll have to create a custom web flow thatstarts with
    a custom IP class. If you just want to show different content based on auser profile
    value, take a look at "Content Selectors" in EBCC; this sounds like aneasier way
    to get where you're trying to go.
    I don't think there's a way to display different portal pages/portalsbased on user's
    profile settings.

  • Passing parameter to group of portlets on a page from 1 report

    Hello Forum,
    Portal 3.0.7
    I have a page (page 2) that contains three portlets, each is a single report (Reports b, c, and d). They all query based upon the same parameter value. I have a different page (page 1) that contains a report (report a). I want to setup a link in report a that calls page 2, passes the parameter value to reports b,c,and d. With the reports b,c, and d reporting based upon the parameter value.
    Does anyone have any ides on how to do this? I have been successful in the past using forms based upon procedures to share a parameter amounts several portlets on a single page. But I have no idea how to call a page, pass the parameter and refresh the page in one step.
    Thanks in advance,
    Andre'

    You should concatenate to the url of the page wich contains the three forms with somthing that is near to the following :
    '&parameter_name='||parameter_value
    as many times as you have parameters in the portlets on the page.
    then you should call the new url
    hope that this could help you

  • Pass parameter to WD abap iview via Portal link

    Hello all,
    I have created one WD ABAP application and I am accessing the same with the help of URL parameters. I am retrieving these URL parameters in 'HANDLEDEFAULT' event handler of the application window.
    Now client wants to access the same with the help of NavigationParameter so I created relevant iView in portal and I am accessing application using link which is composed of portal link and NavigationTarget parameter.
    My question, If I want to pass application parameters via URL, How do I access the same in my window. Do I need some sort of separate mechanism to take the URL parameters to my application window when application is running on portal?
    Please share your thoughts on this.
    (Same problem explained in link /thread/672163 [original link is broken])
    Thanks in Advance,
    Prashant Jagdale

    Hi Kiran Kumar,
    Thanks for your document but still my problem is not solved. I will try to explain my problem in detail.
    I have developed one WD application and I was accessing the same using link suppose
    http://newdomain.abc.com:8000/sap/bc/webdynpro/sap/zwda_url_parameters?pernr=12345&name=test1&sap-client=200&sap-language=EN
    I was retrieving the values of of pernr and name in 'HANDLEDEFAULT' event handler by adding two parameters as PERNER and NAME. and it is working fine.
    Now this application is running on portal. and I am accessing the same using URL
    http://<server>:<Port>/irj/portal?NavigationTarget=ROLES://portal_content//myFolder/myRole/myWS/myPage
    but as i want to pass above mentioned parameter (pernr and name) via link, After an investigation, I am thinking to use of Dynamic parameter. So my link will become like
    http://<server>:<Port>/irj/portal?NavigationTarget=ROLES://portal_content//myFolder/myRole/myWS/myPage&DynamicParameter="pernr=12345&name=test1"
    So, my question is , how I can access these values specified in DynamicParameter in my WD abap iView. Whether they are available in 'HANDLEDEFAULT' event handler using method wdevent->get_data?
    I don't want to pass my parameters using iView property "Application Parameter."
    Please give some inputs on this. Also Please guide me whether I can use some other way to achieve this. but the thing is, i must want to pass the values via URL only.
    Thanks in Advance,
    Prashant Jagdale

  • Pass parameter to all iViews in a portal role

    Hi,
    we have a portal role containing several iViews for ABAP Web Dynpro applications. Now we want to assign the parameter sap-wd-lightspeed=X to all these applications. Is it possible to do this in the portal application and can the customer set it off if they want to?
    One idea is to define a dummy iView with this parameter set in property Application Parameters, and define all iViews as delta-links of this dummy iView. But we have some iViews which need their one Application Parameters.
    Thanks & regards,
    Carlo

    Hi Bies,
    I hope you are calling the Webdynpro ABAP applications using AppIntegrator iview (com.sap.portal.appintegrator.sap.WebDynpro).
    Application Name : ABAP application
    Application Parameters:sap-wd-lightspeed=X
    Thanks
    Srikanth M

  • Problem passing parameter to crystal report subreport from *.aspx page

    Background:
    I am developing a .NET web application using Visual Studio 2005. The code behind is in VB.net. One of my asp.net pages calls a report, which is invoked when the user clicks a Print button. I have developed this report using the Crystal Reports software that is bundled with Visual Studio 2005. I am passing one parameter from the asp.net page (utilizing the VB.net code-behind on the Print button) to the Crystal report. The report consists of a main report and 5 subreports. Both the main report and the subreports use the same parameter. Both the main report and the subreports are bound to stored procedures, each of which require a parameter.
    Problem:
    For some reason, the parameter is not being passed from the asp.net page to the report. I am receiving the following error: "CrystalDecisions.CrystalReports.Engine.ParameterField.CurrentValueException: Missing Parameter Values." However, when I remove the subreports, the parameter gets passed, and the report is invoked with no problem.
    I have read in other forums that there may be an issue with the Crystal Reports software that is causing this problem. I have downloaded and run the suggested hotfix, but the problem remains unresolved. I have tried changing the linking of my main report to the subreport, but that doesn't help either. It is possible that I am doing something wrong with the linking, as this is the first time I have developed a report with Crystal Reports. I need a workaround or definitive solution. Below is the aspx code used to call the report:
    Imports System
    Imports System.Collections.Specialized
    Imports System.Collections.ObjectModel
    Imports System.Collections
    Imports System.Text
    Imports System.Configuration
    Imports System.Data.SqlClient
    Imports System.Data
    Imports System.Data.SqlClient.SqlDataAdapter
    Imports System.Web.Configuration
    Imports Crystaldecisions.crystalreports.engine
    Imports Crystaldecisions.reportsource
    Imports Crystaldecisions.shared
    Partial Class OACIS_Award_or_Deny_BudgetSummary_PrintRpt
    Inherits System.Web.UI.Page
    Dim paramFields As ParameterFieldDefinitions
    Dim paramField As ParameterFieldDefinition
    Dim paramValue As ParameterValues
    Dim paramDiscreteValue As New ParameterDiscreteValue
    Public Shared idCase, nameRpt As String
    Private PrintRpt As ReportDocument
    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Try
    idCase = Request.QueryString("id")
    nameRpt = Request.QueryString("prtName")
    Dim config As Configuration = WebConfigurationManager.OpenWebConfiguration("~/")
    Dim settings As AppSettingsSection = DirectCast(config.GetSection("appSettings"), AppSettingsSection)
    Dim file As String = settings.File
    Dim dSource, iCatalog, userIs, passUser, appString As String
    dSource = Nothing
    iCatalog = Nothing
    userIs = Nothing
    passUser = Nothing
    appString = config.ConnectionStrings.ConnectionStrings("OacisConn").ToString()
    Dim AppArray() As String = Split(appString, ";")
    Dim arrayLgth As Integer = AppArray.Length
    Dim i As Integer
    For i = 0 To arrayLgth - 1
    Dim pairIs() As String = Split(AppArray(i), "=")
    Dim firstItem As String = pairIs(0)
    Dim secondItem As String = pairIs(1)
    If firstItem = "Data Source" Then : dSource = secondItem : End If
    If firstItem = "Initial Catalog" Then : iCatalog = secondItem : End If
    If firstItem = "UID" Then : userIs = secondItem : End If
    If firstItem = "PWD" Then : passUser = secondItem : End If
    Next
    Dim crReportDocument As ReportDocument
    Dim crExportOptions As ExportOptions
    Dim crDiskFileDestinationOptions As DiskFileDestinationOptions
    Dim crconnectioninfo As ConnectionInfo
    Dim crDatabase As Database
    Dim crtables As Tables
    Dim crtable As Table
    Dim crtablelogoninfo As TableLogOnInfo
    Dim Fname As String
    Dim Prtname As String
    Dim FPath As String
    Dim crSection As Section
    Dim crReportObject As ReportObject
    Dim crSubreportObject As SubreportObject
    Dim subRepDoc As New ReportDocument
    FPath = Server.MapPath("") + "\"
    Dim rptIs As String = nameRpt
    crReportDocument = New ReportDocument
    Prtname = FPath
    Prtname = Prtname + rptIs
    crReportDocument.Load(Prtname)
    Fname = "C:\WINDOWS\TEMP\" & Session.SessionID.ToString & ".pdf"
    crconnectioninfo = New ConnectionInfo
    crconnectioninfo.ServerName = dSource
    crconnectioninfo.DatabaseName = iCatalog
    crconnectioninfo.UserID = userIs
    crconnectioninfo.Password = passUser
    crDatabase = crReportDocument.Database
    crtables = crDatabase.Tables
    For Each crtable In crtables
    Try
    crtablelogoninfo = crtable.LogOnInfo
    crtablelogoninfo.ConnectionInfo = crconnectioninfo
    crtable.ApplyLogOnInfo(crtablelogoninfo)
    crtable.SetDataSource(Prtname)
    crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
    crtablelogoninfo.ConnectionInfo.UserID = userIs
    crtablelogoninfo.ConnectionInfo.Password = passUser
    crtable.ApplyLogOnInfo(crtablelogoninfo)
    crtable.Location = iCatalog + ".dbo." + crtable.Name
    Catch ex As Exception
    Response.Write(ex)
    Exit Sub
    End Try
    Next crtable
    For Each crSection In crReportDocument.ReportDefinition.Sections
    For Each crReportObject In crSection.ReportObjects
    If crReportObject.Kind = ReportObjectKind.SubreportObject Then
    crSubreportObject = CType(crReportObject, SubreportObject)
    subRepDoc = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName)
    For Each crtable In subRepDoc.Database.Tables
    Try
    crtablelogoninfo = crtable.LogOnInfo
    crtablelogoninfo.ConnectionInfo = crconnectioninfo
    crtable.ApplyLogOnInfo(crtablelogoninfo)
    crtable.SetDataSource(Prtname)
    crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
    crtablelogoninfo.ConnectionInfo.UserID = userIs
    crtablelogoninfo.ConnectionInfo.Password = passUser
    crtable.ApplyLogOnInfo(crtablelogoninfo)
    crtable.Location = iCatalog + ".dbo." + crtable.Name
    Catch ex As Exception
    End Try
    Next
    End If
    Next
    Next
    crDiskFileDestinationOptions = New DiskFileDestinationOptions()
    crDiskFileDestinationOptions.DiskFileName = Fname
    crExportOptions = crReportDocument.ExportOptions
    With crExportOptions
    .DestinationOptions = crDiskFileDestinationOptions
    .ExportDestinationType = ExportDestinationType.DiskFile
    .ExportFormatType = ExportFormatType.PortableDocFormat
    End With
    Dim parIDCase As ParameterValues = New ParameterValues
    Dim disIDCase As ParameterDiscreteValue = New ParameterDiscreteValue
    disIDCase.Value = idCase
    parIDCase.Add(disIDCase)
    crReportDocument.DataDefinition.ParameterFields("@ID_CASE_NMBR").ApplyCurrentValues(parIDCase)
    crReportDocument.Export()
    Response.ClearContent()
    Response.ClearHeaders()
    Response.ContentType = "application/pdf"
    Response.WriteFile(Fname)
    Response.Flush()
    Response.Close()
    System.IO.File.Delete(Fname)
    Catch ex As Exception
    lblMessage.Visible = True
    lblMessage.Text = "Error Load
    " & Convert.ToString(ex)
    End Try
    End Sub
    End Class
    Your help is greatly appreciated!

    Thanks for your help!
    I've now gotten past the "missing parameter values" error, and the report renders fine in the report viewer.  However, I've encounted another problem.  The data in my main report displays correctly, but the data in my subreport does not display.  Of course, when I view the report in the designer, both the main report and subreport display correctly.  What am I doing wrong?  Below is my vb.net code:
            Try
                idCase = Request.QueryString("id")
                nameRpt = Request.QueryString("prtName")
                Dim config As Configuration = WebConfigurationManager.OpenWebConfiguration("~/")
                Dim settings As AppSettingsSection = DirectCast(config.GetSection("appSettings"), AppSettingsSection)
                Dim file As String = settings.File
                Dim dSource, iCatalog, userIs, passUser, appString As String
                dSource = Nothing
                iCatalog = Nothing
                userIs = Nothing
                passUser = Nothing
                appString = config.ConnectionStrings.ConnectionStrings("OacisConn").ToString()
                Dim AppArray() As String = Split(appString, ";")
                Dim arrayLgth As Integer = AppArray.Length
                Dim i As Integer
                For i = 0 To arrayLgth - 1
                    Dim pairIs() As String = Split(AppArray(i), "=")
                    Dim firstItem As String = pairIs(0)
                    Dim secondItem As String = pairIs(1)
                    If firstItem = "Data Source" Then : dSource = secondItem : End If
                    If firstItem = "Initial Catalog" Then : iCatalog = secondItem : End If
                    If firstItem = "UID" Then : userIs = secondItem : End If
                    If firstItem = "PWD" Then : passUser = secondItem : End If
                Next
                Dim crReportDocument As ReportDocument
                Dim crExportOptions As ExportOptions
                Dim crDiskFileDestinationOptions As DiskFileDestinationOptions
                Dim crconnectioninfo As ConnectionInfo
                Dim crDatabase As Database
                Dim crtables As Tables
                Dim crtable As Table
                Dim crtablelogoninfo As TableLogOnInfo
                Dim Fname As String
                Dim Prtname As String
                Dim FPath As String
                Dim crSection As Section
                Dim crReportObject As ReportObject
                Dim crSubreportObject As SubreportObject
                Dim subRepDoc As New ReportDocument
                FPath = Server.MapPath("") + "\"
                Dim rptIs As String = nameRpt
                crReportDocument = New ReportDocument
                Prtname = FPath
                Prtname = Prtname + rptIs
                crReportDocument.Load(Prtname)
                Fname = "C:\WINDOWS\TEMP\" & Session.SessionID.ToString & ".pdf"
                crconnectioninfo = New ConnectionInfo
                crconnectioninfo.ServerName = dSource
                crconnectioninfo.DatabaseName = iCatalog
                crconnectioninfo.UserID = userIs
                crconnectioninfo.Password = passUser
                crDatabase = crReportDocument.Database
                crtables = crDatabase.Tables
                For Each crtable In crtables
                    Try
                        crtablelogoninfo = crtable.LogOnInfo
                        crtablelogoninfo.ConnectionInfo = crconnectioninfo
                        crtable.ApplyLogOnInfo(crtablelogoninfo)
                        crtable.SetDataSource(Prtname)
                        crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
                        crtablelogoninfo.ConnectionInfo.UserID = userIs
                        crtablelogoninfo.ConnectionInfo.Password = passUser
                        crtable.ApplyLogOnInfo(crtablelogoninfo)
                        crtable.Location = iCatalog + ".dbo." + crtable.Name
                    Catch ex As Exception
                        Response.Write(ex)
                        Exit Sub
                    End Try
                Next crtable
                For Each crSection In crReportDocument.ReportDefinition.Sections
                    For Each crReportObject In crSection.ReportObjects
                        If crReportObject.Kind = ReportObjectKind.SubreportObject Then
                            crSubreportObject = CType(crReportObject, SubreportObject)
                            subRepDoc = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName)
                            For Each crtable In subRepDoc.Database.Tables
                                Try
                                    crtablelogoninfo = crtable.LogOnInfo
                                    crtablelogoninfo.ConnectionInfo = crconnectioninfo
                                    crtable.ApplyLogOnInfo(crtablelogoninfo)
                                    crtable.SetDataSource(Prtname)
                                    crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
                                    crtablelogoninfo.ConnectionInfo.UserID = userIs
                                    crtablelogoninfo.ConnectionInfo.Password = passUser
                                    crtable.ApplyLogOnInfo(crtablelogoninfo)
                                    crtable.Location = iCatalog + ".dbo." + crtable.Name
                                Catch ex As Exception
                                End Try
                            Next
                        End If
                    Next
                Next
                crDiskFileDestinationOptions = New DiskFileDestinationOptions()
                crDiskFileDestinationOptions.DiskFileName = Fname
                crExportOptions = crReportDocument.ExportOptions
                With crExportOptions
                    .DestinationOptions = crDiskFileDestinationOptions
                    .ExportDestinationType = ExportDestinationType.DiskFile
                    .ExportFormatType = ExportFormatType.PortableDocFormat
                End With
                crReportDocument.SetParameterValue("@ID_CASE_NMBR", idCase)
                crReportDocument.SetParameterValue("@ID_CASE_NMBR", idCase, "MemberName")
                crReportDocument.Export()
                Response.ClearContent()
                Response.ClearHeaders()
                Response.ContentType = "application/pdf"
                Response.WriteFile(Fname)
                Response.Flush()
                Response.Close()
                System.IO.File.Delete(Fname)
            Catch ex As Exception
                lblMessage.Visible = True
                lblMessage.Text = "Error Load<br>" & Convert.ToString(ex)
            End Try
    Edited by: LaShandra Knox on Sep 17, 2008 7:59 PM

  • Pass a parameter  to a 'portal page'

    I want to pass a parameter to a 'Portal' page. This parameter is a the title of the page. I found that in the page's properties a 'parameter' tab is there where we can add a parameter. But I don't know how the page will read the value of this parameter & display it.
    Thank you for your help.
    Jayasree

    i am trying to pass the parent_id as a parameter to a portal page but am not able to... i can add it to the list of in parameters to the PL/SQL based parent id but when i add the parent id to the url then i get no result... i created a custom attribute for the parent id since there is no attribute build other then page group and page id... when I set the Parent ID attributes default value in the attribute properties of the item type based on PL/SQL it just brings back results for the default value and if i pass a different value for ithe parent id i dont get the correct result I get the result for the default parent id.
    I am using the followin url to pass the parent id
    http://localhost:7778/portal/page?_pageid=76,87832&_dad=portal&_schema=PORTAL&parentid=22223

  • Pass parameter to form from webpage?

    Hi guys,
    I'm aware that you are able to pass parameters between forms using CALL_FORM (using parameter list).
    Is it possible to pass parameters to a form from the webpage?

    i am trying to pass the parent_id as a parameter to a portal page but am not able to... i can add it to the list of in parameters to the PL/SQL based parent id but when i add the parent id to the url then i get no result... i created a custom attribute for the parent id since there is no attribute build other then page group and page id... when I set the Parent ID attributes default value in the attribute properties of the item type based on PL/SQL it just brings back results for the default value and if i pass a different value for ithe parent id i dont get the correct result I get the result for the default parent id.
    I am using the followin url to pass the parent id
    http://localhost:7778/portal/page?_pageid=76,87832&_dad=portal&_schema=PORTAL&parentid=22223

  • Pass Parameter with Form

    It is a common and frequent question, but it has not been answered satisfactorily. The question is, how do I pass a parameter from a form in a Portal page to another page?
    I have discovered that using a Dynamic Page, I can read parameters passed in by referencing them as bind variables in a PL/SQL block. For example, given a parameter of "bindMe" as in "http://portal_path/object.show?p_arg_names=bindMe&p_arg_values=hello", the following code will display it:
    <oracle>
    declare
    localVar varchar2(50) := :bindMe;
    begin
    htp.print('bindMe = ' || localVar);
    end;
    </oracle>
    However, I am having trouble sending a form parameter out, in Portal format. By default, it will create the "?bindMe=hello" form, which isn't easily recognizable by Portal. I tried to setup a bind variable for an out-going parameter, but either it doesn't work that way, or I didn't set it up correctly. Any help would be appreciated.
    Not interested in the JavaScript approach.

    I've tried using the wwpro_api_parameters.get_value function, but it doesn't work. I keep getting a "not found" error for the page when trying to pass a parameter.
    Here's my code for the page. I'm trying to simply read a parameter that's passed in. Cut and paste it into your Dynamic Page, and see if you can get it to work.
    <html>
    <head><title>test</title></head>
    <body>
    You passed in
    <oracle>
    begin
    htp.print(portal.wwpro_api_parameters.get_value('empno','a'));
    end;
    </oracle>
    </body></html>
    Now use the URL:
    http://....show?empno=10
    According to the API documentation (http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/plsql/doc/sdk3gvf.htm), this should work, but it doesn't. I know I shouldn't be surprised that Oracle's documentation is inaccurate, but I'm having trouble finding a solution.
    Help!

  • Navigate from Web Dynpro app to portal page

    Dear All,
    I've created a number of Web Dynpro applications which I run from various portal pages. From one of the Web Dynpro's I navigate to a different portal page using the WDPortalNavigation.navigateAbsolute method. This works fine, but I'm left with one problem:
    I'd like to pass parameters from the Web Dynpro which navigates to the portal page to the Web Dynpro applications which run on that specific page. I've appended the parameters to the URL I'm navigating to (eg ROLES://<pcd location>?<param=xxx>) and in the Web Dynpro's I've added a parameter to the Default interface plug. This doesn't seem to work. As an alternative I've added the statement WDWebContextAdapter.getWebContextAdapter().getRequestParameter("param") to the doInit() method of the view, but this also doesn't work.
    Either I'm doing something wrong, or what I want to accomplish is not possible. Does anybody know of a way to access parameters passed to a portal page from Web Dynpro applications contained on that page?
    Thanks,
    Arnoud

    I hope you are passing parameters between two WebDynpro applications.
    Please go through the example available for passing interaction between two webdynpro components.
    Please check the following link
    Alternative method for navigating to another page ?
    or the following link
    Re: Can we pass parameters in querystring of the webdynpro application?

  • Scope of Java Bean in portal pages

    Hello All,
    My objective is to share information between different portal pages using java bean.
    I have portal page (say page1) having a portlet which is a jsp (say jsp1). In JSP1, I have following use bean tag( please see, the scope is Application)
    <jsp:usebean id='userSession',scope='application',class='...'>
    (As per my understanding of 'application' scope, this java bean will be visible to all the JSPs in the current browser session.)
    I set some of the properties of the bean after this.
    Now, from my 2nd portal page (say page 2) having exactly one portlet which is again a jsp (say jsp2), I try to access the same javaBean using the use bean tag.
    <jsp:usebean id='userSession',scope='application',class='...'>
    When I try to access the properties of the bean, none of them are available.
    It looks like the original instance of the bean is lost and new instance is created.
    Don't Java beans behave in the same way inside and outside the Portal environment ?
    If I can't use java beans, could you please suggest any other way where I can share some data between Portal pages.
    Thanks very much in Anticipation.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Naresh Kumar ([email protected]):
    Hello All,
    My objective is to share information between different portal pages using java bean.
    When I try to access the properties of the bean, none of them are available.
    It looks like the original instance of the bean is lost and new instance is created.
    Don't Java beans behave in the same way inside and outside the Portal environment ?
    If I can't use java beans, could you please suggest any other way where I can share some data between Portal pages.
    Thanks very much in Anticipation.<HR></BLOCKQUOTE>
    I have the same problem.
    Why Portal behaviour is not transparent with Javabeans ?
    G.Grimoldi
    null

  • Portal form custom button to call new portal page

    Portal 3.0.9
    I can create a portal form componment which sets session variables appropriately based on a custom button. I can get a 2nd component such as a report to read this session variable ok as long as it on the SAME portal page.
    However, how do I get the form (exposed as a portlet on a page) to call A DIFFERENT Portal page which contains a number of application components reading the previously set session variable? I do not want to call the module directly as it will appear in a popup window.
    I've tried using owa_util.redirect_url('page url'); but this gets ignored and the same page is refreshed.
    Any ideas?
    John

    Hi,
    You can call the new page in the success procedure of the form
    example
    declare
    l_url varchar2(2000);
    begin
    l_url := 'cut and paste the page link from the navigator';
    go(l_url);
    end;
    Thanks,
    Sharmila

  • Advice on using Portal Pages

    Hello,
    Here is our situation. We have a portal application, and logically, we have around
    20 different "pages" that have the same layout (custom left nav, body in the center,
    than a right hand nav that various portlets can be dropped in).
    Functionality may be similar to this:
    1. If a user views page X, we should show portlets A, B in the right nav.
    2. If a user views page Y, we should show portlets C, D in the right nav.
    3. etc.
    So even though all the pages have the same layouts, they may place different portlets
    in the right hand section.
    It seems to me, that because of this desired functionality, we would have to use
    a different Portal page for each of our pages (even though they all use the same
    layout). Do we need different pages because we want different portal placements
    in the right hand nav section?
    Or is there a way to re-use the same page, and somehow programmatically state "If
    we are viewing page X in the middle section, display portlets A, B on the right,
    etc.".
    I would like to avoid creating potentially dozens of portal pages because it may
    be a maintainability issue.
    Thanks,
    Will Young

    Will,
    Can you explain your situation a little more. As far as I can tell you
    have 3 sections of your site. A left nav that has no portlets, a body
    full of portlets and a right side with portlets also?
    Or does your body not contain portlets?
    I'd like to help, and think I can but I'm not sure I understand
    exactly your problem.

  • How do I pass parameter to different portlet regions from another page?

    How do I pass parameter to different portlet regions from
    another page?
    I have a page that with two regions. Each region has a report
    that uses the same information to generate its report.
    Individually running the reports, I can use p_arg_names and
    p_arg_values to get what I want. However, when I run the page
    that has both portlets, my .show is gone and I cannot get it to
    use the p_arg_names, etc. Do you have any idea how to overcome
    this? Thanks for any help.

    How do I pass parameter to different portlet regions from
    another page?
    I have a page that with two regions. Each region has a report
    that uses the same information to generate its report.
    Individually running the reports, I can use p_arg_names and
    p_arg_values to get what I want. However, when I run the page
    that has both portlets, my .show is gone and I cannot get it to
    use the p_arg_names, etc. Do you have any idea how to overcome
    this? Thanks for any help.

  • Syntax to pass parameter value to jsp using href in out.println

    Hi,
    I have the URL in the form as mentioned below:
    <a href="b2c/marketing/showDocDetail.jsp"> <%=doc_no%></a>
    I've created the hyperlink using href tag to the document number in the jsp using the below syntax.
    <% String a1 = "Document ";
           String a2 = "<a href=\"";
           String a3 = "marketing/showDocDetail.jsp\">";
           String a4 = doc_no;
           String a5 = "</a>";
    out.println(a1a2a3a4a5);
    %>
    When clicked the doc_no is passed to backend RFC and export parameter is retrieved to result.jsp where values along with doc_no are displayed.
    the value after clicked is not being passed to action.java class that does the retreival.
    Needful, backend class, bom, entry in config.xml is all maintained.
    Please help me out with the syntax to pass the parameter value into java class

    Hi Bharathi,
    try below.
    <%
           String a1 = "Document ";
           String a2 = "<a href=\"";
           String a3 = "marketing/showDocDetail.do?docNo=";
           String a4 = doc_no;
           String a5 = " \">";
           String a6 = doc_no;
           String a7 = "</a>";
    out.println(a1+a2+a3+a4+a5+a6+a7);
    %>
    I assume doc_no is java variable contains value of document number
    Now create action entry in config.xml file. Suppose "actionDoc.java" class process it.
    <action path="/marketing/showDocDetail" type="com.xyz.actions.actionDoc">
                   <forward name="success" path="/marketing/showDocDetail.jsp"/>
                   <forward name="error" path="/marketing/showDocDetail.jsp"/>
    </action>
    We are passing parameter docNo=doc_no to action class actionDoc.java in this class you can retrieve request parameter docNo from request object and then process it as you want.
    Let me know if you face any problem or error.
    eCommerce Developer
    Edited by: Ecommerce Developer on Nov 9, 2009 8:35 AM

Maybe you are looking for