What's the difference between include directive & include action tag?

I no that the directive is used for including static content,
while the action is also used for dynamic content.
So the first one will include the content into the JSP only at compilation time. The second one will include the content every time you access the JSP.
*<html>*
*<body>*
*<h1> Include Action test PAge</h1>*
*<h2> Using the include directive</h2>*
*<%@ include file="included2.html"%>*
*<%@ include file="included2.jsp"%>*
*<h2> Using the include action</h2>*
*<jsp:include page="included2.html" flush="true"/>*
*<jsp:include page="included2.jsp" flush="true"/>*
*</body>*
*</html>*    I tried withis code. But its giving the same result.I didn't modified the source. I modified in the included file.As I request for the JSP page I got the same result for both.
so i just want to know that is thier any way or example by which i can see the difference between these two clearly..
please help me out.
thnx.

As our almighty Google says: @include is compiletime and jsp:include is runtime.
Install Google at your machine. It's really great. It has answers on almost all questions.

Similar Messages

  • What is the difference between java direct or java bean in JSP?

    What is the difference if I use java code directly in JSP or use java bean in JSP?
    Which class to use for receiving the passed parameter from html or java script? Any difference for java code and java bean in the way receiving the passed data?
    How can I pass string from jsp to html or java script?

    it's generally accepted as better design to separate presentation from logic. meaning, the java code in the jsp should be used to support displaying data, as oppsoed to implementing the application - like database access, etc.
    when the logic is separated from the presentation, it allows you to reuse logic components within several jsp pages.
    if you decide to change the presentation layer in the future (to support wap, for example) you don't need to rewrite your entire application, since the "guts" of the application is outside of the jsps.
    it is also a good idea to separate your business logic from your data layer. adding a "buffer zone" between these layers helps in the same manner as in separating presentation from logic. if you're using flat files for storage now, upgrading to a database wouldn't require rewriting all your business logic, just the methods which write out the data to a file, for example.
    once you feel comfortable with separating the various layers, check out the struts framework at http://jakarta.apache.org/
    to answer your second question, to get parameters passed in from HTML forms, use ServletRequet's getParameter() method.
    in tomcat:
    <% String lastName = request.getParameter( "lastname" ); %>
    to answer your third question: when displaying the HTML from withing a jsp, print out the string to a javascript variable or a hidden form element:
    <% String firstName = "mike"; %>
    <input type="hidden" name="firstname" value="<%= firstName %>">
    <script language="javascript1.2">
    var firstName = "<%= firstName %>";
    </script>
    this jsp results in the following html:
    <input type="hidden" name="firstname" value="mike">
    <script language="javascript1.2">
    var firstName = "mike";
    </script>

  • What is the difference between J2EE Engine vs WAS in SAP

    Hello All,
    What are the differences between J2EE engine included with BW 3.0B and the WAS 6.20 ? what are the limitations of J2EE engine in terms of functionality.
    Thanks in advance
    Ravi

    Hello Nitzan,
    Thanks for the response. Just to clarify my question, There is a J2EE engine as part of BW 3.0B. What is the difference in terms of functionality of J2EE engine which comes bundled with BW 3.0B versus say WAS 6.20.
    1. The J2EE engine which comes bundled with BW 3.0B, is it a run time or a full product where a java app can be developed and deployed to integrate with BW or do you need WAS for that purpose.
    Thanks & regards
    Ravi

  • What is the difference between jsp :include and server side include

    what is the difference between jsp :include and server side include(request dispatcher include method)????
    i understand that both request dispatcher include method and jsp:include take dynamic data,so when would one use request dispatcher include and when jsp:include.
    Is the usage interchangeable?i believe jsp include is used only for jsp/html but include directive can be used to include servlets ,jsp and html....correct me if i m wrong and
    do suggest if u hav ny other diff in this context...

    The difference really is: in what format do you want your inclusions? If your environment has many Java developers and only a few designers that focus mainly on, say, Flash, that might push you more towards the server-side include() directive. Or, if you have a large set of pages that receive dynamic content that is displayed in a consistent fashion (such as a workflow header area on a page).
    If, on the other hand, you have more web designers, there may be a greater desire to deal in markup rather than Java code. Java developers themselves might prefer to view markup (JSP) that more resembles the eventual output than something occuring in Java code.
    Finally, there are considerations of tiering. While it is totally possible to (and I have previously) implement 'view classes' that render markup or generate layout templates, JSP's offer, IMO, a subtle, psychological advantage. By forcing a developer to work in a different format, markup versus Java source, the separation on view from controller and model becomes a bit easier. It is still possible to make mistakes, but if a developer at some point notices, "Wait, I'm in a JSP, should I be importing a java.sql class?", then the choice to use JSP includes has paid off in spades.
    - Saish

  • What is the difference between retail version/discs included with computers

    I bought a used iMac G5 that has Leopard installed on it, but no discs were included. I need to reinstall. There are plenty of versions on eBay that are original install discs that came with the computers and they are much less expensive than the retail versions. What is the difference between them? Would discs that came with an Intel Core iBook be totally incompatible with my G5?

    I have the same problem. I have a 1 year old Macbook Pro 15" which came with no discs. I bought a set of OSX 10.5.2 install discs which clearly say for MacBook Pro on the discs. However they do not get any further than selecting English a he main language before they refuse to load further software stating incompatibility. I do not understand why, when both are Mac book Pros and recent ones too. Does anyone have any ideas?

  • What's the difference between *.JSP and *.DO?

    Hi. I'm new to JSP programming and noticed that form actions call something like pageName.do -- what's the difference between the .JSP and .DO? When do you call one vs. the other? Thanks.

    A request including the jsp extension usually refers to a single JSP file on disk that will be loaded and rendered directly.
    A request including the do extension usually refers to a call into a special servlet that will redirect the request to another "controller" class which will in turn do some processing, and then load one or more JSP files to render the response.
    The commonest form of the latter is the usage in the Struts framework. The do extension is not mandatory, it just presents a convenient way to distinguish calls that should be handled by Struts from requests for JSPs and other content that are mostly handled by the container (e.g. Tomcat) directly.

  • What are the differences between Cartweaver CF and PHP?

    I am on my final step of finishing the webpage that I am building and saw Cartweaver for a shopping cart that is compatible with dreamweaver. But I looked into the site and hey didnt give an explanation between the CF and PHP version. So I would like to know the differences and which one would work best with Dreamweaver Cs6.

    Hi Kendall,
    As far as application differences, functionality wise, there is no difference. Both Cartweaver 4 CF and Cartweaver 4 PHP function and present themselves exactly the same. As far as implementation there are very subtle differences due the the way CF and PHP work, but they both are very close and use "includes" to place the Cartweaver functionality in your site penetration pages.  The web based store admins work exactly the same for both.  So you get the same results no matter which direction you go.
    Now what is the difference between PHP and ColdFusion?  That is a very important question as it will impact what platform you use from now on - for this site, and possably future sites you build so this is worth taking a little time to consider.
    Which is best?  Well this could lead to a discussion like which is best Mac or PC?  There are evangelists and zealots on both sides. The real truth of the matter is both are good choices, you just need to decide which is best, for you.  One poster said "what does your host support"  -  good point, but if you are new to working with dynamic web sites and are deciding what platform you want to go with there are more important factors to consider than what your current host supports. You can always select a different host.
    The biggest difference between CF and PHP is they way they are written - PHP is script pasted, much like JavaScript, CFML is tag based much like html. Because of this CFML is often a little easier to learn because it's a bit easier to look at something and figure out what it's doing.  So you may want to take a little time looking at this aspect. 
    Fact is though, with either one because Cartweaver does the vast majority of anything to do with code for you, learning the language is something you may not choose to do anyway.  An advantage to PHP is that it has much wider support, so finding developers to help out, or hosts can easier with PHP. So if you don't have any desire to dig in and learn code as you go and only want to learn what's necessary to get your shopping cart site up, then the steps and learning curve are pretty much the same and PHP may be a good way to go.  If this raises more questions than it answerers, let me know I'd be happy to discuss this more with you offline.
    So, back to the basics - from a functionality point, they are both the same. You only need to choose which platform you think will work best for you and go from there.
    I hope this helps. If you have any other questions at all, ask away.
    Lawrence Cramer - *Adobe Community Professional*
    http://www.Cartweaver.com
    PHP & ColdFusion Shopping Cart for Adobe Dreamweaver
    Stay updated:
    http://www.facebook.com/cartweaver
    http://www.twitter.com/cartweaver
    http://blog.cartweaver.com

  • What is the difference between private API and public API??

    Hi,
    I came accross the terms private API and Public API ?
    what are these APIs and what is the difference between them??
    Thanks and Regards,
    Soham

    Soham,
    Publicly Callable Business Process APIs are the list of supported and published APIs. Direct calls to any other routines are not supported, unless explicitly specified, because API validation and logic steps will be bypassed. Many other packages include procedures and functions, which may be called from the API code itself.
    Note:216838.1 - Oracle HRMS Product Family Publicly Callable Business Process APIs (A Reference Consolidation)
    Regards,
    Greg

  • What are the versions of BW and what is the difference between them

    what are the versions of BW and what is the difference between them

    Hi Reddy,
    SAP BIW 2.0a, 2.0b
                   3.0a, 3.b
                   3.1c
                   3.5  and Now BI 7 are some of the versions.
    Major difference between BW3.5 and BI 7.0 versions:
    1. In Info sets now you can include Infocubes as well.
    2. The Remodeling transaction helps you add new key figure and characteristics and handles historical data as well without much hassle. This is only for info cube.
    3. The BI accelerator (for now only for Infocubes) helps in reducing query run time by almost a factor of 10 - 100. This BI accelerator is a separate box and would cost more.
    4. The monitoring has been improved with a new portal based cockpit. Which means you would need to have an EP guy in ur project for implementing the portal.
    5. Search functionality hass improved!! You can search any object. Not like 3.5
    6. Transformations are in and routines are passé! Yes, you can always revert to the old Tcodes.
    7. The *Data Warehousing Workbench *replaces the Administrator Workbench.
    8. Functional enhancements have been made for the Data Store object:
    New type of Data Store object, Enhanced settings for performance optimization of Data Store objects.
    9. The transformation replaces the transfer and update rules.
    10. New authorization objects have been added
    11.*Remodeling *of Info Providers supports you in Information Lifecycle Management.
    12 the DataSource: There is a new object concept for the DataSource .
    Options for direct access to data have been enhanced.
    From BI, remote activation of Data Sources is possible in SAP source systems.
    13. There are functional changes to the Persistent Staging Area (PSA).
    14. BI supports real-time data acquisition.
    15. SAP BW is now known formally as BI (part of NetWeaver 2004s). It implements the Enterprise Data Warehousing (EDW). The new features/ Major differences include:
    a) Renamed ODS as Data Store.
    b) Inclusion of Write-optimized Data Store which does not have any change log and the requests need no activation
    c) Unification of Transfer and Update rules
    d) Introduction of "end routine" and "Expert Routine"
    e) Push of XML data into BI system (into PSA) without Service API or Delta Queue
    f) Introduction of BI accelerator that significantly improves the performance.
    g) Load through PSA has become a must. Info Packages are used to load data upto PSA only.
        You need to create DTP to update data from PSA to Data Target.
    Regards,
    Ram.

  • What is the difference between variable and Define

    WHAT IS THE DIFFERENCE BETWEEN
    these different declarations when it is done using the keyword "variable" and "define"
    and both of these are done OUTSIDE "DECLARE"
    VARIABLE g_monthly_sal NUMBER
    DEFINE p_annual_sal =5000
    -- I understand that p_annual_sal will be taken as a CHAR.
    -- ALSO IF DEFINE variable acts as macro variable, SO is it necessary to give it some value whenever we define it.
    if not what value would be substituted for it?
    OR does that mean whenever we want to specify data type for a bind varible we should use VARIABLE and
    when we do not want to specify type we use DEFINE?
    THANK YOU
    Edited by: user6287828 on Feb 24, 2009 11:03 AM
    Edited by: user6287828 on Feb 24, 2009 11:04 AM

    Both are SQL*plus commands. In a real programming environment you will not use such constructs (except a few rare scripting cases).
    The difference is how the construct is later used. DEFINE is more like a copy&paste string. Whereever the name of this substitution variable is found it will be pasted into the sql*plus session.
    VARIABLE creates a real variable. You can change the value and if follwos the usual principles of variables (including binding).
    Example can be found the docs:
    from the docs
    Where and How to Use Substitution Variables
    You can use substitution variables anywhere in SQL and SQL*Plus commands, except as the first word entered. When SQL*Plus encounters an undefined substitution variable in a command, SQL*Plus prompts you for the value.
    You can enter any string at the prompt, even one containing blanks and punctuation. If the SQL command containing the reference should have quote marks around the variable and you do not include them there, the user must include the quotes when prompted.
    SQL*Plus reads your response from the keyboard, even if you have redirected terminal input or output to a file. If a terminal is not available (if, for example, you run the script in batch mode), SQL*Plus uses the redirected file.
    After you enter a value at the prompt, SQL*Plus lists the line containing the substitution variable twice: once before substituting the value you enter and once after substitution. You can suppress this listing by setting the SET command variable VERIFY to OFF.
    Using Bind Variables
    Bind variables are variables you create in SQL*Plus and then reference in PL/SQL or SQL. If you create a bind variable in SQL*Plus, you can use the variable as you would a declared variable in your PL/SQL subprogram and then access the variable from SQL*Plus. You can use bind variables for such things as storing return codes or debugging your PL/SQL subprograms.
    Because bind variables are recognized by SQL*Plus, you can display their values in SQL*Plus or reference them in PL/SQL subprograms that you run in SQL*Plus.
    Creating Bind Variables
    You create bind variables in SQL*Plus with the VARIABLE command. For example
    VARIABLE ret_val NUMBER
    This command creates a bind variable named ret_val with a datatype of NUMBER. See the VARIABLE command for more information. (To list all bind variables created in a session, type VARIABLE without any arguments.)
    Referencing Bind Variables
    You reference bind variables in PL/SQL by typing a colon (:) followed immediately by the name of the variable. For example
    :ret_val := 1;
    To change this bind variable in SQL*Plus, you must enter a PL/SQL block. For example:
    BEGIN
    :ret_val:=4;
    END;
    /

  • WHAT'S THE DIFFERENCE BETWEEN.....

    Hi friends,
    Please enlighten me ....
    What's the difference between using this.....
    1. Add User command functionality to ALVgrid report
    In order to add user command functionality to the ALV grid you need to perform the following steps:
                        1. Update 'REUSE_ALV_GRID_DISPLAY' FM call to include 'USER_COMMAND' FORM
                    2. Create 'USER_COMMAND' FORM
    call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
                i_callback_top_of_page   = 'TOP-OF-PAGE'
                I_callback_user_command = 'USER_COMMAND'   "see FORM
                is_layout               = gd_layout
                it_fieldcat             = fieldcatalog[]
                i_save                  = 'X'
           tables
                t_outtab                = it_ekko
           exceptions
                program_error           = 1
                others                  = 2.
          FORM USER_COMMAND                                          *
          --> R_UCOMM                                                *
          --> RS_SELFIELD                                            *
    FORM user_command USING r_ucomm LIKE sy-ucomm
                      rs_selfield TYPE slis_selfield.
    Check function code
      CASE r_ucomm.
        WHEN '&IC1'.
      Check field clicked on within ALVgrid report
        IF rs_selfield-fieldname = 'EBELN'.
        Read data table, using index of row user clicked on
          READ TABLE it_ekko INTO wa_ekko INDEX rs_selfield-tabindex.
        Set parameter ID for transaction screen field
          SET PARAMETER ID 'BES' FIELD wa_ekko-ebeln.
        Sxecute transaction ME23N, and skip initial data entry screen
          CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
        ENDIF.
      ENDCASE.
    ENDFORM.
    and using this----
    2. Add User command functionality to ALVgrid report
    In order modify PF_STATUS of ALV grid report you need to perform the following steps:
         1. Update 'REUSE_ALV_GRID_DISPLAY' FM call to include:
                        i_callback_pf_status_set = 'SET_PF_STATUS' statement.
         2. Create 'SET_PF_STATUS' FORM
         3. Create pf_status (i.e. 'ZNEWSTATUS').
              - It is recommend that you copy standard status'STANDARD' from function group SALV
                and modify it accordingly. ALV standard function codes always start with '&'.
    call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
                i_callback_top_of_page   = 'TOP-OF-PAGE'
                i_callback_pf_status_set = 'SET_PF_STATUS'   "see FORM
                is_layout               = gd_layout
                it_fieldcat             = fieldcatalog[]
                i_save                  = 'X'
           tables
                t_outtab                = it_ekko
           exceptions
                program_error           = 1
                others                  = 2.
          FORM SET_PF_STATUS                                         *
    FORM set_pf_status USING rt_extab TYPE slis_t_extab.
      SET PF-STATUS 'ZNEWSTATUS'.
                      "Copy of 'STANDARD' pf_status from fgroup SALV
    ENDFORM.
    I have assumed the former is used  when I am selecting a field on the list
    and the later when I have  created a pf-status. I mean to say... I have slected a field and click on some button to get further information.
    Please remove my confusion.
    Thanking you alll in advance,
    Hari Kiran.

    From their Terms & Conditions page:
    Grade A - Working phone in as new/mint condition. Complete with original box and accessories as sold new.
    Grade B (and Discounted) - Working phone in good condition with slight cosmetic blemishes. Charger supplied. If the phone includes a music player/radio then it is supplied with headphones. If the phone has PDA functionality a sync cable and/or docking cradle is supplied. Missing original packaging.
    Grade C (and Budget) - Working phone in poor cosmetic condition. Original or 3rd party charger supplied but missing accessories and original packaging.
    Substitute iPod for phone and I think it makes sense...
    tt2

  • What'z the difference between the Commercial Invoices and

    What'z the difference between the Commercial Invoices and
    Invoices/Excise Invoices? Also I understand that we can combine 2~3
    invoices and can create one commercial invoice? If it is possible, how
    to create the same?
    cheers
    shalsa007....

    Hello,
    A commercial invoice is a bill for the goods from the seller to the buyer. Commercial invoices are utilized by customs officials to determine the value of the goods in order to assess customs duties and taxes.
    In general there is no standard form for a commercial invoice although they tend to contain many of the following features:
    •     seller's contact information
    •     buyer's contact information
    •     consignee's contact information (if it is different from the buyers)
    •     invoice date
    •     a unique invoice number
    •     sales terms (usually in incoterm format)
    •     payment terms
    •     currency of sale
    •     full quantities and description of merchandise (Generally this includes unit price and total price. Product descriptions should be consistent with the buyer's purchase order. Including the Harmonized System commodity codes can be helpful, especially in countries that are WTO members.)
    Excise invoice “Original for Buyer copy”, whether  prices are inclusive or exclusive of excise duty.
    The invoice in which the Excise duties are included.
    As per Indian tax system, Excise duty (16%) is payable by each manufacturing unit on the value of manufactured goods / on the value added. The manufacturing plant is supposed to submit an excise duty report on fortnightly / monthly basis. Various registers (RG1, RG23A, RG23C, PLA) are maintained for that purpose, which record all the transactions including movement of goods, cenvat credit available and cash balance available.
    In SAP, we use transaction j1id for configuration and j1iin, j2i7, j1i5, j2i5, j2i6, j1ip for creating, extracting and printing excise invoice. 
    *Please reward if this helps**
    Regards
    AK

  • What is the difference between Safari 6.0 and 6.0.2?

    What is the difference between Safari 6.0 and 6.0.2?

    here is a copy of the text from Software Update
    Safari 6.0.2 is recommended for all users running OS X Lion v10.7.5
    and includes security updates.
    For more information, please visit: http://support.apple.com/kb/HT1222

  • What is the difference between apple warranty and applecare and applecare plus

    I understand that apple warranty covers damage due to manufacture defects and applecare is the extended warranty and insurance. Then what is applecare+? What is the difference between applecare and applecare+?

    The AppleCare extended warranty extends the standard one year warranty by two years and includes free telephone support for two years.
    The Apple Plus extended warranty does the same and includes some insurance covering accidental damage with a two claim limit with a deductible over the two year period.

  • What is the difference  between apple care protection plan and apple care

    What is the difference between apple care protection plan and apple care +

    apple care protection plan
    That is the extended warranty (total of 3 years including the standard warranty for the first year) for any Mac computer.
    apple care +
    That is the extended warranty (total of 2 years including the standard warranty for the first year) for any iDevice (iPad, iPhone, etc).
    For either, the standard warranty is usually referred to as hardware warranty (not Applecare); see an example for the warranty for an iMac:
    http://www.apple.com/legal/warranty/products/embedded-mac-warranty-us.html
    whereas the extended Applecare is referred to as that:
    http://www.apple.com/legal/sales-support/

  • What's the difference between Home Movie and Movie Project?

    I edit my movies in iMovie. After editing, I 'Share' them to Movie Projects in Finder. There's also an iMovie Home Movies folder that contains duplicates of some of the movies I've created myself. What's the difference between these folders. And, can I delete any of them? Thank you.

    A Time Capsule is hardware. It's basically an Apple AirPort Extreme wireless router with a built-in hard drive. For more info on this product:
    http://www.apple.com/timecapsule/
    Time Machine is a software application that allows your Mac to backup its data automatically to the hard drive on the Time Capsule. For more info on this software, which is included with the Leopard, Snow Leopard and Lion operating systems:
    http://www.apple.com/findouthow/mac/#timemachinebasics

Maybe you are looking for

  • Issue while creating ADF Table programatically

    Hi, I am trying to create a table programatically...And i implemented like below:             RichTable phoneTable = new RichTable();             phoneTable.setEmptyText("No Phone Details yet");             getContactPhone(contactObj.getPhone());    

  • Which jar file required

    Hi When i use BAPI calling from JspDyn Page in EP 6.0 i added sapjco.jar and htmlb.jar files. import com.sapportals.portal.htmlb.page.JSPDynPage; import com.sapportals.portal.htmlb.page.PageProcessorComponent; import com.sapportals.portal.prt.compone

  • Http Submit Form Button to New Window

    Hello, Does anyone know how to make a HTTP Submit Button open in a new window rather than the same window? I have a form that I need the user to print off as well as click a link so they can pay with Paypal. The problem is that if the user clicks the

  • User Interface : position for previous/next links when browsing spreadsheet

    Hello, When you have a reasonable number of columns to display the html page width can be quite large. So you have to scroll right to get the previous/next set of records hyperlinks controls because by default they are located at the bottom right cor

  • Ehancement in me21n

    hii experts My requirement is to modify in me21n when user is giving a particular document type in po automaticaly the purchase organisation will be there which is reltaed to that Document ype. E.g In my client there is one doc type Zkol In po if Zko