Forwarding the first request to front pages?

Hi,
I was trying to forward the first request directly to front pages other than the default home page, but it seems that it will go to only portal home page only
for ex. response.forward("/myportal.portal?_nfpb=true&pageLabel=myFrontPage");
but it's going to main Home page not to the front page.
Can any one knows how to resolve this kind of situation?
Thanks in advance!

Hi
Couple of things.
1. Try using this below API to get ProfileWrapper and see if that helps. This is what I use on my side after login action, and I could get user profile details.
ProfileWrapper aProfileWrapper = ProfileFactory.getProfile(loginId, null);
http://download.oracle.com/docs/cd/E15919_01/wlp.1032/e14255/index.html
2. Now, in the backing file, you are setting some properties. Which lifecycle methods are you setting them in. Like in handlePostBack or preRender. For time being, set them in both these methods and add proper System.out.printlns to observer which method is actually getting invoked. handlePostback gets called only when we move across tabs, as per my observation so far. So I set them or get them in preRender method.
Thanks
Ravi Jegga

Similar Messages

  • Cannot get RequestDispatcher for the first request

    Hi everybody,
    I've a servlet which after doing some processes, will forward to another jsp page. I found that the first request of this servlet after Tomcat is restarted always fail -- a blank page is returned instead of the target jsp page of the forward method.
    Below is my code:
    RequestDispatcher rd = null;
    rd = request.getRequestDispatcher('target.jsp');
    if (rd != null) {
    rd.forward(request, response);
    else {
    System.out.println('rd is NULL!!??');
    A blank page is returned because the request.getRequestDispatcher('target.jsp') method returned null and I did not print any output in this case. But the servlet (forward method) works fine for the second or later requests.
    I suspected that the first call of request.getRequestDispatcher('target.jsp') returns null is because the target.jsp is not loaded into the servlet container yet. Am I right? If this is the case, is there anything that I can do to solve it?
    The Tomcat I am using is version 4.1.27
    Many thanks.

    Hi tolmank,
    It works now, thank you very much. But I still don't understand why, can you explain it to me please.
    Thanks

  • Script to get the first word on each page

    Is there a script that would make a list of the first word of each page (or, preferably, create a text box on each page and place the next page's word in that)? My document's all in one story with one text frame on each page, although there are several other frames (header, page number) applied through master pages.

    You wrote:  I changed the numbers to "8.0425in",  "4.5681in",  "8.1275in", "5.4319in" and it mostly worked - it placed the box at exactly 5 inches (X) and at 8.085 inches (Y) instead of 4.5681 inches. Any idea why?
    No. I cannot reproduce the error you describe. I assume you've checked your numbers very closely in the script--I don't normally indicate measurements as strings.
    you wrote: Something wasn't working with the styling - it kept freezing the program -
    What do you mean by "freezing the program"? Is there a specific error message?
    The paragraph style is named "firstword" and is all lowercase letters?
    firstword paragraph style is NOT in a paragraph style group, right?
    Is the first word on any page too long when formatted with the paragraph style "firstword" to fit in the text frame?

  • Can I Auto format the first paragraph on every page of a 20 page document?

    So I have a document that is basically just a numbered list of 200 entries.
    There are 10 entries per page, making it a 20 page document.
    Unfortunately, every so often I am given an additional entry to add, which invariaby is to the middle of the document, and not the end.
    What I'd like to do is if I were to add a new #20 to the document, the old #20 (now #21), being pushed to the next page, would then automatically be formatted using my "StyleA" paragraph style.
    I haven't been able to discover how to do this, which means, in the above example, I need to go to 18 pages and remove the "StyleA" paragraph formatting as in each case following the addition, it is now the second entry on the page. At the same time, I have to apply the "StyleA" paragraph formatting to each first entry of all subsequent pages. If I only had to do this once in a while, it wouldn't be an issue, but as this document is updated regularily, it is getting tedious.
    Nested styles doesn't seem to be an option, since i'm using Numbering which requires a paragraph break to differentiate between each line number, and nested styles seem to apply to every paragraph, unless i'm doing something wrong there.
    I hope this is enough to go on.
    Kraeg

    You are saying that the formatting is different for every 20th paragraph, reagardless of its content, and that it is aways going to be the first paragraph on a page?
    As long as you never deviate from the 20 paragraph cycle this is actually fairly easy to do, you jsut need 20 paragraph styles, 19 of which are based on each other and differ only in the style name. You then set the "next style" attribute to rotate through the list of styles, so the next style for #20 is #1 and the sequence starts over. Now just select the entire block of text from the point where you edited to the end and right-click on the style name for the irst paragraph in the selection, then from the context menu choose Apply <stylename> And Next Style.

  • Why can I only forward the first page of file?

    When I try to forward a PDF file from my Mac it will only send the first page and it is not in file form.

    Pretty sure that's it with a Mac. It just shows the cover page (page 1) in the body of the email.
    When the receiver gets it, they should see the rest.

  • User profile is not avaliable on the first request to portal.

    Hi, I am having a problem with anonymous user profile.
    When user come to our portal for the first time:
    1) In desktop backing file we will initialize it's anonymous profile.
    ProfileWrapper userProfile = SessionHelper.getProfile(SessionHelper.getSession(request, true));
    userProfile.setProperty("UserProperties", "user-region-name", "Germany");
    2) The in Java Page Flow action I could read or change this value, but in the following forwarded .jsp page
    I read only NULL values.
    In the JSP I tried to read it by scriptlet, tags.
    <%
    ProfileWrapper userProfile = SessionHelper.getProfile(session);
    String segmentJ = ((String) userProfile.getProperty("UserProperties", "user-region-name"));
    System.out.println("JSP CODE:"+segmentJ);
    %>
    JSP CODE: [<%=segmentJ%>]
    <profile:getProperty propertyName="user-region-name" propertySet="UserProperties" id="segment"/>
    ruser-region-namee : <c:out value="${segment}"/><br>
    But in the both situations I read only NULL values.
    In the next request(F5) all values are accessible.
    Please adivice how can I read user profile or deal with it in correct way?
    P.S At the same moment I couldn't read user profile in the Struts portlet at all. :(
    Thanks

    Hi
    Couple of things.
    1. Try using this below API to get ProfileWrapper and see if that helps. This is what I use on my side after login action, and I could get user profile details.
    ProfileWrapper aProfileWrapper = ProfileFactory.getProfile(loginId, null);
    http://download.oracle.com/docs/cd/E15919_01/wlp.1032/e14255/index.html
    2. Now, in the backing file, you are setting some properties. Which lifecycle methods are you setting them in. Like in handlePostBack or preRender. For time being, set them in both these methods and add proper System.out.printlns to observer which method is actually getting invoked. handlePostback gets called only when we move across tabs, as per my observation so far. So I set them or get them in preRender method.
    Thanks
    Ravi Jegga

  • Why is my tabbed panel defaulting to the third tab, instead of the first one, when my page loads?

    I have a tabbed panel widget on the home page of our website and it is essential that the audience views the content on the first tab when the page loads.
    Thereafter they can click on the other tabs to view content. I have tried using "Arrange" "Bring to Front" by clicking on the object in the layout and also physically dragging the elements in the layers panel [i.e. re-arranging the order of the layers], however the panel view just keeps reverting back to the third panel which is the first in my layers list. When I try to drag this down to the bottom of my layers for this composition the first panel moves physically in the layout to the third panel.
    The idea is to have the one currently showing at the bottom, "Data Centre..", ALWAYS showing on the top and the one currently showing on the top, "Engineering &.." , ALWAYS showing on the bottom. As I said before, physically re-arranging the order of the layers is not working either.

    Me too. Anyone else got this problem?
    I have 3 panels and no matter how i order the layers it always loads the right-most one first

  • How can a variable in a header be set to display the first header on a page, even if the paragraph format is different, such as a Header 1, Header 2, etc.?

    The type of first header on the page varies depending on the content, such as a Header 1, Header 1 Top, Header 2, Header 2 Top, etc.
    What syntax could be used to define the <$paratext[paratag]> in a Running H/F to pick up the header first header on the page?  Simply using a Running H/F1 with <$paratext[Header 1]> would miss Header 1 Top.
    Thank you.

    You can include more than one paragraph tag in the [paratag] part of a building block. When you include multiple paragraph tags, FrameMaker uses the first paragraph it finds with one of the tags. Separate the tags with commas, as in the following example: <$paratext[Head1,Head2]>
    … says my old 7.0 User Guide. As far as I remember, there have been other threads about how to interpret first paragraph it finds :-}

  • Hows to get Web Results as the first entry on a page

    How do I get rid of the "ads related to" "searches related to" "featured content" in the search results? I would like "web results" to be a the top of the page. Scrolling through all the unwanted results are cumbersome to me..thank you for your time.

    Use Adblock Plus with an Easylist subscription. I do not see those extra links with the search engine I use most of the time.

  • Rtmpte not responding (on the first request)

    I am running adobe media server 4.5 on windows 2008 and for testing purposes I have no firewall enabled. Clients and servers on the same v-lan
    I created .swf on Adobe Flash Pro CS 5.5 with Action Script 3 and support for Adobe Flash 10 and 10.1
    I am calling a swf located on the webroot which is calling rtmpte::/server-ip/app/filename
    I call the swf from IE or Chrome and noting happens, if i right click on the screen, i get adobe player 10 options (zoom in, quality, print, Global settings, etc). I can also see the player's (strobe Media playback) banner (play, pause full screen, etc) at the buttom of the screen If i wait a 5 seconds and i hit refresh the video will play fine.
    If i call the video from the AMS player works fine, but if i go to the server's browser i have the same issue as the clients. 
    If i check the access logs I can see
    Any clues anyone?

    Hi,
    Try editing the ams.ini file. Add server's IP address for the key "ADAPTOR.HTTPIDENT2". Then restart the server.
    Also, swf located in the webroot should call "rtmpte://server-ip/app/filename" not "rtmpte::/server-ip/app/filename".
    Try making an rtmpte connection to the server and check if the request is getting logged in access log.

  • I can only print first 80 or so pages after I download firefox - if I do a system restore and uninstall firefox, the problem goes away... until I download firefox again and then I again can only print the first 80 or so pages - even if I am using IE!

    This began when business increased in January and our print jobs got big (printing invoices off the internet). It can print any small job no problem but if it's over 80 or so pages, it will stop and show a spooling error. I have done system restores and uninstalled firefox and then Internet Explorer will print the big jobs UNTIL I REINSTALL FIREFOX. Then the problem resurfaces whether using firefox or IE!!! Why?! I don't care why - how do I fix it? All 13 other computers use firefox and that is how my staff is trained. I hate IE.

    -> '''Is my Firefox problem a result of MALWARE ??'''
    * Popups Not Blocked - http://kb.mozillazine.org/Popups_not_blocked
    -> Do a MALWARE check with these Malware Scanning programs. You need to scan with all programs because each program detects different malware. Make sure that you UPDATE each program to get the latest version of their Databases before doing a Scan. Also, Close All other Applications (softwares) before Starting to Run Scans.
    * Malwarebytes' Anti-Malware - http://www.malwarebytes.org/mbam.php
    * SuperAntispyware - http://www.superantispyware.com/
    * Spybot Search & Destroy - http://www.safer-networking.org/en/index.html
    * Ad-Aware Free Internet Security - http://www.lavasoft.com/products/ad_aware_free.php
    Check and tell if its working.

  • First request slow

    I have been running weblogic on a development machine for some time now, and
    recently we have gotten a server, and started to test on that
    The server has a faster CPU, and more memory, and so we give the server a
    larger heap size, naturally this speeds up most requests by a great deal,
    but we have noticed that the first request to a page, whether it goes to a
    servlet, or just returns a HTML/JavaScript page (we may move the static
    pages to a more appropriate server at a later date, but anyway), is
    significantly slower on the server than on the development PC.
    The only different in how weblogic is run is that on the server it has 256M
    heap size, whereas it has 32M on the development machine,a nd the
    connectionpools are several times the size on the server.
    Does anyone have any idea of why this might be? or is this likely to be
    something application specific?
    terry

    This is probably what we will do, I was just wondering if we had done
    something obviously 'duh'.
    And that is a simple yet effective plan, I wish that I had thought of it,
    thanks.
    terry
    Mike Reiche <[email protected]> wrote in message
    news:[email protected]...
    >
    You may wish to consider a tool that 'warms-up' WLS by hitting all
    the pages.
    The simplest would be a page with all URLs on them - just click
    on each one.
    mike
    "terry" <[email protected]> wrote:
    The server is also a PC, running the same version of windows
    (NT 4). I'll
    have a look at the jar thing, and, yes, it is just a nuisance
    (unfortunately
    it's the sort of thing that crops up most often when demoing
    a page to
    management or clients)
    terry
    Mike Reiche <[email protected]> wrote in message
    news:[email protected]...
    And the server is... not a PC? What then?
    First requests are slow because the JVM needs to loadthe classes
    from disk the first time. If you deploy your applicationin a
    jar file rather than in a serverclasses directory, itmight be
    a little faster. It sounds like more of a nuisance thana serious
    problem.
    Mike
    "terry" <[email protected]> wrote:
    I have been running weblogic on a development machine
    for some time now, and
    recently we have gotten a server, and started to test
    on that
    The server has a faster CPU, and more memory, and so
    we
    give the server a
    larger heap size, naturally this speeds up most requests
    by a great deal,
    but we have noticed that the first request to a page,
    whether it goes to a
    servlet, or just returns a HTML/JavaScript page (wemay
    move the static
    pages to a more appropriate server at a later date,but
    anyway), is
    significantly slower on the server than on the development
    PC.
    The only different in how weblogic is run is that onthe
    server it has 256M
    heap size, whereas it has 32M on the development machine,a
    nd the
    connectionpools are several times the size on the server.
    Does anyone have any idea of why this might be? oris
    this likely to be
    something application specific?
    terry

  • Adding ADF task flow to page as region fails on first request

    Using JDeveloper 11.1.1.1.0, I've created a simple task flow that executes a method call (to set some bind variables and issue a SQL query), then forwards to a jsff page. I've then added a region to another page and dragged this task flow onto my region.
    When I run the page, I see the following in the log:
    <24-Jul-2009 14:22:29 o'clock BST> <Error> <HTTP> <BEA-101020> <[ServletContext@19304275[app:pipeline module:pipeline path:/pipeline spec-version:2.5]] Servlet failed with Exception
    java.lang.NullPointerException
         at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:234)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
         Truncated. see log file for complete stacktraceAnd the Page Loading animation continues indefinitely. If I make a second request to the same page, the same NullPointerException appears in the log but the page loads successfully. It seems that the first request from any new session doesn't complete, but subsequent requests do.
    Can anyone give me any hints about what might cause the oracle.adfinternal.view.faces.renderkit.rich.FormRenderer to throw a NullPointerException at line 234?

    Hi Branislav.
    Since I don't have the source code for oracle.adf.* and oracle.adfinternal.*, it's very difficult to do any meaningful debugging. Debugging the code that I do have access to (apache packages), appears to show that the oracle rendering class fails when it gets to closing my af:form tag. I've removed the af:form and the page is now working correctly.
    At some point I'm going to have to reinstate this form though :-\

  • Stateful BSP Application - Session is lost for the first page ...

    Hello experts,
    so after changing via redirect to an https site (from http : see Change SSL_ACTIVE) my stateful BSP session is lost for the "first moment".
    When I trigger one event (it doesn't matter which -> hitting a link, pushing a button), on the next page my "stateful context" is back again.
    So I guess that when going through the next reqest/response cycle the BSP context is read from temporary client site cookies (sap-contextid and sap-appcontext)?
    So I want to have my BSP context directly after the redirect. Does anybody know how to check for the cookies and assign to the appropriate session or how to trigger the automatic reading of the cookies which happens after the first request/response cycle?
    Thanks in advance.
    Regards,
    Volker

    Hi Chandra,
    It is very much possible. I have handled similar requirement.
    Just check whether you are passing right attributeInfo.
    If your context attribute is directly under Root context.
    Do like this:
    AttributeInfo attribute     = wdContext.getNodeInfo().getAttribute(IPrivate<Testview>.IContextElement.<ATTRIBUTENAME>);
    wdThis.wdGetAPI().requestFocus(wdContext.currentContextElement(), attribute);
    If your context attribute is under a node(i.e. other than Root say NODE)
    AttributeInfo attribute     = wdContext.node<NODE>().getNodeInfo().getAttribute(IPrivate<Testview>.I<NODE>Element.<ATTRIBUTENAME>);
    wdThis.wdGetAPI().requestFocus(wdContext.current<NODE>Element(), attribute);
    *In this case(if you are using different NODE) you have to make sure that you have created NODE element already and lead selection is set for this created element before setting this focus* 
    Hope this solves your problem
    regards,
    Siva

  • How to locate the first insertion point on every page?

    I need to paste some same anchored objects on every page for exporting RTF format.
    So I need to locate the first insertion point on every page.
    Then, I use the code below (make a simple example):
    for(i = 0; i < app.documents[0].pages.length; i ++){
         app.select(app.documents[0].pages[i].textFrames[0].insertionPoints[0])
         app.paste()
    But when a file has a very long table spread over several pages, the location operation will select the insertion point before the table --- the starting point of the table.
    For instance, a table start on page 3 and end on page 10
    app.documents[0].pages[4~10].textFrames[0].insertionPoints[0])  can't select the first insertion point from page 4 to page 10. (In terms of scripting, the insertion point exists before the very long table starting on page 3.)
    How can I solve the problem? Thanks in advance.

    I dont know exactly what you are trying to do but you can try this. If you have table which runs trough multiple pages, you can first divede this tabel, that cells on separate pages would represent stand alone table. Than you can fit textframe to this table. When addressing indention poin you will get right position.
    In your case when table start at 3rd and ends on 10th page you would get 8 tables in 8 textframes on its own page. If textframes are linked and table is smaller than textframe you will have problem when addressing first insertion point on 4th or any other page. That why you should fit textframe to table:
    var bl=app.activeDocument.pages[1].textFrames[0].insertionPoints[0].baseline
    var tf=app.activeDocument.pages[1].textFrames[0];
    var gb=[tf.geometricBounds[0],tf.geometricBounds[1],bl,tf.geometricBounds[3]];
    tf.geometricBounds=gb;
    Now when you set
    app.activeDocument.pages[1].textFrames[0].insertionPoints[0] you will get position before table or
    app.activeDocument.pages[1].textFrames[0].insertionPoints[-1] you will get position after table

Maybe you are looking for

  • Is Cs6 compatible with windows vista?

    Should i be able to download cs6 to my windows vista frow creative cloud

  • Custom Order Number

    Hi, Can I generate custom order number like "INV-aaa-001". Is there any facility in business catalyst. Please help me. Thanks Raghu

  • How to align eyes in photo montage ?

    I'm doing a "daily photo" montage of me and have more than 500 photos of my face. I just want my eyes to align perfectly in the different photos so when I play them fast, my face is constantly well positioned and blend perfectly with the other photos

  • Open Mail Attachment without having to save file

    I'm pretty sure I should be able to double click the icon for an attachment in Mail and it should open with the program from my preferences. I can't even right click the file, choose open with, and select what I want to open with. Mail just sits ther

  • Multiple entries in the table cabn

    Hello, Can Anyone tell me how is it possible to have multiple entries of the same "atnam" field in the table CABN. It has something to do with changing number. Because I used a wrong select-instruction e.g. select atnam in charact where .... IN ....