Page Fragment not appearing in Page Navigation!!

My project contains a Page Fragment named Logo.jspf which is intended to be displayed on the top of every page in my project.
I have a Link Action element on Logo.jspf and when clicked it should load Login.jsp only if the user is not loged in, and if the user is already loged in it should load some other page. I aware that I have to add codes in the action listener method in Logo.java.
As the Page Fragment (in my case that is Logo.jspf) is not appearing in Page Navigaton window it is not possible to add code like following: (Because I cannot visually draw an arrow with name �login� from �Logo.jspf� to �Login.jsp�)
public String linkAction1_action() {
return �login�;
Please anyone help to do this. Thank you very much.

To forward to a particular page from a servlet we usually use codes similar to the following:
request.getRequestDispatcher("/Login.jsp").forward(request, response);
How can I get rhe request object (or the session object) from a bean in a JSC project?
Any suggestions very much appreciated. Thank you very much.

Similar Messages

  • The edit JSP page does not appear...

    Hi!
    I make a simple JSF application, I would like to show a DB table in a h:dataTable component and edit a given row after click, but the edit JSP page does not appear. I click the on link in the table, but the list is loaded again and not the edit page...:(
    (no exception in application server console)
    Please help me!
    my code:
    **************************************** listmydata.jsp***************************
                   <h:dataTable
                             value="#{myBean.myDataList}"
                             var="myDataItem"
                             binding="#{myBean.myDataTable}"
                   >
                        <h:column>
                             <f:facet name="header">
                                  <h:outputText value="Ajdi"/>
                             </f:facet>
                             <h:commandLink action="#{myBean.editMyData}">
                                  <h:outputText value="#{myDataItem.id}"/>
                             </h:commandLink>
                        </h:column>
    ********************************* MyBean.java *******************************
    package bean;
    import java.sql.Connection;
    import java.sql.SQLException;
    import java.util.ArrayList;
    import java.util.List;
    import javax.faces.component.html.HtmlDataTable;
    import javax.faces.context.FacesContext;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.sql.DataSource;
    import wrapper.MyData;
    public class MyBean {
         private List myDataList;
         private HtmlDataTable myDataTable;
         private MyData myDataItem;
         protected Connection Conn;
         // *********************** actions ***********************
         public String editMyData() {
              myDataItem = (MyData)getMyDataTable().getRowData();
              return "editmydata";
         public String saveMyData() {
              try {
                   updateDataInDB();
              catch (SQLException e) {
                   System.out.println(e);
                   System.err.println(e);
                   e.printStackTrace();
              catch (NamingException e) {
                   System.out.println(e);
                   System.err.println(e);
                   e.printStackTrace();
              return "listmydata";
         // *********************** setter ***********************
         public void setMyDataList(List myDataList) {
              this.myDataList = myDataList;
         public void setMyDataTable(HtmlDataTable myDataTable) {
              this.myDataTable = myDataTable;
         public void setMyDataItem(MyData myDataItem) {
              this.myDataItem = myDataItem;
         // *********************** getter ***********************
         public List getMyDataList() {
              if (myDataList == null || FacesContext.getCurrentInstance().getRenderResponse()) {
                   loadMyDataList();
              return myDataList;
         public HtmlDataTable getMyDataTable() {
              return myDataTable;
         public MyData getMyDataItem() {
              return myDataItem;
         // *********************** others ***********************
         public void loadMyDataList() {
              try {
                   getDataFromDB();
              catch (NamingException e) {
                   System.out.println(e);
                   System.err.println(e);
                   e.printStackTrace();
              catch (SQLException e) {
                   System.out.println(e);
                   System.err.println(e);
                   e.printStackTrace();
         void getDataFromDB() throws NamingException, SQLException {
              myDataList = new ArrayList();
              java.sql.PreparedStatement PreStat = ownGetConnection().prepareStatement("SELECT id, name, value FROM BEA_JSF_SAMPLE");
              PreStat.execute();
              java.sql.ResultSet Rs = PreStat.getResultSet();
              while(Rs.next()) {
                   MyData OneRecord = new MyData();
                   OneRecord.setId(Rs.getLong(1));
                   OneRecord.setName(Rs.getString(2));
                   OneRecord.setValue(Rs.getString(3));
                   myDataList.add(OneRecord);
         void updateDataInDB() throws SQLException, NamingException {
              String sql = new String("UPDATE BEA_JSF_SAMPLE SET name=?,value=? WHERE id=?");
              java.sql.PreparedStatement PreStat = ownGetConnection().prepareStatement(sql);
              PreStat.setString(1,myDataItem.getName());
              PreStat.setString(2,myDataItem.getValue());
              PreStat.setLong(3,myDataItem.getId().longValue());
              PreStat.execute();
              ownGetConnection().commit();
         Connection ownGetConnection() throws SQLException, NamingException {
              if (Conn == null) {
                   InitialContext IniCtx = new InitialContext();
                   DataSource Ds = (DataSource)IniCtx.lookup("JDBCConnectToLocalhost_CRS");
                   Conn = Ds.getConnection();
              return Conn;
    ******************************* editmydata.jsp *****************************
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <html>
    <body>
    <f:view>
    <h:form>
         <h:panelGrid columns="2">
              <h:outputText value="Name"/>
              <h:inputText id="name" value="#{myBean.myDataItem.name}"/>
              <h:outputText value="Value"/>
              <h:inputText id="value" value="#{myBean.myDataItem.value}"/>
         </h:panelGrid>
         <h:commandButton action="#{myBean.saveMyData}" value="Save"/>
    </h:form>
    </f:view>
    </body>
    </html>

    I have put his lines in the faces-config.xml and now it works:
         <navigation-rule>
              <from-view-id>*</from-view-id>
              <navigation-case>
                   <from-outcome>editmydata</from-outcome>
                   <to-view-id>editmydata.jsp</to-view-id>
              </navigation-case>
         </navigation-rule>
         <navigation-rule>
              <from-view-id>*</from-view-id>
              <navigation-case>
                   <from-outcome>listmydata</from-outcome>
                   <to-view-id>listmydata.jsp</to-view-id>
              </navigation-case>
         </navigation-rule>
    I don't understand, that I define the next JSP page in the bean java file, which must be shown, but I must define this in the faces-config.xml as well.
    for example:
         public String editMyData() {
              myDataItem = (MyData)getMyDataTable().getRowData();
              return "editmydata";
    is it right or Do I make a mistake somewhere?

  • Excise Invoice Tab Page/ Document Info  Tab Page is not appearing in MIGO

    Dear Friend
    For a particular job work PO , with account assignment category F & item category L, non valuaated material, when we are doing migo, excise invoice tab page/ Document Info tab page is not appearing in document header. From The said tab page we can select the challan.
    In J1ID, I have maintained Vendor PAN number and also material chpter id combination.
    Thanks
    Chandra

    Hi
    I maintained material chapter Id combination & vendor Excise Details. We do not maintain any plant -vendor combination. This is a non valuated material with material type unbw. Do I need to maintain cenvat determination tab for this material?
    Thanks
    Chandra

  • I am working in Pages and am trying to have the same footer on every page ?I went into View/Layout and typed in footer text  in the space but it only appears on first page and not any subsequent pages? Thank you.

    I am working in Pages on a report and trying to have the same footer on each page. I went to View/Layout, followed instructions, but the footer text only appears on the first page and not any subsequent pages? What should I do differently please? Thank you., Elisabeth

    Help is in the Pages forum.

  • Itunes 11.1.5 synchronization page does not appear when iphone is connected to imac !

    Today I updated itunes version 11.1.5  but when I connected my iphone 5c , the synchronisation page did not appear.  I could not synchronise my phone right away from the page that it used to appear once the phone is connected.
    i can see iphone appearing on the top right hand side tab  (where you disconnect the phone)
    I can see my phone from the file tab- Synch "Amani's iphone" where I synchronised the phone.
    But I want to see all the info about my phone, and I rreally need  this page back, is it called the synchronisation page? I am not sure
    Please help. I am so annoyed with this,
    my phone software is IOS7.1
    my imac peratin system is : 10.6.8 Snow Leopard

    Hello 51kFred,
    Here is a resource that should help resolve the iPhone not showing in iTunes.
    iPhone not appearing in iTunes
    http://www.apple.com/support/iphone/assistant/itunes/#section_1
    All the best,
    Sterling

  • SSL Padlock does not appear unless page refresh

    I have noticed the SSL padlock sometimes does not appear on pages which are secure. However, whenever I refresh the page it appears. I have checked all other browsers and they work perfectly. Why would this be happening?

    Is there mixed content reported on those pages if you click the "Site Identity Button" (globe/padlock) on the location bar?
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • My mastro page is not the final page. I can't modified it. The mastro is long 800px but in the design page is long 1000, why?

    my mastro page is not the final page. I can't modified it. The mastro is long 800px but in the design page is long 1000, why?

    Than you Aish for answer to me
    is the first time I use Adobe Muse, my problem is the following:
    I want me to do a landing page with a preload.
    I have done one page very long (5400px)  and i worked just in one mastro because i didn't need other pages.
    I have made a group with my menu and the slide. I put the menu at the bottom of the slide because i want the slide appear first of the menu: like a presentation... once the presentation ended scrolling down and my menu will appear and so the site. I want me to do the effect of the menu fixed and everything beneath scrolling up and down.
    When i have done it, i realized it couldn't work, because the slide together with the menu remain fixed, but the slide covered everything beneath.!!!! I realized again tha maybe it's better having a page for preload and then let the website to start, so i change my pages in adobe muse.
    I added another page in my plan window in adobe muse,  i made another mastro page i change the properties in the page make it shorter  and i drag the new mastro in the new page, then i copied in the empty page my slide.From there in ahead it doesn't work anything in my mastro page.
    Then i deleted everything but not the landing page of the beginning, because i found a preload widget in internet, but now when i activate my mastro in the page in the Plan mode, and with the double click i go inside, i can't modified anything also if i click the option "unlock all in page", and when i go in the site preview everything is uncorrect and it'isn't like my mastro page.
    Sorry for my very long mail and i hope you will understand.
    Thank you again
    regards
    Paola

  • How can I print just a part of the page and not the full page with Adobe Reader v 10.1.2?

    how can I print just a part of the page and not the full page with Adobe Reader v 10.1.2? I need to print a engineering print with lot of information but information is too small in letter size and I don't have a plotter.

    Two ways to print a portion of a page: zooming or using the Snapshot Tool.
    ZOOMING:
    Zoom into the area you want to print.
    Click the Print icon.
    Under "Pages to Print", make sure "Current view" is selected under "More options" (you may need to click "More options" to open it).
    If you aren't satisfied with the preview, try clicking "Fit" under the Size button.
    SNAPSHOT
    Choose Edit > Take A Snapshot.
    Drag a rectangle around the area you want to print. 
    Click the Print icon.
    Under "Pages to Print", make sure that "Selected Graphic" is selected under "More options".
    To enlarge the snapshot to fit the sheet of paper, choose "Fit" under the Size button.
    Hope this helps!

  • Pages 08 help appears in Pages 09

    I just upgraded from Pages 08 to Pages 09 via the Mac App Store. But when I choose Pages Help from the Help Menu i get the help for Pages 08 not the new Pages 09.  How can I fix that?
    Thx.
    Jeff

    My choice would be to ignore the help files and use the Pages '09 User Guide. The guide is available for download via the Halp menu, or through the link. If you'd prefer to use the Help files, this link should take you there: Pages '09 Help.
    Regards,
    Barry

  • I CAN PRINT HP PAGES--- BUT NOT ON LINE PAGES

    I CAN PRINT HP PAGES BUT NOT ON LINE PAGES
    ERROR HAS OCCURRED IN SCRIPT ON THIS PAGE
    ERROR UNSPECIFIED

    Please read this post then provide some details.  What printer model? What operating system? How is the printer connected? 
    What browser are you using? Are you using HP Smart Printing or some similar program?
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • I cannot sign in.  I get error "404" when I try, then it takes me to a "Fill and Sign" page. Not to Export page

    I cannot sign in.  I get error "404" when I try, then it takes me to a "Fill and Sign" page. Not to Export page.  At that point, there are no options to do anything else.

    It seems to have started to work now... so who knows.

  • How do you create a new page which does not appear on the navigation bar?

    I am creating a website and have designed the top pages. Some of these pages have sub pages but I can't work out how to create them. Please could someone advise me?
    Many thanks.

    Welcome to the discussions. You can find answers to such questions by searching here:
    http://support.apple.com/kb/index?page=search
    Entering: iWeb navigation
    ...in the first search bar comes up with these documents in the list:
    _Preventing a webpage from appearing in the navigation menu_
    Hiding the navigation menu
    Note that iWeb can't produce sub-pages +per se+ — i.e. ones that drop down from an item (page) in the navigation bar.

  • CSS formatted div borders do not appear on page(s)

    Hello all,
    I have a website I'm developing using the Skeleton 960 grid. I have defined borders for ID #r_col_entrypage and applied them to the div by using <div class="five columns" id="r_col_entrypage">. The css for the borders is included in the layout.css and appears in design view within Dreamweaver; however, does not appear in any of the browsers I've tested it on - IE, Firefox or Chrome. At one point I had this working but then changed the layout of the page (decreasing some div widths). I have tried changing the size of the two divs that are next to each other - that didn't work, I've tried increasing or decreasing the padding in the css below thinking that perhaps my border was being overlapped and that didn't work either. I'm about out of ideas as to why it is not appearing and wondered if someone could take a look and see what might be happening. I know I have a lot of style sheets with this and that may very well be at the root of this. You can find one of the pages that I'm having trouble with at http://bpiads.org/newsite/donate.html. Thanks very much and let me know if there is any additional info you need.
    #r_col_entrypage {
    padding-left: 20px;
    border-left: 5px solid #46673b;
    border-bottom: none;
    border-top: none;
    border-right:none;
    font-size:110%;
    font-weight: bold;

    webmom24 wrote:
    Thank you... I had looked at the code so many times I wasn't "seeing" it. This did fix the problem of the border.
    Now, however, my container that contains the navigation has tons of empty space above it which I am trying to figure out... any thoughts on what would be causing that? I tried changing the "height" from 40px to "auto" and that doesn't seem to make any difference.
    Maureen
    Thats because you have set min-height: 200px; on the "banner" <div> which preceeds your navigation <div>. The height of the image in the "banner" <div> is only 35px so NORMALLY you would set the height to 35px BUT you can't do that because you have used the id "banner" for the <div> above that as well, where the height of the image IS 200px. Only use an 'id' once on the page. Just delete the min-height and everything should be ok.
    #banner {
        /*background-image:url(../images/bpi-banner-new.jpg);
        background-repeat: no-repeat;
        position relative;
        height: 200px;
        width: 940px;*/
        min-height:200px;
        min-width:940px;

  • Page Numbers Not Appearing in Data Merge Document?

    Hello, hopefully someone can help. I am pretty new to InDesign but learning a lot.  I am creating a member directory of about 200 pages (about 2800 records merged from .csv to InDesign 6). Everything is working fine with the merge, except generating the page numbers.  I tried adding page number at the bottom of the page to the master BEFORE merging. But if I do that, it greys out the "multiple records per page" option when trying to perform the Data Merge (using "Create merged Document").  So, I tried adding the page number to the A-master AFTER creating the merged document, but the page number is not appearing on any of the pages.  There must be a way to do this, can anyone help?
    (FYI - to generate the auto page numbers, I am going to the Type-Insert Special Character-Markers-Current Page Number, and placing that within a text field at the bottom of the page.  Thanks in advance. )

    Here is a screen shot.  I have placed it on the A-Master.  See Screenshot#1.  Screenshot #2 shows Page 70 with no page number (and no other pages have page numbers that I can see.  Thanks for your advice on fixing....
    Sorry, here is screenshot #2, (with personal details redacted but the records are there behind the grey boxes):

  • New tabs do not include the history icons as before.The option to show images on a page does not appear in upper right of page.

    The solution in the FAQ's is clear, but the small icon that is supposed to be showing in the upper right of a new Tab page are not showing up so that I can get the images to appear. I recently installed Java 7 and after that they had disappeared. Can you help me get them back? They are very helpful.

    You can reset the browser.newtab.url pref on the <b>about:config</b> page via the right-click context menu to the default value.
    You can open the <b>about:config</b> page via the location bar and you can accept the warning and click "I'll be careful" to continue
    You can use the SearchReset extension to reset some preferences to the default values.
    *https://addons.mozilla.org/firefox/addon/searchreset/
    Note that the SearchReset extension only runs once and then uninstalls automatically, so it won't show on the "Firefox > Add-ons" page (about:addons).

Maybe you are looking for

  • How do I output interactive slides to HTML5?

    I need to produce a simple interactive slideshow to HTML5. I'm very new to Flash, but quite experienced in most of the CC suite. I followed a tutorial last night and created a slideshow of 4 images and 4 buttons, which worked fine when output to and

  • Error while importing xml file

    Hi, I am importing the xml file using the executefile function or dbms_aw_xml package and getting following error. SQL> execute dbms_output.put_line(dbms_aw_xml.executefile('XML_IMPORT_DIR','mod_OPER_DATA_BW.XML')); BEGIN dbms_output.put_line(dbms_aw

  • [SOLVED] Increase free disk space

    When I formatted my CR-48, I formatted the entire disk for the root partition. Here is the output of "df -h" Filesystem Size Used Avail Use% Mounted on /dev/sda1 11G 3.7G 6.4G 37% / dev 1003M 0 1003M 0% /dev run 1005M 812K 1004M 1% /run tmpfs 1005M 0

  • FireFox 7 displays YouTube related videos thumbnails in small scrolling list with blank thumbnails.

    FireFox 6 used to display them just like IE and other browsers... in a long list to the right of the video. Now there is a small list only 5 thumbnails high (which makes it a scrolling nightmare) and only the first 10 thumbnails have pictures, the re

  • Strange entry in Cleint tag

    Folks, I have noticed a strange entry in <Client> tag and I cannot find any reference to it in the docs: <Client urlhost="whatever.com" 2=">"> NameTrans fn="redirect" from="/" url="http://www.somewhere.com/notimportant.html" </Client> What does this