Access session parameters
How do I access session parameters set using wwsto_api_session api in plsql procedure later in a JSP?
I donot want to use jdbc becuase of response time issues and security.
is it something that you want to debug at runtime and find out those values?
Please, follow this link->
[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0cb32c5-36a7-2910-2c9b-ba4a5bbdbb56|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0cb32c5-36a7-2910-2c9b-ba4a5bbdbb56]
Also look at this. This might be of more use. it explains extracting such portal parameters:
[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0446f5c-fcb9-2910-e082-88becbe3ddc9|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0446f5c-fcb9-2910-e082-88becbe3ddc9]
-kunal kotak
Edited by: kunal kotak on Jan 12, 2009 12:16 PM
Similar Messages
-
In adf11g application how i can access session related objects in model layer. I know in view layer one can use facescontext.getExternalContext().getSessionMap() but how I can access it in model????
You are not suppose to do this - your Model layer should never depend on a specific view layer.
The right way of doing this is explained here:
http://blogs.oracle.com/shay/2010/07/am_service_method_-simpledem.html -
How to improve sql perfomance/access speed by altering session parameters
Dear friends
how to improve sql perfomance/access speed by altering the session parameters? without altering indexes & sql expression
regrads
Edited by: sak on Mar 14, 2011 2:10 PM
Edited by: sak on Mar 14, 2011 2:43 PMOne can try:
http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:3696883368520
http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:5180609822543
http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/memory.htm#sthref497
But make sure you understand the caveats you can run into!
It would be better to post the outcome of select * from v$version; first.
Also and execution plan would be nice to see.
See:
When your query takes too long ...
HOW TO: Post a SQL statement tuning request - template posting -
Should we try to access session scope in ADF BC ?
hi
In the blog post "How to Access Session Scope in ADF BC "
at http://andrejusb.blogspot.com/2012/01/how-to-access-session-scope-in-adf-bc.html
Andrejus Baranovskis suggests it is no problem to access session scope in ADF BC using
Map sessionScope = ADFContext.getCurrent().getSessionScope();But I wonder if this is really a good practice, as it looks very much like breaking the MVC pattern.
At the same time I wonder where the Oracle documentation says this would be a good or bad idea.
One starting point could be the ADFContext.getCurrent() method
at http://docs.oracle.com/cd/E24382_01/apirefs.1112/e17486/oracle/adf/share/ADFContext.html#getCurrent%28%29
that starts with saying "Gets the ADF context for the current thread. ..." which in a typical deployment scenario of ADF BC might not cause a problem.
But, I wonder how defensive your programming should be when using the getSessionScope() method in your ADF Business Component code (that implements the Model).
Ideas and feedback welcome.
many thanks
Jan VerveckenHi Shay,
Reviewing ADFContex methods it seems that this object shouldn't be accessible from BC. Example:
public static ADFContext initADFContext(java.lang.Object context,
java.lang.Object session,
java.lang.Object request,
java.lang.Object response)
Initializes the ADFContext for the environment of the specified context.
Parameters:
context - the ServletContext or PortletContext of the current execution environment.
session - the HttpSession or PortletSession of the current execution environment. OPTIONAL.
request - the HttpServletRequest or PortletRequest of the current execution environment. OPTIONAL.
response - the HttpServletResponse or PortletResponse of the current execution environment. OPTIONAL.
Returns:
the ADFContext that was current when init was invoked. Should be passed back to resetADFContext after the block requiring the ADFContext has completed.Kuba -
Session parameters populated by the system
Hi all,
I am migrating the app from a windows system to a AIX system and have differences between the session parameters that are seen from .../XMII/PropertyAccessServlet?mode=List&Content-Type=text/html
How are these values set?
Why is there such a big difference between windows and AIX?
From windows server
Locale en_US
mobile +1.616.xxx.xxxx
EmailAddress1 xxxxxxx
uniquename WASE
title Sr Systems Analyst
FullName Amy Smith
telephone +1-616-xxx-xxxx
Machine xx.xx.xx.xx
Accessibility false
displayname Amy Smith
Phone +1-616-xxx-xxxx
Language en
lastname Smith
description Holland, MI, USA-Mailcode: ATS A4
firstname Amy
email xxxxxxx
IllumLoginName WASE
Title Sr Systems Analyst
IllumLoginRoles ...
CellPhone +1.616.xxx.xxxx
From AIX server
Locale en_US
Machine xx.xx.xx.xx
Language en
IllumLoginName WASE
IllumLoginRoles ...
Thanks,
--Amy Smith
--HaworthI have all the roles Steve has, plus some for Portal Content admin.
Steve's IllumLoginRoles
'com.haworthinc.pct.role.haworthportaladmin.DelegatedContentAdmin'
'com.haworthinc.pct.role.haworthportaladmin.HaworthEveryone'
'com.haworthinc.pct.role.mdm.MDMVendorSearchRole'
'com.sap.pct.erp.ess.r_zemployee_self_service'
'Everyone'
'SAP_JAVA_NWADMIN_LOCAL_READONLY'
'XMII Administrators'
'XMII Developers'
'XMII Managers'
'XMII Operators'
'XMII Plant 3019'
'XMII Users'
My IllumnLoginRoles (Extras marked with *)
'com.haworthinc.pct.role.haworthportaladmin.DelegatedContentAdmin'
'com.haworthinc.pct.role.haworthportaladmin.HaworthEveryone'
*'com.haworthinc.pct.role.haworthportaladmin.LeadDeveloper'
*'com.haworthinc.pct.role.mdm.MDMAutoNumberGenerationRole'
*'com.haworthinc.pct.role.mdm.MDMCustomerSearchRole'
'com.haworthinc.pct.role.mdm.MDMVendorSearchRole'
*'com.haworthinc.pct.role.mss.ManagerSelfService'
'com.sap.pct.erp.ess.r_zemployee_self_service'
*'content_admin_role'
*'ContentManager'
'Everyone'
'SAP_JAVA_NWADMIN_LOCAL_READONLY'
'XMII Administrators'
'XMII Developers'
'XMII Managers'
'XMII Operators'
'XMII Plant 3019'
'XMII Users'
I looked at UME User Details and I see my phone numbers and email and name, the same as Steve's.
Just doesn't show up in MII session params. I haven't checked with the AD guys yet, but if the info
is in the UME it kind of points to a config issue somewhere in NetWeaver or MII. Do you agree?
Could one of those roles I have screw up the session params.
Thanks,
--Amy Smith
--Haworth -
How do I access session data through an EJB?
Hi
How do I access session data through an EJB?
I am currantly developing a Web service (using ejb's, JBoss.net and Apache Axis). A client making a call to this Web service, is expecting a bussiness-object in return. My problem is that this bussiness-object i stored in a users session data. How do I retrieve this bussiness-object from the users session.
I have read that this does not work with httpsessions, is this true? If this is true, is it possible to store the bussiness object in a JavaBean e.g:
<jsp:useBean id="userContextWebImpl" scope="session" class="com.ac.march.client.UserContextWebImpl">
<%
String key = "test";
String value = "This is the value";
userContextWebImpl.setValue( key, value1 );
%>
</jsp:useBean>
and then retrieve this information through the EJB? Or is it possible to do this by using Statfull JavaBeans? Or can this be done through a nother solution?
Please help!I have created a JavaBean with scope="application" to store some data. The data is stored when a user prefomes a spesific task.
A different person then makes a call to a Web-Service on the server. The Web-Service then asks an EJB to retrieve the data stored in the JavaBean (servlet cotext). In other words: How do I retrieve this data from the EJB?
I have tried with this code, but with no luck.
(ApplicationContextWebImpl is the JavaBean)
public static String getBookingResult( String key )
String myResult = null;
String myKey = key;
ApplicationContextWebImpl applicationContextWebImpl = null;
try
applicationContextWebImpl = new ApplicationContextWebImpl();
myResult = (String)applicationContextWebImpl.getValue( key );
catch ( java.rmi.RemoteException e )
return myResult;
} -
How to access session in javabean?
I want to access session in javabean,how can I do?
Have something that CAN access the session pass whatever it is the bean needs to know into the bean via a setter method.
-
How to access GET-parameters in portal url
Is it possible to access GET-parameters in a bsp application in an iview in the enterprise portal, and if so, how do I do it?
If you look at the url of this post (/message/1514719#1514719 [original link is broken])
I would like to have the value of "forumID" in the bsp application in the iview with shortlink "thread".Raja,
your solution is what I was initially looking for, so thank you.
Can you also supply a link to the article you refer to? I can't find it:-)
But while looking for this I found something even better, a way to pass parameters to an iview without having to define them in the iview ApplicationParameter-property.
Apparently the trick is to add the parameter "DynamicParameter" to the url, that translates to different parameters in your bsp application(iview).
So if you want your bsp application to have the parameters "roomid=555&date=01.01.2007" your url should be
http://bla/irj/portal/rooms?DynamicParameter=roomid%3D555%26date%3d01.01.2007
where %3D is the ascii representation of "=" and %26 is the ascii representation of &.
I found this here : /message/529588#529588 [original link is broken] , but in this thread they say to separate the parameters by a ";", whereas for me it only works when i use %26 (&).
Message was edited by: Dries Horions -
Session parameters / initialization parameters
what are session parameters? What are initialization parameters?
When we do: alter system set....., does need a restart of the machine? of Oracle instance?
thxInitialization parameters are those defined in your pfile or spfile (init.ora).
Some of these parameters can be redefined at session level:
see http://download-uk.oracle.com/docs/cd/B10501_01/server.920/a96536/ch14.htm#1014104
To get the parameter values, you can for example, run
show parameter <parm>
When we do: alter system set....., does need a restart of the machine? No
of Oracle instance?Yes if the parameter is static, no if the parameter is dynamic.
Message was edited by:
Pierre Forstmann -
ADF BC how to access session backing bean value in servlet
Hi everyone,
How do I access session backing bean value in a servlet?Frank, thanks for your reply.
I'm not sure how I can incorporate this example into my situation. Let me explain more detail about my problem.
"servlet" in my post here actually means a custom servlet I wrote for rendering an image that is stored in db as ordimage. In this servlet, I get hold of my appmodule by using Configuation.createRootApplicationModule(). By doing so (If I'm not wrong) a new database session/connection is created. What I'm going to achieve is set application context for this new session/connection in db with the data stored in a session backing bean in the view layer.
I can pass the required data to the servlet thru url parameter, but I don't want to do it this way for the reason that the data may contains sensitive information.
I hope I have explained myself well.
Message was edited by:
bsmt -
Accessing Session scope attributes in ADF BC
Is there any groovy script for accessing session scope variables in ADF BC?
Let me put forward my use case:
My VO's in my application has a bind variable which is bound to currently logged in user (adf.context.securityContext.userName). Also my application has couple of AM's
But now i'm adding complexity to my application where i'm implementing super user concept, a super user can login to the application, select a username (say 'user1'), and see the application as if 'user1' is logged in.
So i'm trying to solve the problem by setting a session attribute for the user ('user1') and make it use in VO's
Do you guys have any better solution to this problem? -
Accessing session attribute in output jsp page
Hi i am not getting any output in jsp page...
i am getting just heading
i think some problem with Session attribute..
if so how to access session been in jsp page
my code is here
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%--
The taglib directive below imports the JSTL library. If you uncomment it,
you must also add the JSTL library to the project. The Add Library... action
on Libraries node in Projects view can be used to add the JSTL 1.1 library.
--%>
<%--
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
--%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Tauvex Search Output</title>
</head>
<body>
Tauvex Search Output
<table>
<c:forEach items="${myDataList}" var="myData">
<tr>
<td>${myData.Fitsfilename}</td>
<td>${myData.RA_START}</td>
<td>${myData.RA_END}</td>
<td>${myData.DEC_START}</td>
<td>${myData.DEC_END}</td>
<td>${myData.telescope}</td>
<td>${myData.STARTOBS}</td>
<td>${myData.ENDOBS}</td>
<td>${myData.FILTER}</td>
</tr>
</c:forEach>
</table>
<%--
This example uses JSTL, uncomment the taglib directive above.
To test, display the page like this: index.jsp?sayHello=true&name=Murphy
--%>
<%--
<c:if test="${param.sayHello}">
<!-- Let's welcome the user ${param.name} -->
Hello ${param.name}!
</c:if>
--%>
</body>
</html>
plz reply soon
thanks a lotthis is what i set in servlet
request.setAttribute("myDataList", myDataList);
request.getRequestDispatcher("someJspFile.jsp").forward(request, response);
how can i access that session attribute in jsp -
Access session bean in ViewObjectImpl
Hi all,
Is it possible to access session bean (Managed bean) in ViewObjectImpl class?
The use case is that I hope to add a whereclause for the VO in a bounded task flow before a specific page fragment using that VO is loaded. Thanks for any advice~~
AndrewThanks for the reply.
So the only way to set a VO where clause before a page fragment is loaded is by :
public boolean refreshRegion(RegionContext regionContext) {
int refreshFlag = regionContext.getRefreshFlag();
if ((refreshFlag == 1 && !this.isPostback())) {
// set the VO where clause here...
Any declarative way like "invokeaction" in the binding of the page fragment to set the where clause? Thanks a lot~ -
Access session variable inside AM module
Is there any way to access session variable inside AM module custom function?
I created one client interface function in AM and want to access one session variable value inside AM custom function.
Please suggest.
ThanksHi
here i need help to find out right approach,my use case are below
1.User will login thorough SSO .
2.Based on used id i need to display user data in table form.
3.User-id will need to display in right corner of page template ( JSF page with this page template)
4.user can update/create new table data by pressing update/createinsert button.
5.Once user press the create new request button,one empty row will popup which have user-id filled automatically (used-id who logged in) and will read only ,so that once user commit the data,DB can update/insert the data with that user-id
so far i have done point 1,2,4 and 5 like
1.i created AM preparesession and store the use id.
2.i have putted whereclause in AM for particular VO and run execute query and able to see particular user data,who logged in.
4.created servicemethod for createinsert in AM and exposed it ,and set used-is table attribute which i got in AM preparession .Now i am able to see new row with user-id in one column in read only form when
Is this the right approach ? and now i am not able to do step 3 so how to display same user-id in pagetemplate as this value is available in AM only. -
Accessing session variables with php
I am trying to access the session variable $_SESSION['MM_Username'] in one of my php pages, but it is somehow showing empty (i.e it does not contain the username that was entered during login).
I checked and confirmed that my login.php function is properly setting the MM_Username session variable by echoing it from the login function.
So why can't I read it from another php file in the same session? Do I need to do something else before the session variables can
be properly read from any php file in the same session? Any help would be appreciated.Here is a test code I am using to access the session variable $_SESSION['MM_username'] from the php page test.php. But it is not working.
I get an empty string all the time for $username. Can any one see something wrong with this code?
<?php require_once('Connections/MyTestingConn.php'); ?>
<?php session_start(); ?>
<?php
$username = "-1";
if (isset($_SESSION['MM_username'])) {
$username = $_SESSION['MM_username'];
echo $username;
else
echo "Eror: can not access session variable";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Test</title>
</head>
<body>
</body>
</html>
Maybe you are looking for
-
I have a Macbook Air (11" if it matters, the tiny one) that was purchased late last year, new. I would like to install Bootcamp and be able to boot into Windows 7, 64 bit. I have a Windows 7 Professional disk, which I would have to find an optical
-
Bug in exists() function of XI Graphical Mapping Tool?
Hi! If I connect a source field with the exists() function in XI Graphical Mapping Tool and the tag exists it returns TRUE, otherwise it returns FALSE, so everything works as expected. But I have to connect a user-defined function with exists(). The
-
I need help Centering a div box to a background image using dreamweaver cs5.5.
I need help Centering a div box to a background image using dreamweaver cs5.5. Everything shift left when viewing on different size monitors? See what I mean at www.woodlandhospice.com
-
By default first tab should open, when user clicks on the Open popup.
Hi Team, I am working on Jdev11g. I am facing problem to Open Fisrt tab from popup when i revisite to it irrespective of the Tab which was earlier selected while closing the popup. Currently i am populating one list for records in ADF table and in fi
-
After Snow Leopard Install on Intel MacBook Pro, my number keys don't work
I installed Snow Leopard recently and have since been unable to use my number keys on my Intel based MacBook Pro. I waited for the 6.1 release, hoping it would fix the bug, but it did not. I have reinstalled Snow Leopard, tried num-lock, but have yet