Diference between "Page" and "Page Forward"

Friends,
what is the differene between "Page" and "Page Forward" in the Struts component palette?
Thanks!

"Page" represents a page (like JSP, UIX, or HTML page)
The user would browse this page by typing something like:
http://somesite/someapp/somepage.jsp
"PageForward" is a Struts action whose only job in life is to forward control to an underlying page.
The user would browse this page by typing something like:
http://somesite/someapp/somepage.do
Since in an MVC architecture, typically you want all browser requests to go through your controller layer, that means that you typically don't want a user to short-circuit the controller layer by jumping straight to a *.jsp page (for example, by bookmarking that page in their browser's "favorites" list)
So, does that mean you should always use page forwards?
I personally don't think so, although some Struts developers may have a differing opinion than me.
Even if you create a page forward as a "front" for the underlying *.jsp page, if the user knows the URL to the *.jsp page directly, they can still short-circuit your controller layer.
So, what's really the best practice?
Put your JSP pages in a subdirectory of your ./WEB-INF directory as the BC4J Toy Store demo illustrates. The WEB-INF directory and any subdirector thereof, is by the J2EE specifications NOT BROWSEABLE from the outside of the J2EE web container. So, doing this prevents users from ever being able to browse your JSP pages.
If you adopt this practice, then you will typically have a Struts diagram that consists of Actions which forward to Pages (that are under ./WEB-INF). Even though the JSP pages under ./WEB-INF are not externally browseable, it is legal for code in the web tier (like your Struts controller layer code) to forward to such pages.
Net net, with this best practice, you are always in control.

