Difference between page and include in jsp

difference between <%@ page import="foo.*"%> and <%@include file="foo.*"%> in jsp

The one imports a class for the code and the other includes a resource for the output. Those are in no way comparable with each other.

Similar Messages

  • Performance difference between page and scroll

    Hi experts:
    What is the technical difference between paging and scrolling, especially as pertains to database access and performance?  The scenario would be a table result in a view where 200 results exist for a query.  A scrollable table would show all results, while the paging table would show 10/20 per page.  Is the database selection the same for both approaches?  Or is the paging approach going to make more trips?  If there are trips - how does the UI know how many pages should be presented?  Is one or the other a better approach for data which is not existing in CRM system?
    regards,
    bill.

    If you look at the servlet translated from a JSP, you'll see these lines:
    Object page = this;
    pageContext = _jspxFactory.getPageContext(this, request, response,
                null, true, 8192, true);
    _jspx_page_context = pageContext;
    application = pageContext.getServletContext();So page is simply an alias for this.
    And PageContext is analogous to ServletContext but please notice, it's not the same or a replacement; application is the implicit reference to ServletContext and not pageContext. There is no equivalent of pageContext in servlets.
    Please note that the page scope doesn't refer to the page object but to the pageContext. Therefore, what Manivel said above
    page is used as a scope with in one jspisn't correct.
    Edited by: nogoodatcoding on Sep 24, 2007 1:30 PM

  • HT2523 What is the difference between Pages and Text Edit? Pros and Cons?

    I just purchased a Macbook Pro, and I am currently exploring its features. I see that it comes with Text Edit, which seems to be its form of Microsoft Word...but I also know that you can purchase "Pages" for the computer. What is the difference? Pros and cons of each? I will be a freshman in college in the fall, so I need something that I can do lots of writing and editing on.

    TextEdit is a simple basic text editor. Far from what MS Word can do. This is Pages:
    http://www.apple.com/iwork/pages/

  • Printed color difference between Pages and Adobe InDesign.

    Dear members:
    I have created documents in Pages that I later decided to re-create in InDesign.
    One problem I noticed is the fact that colors printed on paper don't look the same. I basically copied the RGB values used in Pages for the different colors and used these same values in InDesign. Although on screen colors look the same, on paper they look quite different. In case this information is important I am using an Epson printer model R1800.
    Any ideas ?
    Thank you again for your help.
    Joseph Chamberlain

    Thank you all for your answers. I appreciate your help and input.
    Joseph Chamberlain

  • Difference between facelets and jsp xml in Document Type

    I want difference between facelets and jsp in Document Type in JDeveloper 11gR2 (11.1.2)
    Thanks
    Edited by: Amr Ahmed on Jun 8, 2011 7:46 AM

    Let's see.
    Facelets creates a facelets page
    JSP creates a JSP page
    {noformat}:){noformat}
    Facelets is the "official" view language for JSF 2.0
    http://www.realdevelopers.com/blog/development/facelets-vs-jsp should give you some more insight as well.
    John

  • Difference between page.getAllPageItems and page.getAllChildPageItems

    What is the difference between page.getAllPageItems and page.getAllChildPageItems? Everything inside a page object sould be a child, right?

    On tests that I made I don't see differences, but is better use the getAllChildPageItems.

  • Difference between automatic and non-automatic page attributes

    Hi,
    Can anyone tell me difference between automatic page attributes and non-automatic page attributes?
    and also difference between stateful and stateless mode with examples?
    Thanks
    Narendra

    Hi Mullapudi,
    If you mark a page attribute as u2018automaticu2019 (auto in the system), the attribute automatically gets its values via the calling URL or
    via the navigation process from other pages.
    This kind of attribute only has to be declared for one page.
    It is identified by its name equivalence.
    If another page uses a parameter with the same name,
    at runtime that parameter automatically
    gets the same values as the attribute.
    Non-automatic page attributes
    If you flag a page attribute as non-automatic, the attribute gets its values from the class attribute.
    The visibility of page attributes when parameters are transferred between BSP pages depends on whether the navigation is explicit or implicit.
    Explicit navigation
    For example, if navigation->goto_page(page.htm)
    Implicit navigation
    With implicit navigation, the page attributes are transferred automatically from OnInputProcessing to OnInitialization, both in stateful and stateless mode.
    The auto page attributes are refilled by the request, both in stateful and stateless mode.
    Reward if Useful...
    Regards,
    Anita. B

  • Differences between standard and pro versions

    I was reading the comparision of these two Acrobat versions and for Pro it says:
    Edit and enhance photos to add to your PDF communications with Adobe Photoshop® CS5.
    Quickly transform static PowerPoint slides into compelling, interactive PDF presentations with Adobe Presenter       
    Rapidly combine screen recordings, narration, video, slides, and more into a rich media experience with Adobe Captivate® 5
    Does that mean that the Pro version includes Photoshop, Presenter and Captivate programs as well? Or, what are the differences? As an aside, the new look and feel of the Adobe website is confusing at best. Seems geared to being flashy, not useful.
    Regards, David

    Acrobat does not included those other packages. One of the pages that always struck me funny (maybe I have a twisted mind) but has this artistic background is the updates page. The background looks like a lacy bra to me. It is the first thing that comes to mind every time I see it. That is a problem with abstract images (that are typically unnecessary and waste bandwidth), that a lot is in the eye of the beholder. Actually, I have heard from many others that also see the bra.
    OK, back to Acrobat. There are several aspects of Acrobat that allow you to have links to the other products built in, but they are not included. The page at http://www.adobe.com/products/acrobatpro/buying-guide.html?promoid=JIJYS provides some info, but a lot is missing. For instance there are differences with PDF Optimize and Reduce File Size I think (sorry, I do not have Std to check). One important one that is part of pro is the preflight option. Apparently Std does not include portfolios or allow PDF comparison according to the chart.
    If you are into forms, then Std apparently will do them as AcroForms (my preference, partially because of familiarity), but does not include Designer if that was your preference. Some of the enabling for Reader is not available in Std. Also, Std does not allow embedding Flash. Std is limited for some of the products that include PDF Maker (not a big one for me, but might be important to you).
    That is a quick summary based on the chart. However, be aware there are some other features that the chart does not seem to cover. For the difference between Std and Pro, I would suggest getting Pro. The big hit is the initial cost of the product, not the step up to Pro. In a business plan consider the time that might be wasted trying to do some of the things in Pro that are not in Std. Those are the types of issues to consider. Many folks consider the cost to be large, and for a small business it is. However, in the long term it may be worth the cost.
    Keep in mind that many large CAD packages in engineering run about $30,000 for a single license, half the cost of the engineer that would use it. Some other tools are about $15,000. In that view, Acrobat is cheap (except for cheapskates like me).

  • Hi guru's what is the difference between table and temlate in smartforms

    hi guru's what is the difference between table and temlate in smartforms

    Hi Vasu,
    Template is used for proper allignment of data which table is used for displaying multiple data.
    We can say Template is for static data and Table is for dynamic data.
    Suppose we have a requirement in which we have to allign the customer address in such a way as shown below:-
    Name- Vasu Company- WIPRO Location- Chennai
    Desig- S/W Native - Mumbai
    Then for proper allighnment we can create a template and split that into 3 columns and 2 rows and create text elements for each cell display a proper allighned data at the output.
    When we include a template inside a loop it gives the same property as a table.
    When we have mutiple data which is to be extended to the next page like when we display all employee details in a company we use table.
    Table has 3 sections , HEADER, ITEM ,FOOTER
    The header secntion will be executed once and it will loop at the item level. at the end footer will be executed.
    Hope this gives u some idea..
    <b>Please reward if useful</b>
    Regards,
    sunil kairam.

  • Difference between macro and subroutine

    what is the difference between macro and subroutine? i
    need some example on macro

    Hi,
    <b>
    Subroutines</b>
    Subroutines are procedures that you can define in any ABAP program and also
    call from any program. Subroutines are normally called internally, that is, they
    contain sections of code or algorithms that are used frequently locally. If you want
    a function to be reusable throughout the system, use a function module.
    <b>Defining Subroutines</b>
    A subroutine is a block of code introduced by FORM and concluded by ENDFORM.
    FORM <subr> [USING ... [VALUE(]<pi>[)] [TYPE <t>|LIKE <f>]... ]
    [CHANGING... [VALUE(]<pi>[)] [TYPE <t>|LIKE <f>]... ].
    ENDFORM.
    <subr> is the name of the subroutine. The optional additions USING and
    CHANGING define the parameter interface. Like any other processing block,
    subroutines cannot be nested. You should therefore place your subroutine
    definitions at the end of the program, especially for executable programs (type 1).
    In this way, you eliminate the risk of accidentally ending an event block in the
    wrong place by inserting a FORM...ENDFORM block.
    <b>Macros</b>
    If you want to reuse the same set of statements more than once in a program, you can include
    them in a macro. For example, this can be useful for long calculations or complex WRITE
    statements. You can only use a macro within the program in which it is defined, and it can only
    be called in lines of the program following its definition.
    The following statement block defines a macro <macro>:
    DEFINE <macro>.
    <statements>
    END-OF-DEFINITION.
    You must specify complete statements between DEFINE and END-OF-DEFINITION. These
    statements can contain up to nine placeholders (&1, &2, ..., &9). You must define the macro
    before the point in the program at which you want to use it.
    Macros do not belong to the definition part of the program. This means that the DEFINE...ENDOF-
    DEFINITION block is not interpreted before the processing blocks in the program. At the
    same time, however, macros are not operational statements that are executed within a
    processing block at runtime. When the program is generated, macro definitions are not taken
    into account at the point at which they are defined. For this reason, they do not appear in the
    overview of the structure of ABAP programs [Page 44].
    A macro definition inserts a form of shortcut at any point in a program and can be used at any
    subsequent point in the program. As the programmer, you must ensure that the macro
    definition occurs in the program before the macro itself is used. Particular care is required if you
    use both macros and include programs, since not all include programs are included in the syntax
    check (exception: TOP include).
    To use a macro, use the following form:
    <macro> [<p1> <p2> ... <p9>].
    When the program is generated, the system replaces <macro> by the defined statements and
    each placeholder &i by the parameter <pi>. You can use macros within macros. However, a
    macro cannot call itself.
    DATA: RESULT TYPE I,
    N1 TYPE I VALUE 5,
    N2 TYPE I VALUE 6.
    DEFINE OPERATION.
    RESULT = &1 &2 &3.
    OUTPUT &1 &2 &3 RESULT.
    END-OF-DEFINITION.
    DEFINE OUTPUT.
    WRITE: / 'The result of &1 &2 &3 is', &4.
    END-OF-DEFINITION.
    OPERATION 4 + 3.
    OPERATION 2 ** 7.
    OPERATION N2 - N1.
    The produces the following output:
    The result of 4 + 3 is 7
    The result of 2 ** 7 is 128
    The result of N2 - N1 is 1
    Here, two macros, OPERATION and OUTPUT, are defined. OUTPUT is nested in
    OPERATION. OPERATION is called three times with different parameters. Note
    how the placeholders &1, &2, ... are replaced in the macros.
    Rgds,
    Prakash

  • What is the difference between NB200 and NB205?

    Hello I'm in UK! I'm wanting to know what is the difference between NB200 and NB205? Thanks

    I agree with Jeff. All notebook models with 5 at the end are notebook models designed for US market.
    Check please http://www.csd.toshiba.com/cgi-bin/tais/support/jsp/home.jsp - Toshiba US page and compare it withToshiba UK.
    If you are from UK I recommend you to buy one in your country.
    So you will have full support and everything will be easier for you.

  • Difference between "Web" and "Streaming"

    Can anyone tell me what the difference between Web and Streaming is when exporting a Movie from iMovie? I know they both go on a webpage but why are there two options?
    Thanks

    True streaming media is not cached on the viewing machine. No cache means nothing to save as a new file. You can only save a "reference" to the source file stream.
    Media Links (very cool feature rarely used by most users) make a .qtl file. This is also just a reference movie (very tiny file size) but can include many features found (usually) in the Pro upgrade of QuickTIme and/or AppleScript and Automator Action features.
    Using Media Link files will allow you to add "Presentation" playback features to your QuickTime file (Full Screen, close when done, etc). You can add a "link" inside your QuickTime file so when the image is clicked a Web page would open. One of mine as an example:
    http://homepage.mac.com/kkirkster/GetA_MacText.qtl
    You'll notice the file will download (0.3KB's) then launch QuickTime Player and play full screen. Click on the movie to learn more.

  • Difference between jsf and jspx

    Hi
    We can develop a adf page in either jsf or jspx. What is the difference between jsf and jspx?
    which is more compatible in adf and why?

    Hi.
    The main difference in the version of JSF you are running on. In JSF 1.2 and lower, you built JSP pages. The JSPX extension means it was a JSP page using XML markup. This was (and still is) the default option in JDeveloper 11gR1.
    JSF pages, introduced in JSF 2.0, use another view declation language called « Facelets ». They are the default in JDeveloper 11gR2 and will be in 12c as well.
    Both standards are compatible with ADF. If you are building a new application, JSF is the way to go as it will offer you more flexibility and represents the best option going forward.
    Best Regards,
    Frédéric Desbiens.

  • What is the difference between ServletContext and PageContext?

    What is the difference between ServletContext and PageContext?

    Well, the most glaring difference would be, there is one ServletContext per web application, whereas there is one PageContext per page.
    ServletContext acts as the broadest of scopes, all JSPs, and Servlets in a given web application, called by every client will share the same ServletContext.
    PageContext acts las the smallest scope. Each JSP in a given web application gains its own PageContext, each time the page is called, with different ones for different users, or when the same user calls the same page multiple times.

  • The difference between N80 and N80IE ?

    What is the difference between M80 and N80ie?

    02-Jan-2007
    07:45 PM
    korngear wrote:
    The Nokia N80 Internet Edition is a new version of this handset with the same hardware as the normal N80. It is due for release in Q4 of 2006 and will be available in Patina Bronze or Pearl Black, and has the following additional software included.
    Yahoo Go! for Mobile
    Flickr
    Some Amazon Branded Software
    'Download!' App management
    Internet Telephone - SIP VOIP Frontend
    WLAN Wizard
    Gizmo VOIP - Gizmo Project VOIP Frontend.
    \\en.wikipedia.org//
    @Korngear
    Thanks.
    Could N80 be upgraded to N80IE?

Maybe you are looking for

  • How do I move notes within the Notes App to a different account?

    My iPhone4 has iOS 4.2.1, and I didn't realize until today that that came along with an updated Notes app that allows syncing with email accounts. Somehow I managed to unknowingly move about half of my notes to one of my email accounts, which deleted

  • Extracting files error on WindowsXp,Service Pack 3

    Extracting files error on WindowsXp,Service Pack 3 I'm just staring to use CS3. I'm running Windows Xp Professional Service Pack 3. the CS3 files are in the compact form and when I run the file ADBEPHSPCS3_WWE, I get the following messages Preparing

  • Use imported attribute to reference different meta data for export

    our HR system only provides the three letter country code and i would like to export to AD the two letter country code and the spelled out country name.  maybe someone can provide the best way to do this. some questions i have had around trying to so

  • Monitoring HANA Studio

    Hello, I'm monitoring the hana db with the hana studio and I've a doubt about the disk usage monitor. Total Disk usage must be equal or greater than the data volume size, musn't? Thanks a lot

  • On submit perform an insert on one table and an update on aother table

    I am trying to perform and insert on the table one table (the wizard created my form the insert is going against the table that I created using the wizard) and on the form is on field that is also in another table. Therefore, I am trying to perform a