UIX and HttpSessions

After handling http events, with HttpSessionListener interface, i noticed that every request against my uix pages are creating new http sessions.
I look for all getSession(true) in my code, and have replaced for getSession().
But it still persists creating new http session at every single uix request.
Even if i call an uix page directly without passing the request to struts actions, it create new sessions.
I'm using uix templates.
JDev 10.1.2.0.0 ( Build 1811 )
ADF UIX, ADF Struts, BC4J
Very Thanks;
haaaa, Steave congratulations for your new adf toy story release, great job;

Thanks Deepak;
But i really don't think that getSession is the cause any more.
The main point is that when i call an uix page WITHOUT templates it does not create any session; and when i call an uix page based on any template it creates;
Working on it i found this from uix developer guide;
Templates are loaded by a new section of the UIX Servlet <page> element: <templates>. Unlike most sub-elements of <page>, this element must be placed in the UIX Components namespace: .......
But i really don't know if it is an normal , and really i don't think so.
Perhaps some thing i'm missing related namespaces (topic that i don't understand until now, if someone has any link i'll apreciate);
Thanks again;

Similar Messages

  • Use UIX and JSP together

    I have some existing jsp application . I want to integrate it with UIX application that is generated from JHeadStart . jsp application is just 10% of whole project.
    I am not sure this is a good way or not . May be We should use JHeadstart to generate JSP more than UIX . but I think it 's more powerful if I use JHeadstart to generate UIX application .
    What do you recommend for this ?
    and if we have to use both together . How dose JSP application pass parameter to UIX application ? and How dose UIX pass parameter to JSP ?. and How UIX use the parameter that 's sent form JSP ?
    thanks in advance

    If JSP is only 10% you might want tpo consider migrating these pages to UIX.
    If this is not an option, you should be able to use both UIX and JSP pages. However, make sure you create separate struts-config.xml files for the JSP-based subsystem and the UIX-based subsystem. This requires two se[parate ViewController projects, that act as one web application. The same setup that has been aplied to Th JHeadstart demo application in Jhs 10.1.2.1. Check out this article from Duncan Mills as well:
    http://www.oracle.com/technology/products/jdev/howtos/10g/StrutsMultiConfigs/struts_multiconfig_howto.html
    One addition to this articel: the source path property of the ViewController projects shopuld be the same as well.
    As far as communication between the pages is concerned: this is no different then between UIX pages. You can pass request parameters around, and since the pages are running in the same web app, they share the same HttpSession.
    Steven Davelaar,
    JHeadstart Team.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Problem with HttpURLConnection and HttpSession.

    Hi,
    Problem with HttpURLConnection and HttpSession.
    I created a HttpSession object in my main class and then called a URL via HttpURLConnection.
    I tried to access the same session object from the servlet called by the URL . but the main session
    is not returned a new seperate session is created.let me know how can we continue the same session in
    the called URL also which is created in main class.
    Thanks
    Prasad

    You are not supported to create a HttpSession by java client. Only J2EE web container can create it.

  • UIX and Struts ActionForm

    Hi,
    Can I use Struts ActionForm and ADF UIX?
    Thanks

    The "Simple Hello World sample using ADF UIX and JDeveloper 10g Preview" application integrates Struts with ADF UIX.
    http://jjacobi.blogspot.com/2003_11_30_jjacobi_archive.html
    Simple ADF UIX User Input Application
    http://www.oracle.com/technology/products/jdev/howtos/10g/adf_uix_userinput_ht/index.html

  • Uploading xml file using ADF UIX and storing in ordsys.orddoc field

    I am using ADF UIX and I am using the messageFileUpload tag to upload an XML file into the database (the file contains special characters like hyphens, apostrophes, $, etc). Once in the database I have a procedure which puts it into a clob field using the dbms_lob package. However, what exactly does ordsys.orddoc do with special characters? If I debug my procedure I see that 1 of 4 hyphens and 3 apostrophes have been turned into a character that looks like a square. Anyone know what is going on?

    It should pass binary information only, no conversion at all.
    The conversion is likely in messageFileUpload or the dbms_lob package you are using. Or you may need to tell DBMS_LOB the character set the XML file is in?
    You may want to upload the file using the interMedia tag library... Using uploadFormData?
    http://www.oracle.com/technology/software/products/intermedia/htdocs/descriptions/tag_library.html
    http://www.oracle.com/technology/products/intermedia/htdocs/jsptaglib/html/toc.htm
    Larry

  • ADF UIX and Javascript

    Hello,
    I am new in ADF UIX...
    I have a table in ADF UIX and I would like to use some my javascript functions. I know I have to set: <table proxied="true">....</table> but where I can write my functions, in an included file ? I mean, how does the interaction between the XML configuration file and javascript work ?
    Thank in advance,
    Henry

    Hi Rade Todorovich,
    As mentioned previously, if you had placed the javascript as indexed child of head element it would be fine.
    <Head> is named child of <metaContainer> which inturn is named child of <document> element. The example below should make it clear.
    This is how the UIX document would be
    <?xml version="1.0" encoding="windows-1252"?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ui="http://xmlns.oracle.com/uix/ui"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:html="http://www.w3.org/TR/REC-html40"
    expressionLanguage="el">
    <content>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
    <provider>
    <!-- Add DataProviders (<data> elements) here -->
    </provider>
    <contents>
    <document>
    <metaContainer>
    <!-- Set the page title -->
    <head title="test">
    <contents>
    <!-- case 1 -->
    <script source="./cabo/js/test.js"/>
    <script>
    <contents>
    function theFunction()
    alert('the function');
    </contents>
    </script>
    </contents>
    </head>
    </metaContainer>
    <contents>
    <body>
    <contents>
    <form name="form0">
    <!-- case 2 -->
    <contents>
    <script>
    <contents>
    function hi()
    alert('hi');
    </contents>
    </script>
    <button text="call-hi" name="fn" onClick="return hi();"/>
    <button text="call-theFunction" name="fn1" onClick="return theFunction();"/>
    </contents>
    </form>
    </contents>
    </body>
    </contents>
    </document>
    </contents>
    </dataScope>
    </content>
    <handlers>
    <!-- Add EventHandlers (<event> elements) here -->
    </handlers>
    </page>
    There are two usages:
    Case 1
    In your html it would just appear the way you would normally write a JS function with in the head
    <html>
    <head>
    <title></title>
    <META>
    <script language="javascript" src="./cabo/js/test.js">
    <!-- case 1-->
    <scirpt language="javascript">
    theFunction()
    </script>
    </head>
    <!-- case 2 -->
    <form ....>
    </form>
    <script language="javascript">
    function hi()
    alert('hi');
    </script>
    </html>
    Case 2
    As such <script> element can occur in HTML document.
    as mentioned in http://www.w3.org/TR/html401/interact/scripts.html#h-18.2.1
    In the same way UIX also allows the use of script element with in its <body> element.
    With case 2 you can see the way the script gets inlined in the HTML document. Please run the UIX and view source for the rendered page. It should become obvious.
    Thanks,
    Vijay Venkataraman

  • Adf uix and 800*600 resolution

    We need to develop an application with adf uix and 800*600 resolution.
    It seems that uix rendering is not so fine with 800*600 resolution.
    What is the suggested workaround to this problem?
    Do we need to customize the look and feel (and what customization steps do we need to perform) or what else?
    Thanks in advance, Mauro

    800*600 did work until for a couple of days ago when it did start saying "sync. out of area"
    Its a siemens something screen... 5 years old...
    i did look at the cable to the screen one "pigg" of the 15 "piggs" are missing.. could it be some problem there... all other res. are working without a problem..
    the screen should work at 800*600 at 100hz

  • UIX and JSF

    Wish you all a very happy new year !!
    Any comparisons between Oracle's UIX and JSF.
    Thanks in advance

    As one of the JSF EG members, and a lead developer on the UIX project at Oracle, I'm pretty sure I can help!
    I think of the currently available version of UIX as an ancestor of JSF - a number of the ideas in JSF originate from work we did at Oracle. JSF also resolves some of the architectural limitations we've encountered as we've moved UIX forward.
    We've publicly committed to moving UIX onto the JSF framework; you can read about the details at:
    http://otn.oracle.com/products/jdev/collateral/papers/9.0.5.0/adfuix_roadmap/adfuix_roadmap.html
    Some of the features UIX will bring to the JSF table include a large high-level component set, customizable look-and-feels, WYSIWYG development, and declarative XML UI development.
    BTW, just to be thorough, since I've seen this misstated elsewhere, UIX (and the ADF framework in general) are not tied to the Oracle J2EE server, or the Oracle database. They can be deployed to other servers and other databases.
    -- Adam Winer (EG member)

  • Are JDev9i UIX and BC4J application server dependent?

    Are UIX and BC4J application server dependent?
    If I use JDeveloper9i to build an application using UIX XML + BC4J + Java, then can this be deployed on IBM Websphere, Web Logic, Oracle 9iAS, etc...?

    BC4J and UIX are not tied to any application server. They are "just" a collection of jar files that you can deploy to any application server.
    Check out the how-to section to see the doc about deploying BC4J to other application servers at:
    http://otn.oracle.com/products/jdev/howtos/content.html
    (more info in the online help).
    Also check out otn's home page later today for a daily feature about BC4J openness.

  • File upload, download using ADF UIX and not JSP

    I have examples for the file upload, download using JSP
    But I want to use ADF UIX. Look and feel in this is impressing and I want to use this. Any one have example for this.
    Users will select a file from their desktop
    This will be stored into the database (Any document. Word, Excel)
    When they query the records then the UIX column need to give a hyperlink. Clicking on the link should prompt to download the file to the local system

    Sure, I use the Apache Commons File Upload package, so that is what I will discuss here ( [Commons File Upload|http://commons.apache.org/fileupload/] ).
    The Commons File Upload uses instances of ProgressListener to receive upload progress status. So first create a simple class that implements ProgressListener:
    public class ProgressListenerImpl implements ProgressListener {
        private int percent = 0;
        public int getPercentComplete() {
            return percent;
        public void update(long pBytesRead, long pContentLength, int pItems) {
            if (pContentLength > -1) { //content length is known;
                percent = (new Long((pBytesRead / pContentLength) * 100)).intValue();
    }So in your Servlet that handles file upload you will need to create an instance of this ProgressListenerImpl, register it as a listener and store it in the session:
    ServletFileUpload upload = new ServletFileUpload();
    ProgressListenerImpl listener = new ProgressListenerImpl();
    upload.setProgressListener(listener);
    request.getSession().setAttribute("ProgressListener", listener);
    ...Now create another servlet that will retrieve the ProgressListenerImpl, get the percent complete and write it back (how you actually write it back is up to you, could be text, an XML file, a JSON object, up to you):
    ProgressListenerImpl listener = (ProgressListenerImpl) request.getSession().getAttribute("ProgressListener");
    response.getWriter().println("" + listener.getPercentComplete());
    ...Then your XMLHttpRequest object will call this second servlet and read the string returned as the percent complete.
    HTH

  • XSQL and HttpSession object availability

    Hello,
    How to access the very convenient unique HttpSession unique ID?
    The one we have this way within a servlet:
    HttpSession session = request.getSession(true);
    System.out.println(session.getId());
    Thank You in advance
    JRoch
    null

    You can access this easily by writing a custom action handler. Here is the code for a custom action handler that sets the value of the Http Session id into a page parameter named "session-id".
    import oracle.xml.xsql.*;
    import java.sql.SQLException;
    import org.w3c.dom.Node;
    import javax.servlet.http.*;
    public class GetSessionId extends XSQLActionHandlerImpl {
    public void handleAction( Node rootNode ) throws SQLException {
    XSQLPageRequest req = getPageRequest();
    if (req.getRequestType().equals("Servlet")) {
    HttpSession sess =
    ((XSQLServletPageRequest)req).getHttpServletRequest().getSession(true);
    if (sess != null) {
    req.setPageParam("session-id",sess.getId());
    }Then from within your XSQL page, you can say:
    <xsql:action handler="GetSessionId"/>
    and then later in the page refer to the parameter named session-id to access it's value as a lexical or bind parameter.

  • Struts and HttpSession

    Hi guys, i think this is not te correct forum to ask about struts, but i realy need some help with that, i need to get the ID of a Http session and use this ID inte action class of struts for others task, can anyone help me on how to get the http session id from struts 2
    thanks in advance

    Use HttpSession.getId() [1]. Make it a point to read the documentation, you'll get more than enough help there and you'll learn as well.
    [1] http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/HttpSession.html#getId()
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • IE6 and HttpSession

    My JSP's/Servlets use simple HttpSession objects that expire when the browser is closed. It is my understanding that if a browser has cookies disabled that URL rewriting is used. I've been testing in IE6 and when cookies are restricted all my session objects are all null. So it appears URL writing isn't occuring.
    Is there anything I have to do to 'turn on' URL rewriting? Any other suggestions?

    Hi Jason,
    Read this:
    http://support.microsoft.com/default.aspx?scid=kb;EN-US;q293222
    http://support.microsoft.com/support/kb/articles/q293/2/22.asp?LN=EN-US&SD=gn&FR=0&qry=cookie&rnk=10&src=DHCS_MSPSS_gn_SRCH&SPR=IE600
    --Paul                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • OracleAS 9.0.4 Clustering and HttpSession

    Does OracleAS 9.0.4 Clustering replicate HttpSession state between cluster nodes or just stateful session bean state?
    Thanks
    Bill

    "Checking operating system version: must be 5200 Failed <<<<"
    So don't install this version on AIX 5.3. AS 9.0.4 has been desupported. Please don't get yourself into the hell of installing it and especially not on AIX.
    Install 10.1.2.0.2, and not before you have read the certification notes on MetaLink and taken every step you need to install on this challenging platform!

  • UIX And MS Internet Explorer

    Hi.
    Why does MS Internet Explorer always give (Error in JavaScript) when usin UIX.
    Netscape and Mozilla firefox does not give any errors.
    Is there any way to solve the problem of the Internet Explorer (Because most of people use MS Internet Explorer).
    Thank's.
    Omar Dawod.

    Hello
    I think i am spotting the iceburg of the problem.
    I managed to recogonize the pattern the leads to such problem, it may be caused by my specific application, because i was not able to re-repoduce it. I will explain the behaviour and the solution more thoroughly when i find the solution... it has something to do with the fact that the URL seems to get stuck to certain address while navigating.. I will resolve it but still do not understand why Mozilla does not have it

Maybe you are looking for