Similar Messages

  • "Data Page" and "Page Forward"

    Friends!
    What is the difference between "Data Page" and "Page Forward"?
    Thanks for all!

    Here is a nice trick for you.
    Right-Click on an element in the component palette and choose help.
    You'll get the explanation there.

  • How to avoid borderline coming between page and page in Htmlcss format

    Hi there
    I run a report output in HTMLcss format. Output is coming correctly.But what my problem is in the output i am getting some borderline (thick black line) between page and page. While i print the html i am getting this line at end of each page. What is this line and how to remove it htmlcss. i want printout without this line.I am using reports 10g version.
    thanx in advance
    prasanth a.s.

    The line is caused by the default HTML code placed in the After Page Value property found in the Report Escapes section of the report property palette. Clear the value to delete the line

  • Diference between SCP and FTPS

    Hi, people,
    Some know the diference between SCP and FTPS because I need to make a connection in one interface and I need to know the diference.
    Thanks!!

    Hi,
    have a look at this page:
    http://geekswithblogs.net/bvamsi/archive/2006/03/23/73147.aspx
    and check sections:
    FTPS (FTP-SSL)
    and
    SCP (Secure Copy)
    Regards,
    michal

  • What is the diference between pane and panel?

    What is the diference between pane and panel?
    Thanks.

    The panel is the UI part of the VI. It can be divided into several panes which are simply different parts of the same panel, which can have seperate scrollbars, etc.
    Try to take over the world!

  • Diference between STO and Shipment order?

    Hi All ,
    There are two plants , one is manufacturing and other is sales .  In sales plant sales order is created and after MRP run Purchase requisition is created(for getting materisl from production plant) . In me59 we convert this Preq to shipment order.
    1)Can oyu please tell me whant is diference between STO and shipment order?
    2) Can you tell me what is the configuration to avoid creation of shipment order and system will only create the STO from Preq after executing Me59?
    Thanks
    Rohit Chavan

    Hi Chavan,
    Starting with "Shipmnt Order" definition => (from SAP Help):
       An order to a transportation service provider to ship goods from a shipper to a single consignee with agreed terms and conditions. The corresponding confirmation from the transportation service provider is also part of the business object.
       You can use this business object to subcontract the transportation of goods from a shipper to a single consignee if you cannot fulfill a shipment request yourself or if you regularly subcontract transportation services.
       You can also use this business object in the process of transportation service provider selection and tendering. The aim of both processes is to assign a suitable transportation service provider (TSP) to a shipment order.
    http://help.sap.com/saphelp_tm60/helpdata/en/66/dda98bb6b64c30b925f031bb0a2023/content.htm
    STO is just Stock Transport Order => functionality to move stock from one plant to another plant in two steps( inclidung GI in the sending plant and GR in the receiving plant).
    Usuall documnt flow in the STO process => PO(UB or NB order type), delivery, GI -> GR (done via migo for example).
    I believe that you can avoid cration of the Shipmnt order via correct selection on ME59 screen. Just something what is characteristic for STO and not for Shipmnt Orders.
    Best Regadrs,
    Tomek.

  • Diference between DATA: and TYPES: on internal tables

    Hi people,
    Can somebody help me. I wanna know whats the diference between DATA: and TYPES: on internal tables
    and whitch has the best performance, here is a eg:
    DATA: BEGIN OF ti_sbook occurs 0,
              carrid   LIKE sbook-carrid,
              fldate   LIKE sbook-fldate,
              customid LIKE sbook-customid,
              loccuram LIKE sbook-loccuram,
           END OF ti_sbook.
    AND
    TYPES: BEGIN OF ti_sbook ,
              carrid   LIKE sbook-carrid,
              fldate   LIKE sbook-fldate,
              customid LIKE sbook-customid,
              loccuram LIKE sbook-loccuram,
           END OF ti_sbook.
    DATA: gw_sbook       TYPE  TABLE OF ti_sbook,
    gs_sbook       TYPE ti_sbook.
    witch of both types is better?
    thanks.

    Hi Marcelo,
    For compatibility matters is better to create internal tables with a work area separately. So yes it's better to use types. When you work with Object Oriented coding you will need to use internal tables defined with types. Also when defining tables with types is the new way of coding, the another coding is getting obsolete defined by SAP. That's why when working in ABAP with OO (Object Oriented) code you'll have to define tables with types and not the other way.
    Hope it helps.
    Regards,
    Gilberto Li

  • Doubt about diference between SAPconsole and SAPmobile

    Hello,
         I have been many doubts about diference between sapconsole and sapmobile, if anyone could help me I appreciate.
    1) I have ECC6 instaled, the SAP Mobile is compatible with ECC6 or I need of Netweaver Instaled ?
    2) If Possible to Install Sap Mobile in ECC6 , I have to Buy a license of sap mobile ?
    3) in any product instaled Windows CE have possible to install sap mobile ?
    4) In sap console what is the requirement for to do this configuration?
    I Anybody to know about this informations please explain for me ?
    Thanks

    My apology, 
        The Basic Diference beteween SAPConsole and SAPMobile is :
    SAPConsole ==>  
    1 ) Don' t need a new Hardaware for to configurate
    2 ) Only need a Machine with the IIS service installed
    3 ) The SAPGui CD content the SAPCOnsole.exe for configuration
    4 ) The equipment like Pocket and datacolletor has been to configurated in a Network( but if to have a entrance in the SAPGUi indicate a SAProuter in another factory is possible to have acesses.. ) is a mandatory. Cause the SAPCOnsle folow the SAPGUI entrances and need a LAN or a WAN configurated.
    Advantage
    simple to congurated and chip.
    Easy to create to new window cause the SAPConsole only plubish this window in Browser.
    Disadvantage
    Need a lincense for each Poket or Datacolletor, wherever the equipment you will use.
    Doesn't have a Database  using through Browser (IE6 or IE7) this way , during the processes lost network you go to lost the information not saved.
    SAPMobile
    1 ) Need the a good Machine  with a instance of SAP configurate
    2 ) Have to found the EXE in the MarketPlace
    3 ) is not publish, and yes a client with the database configurate in equipment
    4 ) The equipment like Pocket and datacolletor has been to configurated in a Network
    Advantage
    Need only one SAP License, doesn't metter how many equipment  in use you have.
    As the SAPMobile has a Database in the client , if you lost the network it goes to save in the local database and when the network come back , it will to synchronize. This way you don't need to work online every moment, you get to synchronize after.
    Disadvantage
    You profit in license is your lost in the Machine cause the price of Machine is expensive.
    is configurate only in windows Mobile.
    The window only can be create for a Developement and not in the SAP, have been created in windows Mobile.
    A tip, the both is good but you can do a simple mathematics.
    In the SAPConsole how much money you go to spend is the least of the Machine s Price.
    If yes confurate the SAPConsole , if not configurate the SAPMobile

  • Officejet j6415 winows 7prints half pages and pages of gibberish since reinstalled printer software

    When reinstalling the printer software, there is always a fatal error with no ID number. I have tried all the troubleshoot options for the installation but they do not work. My printer can still print fully (rarely) but mostly prints half pages and pages of gibberish. There are no error messages on the printer. Help!

    Hi JayG58,
    I am going to send you a private message, please check the little envelope on the top right hand corner of the forums page to check your Forums inbox.
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • Diference between choice and message choice

    Hi
    I'm testing UIX. What is the diference between choice and message choice? When I can use this components?
    Thanks
    Liceth

    The messageChoice control is a combination of the choice and messageLayout controls. You can read about all the components in JDeveloper's help.
    The messageLayout control lays out a prompt, indexed children, end child, tip, and inline message (error message that displays below the choice, for example). Typically, the only indexed child of this bean will be a form element of some sort, but as many children as necessary can be added.
    The prompt can have an icon associated with the type of message. The bean's destination is attached to the icon to link to further information. It is also possible to indicate that user input is required.
    Clients can also add an "end" named child which will be rendered after the indexed children.
    To lay out multiple messageLayout beans the messageComponentLayout bean should be used. When messageLayout beans are placed inside a tableLayout or labeledFieldLayout the prompts will line up.
    Jeanne

  • Difference between content area page and page

    Can someone point me to doc or tell me what is the difference
    between content area page created in Content Area Manager and
    the page created in create page tool ?
    I'm really confused.
    Thanks.
    Regards,
    Maggie

    Essentially they're the same.
    The CA page get's implicitly created when you create the CA
    because architecturally when we display content for you to work
    with we need a place to post the navigator portlet and the
    content portlet.
    In the next release this will change, there will be only one
    type of page, and you will be able to add content and/or
    portlets to it.
    HTH
    Jason Pepper

  • Convert from word .doc file to pages and pages to .doc.

    When I save a pages document in word the formatting is hopelessly changed. I am writing a book and reformatting 400+ pages is not fun. PDF save is not appropriate because I send bits to folks using word. When the formatting is messed up, they have no idea what it actually looks like.
    And of course the reverse is true. When I edit a piece created in word, pages changes the formatting creating hours of work. Are there any solutions to this?
    If I had windows resident w/word would I still have the same issue? No reason to have windows on the Mac otherwise.
    PS: Open office has the same issue.

    Thanks for the input. I spoke to Apple about the issue and they said if I need to share documents with non-Pages using people, and wanted them to see what I see, my only choice is Word. They stated there is and will never be any 'fix' for the issue and I said, well, guess I have to stop using Pages.
    PDFs are great for the finished product but you can't make changes to them and I need my editor to see what I see and make appropriate changes. This is not a font issue, it is about spacing, indentations, images and margins.
    It is worse for my career coaching clients. A simple example: Their Word created Two page Resumes opened in Pages scroll to three or four even when they use Arial or other common font.
    And why Pages crashes 15 times in an hour? No idea... Reload the application. Of course I did. That's not a fix. Well, it must be your documents then. And the finger points where?
    For book writing purposes, Pages offers wonderful layout and easy formatting solutions. They just don't translate to Word making Pages useless except for stand-alone documents I can send as PDFs. And readers, be clear, when I purchased the MacBook Pro and Pages, I clarified how I would use it and that I needed to work between the two products. "Oh, yes, that's simple," said the eager sales dupe.
    What a waste. I am now stuck editing my books myself which any author can tell you is a fool's errand. Back to the keyboard....

  • When is Pages 5 going to be fixed? I require alternating gutters for facing pages, and Pages 5 refuses to do what the previous version of the program did. Quite frankly, this is a problem that MUST be addressed by Apple programmers!

    I said it all in the title of this discussion.

    infinitedot
    Menu > File > Export > Pages '09
    Apple could do lots of things but doesn't.
    Peter Thomson
    You have another issue. I have both Pages '09 v4.3 and Pages 5.1 running fine on Mavericks OSX 10.9.1.
    Pages 5 is slow but neither Pages crashes.
    If you are getting crashes you need to validate your fonts and check which documents are having the problem.
    It also helps to know versions and how you installed your software.
    Create your own post, don't jump onto another.
    Peter

  • Working with master pages and page layout, what I have been doing wrong

    I have worked on customizing the page layout and the master pages for a couple of site collections.
    But now I read two restrictions which I was not following 100%:-
    I should avoid directly modifying any default templates, and instead of that I should take a copy and modify the copy. So that any future updates will not override my modifications.
    Also I should avoid directly modifying the .aspx files, and instead of that I should edit the html file which will automatically reflect on the .aspx files.
    So currently I have these cases inside my SharePoint sites:-
    Inside my enterprise wiki site collection, I have being modifying the Enterprisewiki.aspx page layout, for example I added new columns such as Page title and I remove the page rating, also the chnaged the color and format for the page fields.
    Inside my team site I took a copy of the seatle.master master page (I name it seatle_copy.master)and I apply my modification to the seatle_copy.master directly and not inside the .html file. Even I do not have a html version for the modified seatle_copy.master?
    So can anyone advice how I can fix these two issues. For the first issue how I can make sure that my modifications to the EnterPriseWiki.aspx page layout will not get override during any future update.
    also how I can generate an html version for my current seatle_copy.master file so that I can modify the seatle_copy.html instead of the seatle_copy.master in the future?
    Please can anyone advice?

    Hi johnjohn123,
    1. I would definitely make a copy of the EnterpriseWiki.aspx page layout and make changes to that. You can then set your pages to use your custom page layout. Typically, I provision these via Visual Studio and a module for uploading them to the SharePoint
    master page gallery.
    2. For the master page, the html version is new to 2013 and is meant to simplify branding, however, it's not required. You can still work within master pages and provision those via features if you'd like. The key is to create your own master page and never
    modify the default.
    If you need code samples for any of the above, let me know and I can supply it.
    Shereen Qumsieh http://sharepointdeveloperhq.com @msshushu

  • The address bar shows pages I have previously entered manually, and then cleared the history of all this pages and pages connected with it.

    1. I enter the page in the address bar (i.e.: cnn.com)
    2. I click on some of the links in the page - the address of the main page is still the same (i.e.: i click on some of the articles on cnn.com)
    3. I search the history and delete/clear all pages that have same main page (i.e.: all pages with address cnn.com - main page and all articles,...)
    In the address bar in ff 14 I can still find the entered page (i.e.: cnn.com), in ff 13 that didn't happen - when clearing the history that page was gone in address bar too. This happens mainly with the pages i enter manually in the address bar.

    After clearing the history normally, you can try to exit and restart Firefox, ideally with a single tab and check before visiting the site. If the site appears, then it could have been bookmarked. You can also try to check the bookmarks for the site or its sub domains.
    If the problem persists, you can also check in a [https://support.mozilla.org/en-US/kb/Managing-profiles new profile].
    [https://support.mozilla.org/en-US/kb/Managing-profiles Managing profiles]
    [https://support.mozilla.org/en-US/kb/Profiles?s=profile&r=2&e=sph&as=s Profiles Howto]
    [https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles Profile Manager]

Maybe you are looking for