J2ee security and page flow problem

To give more details about the problem I have, user likes to put a URL in the browser, then press enter. User likes to see the running results. However, user is not able to see the results because j2ee security requires user log in. After sucessful login, user is going to see the index page. My question is how user be able to view his result page after login.
cheers.

In the future, please post JSP/Servlet questions in the appropriate forum: http://forum.java.sun.com/category.jspa?categoryID=20
This is pretty simple to do:
1) set up a Filter that applies to a specific url pattern, such as " /protected/* " so that the Filter is invoked when resources within the "protected/" path get accessed
2) in the Filter code, store the user's desired path in the session scope (let's call it "loginRedirectFrom") and redirect the user to the login screen.
3) in your login servlet/jsp, after the user has been verified, redirect to the url you stored in "loginRedirectForm".

Similar Messages

  • Animated gif and page refresh problem

    Animated gif and page refresh problem
    Hi There,
    I'm trying to build a simple "Please wait......" screen using jsp and javascript.
    So far all is going well except that my animatate gif keeps refreshing everything the page is refresh.
    Is there a way the i can prevent the body of the page from refreshing?
    below is my sample code:
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <jsp:useBean id="StatusBean" class="com1.CandidateRelease" scope="session"/>
    <html>
    <script LANGUAGE="JavaScript">
    function refresh()
    <% if (StatusBean.isRunning()) { %>     
         //setTimeout("refresh()", 1000);
         setTimeout("location='status.jsf'", 1000);
    <% }else{%>
         window.location= "busStopAdmin.jsf";
    <%} %>
    </script>
    <head>
         <script LANGUAGE="JavaScript">     
              refresh();
         </script>     
    </head>
    <body>
         <img id="myImage" src="../img/ojp_wait.gif" alt="" width="151" height="36">
    </body>
    </html>

    Animated gif and page refresh problem
    Hi There,
    I'm trying to build a simple "Please wait......" screen using jsp and javascript.
    So far all is going well except that my animatate gif keeps refreshing everything the page is refresh.
    Is there a way the i can prevent the body of the page from refreshing?
    below is my sample code:
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <jsp:useBean id="StatusBean" class="com1.CandidateRelease" scope="session"/>
    <html>
    <script LANGUAGE="JavaScript">
    function refresh()
    <% if (StatusBean.isRunning()) { %>     
         //setTimeout("refresh()", 1000);
         setTimeout("location='status.jsf'", 1000);
    <% }else{%>
         window.location= "busStopAdmin.jsf";
    <%} %>
    </script>
    <head>
         <script LANGUAGE="JavaScript">     
              refresh();
         </script>     
    </head>
    <body>
         <img id="myImage" src="../img/ojp_wait.gif" alt="" width="151" height="36">
    </body>
    </html>

  • Struts/servlet page flow problem due to j2ee security

    Whe I type url such as http://localhost:7777/myapp/action.do, I want to see the execution result page from this action. However the result page will always be index.jsp because j2ee security which I have a loginaction.do and its result page is index.jsp. How can I have overcome this problem.
    Thanks,

    To give more details about the problem I have, user likes to put a URL in the browser, then press enter. User likes to see the running results. However, user is not able to see the results because j2ee security requires user log in. After sucessful login, user is going to see the index page. My question is how user be able to view his result page after login.
    cheers.

  • Javascript and page flows

    Hi
    I have my javascript code snippet as below in my jsp page (using page flows):-
    <SCRIPT>
    var contextName;
    contextName="<%= request.GetContextPath() >";
    </SCRIPT>
    The problem is I can never get the above value dynamically computed in my app
    . The value of contextName is always the static string - <%= request.GetContextPath()
    and not its value .Is there any way I can get the above expression to be evaluated and the evaulated
    value be assigned to contextName.
    Thanks
    Kar

    Kar,
    I think the problem here is that scriptlets (<%= ... %>) aren't
    evaluated in a .js file, only in .jsp files. This is because they are a
    JSP feature. I recommend you declare the variable you need in your .js
    file in a small script section in your JSP that refers to the .js file,
    or some variation of this.
    Thomas
    kar piyush wrote:
    Eddie
    Thanks for pointing out the typo :) . Actually the problem I am facing is that
    I am trying to use an external javascript file in a template file as
    <netui-template:includeSection name="jscriptSection" defaultPage="/resources/scripts/generic.js"></netui-template:includeSection>
    where generic.js has my javascript code . This is basically spoofing the page
    flow framework to read an external javascript file (Which it does properly ---
    well almost). The problem is it is never able to evaluate the <%= request.getContextPath()%>
    tag and spits it out as is . However if I change the name of generic.js to generic.jsp
    and have the javascript code in it as is, at runtime it is able to proplely evaulate
    the javascript contents in generic.jsp . So right now I have all my javascript
    code in a .jsp file (which Idonot like ). I want to be able to create .js file
    and hook it into the template framework in some way so that it is able to successfully
    evaulate expressions.
    Can u share the syntax or a tip as to how to include a .js file in a template

  • Page Flow Problem

    Hello,
    Im new for jdeveloper. Im ORAforms pl/sql programmer and no deep knowledge about java.
    Im following the sample on https://blogs.oracle.com/shay/entry/for_some_reason_one_common.
    Im trying this sample as forms manage security and before im diving deep to jdeveloper i need to study basic for this new IDE & framework{managed beans,biding..etc}.
    And built it in scratch but i cannot make it navigate to another page after click the button heres the code i dont know how to explain much because im new maybe sharing the code would help.
    My work not complete yet as when password not correct. just want first to navigate the welcome page when return value is GOOD.
    Only need also when return value is BAD just display dialog or error message.
    How to bind the manage bean?
    VERSION : Studio Edition Version 11.1.2.3.0
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
        <jsp:directive.page contentType="text/html;charset=UTF-8"/>
        <f:view>
            <af:document title="LogInPage.jspx" id="d1">
                <af:form id="f1">
                    <af:panelStretchLayout topHeight="90px" startWidth="100px" id="psl1">
                        <f:facet name="top">
                            <af:panelStretchLayout id="psl4" startWidth="526px" endWidth="326px" topHeight="5px"
                                                   bottomHeight="0px">
                                <f:facet name="bottom"/>
                                <f:facet name="center"/>
                                <f:facet name="start">
                                    <af:image source="/images/njc_banner.PNG" id="i1"/>
                                </f:facet>
                                <f:facet name="end"/>
                                <f:facet name="top"/>
                            </af:panelStretchLayout>
                        </f:facet>
                        <f:facet name="center">
                            <!-- id="af_twocol_left_full_header_Stretched"   -->
                            <af:decorativeBox theme="dark" id="db2">
                                <f:facet name="center">
                                    <af:panelStretchLayout startWidth="334px" id="psl2">
                                        <f:facet name="center">
                                            <af:decorativeBox theme="medium" id="db1">
                                                <f:facet name="center"/>
                                            </af:decorativeBox>
                                        </f:facet>
                                        <f:facet name="start">
                                            <af:decorativeBox id="db3" theme="medium" dimensionsFrom="parent">
                                                <f:facet name="center">
                                                    <af:panelFormLayout id="pfl1" inlineStyle="height:365px;">
                                                        <f:facet name="footer">
                                                            <af:panelBorderLayout id="pbl1"
                                                                                  inlineStyle="width:275px; height:27px;">
                                                                <f:facet name="start">
                                                                    <af:group id="g1">
                                                                        <af:panelBorderLayout id="pbl2"
                                                                                              inlineStyle="height:173px; width:219px;">
                                                                            <f:facet name="right">
                                                                                <af:group id="g3">
                                                                                    <af:spacer width="38" height="16"
                                                                                               id="s2"/>
                                                                                    <af:group id="g2">
                                                                                        <af:commandButton text="Log In"
                                                                                                          id="cb1"
                                                                                                          action="login_action()"/>
                                                                                    </af:group>
                                                                                </af:group>
                                                                            </f:facet>
                                                                        </af:panelBorderLayout>
                                                                    </af:group>
                                                                </f:facet>
                                                            </af:panelBorderLayout>
                                                        </f:facet>
                                                        <af:spacer width="179" height="65" id="s1"/>
                                                        <af:inputText label="Username" id="it1" showRequired="true"
                                                                      requiredMessageDetail="Please Enter Your Username"
                                                                      autoSubmit="true" autoComplete="on" required="true"/>
                                                        <af:inputText label="Password" id="it2" secret="true"
                                                                      showRequired="true"
                                                                      requiredMessageDetail="Please Enter Your Password"
                                                                      autoSubmit="true" required="true"/>
                                                    </af:panelFormLayout>
                                                </f:facet>
                                                <f:facet name="top"/>
                                            </af:decorativeBox>
                                        </f:facet>
                                    </af:panelStretchLayout>
                                </f:facet>
                            </af:decorativeBox>
                        </f:facet>
                    </af:panelStretchLayout>
                </af:form>
            </af:document>
        </f:view>
    </jsp:root>
    My Managed Bean
    package njchis;
    import oracle.adf.view.rich.component.rich.input.RichInputFile;
    import oracle.adf.view.rich.component.rich.input.RichInputText;
    import oracle.adf.view.rich.component.rich.nav.RichCommandButton;
    import java.sql.*;
    import oracle.jdbc.OracleDriver;
    public class GetUserName {
        private RichInputText it1;
        private RichInputText it2;
        private RichCommandButton cb1;
        public void setIt1(RichInputText it1) {
            this.it1 = it1;
        public RichInputText getIt1() {
            return it1;
        public void setIt2(RichInputText it2) {
            this.it2 = it2;
        public RichInputText getIt2() {
            return it2;
        public void setCb1(RichCommandButton cb1) {
            this.cb1 = cb1;
        public RichCommandButton getCb1() {
            return cb1;
        public String login_action() {
            // Add event code here...
            String user = this.getIt1().getValue().toString();
            String pass = this.getIt2().getValue().toString();
            Connection conn;
            try {
                conn = getConnection();
                Statement stmt = conn.createStatement();
                ResultSet rset = stmt.executeQuery ("SELECT 'x' FROM itdept.OFFICE_USERS where OFFICE_EMP_NO = '"+user+"' and OFFICE_PASS = '"+pass+"'");
                if (rset.next())  {
                    conn.close();
                       return "good";                       
                conn.close();
            } catch (SQLException e) {
                System.out.println(e);
            return "bad";
        public static Connection getConnection() throws SQLException {
            String username = "itdept";
            String password = "itdept";
            String thinConn = "jdbc:oracle:thin:@0.0.0.0:1521:XE";
            DriverManager.registerDriver(new OracleDriver());
            Connection conn =
                DriverManager.getConnection(thinConn, username, password);
            conn.setAutoCommit(false);
            return conn;
    PAGE FLOWS
    <?xml version="1.0" encoding="windows-1252"?>
    <faces-config version="2.0" xmlns="http://java.sun.com/xml/ns/javaee">
      <application>
        <default-render-kit-id>oracle.adf.rich</default-render-kit-id>
      </application>
      <navigation-rule>
        <from-view-id>/LogInPage.jspx</from-view-id>
        <navigation-case>
          <from-outcome>good</from-outcome>
          <to-view-id>/Welcome.jspx</to-view-id>
        </navigation-case>
      </navigation-rule>
      <managed-bean>
        <managed-bean-name>GetUserName</managed-bean-name>
        <managed-bean-class>njchis.GetUserName</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
      </managed-bean>
    </faces-config>Edited by: ck on Nov 8, 2012 1:31 AM

    hello,
    thank you for your reply.
    i will try your solution about the message but how about the navigation page to Welcome.jpfx when it returns GOOD?
    I will try first this simple thing before im going to deep on adf. I think adf is MVC thing.Need more study first but before that i need to familiar with all LAYOUT components and the IDE itself.
    thank you.
    Edited by: ck on Nov 8, 2012 9:56 AM

  • Warn About Changes and page flow

    Hi, in dev guide, it is said:
    For any single page, or first page in a navigation flow where the retainAM URL parameter value is set to Y (and the pages share the same root UI application module) as you navigate between each page, set the Warn About Changes property to True on the pageLayout region.
    in other word, if pages in page flow are in the same AM, after changing am in the first page, anytime leave the following page to click the home link(oracle branding), the WarnAboutChanges msg should be alerted?
    But,
    Now I have two pages, using the same AM, set the two pages' property "Warn About Changes" to true.
    And I want to implement this: after inputing some words, and click a sunmitButton forward to pageB(add retainAM = Y in setForwardURL in code), then in pageB don't do anything, but click home link, WarnAboutChanges message does not alert.
    Could anyone help to explain this?
    And how to implement the page flow warnAboutChanges?
    And how root application module to set if different pages in different AMs?
    PreThanks to you very much!

    But,
    Now I have two pages, using the same AM, set the two pages' property "Warn About Changes" to true.
    And I want to implement this: after inputing some words, and click a sunmitButton forward to pageB(add retainAM = Y in setForwardURL in code), then in pageB don't do anything, but click home link, WarnAboutChanges message does not alert.
    Could anyone help to explain this?
    I asked u previously also read dev guide properly, here it what dev guide say:
    "By default, the Warn About Changes property is set to True for each of the items in this list except for the
    OASubmitButtonBean whose default value is False (a ccording to the UI guidelines, the "Warn About
    Changes" check should be performed for all submit button instances except for Cancel, Apply and Submit
    buttons). If you want to explicitly enable the check for a submit button, set this property to True. Note that can
    also set it programmatically by calling OASubmitButtonBean.setWarnAboutChanges(pageContext,
    Boolean.TRUE) in processRequest()."
    I hope this answers ur question.
    And how to implement the page flow warnAboutChanges?
    Read "Save Model ('Warn About Changes')" in dev guide :).And how root application module to set if different pages in different AMs?
    You can nest differnt AMs in on AM in AM wizard.--Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • ADF Menu Model and page flows

    Hi! I created two Unbounded task flows. One task flow for ADF sub_menu (adfc-paraugs-config.xml) and second task flow for ADF root_menu (adfc-config.xml) (see http://my.jetscreenshot.com/2677/20100708-nite-111kb).
    How can I map records between two unboundes task flows? For example in adfc-config.xml page flow I have Search page (meklesana.jspx) and I want to find records in this search page and then select one record and navigate to other page flow (adfc-paraugs-config.xml) jspx page (pasesDati.jspx) You can see page flow in link above. I want to find records in meklesana.jspx and show them in pasesDati.jspx. What to do and what are Your solutions?
    I can say that in meklesana.jspx page I had used Page Fragment element to create Search page.
    Best Regards

    Hi ADFboy! And how can I create sub menu in one task flow?
    I used this tutorial: http://www.oracle.com/technology/products/jdev/11/cuecards111/adf_set_43/ccset43_ALL.html
    PLZ can You check this out and say what I'm doing wrong?
    Best regards!

  • Master Page Flow Problems

    I am trying to flow 4 xml documents into structured FrameMaker template that is 4 pages. The last page has 3 different master page versions. I have set the StructMasterPageMaps up to direct the page flow for the final page to the correct back page master page, depending on the value for the version attribute. The data is not flowing correctly. The master page that precedes this back master page is 2 column. If the data for this page only flows into the first column, and the second column is empty, the back page data flows into the correct version of the back master page. If the second column has data in it, the back page flows onto a new page but applies the master page used by the preceding data. It doesn’t apply the correct back master page version.
    Does anyone know how I can correct this?

    Michael,
      It is certainly posible to map a master page to an element that does not contain text directly but is the root of a sub-hierarchy of elements. Examples include elements for a chapter or list.
         --Lynne

  • Applet and Page flow communication

    Hi
    we have a design requirement where we need to have access to various peripherals
    like cash drawer,point of sales printer etc form the client workstation. We are
    usign workshop for development and we are looking into integrating an applet into
    the pageflow(actually the pages created using page flows) and need to be able
    to pass data into the applet at run time from the page (created usign page flow)
    like commands to open the cash drawer, to start and end the printing .
    Is it possible to pass data from the pages created using page flows into the applet
    at run time? if so could someone share a small code snippet.
    Thanks
    Keith

    Keith--
    You can do this if you use the JSP to render data into the applet's
    <param/> tags. For example, you can evaluate expressions that bind to
    the JPF / action form / request / etc and render the output using the
    <netui:content> tag.
    In your JSP, this might look like:
    <param
    name="<netui:content value="{pageFlow.someName}"/>
    value="<netui:content value="{pageFlow.someValue}"/>"
    />
    If the value of {pageFlow.someName} is foo and the value of
    {pageFlow.someValue} is bar, then this would write:
    <param name="foo" value="bar"/>
    If you have a data set to render in <param/> tags, you can certainly
    nest something like the example above inside the <netui-data:repeater>
    and use the "container.item" binding context.
    Hope that helps...
    Eddie
    keith shacks wrote:
    Hi
    we have a design requirement where we need to have access to various peripherals
    like cash drawer,point of sales printer etc form the client workstation. We are
    usign workshop for development and we are looking into integrating an applet into
    the pageflow(actually the pages created using page flows) and need to be able
    to pass data into the applet at run time from the page (created usign page flow)
    like commands to open the cash drawer, to start and end the printing .
    Is it possible to pass data from the pages created using page flows into the applet
    at run time? if so could someone share a small code snippet.
    Thanks
    Keith

  • Problem with ADF security and task flow calls

    Hi.
    I am using JDeveloper 11.1.2.0.0.
    I encountered a problem when tried to apply ADF security to my application.
    The way to reproduce the problem:
    1. Create new Fusion Web Application;
    2. Import Business Components from Tables from any existing schema and add at least one table to the ApplicationModule.
    3. Create "welcome page" (for instance, welcome.jsf). Add a button with fixed action outcome "test".
    4. Create test page, for instance, test.jsf. Drag and drop any view object from Data Controls onto the page and create a form with navigation controls. Add a button with fixed action outcome "return".
    5. Create bounded task flow, name it "test", drag and drop our test page on it - the page will be the default activity. Add a task flow return activity. Add a control flow case from the default view activity to the return activity, set From Outcome property to "return". So our return button should cause the task flow to exit.
    6. Open adfc-config.xml in diagram mode and place our welcome page on it. Then drag and drop the test task flow to create a task flow call activity. Add a control flow case from welcome page to task flow call activity, set the From Outcome property to "test". So our test button should call the test task flow.
    7. Configure application to run the unbounded task flow starting with Welcome view activity.
    At this point all works as expected: when application runs, the welcome page is displayed with test button. Pressing the test button results in displaying the test page, return button leads back to the welcome page.
    Now let's configure ADF Security.
    Run the ADF Security configuration wizard, choose ADF Authentication and Authorization.
    On the second page select Form-Based Authentication, check the Generate Default Pages flag.
    On the third page choose No Automatic Grants.
    On the next page keep the Redirect Upon Successful Authentication unchecked. Press Finish.
    Open jazn-data.xml to configure roles, users and resource grants:
    1. Create application role test-role.
    2. Grant the test-role privileges to view the test task flow.
    3. Create user and grant him the test-role.
    Now we have the public available welcome page and the test page with restricted access.
    When application runs, the welcome page is displayed as expected. Pressing the test button redirect us to auto-generated login page. After successful authorization the test page is displayed. But nothing happens if we click now the return button for the first time. When we click the return button once more, the application crushes with Error-500 and message "Target Unreachable, identifier 'bindings' resolved to null". The exact error trace depends on UI control bindings, but looks like this:
    javax.el.PropertyNotFoundException: //C:/Users/DUDKIN/AppData/Roaming/JDeveloper/system11.1.2.0.38.60.17/o.j2ee/drs/Test1/ViewControllerWebApp.war/test.jsf @10,120 value="#{bindings.Id.inputValue}": Target Unreachable, identifier 'bindings' resolved to null
         at com.sun.faces.facelets.el.TagValueExpression.isReadOnly(TagValueExpression.java:122)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer._getUncachedReadOnly(EditableValueRenderer.java:476)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.getReadOnly(EditableValueRenderer.java:390)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.wasSubmitted(EditableValueRenderer.java:345)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.decodeInternal(EditableValueRenderer.java:116)
         at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.decodeInternal(LabeledInputRenderer.java:56)
         at oracle.adf.view.rich.render.RichRenderer.decode(RichRenderer.java:342)
         at org.apache.myfaces.trinidad.render.CoreRenderer.decode(CoreRenderer.java:274)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.__rendererDecode(UIXComponentBase.java:1324)
    (the rest of lines skipped).
    Any suggestions?
    Edited by: user13307311 on Apr 16, 2013 11:39 PM

    @Lovin_JV_941794
    The welcome page is public available since it does not have appropriate PageDef file.
    Login page comes not from the welcome page, it comes after attempt to access the test page. So after the login succeeded the test page appears, because redirect to welcome page after successful login is not configured. I do not need to return the welcome page at this moment, I need to go to the test page.
    It seems the task flow call stack to be destroyed after redirect to login page.
    Edited by: user13307311 on Apr 17, 2013 12:45 AM

  • Security and packet loss problem

    Guys,
    I'm using WRTP54G-NA and I have 2 problems with it...
    First one: is about security, if I access direclty http://192.168.0.1/admin/voice or any other subfolder it doesn't ask me the password...
    The other problem is that I can't let my connetion 100%, It always has packet loss, in both way, wired and wireless (more in wireless), I had already tried to fix the Negotiation to 100Mbps Full duplex, changed the MTU values for different values and there is always packet loss...
    I tried to plug my pc directly to the cable modem and it works perfectly...
    I'm using firmware version 3.1.24, I also tried with 3.1.27, but with 3.1.27 the number of problem increases including now ones...
    Any advice ??
    http://brunozp.com || http://brunozp.com.br
    Solved!
    Go to Solution.

    I don't think that the rotuer will ask you for username & pasword once you login to setup page ... Only once it will show you the same when you are typing http://192.168.0.1 on the browser address bar ...

  • Album view and Cover Flow problem

    Well, im going to get one of the new ipods soon and they have that Cover Flow feature which is pretty cool. Anyway i have a problem, when i try and sort them by album, i go to Album View and even if the album names are the same, they arnt in the same box, because they have various artists. Ill show some pics now.
    http://img530.imageshack.us/img530/9604/probz1nm0.jpg
    See how they arnt in the same box because of their artists? Then when i go to Cover Flow tab, to see how it will look on my ipod it comes up like this
    http://img530.imageshack.us/img530/6366/probz2wu4.jpg
    All the ones without artcovers so far, are all the songs from the album "MOS" like you saw in the previous picture. So does anyone know how to fix that problem? Because i dont want like 20 MOS albums showing up on the Ipod with only 1 song in each of them when i can have them all in one.
    Thanks

    You need to select the "Compilation" button on each to overide the fact that there is a different artist for each song. think about it, the chances of two different artists having the same name for an album is pretty big. How is any music jukebox supposed ot know that they're the same....
    select all the songs, open apple/control "I" and click on compilations on bottom right.

  • Pages and page setup problems

    I love my mac and love pages but sometimes I wanna chuck it out the window.
    Here is why - I have been working on my thesis and was inserting some table in the pages doc. No problem. Except that the tables are in horizontal layout/orientation while the doc is in vertical layout/orientation so the table doesnt fit in. Now on a PC I would to to page setup and change the page layout/orientation for that page only except it seems it doesnt work here. I change the layout/orientation for all pages or no pages. Same thing is if I want to have an envelope and a letter in the same document. Same thing in Word for mac. Which is kind of a problem as it means I have to create a template on my PC and then move it to my mac to work.
    Am I missing something silly? Is there a trick I can do?

    Sparky1979 wrote:
    Which is kind of a problem as it means I have to create a template on my PC and then move it to my mac to work.
    Sparky,
    Creating a template in Word in an attempt to work around a program design choice in Pages would be a very bad option, with little chance of success.
    A landscape page is a portrait page with the content rotated 90 degrees. I think that the only things in your Pages job that can't be rotated are the Header and Footer fields, and those probably are best left alone in this case anyway. So, here's the trick. Insert a table, make sure that it is Floating, not Inline, and then rotate it 90 degrees and adjust it's position on the page. You can edit the table either before or after you rotate it.
    Similarly, envelopes could be included in the document by rotating text fields, but it's not clear to me what purpose it would serve since it would complicate printing.
    Jerry

  • J2EE RI and MySQL, JNDI problems

    Hi.
    I am trying to write a simple J2EE application that would use Entety EJB with bean persisatance. I have downloaded driver from the www.mysql.org, copied it to the lib/system directory and modified J2EE_CLASSPATH in bin/userconfig.bat. I am using reference implementation server and with deploytool in �tools/serverconfiguration/datasourses/standard� I am specifying driver: org.gjt.mm.mysql.Driver or com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource and in datasourses in JNDI Name I write �jdbc/mydb� and in JDBC URL �jdbc:mysql://localhost:3306/this�, problem comes up when I try to reference �jdbc/mydb� from an entity bean, during deployment process of application it says that it is not bound
    Binding name:`java:comp/env/jdbc\persondb`
    Warning: Reference reference java:comp/env/jdbc\persondb is using a JNDI name that is not bound: jdbc\mydb
    I do not get it, what I am doing wrong? Please help me to find out how to bind a JNDI name to MySQL

    Ive been playing with the J2EE RI server for a bit now..
    and dispite documentation to the contrary the latest RI DOES NOT use standard naming conventions when referencing jndi resources.
    ie:
    so if you trying to get : java:com/env/jdbc/persondb
    then try accessing it by
    jdbc/persondb
    omit the java:com/env/

  • Logout button and Page submission problem

    {color:#000080}Hi All,
    We have logout buttons on every page of our application. The problem is that if the user clicks on any part of the page, even on the group-panel, the logout button gets the focus and a hit on the enter key causes the user to log-out.
    I want that the logout button, should not get any focus unless and until it is clicked by the user to logout.
    Any help will be highly appreciated.
    Thanks,
    Sheen
    {color}

    Here is what I do.
    Create a page fragment that contains the logout link/button.
    I use this in a menu panel page fragment or a header panel page fragment.
    That way, you can just add the page fragment and don't have to duplicate code on every page.
    The only thing you have to do is make sure the navigation is set up properly.
    For example. I create a menu page fragment with buttons that go to each page of my application.
    The menu page fragment has all the logic to return the proper navigation string.
    The page fragment is incorporated into the page.
    You have to set up the navigation rules for each page, but do not have to include the button logic since it is included with the page fragment.
    This also isolates you from the problem where a return activates the logout button.
    As an aside, you might want to trap the return keypress and direct it where you want or toss it.

Maybe you are looking for

  • I purchased a MacPro 2010 and is having trouble to add HP LaserJet 1022n to my printer list.

    Dear Administrator, I purchased a Mac Pro 2010.  I migrated from my MacBook Pro to Mac Pro.  Then, the HP LaserJet 1022n won't print.  I reseted printing system and now can't add that printer to my printer list.  Software Update have installed HP Pri

  • Beginners guide to integration with Active Directory?

    Hi (complete beginner to this, but a quick learner) I don't know where to start with regards to getting the Macs on our network connecting like the PCs. Currently we have about 100 Macs on 10.4.x that are bound to the AD using Directory Access - user

  • Capitalize borrowing costs to asset under construction u2013 IAS23

    Dear experts, According to IAS 23 we are required to calculate interest on capital invested in an asset under construction. Borrowing costs that are directly attributable to the acquisition, construction or production of a qualifying asset form part

  • Analyze table in oracle 8.1.6

    Hi, I am working in oracle 8.1.6 on unix.the optimizer used here is RBO. I need to analyze a table using the command "analyze table <tablename> compute statistics; but my team mate said that the using anlyze table will degrade the performance. how ca

  • ISE Alarm - Error connecting to remote feed URL

    Hi all, My ISE administration node generate alarm as attached. anyone known this error? what does it means? does it related to posture update or what? because when this error message occur, there is no schedulling posture update.? Regards, Rian