Passing Parameter to jspx page in URL
hello all,
I want to know if it is possible to send paramters in jspx url . And if it is , then how can we acess those parameters in the backing beans . I am using jdeveloper 10.1.3
My link is http://10.11.5.5:8989/WF_APPS/faces/LoginPage.jspx and i would like to send a paramter cid with this url . How it can be done .
Is http://10.11.5.5:8989/WF_APPS/faces/LoginPage.jspx?cid=100 way of sending parameter is correct .
Please help
Hi,
the problem is with the lifecycle, which may include multiple request/response phases using ADF Faces. So what you need to do is to define a managed bean method on the page's f:view for its "afterPhase" property. In the method, you can generate it automatically using JDeveloper, you check for the PhaseId. The PhaseId you want is RestoreView. In this phase, you need to copy the requestparameter to a memory scope that outlives the duration fo a single request. So you would do
HttpServletRequest request=(HttpServeltRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
String strvalue=request.getPerameter("id");
if(strvalue != null){
AdfContext.getViewScope().put("id",strvalue);
The value no becomes EL accessible using #{viewScope.if} or by using Java
Frank
Ps.: View Scope requires PageFlow (Task Flow) and AdfContext requires ADF to be configured. If you use none of them, use session scope instead
Similar Messages
-
Pass parameter to another page and stay on same page?
Greeting EveryBody,,,
as u can see from the subject
im trying to pass parameter from one page to another but i want to stay on the original page???
can be done or not? and how?
examples are welcomed
thanx in advance
best regards
carlitoi have three pages displayed all by <frameset>
and i want to pass parameter from one page to another without going to any page!!! i.e. staying on the main page
hope it clear now....
best wishes -
Pass parameter to apex page via the URL
Hi, I need to pass a parameter into a page that will be used in a query inside a report region,
e.g report region query is
select link_id, page_id, menu_parent_id, link_text, link_url
from portal_pages
where page_id = :page_id
So the page will display different links depending on what value is passed to the page in the variable.
I know with normal URL syntax it would be something like
http://www.domain.com/page.html&page_id=1 (where page_id is a hidden variable in apex)
but how do I do this with an apex page like :-
http://host:port/pls/apex/f?p=123:9 <what goes here ? and what goes in the page for it to work>
Any help appreciated - noob to Apex
Thanks
Phil.If your item to be used in the url is P1_Page_Id, the
url should be something like:<br>
http://host:port/pls/apex/f?p=123:9:page_id:&P1_Page_I
d.
Thanks for comments, understand the syntax of the apex URLs now, got the item sorted in the page now, all working. -
Pass parameter FROM webcenter page TO dropped portlet
Hi All,
I have created a webcenter page
I have created a ADF remote portlet
I have regsitered the portlet as producer under webcenter page "Connection"
I dragged the portlet on webcenter (jspx) page.
now, my design requires that, i should be able to pass the paramter called "Country URL" that is available in webcenter page's backing bean TO this dropped portlet's SRC tag of IFRAME.
is it possible to pass paramter FROM webcenter page's backing bean TO SRC of IFRAME inside dropped portlet ?
If yes, the how will src refer to webcenter backing URL parameter ? ( like binding ...............)
yhx
ddThe idea stays the same in WebCenter. The technique i have described above does not change when you use ADF portlets.
There are only a few steps required:
1) Create the parameter in portlet.xml
2) assign the parameter to your portlet (also in portlet.xml)
3) deploy portlet
4) create a page parameter in webcenter on the page you are dropping the portlet on
5) assign the page parameter to the value of the portlet parameter
That's it.
Notice that the link in the above post of me (from 2010) is about JSR 168 portlets. Since WebCenter PS3, webcenter supports JSR 286 and some things change like you do not need to create the parameter in the oracle-portlet.xml anymore. You can easily do this in the portlet.xml
This is a more up to date post: http://yonaweb.be/inter_portlet_communication_jsr_286_and_webcenter_11g_ps3 -
Pass parameter through standard page "import xml content and actions"
Dear Portal experts,
As you know, a standard portal page is configured to allow the import of XML file. It is located in the portal in the path system admin -> transport -> xml content and actions -> import
I configured a quick link u201Cimportu201D to the page so now the link http://myserver:port/irj/portal/import allows me to access directly to this screen.
What I would like to do now is to pass the parameter related to u201Cfile nameu201D through this screen meaning that I would like that http://myserver:port/irj/portal/ import/filename=C:\test.xml fills automatically the fields u201CXML fileu201D with C:\test.xml
Please do you know how to achieve this ?
Thank you very much and regardshi,
@Maksim :
When user launch an URL like http://myserver:port/irj/portal/ import/*filename=C:\test.xml, he is requested to provide username and password; as this link is a shortcut for the upload xml page, there is a check of authorization and only portal admin that have authorization and permission on this page/iview will be able to upload xml file through the URL. Hope this clarify.
@Kumar :
thank you for your answer. What a pity to not be able to pass parameter through standard portal page/iview particularly knowing that we can pass paramater through many kinds of iviews (transactional iview, url iview, VC iview...). I explored some option on file com.sap.portal.ivs.init.par but this was unsuccessful. However, thanks to this [link bellow|http://wiki.sdn.sap.com/wiki/display/Snippets/ComponenttouploadXMLfilewithPCD+objects], I was able to upload through URL the XML file.
The problem is that I can upload only XML file that are stored in the server not in the local user computer. My requirement is to be able to upload local XML file stored on user's computer.
If someone could provide and idea/solution, I would be very grateful.
Cheers -
Passing parameter from JSpx to Jsff
Hi ,
I am trying to create left menu panel using jsff and i am putting in a page .So I want to pass some parameter from jspx to jsff .Please let me know how can i achive ??Hi,
I don't know If what you want is possible. But there are some ways to manage it.
One of them, is putting your value in any scope or managed bean, for example pageFlowScope.
The second one, you could use declarative components.
Maybe this link can help you: http://blogs.oracle.com/adffun/entry/fun_with_declarative_components -
Passing Parameter from Web Page to Form 6i
Dear All,
We are using 9i AS with Form 6i. I want to created a web page for user login and called my application By passing value
window.open("http://hrtest/dev60cgi/ifcgi60.exe?form=login_form.fmx&width=1000&height=700&
userid=logme/logme1@test","","width=1000,height=700,top=0,left=0,location=no,directories=no,
status=no,menubar=no,toolbar=no,maximize=yes,resizable=yes")
and it successfully run.
I want to pass additional parameter to my login_form.fmx from web page like User Shift entered by user on logon ?
Please help me out.
Regards,
KhurramI got the clue
pass parameter in your UR
as
//hrtest/dev60cgi/ifcgi60.exe?form=LOGIN_FORM_Para.fmx&width=1000&height=700&userid=power/power1@hrtest&otherparams=PAKISTAN=ALLAH"
Define a :PARAMETER.PAKISTAN on Form
and write following trigger
BEGIN
if :PARAMETER.PAKISTAN = 'ALLAH' then
message('ALLAH HO AKBAR');
message('ALLAH HO AKBAR');
message(:PARAMETER.PAKISTAN||' HO AKBAR');
message(:PARAMETER.PAKISTAN||' HO AKBAR');
else
message('INSH'||:PARAMETER.PAKISTAN);
message('INSH'||:PARAMETER.PAKISTAN);
end if;
END;
Regards
Khurram Altaf | Assistant Manager ERP
Enterprise Resource Planning Department
Kohinoor Textiles Mills Ltd
Peshawar Road, Rawalpindi.
+92.51.5473940-44 ext 250 | +92.333.5256626
e-mail: [email protected] | web: www.kmlg.com -
Passing parameter between OAF pages
Hi,
Im calling a custom page from a button destination URI property.
OA.jsp?page=/oracle/apps/ont/orderstatus/webui/INT_SUMM_PAGE&HeaderId={!HeaderId}&retainAM=Y&addBreadCrumb=Y
When I use {!HeaderId}, null value is passed
When I use {@HeaderId}, '@HeaderId' is passed as such.
What is the difference between two formats?When you specify URL parameters in your declarative page definitions, you can specify both literal and token-substituted values that obtain their data from associated view object attributes at rendering time
{!Attr} - encrypts the attribute value while leaving the {!} in the URL (for example, OA.jsp?...&ssn={!SSN}&...). Using OAPageContext.getParameter("ssn") will return the decrypted value.
{@Attr} - encodes the attribute value while leaving the {@} in the URL (for example, OA.jsp?...&addr={@EmpAdd}&...). Using OAPageContext.getParameter("addr") to get the parameter value will return the decoded value.
--Shiv -
Pass parameter from dynamic page to form
I have a report that uses a link to pass a parameter (projno) to a dynamic page. This dynamic page calls a procedure which, using the projno, pulls information from four tables. Depending on who the user is and what phase the project is in, each heading can be a link to a form so that the proper user can update the project. For instance, the projetc manager can update the progress table during phases 2-9. So I want the Progress Heading to be a link to a form so that the project manager can update the progress for a specific project number. I tried to put the link in the procedure like this:
if iPhase in (2,3,4,5,6,7,8,9) then
htp.p('<TD><a href="/pls/portal/PORTAL.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=6803259033&p_arg_names=projno&p_arg_values='||projno||'&p_arg_names=_projno_cond&p_arg_values=%3D&p_arg_names=_sessionid&p_arg_values=" target="_blank"><FONT FACE="VERDANA" SIZE="2">Progress</FONT></a></TD><TD width="10"></TD>');
else
htp.p('<TD><FONT FACE="VERDANA" SIZE="2">Progress</FONT></TD><TD width="10"></TD>');
end if;
But it brings up a blank form... no parameters are passed. Help!?when I use :projno I get a "bad bind variable" error. But really, I don't think that's the problem. Using the code in my last message, I can mouseover the link and see the correct information:
http://spring.ous.edu:7778/pls/portal/PORTAL.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=6803259033&p_arg_names=projno&p_arg_values=14&p_arg_names=_projno_cond&p_arg_values=%3D&p_arg_names=_sessionid&p_arg_values=
When I actually click on the link however, this is the URL now displayed in the address field:
http://spring.ous.edu:7778/pls/portal/PORTAL.wwa_app_module.show?p_sessionid=2592
It strips the url of the projno information. -
Pass parameter to included page and read it in the included packing bean
Hello
i have a page include in adf page (main.jspx include body.jspx) and i send a parameter to the included page ,and the included page has a request scope backing bean ,and in the constructor for this backing bean i tried to read the parameter , how can i get the included parameter "userId" in the backingbean which is realted to body page i.e(i want to pass the userid parameter to the body backing bean),the following is my code.
main.jspx :
<f:subview id="Body">
<jsp:include page="/body.jspx";>
<jsp:param name="userId" value="123456"/>
</jsp:include>
</f:subview>
Regards
Mohd.Weshahi tried your soluation
<managed-bean>
<managed-bean-name>testBacking</managed-bean-name>
<managed-bean-class>checklist.TestBacking</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>testValue</property-name>
<property-class>java.lang.String</property-class>
<value>${param.myParam}</value>
</managed-property>
</managed-bean>
it return to me in the getter method for the testValue the experssion as string ${param.myParam} but if i put ${param.myParam} it return value.
please advice.
Regards
Mohd.Weshah -
Passing parameter between jsp pages
Hi
I'v got the following problem: I have an jsp page that shows result of sql query as a list of 5 items, if there are more items returned - it shows first five, user is able to see more by clicking to a link which shows him the same page with next 5 items etc. The piece of index.jsp file with that link looks like that:
<html:link action="<%=(String)request.getAttribute("actionMod")%> module=... name=... styleClass=...>and at the end of initSearchAction I have:
req.setAttribute("actionMod","initSearch.do");Action is defined:
<!-- action for product list -->
<action path="/initSearch"
type="...list.InitSearchAction"
name="productListForm"
validate="false"
scope="request"
unknown="false"
>
<forward name="success" path=".search"/>
</action> .search is defined as
<definition name=".search" extends=".main">
<put name="body" value="/list/index.jsp" />
</definition>The problem is when I set a paramter in initSearchAction like that:
req.setAttribute("handle",h);and try to read it next time when initSearchAction action is running, parameter h is null. I need that to pass handle to stateful session bean that holds important information that need to be static during a session. Can anyone tell me how to pass that handle in some other way?
regards
anianow it works :)
I'm new to this things so I'm not familiar with all those sessions and requests...
thanks a lot
ania -
Passing parameter between JSF pages
I need to pass a parameter value between 2 different JSF pages.
The reason I need to do this is to be able to know which JavaBean (A or B) called the other JavaBean (C).
Can I somehow set a parameter within the JSF page and retrieve it in the second JSF page for my backing bean to read?
Thanks in advance.A co-worker of mine helped me fix my code to make it work!
Here is the final solution in case someone else needs to do the same thing in the future:
In the main JSF page that calls the second JSF page, the following code was added at the beginning of the page in the JavaScript section:
<% session.setAttribute"className", "CcmReassignEmployeeBean");
And in the Backing Bean of the second JSF page, the following code was used in the action listener used to transfer the data:
HttpSession session = (HttpSession) context.getExternalContext().getSession(true);
String className=(String) session.getAttribute("className");
It works great! Thanks! -
How to call form and pass parameter from OA Page
Hi,
I have one requirement to call a custom form from OA page by clicking the button and the same time i need to pass one parameter from this
oa page to that form.
how to do this by personalization?
i surfed lot and i got some idea, some one said "pass the value as global variable and receive the global parameter when the new form instance trigger" .
Can anyone please give about about this ?
Thanks in advance,
SANThis seems to be related to EBS and since this forum is dedicated to Fusion you might want to post the question to E-Business Suite forums and
Support forum for EBS customizations.
Jani Rautiainen
Fusion Applications Developer Relations
https://blogs.oracle.com/fadevrel/ -
Pass Parameter from main page to include page (subview) and read it ?
Hello All
i have an include header.jsp page in main page.jsp ,and i included it by subview.
i want to pass a parameter ex(screen name) to the subview by using f:param.
Here is the code in main.jsp:
<f:subview id="headerSubView">
<jsp:include page="/commons/header.jsp" flush="true">
<jsp:param name="screenTitleByJspParam" value="screen2007"/>
</jsp:include>
<f:param name="screenTitleByFparam" value="screen2007"/></f:subview>
Code in header.jsp
1- <af:outputFormatted value="#{param.screenTitleByJspParam}"/> -- this dose not work
2- <af:outputFormatted value="#{param.screenTitleByFparam}"/> -- this dose not work (i want this manner)
So how i can send parameter by ]<f:param and read it by subview uesing adf/jsf tags ?
Regards
Mohd.Weshah
weshah79Dear thanassis
Thanks for you help ,your code is working successfully but my case is the following :
same your main jsp page but the subview tag in table :
<%@ page contentType="text/html;charset=windows-1256"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
<f:view>
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=windows-1256"/>
<title>main</title>
</head>
<body>
<h:form>
<afh:tableLayout>
<afh:rowLayout>
<afh:cellFormat>
<f:subview id="header">
<jsp:include page="header.jsp" flush="true">
<jsp:param name="pageTitle" value="Modify aa record"/>
</jsp:include>
<f:subview>
</afh:cellFormat>
</afh:rowLayout>
</afh:tableLayout> </h:form>
</body>
</html>
</f:view>
try it the parameter dose not work ,but if you want that code work successfully move the subview out of the table.
Do you know what is the problem ?
i want give you another hint maybe it is realted to the same problem, which is in my original page the body tag is adf tag ie(<afh:body>) your code dose not work with that tag until i changed the afh:body to html body.
Regards
Mohd.Weshah -
Pass parameter between uix page
Hi, I am new to JDeveloper UIX technologies. I have created two uix page: page1 is built on a view. Page2 is on a table. How do I pass a parameter (customer_id) from page1 to page2?
Any help is appreciated. Thanks ahead!You can get the sample code for your answer here:
http://otn.oracle.com/sample_code/products/jdev/index.html
Download sample code with title:
Passing values between pages
Or alternatively your can keep the customer_id in the session during ActionForward then passing back the value into a textbox in page 2.
Code in ActionForward:
request.getSession().setAttribute("customer_id", value);
Code in UIX Page 2:
<textInput text="${sessionScope.customer_id}" name="code2"/>
Thanks.
Alex Cheong
Maybe you are looking for
-
[New Thinkpad Yoga 12 2015] enable Hyper-V feature on Windows 8.1 pro
Hello, i am a french customer, and i am very interested in the New Thinkpad Yoga 12 2015, especially the version available with Windows 8.1 Pro. and processor Intel Core i7-5500U. As an IT expert in Database technonlogies, i used to create virtual m
-
I forwarded an email. and now it is coming in via time machine I never asked time machine to recover it and have deleted 100's How do I stop it
-
Cheque incorrectly stopped in FI, even though it was cashed.
Dear Gurus Please can you help to see how we can do this - I am not sure of this scenario - It basically looks like a cheque was incorrectly stopped/cancelled the by us, even though the person actually cashed this cheque back in 2009. This was due to
-
Org model all strucutres changing after saving also
HI, I am new to CRM and learning CRM.i have created org model by creating marketing,sales and service structure. everything works fine. but my issue is when i click in service org tab and in function i am selecting service and service org.then i am g
-
Finalize preinstalled computers with SCCM task sequence
Hi, I need some help to find the best solution for using SCCM to finalize preinstalled computers from factory. We are giving our thin image to HP who will install the image on the computers at their factory. But when we receive the computer, we need