Which is more efficient for includes/imports?

Which is more efficient?
1) <jsp:include
2) <%@ include file
3) <c:import
4) Custom tag version (tomcat 5)
<me:header/>
header.tag
navigation html stuff
Thanks,
Karmen

Depends...
1) <jsp:include -- this is a runtime include. It will embed the included file at runtime.
2) <%@ include -- this is a compile-time include. It will copy the file's contents into the JSP page when it compiles it into a servlet. Also, typcially it will not recompile the main page if the include file changes, where as #1 above will.
3) <c:import -- ...well, I don't honestly know what this does.
4) Custom tag -- what this does clearly depends on what the tag is written to do. But most of the time, this is just going to write some simple HTML stuff out. You could do it that way, but using 1 or 2 to include some HTML or JSP fragment files would probably be better, since it would be easier to maintain.

Similar Messages

  • Implicit Join or Explicit Join...which is more efficient???

    Which is more efficient?
    An IMPLICIT JOIN
    SELECT TableA.ColumnA1,
    TableB.ColumnB2
    FROM TableA,
    TableB
    WHERE TableA.ColumnA1 = TableB.ColumnB1
    Or....An EXPLICIT JOIN
    SELECT TableA.ColumnA1,
    TableB.ColumnB2
    FROM TableA
    INNER JOIN TableB
    ON TableA.ColumnA1 = TableB.ColumnB1
    I have to write a pretty extensive query and there will be many parts and I just want to try and make sure it is efficient as possible. Can I EXPLAIN this in SQL Navigator as well to find out???
    Thanks in advance for your review and hopeful for a reply.
    PSULionRP

    Alex Nuijten wrote:
    The Partition Outer Join is very handy, but it's an Oracle-ism - Not ANSI ...Ooh, "New thing learnt today" - check.
    but then again who cares? ;)Oracle roolz! *{;-D                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Which is more stable for Encore: XP 64 bit, or Vista 64 bit?

    Which is more stable for Encore: XP 64 bit, or Vista 64 bit?
    Any thoughts on this, most appreciated!
    Thanks,
    -Stuart

    If Encore CS4's transcoder can run on more than one thread (and if you of course have a multicore system), then I'd say yes. Otherwise, probably no advantage.
    I don't use Vista 64, so I don't know whether there are any disadvantages.

  • Which is more useful in include directive and taglibraries

              I am writing some static html tags inside a file.
              This files i need to call from jsp pages.
              one is i can call using include directive.
              other is writing taglibraries.
              Performance and optimization wise which is more appropriate?
              

    There is an include directive and a jsp:include tag. I would suggest that
              performance differences between these are nominal, with the directive being
              slightly faster due to its "inlining nature".
              Don't write your own tags to do this unless you have to. That would be
              silly.
              Peace,
              Cameron Purdy
              Tangosol, Inc.
              http://www.tangosol.com
              +1.617.623.5782
              WebLogic Consulting Available
              "Raaj" <[email protected]> wrote in message
              news:3af02b63$[email protected]..
              >
              > I am writing some static html tags inside a file.
              > This files i need to call from jsp pages.
              > one is i can call using include directive.
              > other is writing taglibraries.
              > Performance and optimization wise which is more appropriate?
              >
              

  • How can I import data using .dmp into the table which has more columns then in import

    I am building the history for warehouse purpose on Oracle 8i database and want to use the old import (.dmp) files (from oracle 7.3.4) to import data but the underlying table is having few more columns which are not in my old DMP file .. how can I import the data into these altered tables while using the same *.imp files .
    Any solutions ?

    That is the most obvious solution .. but think of the case when my operational database which is the source of my data is undergoing changes every quarter i.e after every 3 months there are some changes on underlying table structures which means structures of my import files will always be different after evry quarter .. you can imagine the number of temporary import structures I need to create .. can't there be a solution wherein I can write an SQL over the import file to read the data in required format ..

  • Help, I need to use my Time Capsule and iCloud more efficiently for memory!!

    I have an early 2011 Macbook Pro.  It is running low on memory.  I finally broke down and purchased an Aiprort Time Capsule yesterday.  I was able to back up and everything ran smoothly.  Now that I have done this, I am hoping someone can help me figure out how to remove some items from my laptop to free up some memory.  I had 6 movies in my itunes that I deleted (saved on an external hard drive a few days ago) and yet I still seem to have a large percentage of movie memory taken up.  Although, maybe it is some tv shows I have in itunes.  Along with the Time Capsule I also have 15 GB of iCloud memory which I am using almost 10 GB.  I have 98.87GB free of 319.21 GB on my laptop.  I know it isnt terrible, but I would really like to open up some space as I tend to add a lot of pics and music to my computer.  We have an iPad, 2 iphones and an itouch and appletv that are all using space and I seem to be running out of space on my ipad and iphone as well.  So, I would love to be able to put my music and tv shows and pics on my time capsule or something...Not sure.  If anyone has any ideas that would be great on my computer or for that matter my ipad since I just keep removing items!  Thanks!!

    The best thing for you to do, in my opinion, is to:
    Buy a larger internal drive - I recommend the Hitachi Travelstar 7K1000 - 1 terabyte, 7200 rpm & SATA III negotiated speeds for your model, and;
    invest in some more external storage. 1 terabyte drives are common and cheap. You may want to get a larger drive (I use two LaCie 2big Thunderbolt drives - one 4 terabytes, the other 8 terabytes. I also have four HGST Travelstar 7K1000 1 terabyte drives that I use for cloning my internal drive).
    Buying the larger internal drive should be your first step. Adding additional external storage can come later.
    Good luck,
    Clinton

  • Which is more efficient way to get result set from database server

    Hi,
    I am working on a project where I require to query database to fetch result set and then iterate through the resultset. Now, What I want is that I want to create one single java code that would call many different SQLs and create a list out of resultset. There are two approaches for me.
    1.) To create a txt file where I can store my queries. My java program can read this file and get the appropriate query to be used.
    2.) To create a stored procedure containing the queries and call the stored procedure from my java program. Also, not that some of the queries needs to be created dynamically depending upon the parameteters supplied.
    Out of these two approches which is optimum and why?
    Also, following things to be noted.
    1. At times I want to create where clause of the query dynamically depenending upon the parameters passed.
    2. I want one single java file that will handle all database calls.
    3. Paramters to the stored procedure can be passed using array descriptor.
    4. Conneciton I am making using JNDI.
    Please do provide me optimum way of out these two. You may also suggest some other approaches, if any.
    Thanks,
    Rajan
    Edited by: RP on Jun 26, 2012 11:11 PM

    RP wrote:
    In case of queries stored in text files. I will require to replace some pre defined placeholder with actual parameters and then pass that modified query to db engine. Even I liked the second approach as it is more easily maintainable. There are a couple of issues. Shared SQL is one. Irrespective of the method used, the SQL cursor that is created needs to have bind variables. This ensures re-usability of the cursor. This reduces the risk of Shared Pool fragmentation. This lowers hard parsing and reduces CPU utilisation.
    Another issue is flexibility. If the SQL cursors are created by stored procedures, this code resides on the server and abstracts the Java client from the complexities of SQL and SQL performance. The code can easily be updated and fine tuned to deliver faster/better SQL cursors, or modified to take new Oracle features, changes in data model, and so on, into consideration. This stored proc can be updated without having to touch or recompile a single byte of Java client code.
    There's also the security issue. What is more secure? SQL encapsulated in stored procs in a secure database and server environment? Or SQL "encapsulated" in text files on the client?
    The less code you have running on the client, the less code you have running in the wild that can be compromised without having to first compromise the server.
    Only I was worried about any performace issue might happen using this approach. Performance is not a factor of who creates the SQL cursor.
    Whether Java client creates a SQL cursor, or a PL/SQL stored proc creates a SQL cursor, or a .Net client creates a SQL cursor - that SQL cursor does not know what the client is. It does not care what the client is. The SQL cursor performs as well as it is capable of.. given the execution plan, data volumes, server resources and speed/performance of the server.
    The client language and SQL cursor interface used by the client (there are several in PL/SQL), determines the performance of the client's interaction with the cursor (e.g. round trips to the database when interfacing with the cursor). The client language (and its client interface to the cursor) does not dictate the actual performance of that SQL cursor on the database (does not make joins faster, or I/O faster)
    One more question, Will my java program close the cursor that I opened in Procedure?That you need to ask your Java code. Java code leaking ref cursors are unfortunately all too common. You need to make sure that your Java client interface to SQL cursors, closes the cursor handle when done.

  • What is much more efficient for building Web Services: RSS or Axis

    Hi ,
    i am focusing on a new feature in our web seftware product and we wish to integrate a web service communication allowing our customers to retrieve all needed data.
    Ok now the problem, as far as the technical choice is concerned , i heard a lot about RSS and also about some SOAP engines ( axis, xfire,...) , si my question is which the best choice? what make one better then the other ? which is much more secure once implemented ?
    please i am eager to hear your advises!!
    thanks

    Hello, has anyone done any integration with Java api or web services? Is any information available?

  • Being more efficient with effects

    Hi,
    I typically have 3 layers of video. The first is of  a news broadcaster on the left of the screen, in the background is a static backdrop and on the right are images, maps etc whatever the broadcaster is talking about. Now, the images/maps video layer always has the same effects (basic 3D, bevel edge, size and position). At the moment I am applying these effects to every image/map. Is there any way to be more efficient, for instance I could assign these effects to a layer of video, so whichever image I put in this layer the effects will be automatically added.
    Thanks
    Gareth

    Set up your first insert, then select that effected clip and right-click.
    Select 'Copy', then select all of the other clips to which you want to apply
    the same basic 3D, bevel edge, size and position effect, right-click
    and select 'Paste Attributes'.

  • 2.3 ghz G5 DP or 1.33 ghz G4 DP - which is more reliable

    Which is more reliable for use as a small email server ? The G5 model has heat pipes making the shelf life shorter.
    I have 2 single processor 1ghz G4s that haven't quit working since day 1.

    I'd go with the G5 on the basis that the G4 has to be, what, 7 years old now? Pure mechanical wear on the drives and the power supply in particular mean you're probably living on borrowed time.
    That's not to say the G4 is going to break, though, and you could certainly put a new drive in it to reset that particular counter. Given that you have two of them you could even use the other as a spare, depending on what else it's doing.

  • More efficient one. Select Db and then delete OR using DELETE stmt on DB

    Hi Gurus,
    Which is more efficient one.
    1. Select from Database on some condition.
         Then use delete statement on smae DB
    2. Delete from DB on some condition.

    The efficient method is
    SELECTING REQUIRED FIELDS AND THEN SORT THE TABLE AND PERFORM DELETE OPERATION LIKE
    1)  SELECT (REQFIELDS)
           FROM spfli
           INTO TABLE itab
           WHERE carrid = 'LH'.     
    2)   SORT itab BY cityto.
       3)  DELETE ADJACENT DUPLICATES  FROM itab COMPARING cityto.
    It has reasonable amount of completing the transaction

  • Suggests for a more efficient query?

    I have a client (customer) that uses a 3rd party software to display graphs of their systems. The clients are constantly asking me (the DBA consultant) to fix the database so it runs faster. I've done as much tuning as I can on the database side. It's now time to address the application issues. The good news is my client is the 4th largest customer of this 3rd party software and the software company has listened and responded in the past to suggestions.
    All of the tables are setup the same with the first column being a DATE datatype and the remaining columns are values for different data points (data_col1, data_col2, etc.). Oh, that first date column is always named "timestamp" in LOWER case so got to use double quotes around that column name all of the time. Each table collects one record per minute per day per year. There are 4 database systems, about 150 tables per system, averaging 20 data columns per table. I did partition each table by month and added a local index on the "timestamp" column. That brought the full table scans down to full partition index scans.
    All of the SELECT queries look like the following with changes in the column name, table name and date ranges. (Yes, we will be addressing the issue of incorporating bind variables for the dates with the software provider.)
    Can anyone suggest a more efficient query? I've been trying some analytic function queries but haven't come up with the correct results yet.
    SELECT "timestamp" AS "timestamp", "DATA_COL1" AS "DATA_COL1"
    FROM "T_TABLE"
    WHERE "timestamp" >=
    (SELECT MIN("tb"."timestamp") AS "timestamp"
    FROM (SELECT MAX("timestamp") AS "timestamp"
    FROM "T_TABLE"
    WHERE "timestamp" <
    TO_DATE('2006-01-21 00:12:39', 'YYYY-MM-DD HH24:MI:SS')
    UNION
    SELECT MIN("timestamp")
    FROM "T_TABLE"
    WHERE "timestamp" >=
    TO_DATE('2006-01-21 00:12:39', 'YYYY-MM-DD HH24:MI:SS')) "tb"
    WHERE NOT "timestamp" IS NULL)
    AND "timestamp" <=
    (SELECT MAX("tb"."timestamp") AS "timestamp"
    FROM (SELECT MIN("timestamp") AS "timestamp"
    FROM "T_TABLE"
    WHERE "timestamp" >
    TO_DATE('2006-01-21 12:12:39', 'YYYY-MM-DD HH24:MI:SS')
    UNION
    SELECT MAX("timestamp")
    FROM "T_TABLE"
    WHERE "timestamp" <=
    TO_DATE('2006-01-21 12:12:39', 'YYYY-MM-DD HH24:MI:SS')) "tb"
    WHERE NOT "timestamp" IS NULL)
    ORDER BY "timestamp"
    Here are the queries for a sample table to test with:
    CREATE TABLE T_TABLE
    ( "timestamp" DATE,
    DATA_COL1 NUMBER
    INSERT INTO T_TABLE
    (SELECT TO_DATE('01/20/2006', 'MM/DD/YYYY') + (LEVEL-1) * 1/1440,
    LEVEL * 0.1
    FROM dual CONNECT BY 1=1
    AND LEVEL <= (TO_DATE('01/25/2006','MM/DD/YYYY') - TO_DATE('01/20/2006', 'MM/DD/YYYY'))*1440)
    Thanks.

    No need for analytic functions here (they’ll likely be slower).
    1. No need for UNION ... use UNION ALL.
    2. No need for <quote>WHERE NOT "timestamp" IS NULL</quote> … the MIN and MAX will take care of nulls.
    3. Ask if they really need the data sorted … the s/w with the graphs may do its own sorting
    … in which case take the ORDER BY out too.
    4. Make sure to have indexes on "timestamp".
    What you want to see for those innermost MAX/MIN subqueries are executions like:
    03:19:12 session_148> SELECT MAX(ts) AS ts
    03:19:14   2  FROM "T_TABLE"
    03:19:14   3  WHERE ts < TO_DATE('2006-01-21 00:12:39', 'YYYY-MM-DD HH24:MI:SS');
    TS
    21-jan-2006 00:12:00
    Execution Plan
       0   SELECT STATEMENT Optimizer=ALL_ROWS (Cost=2.0013301108 Card=1 Bytes=9)
       1    0   SORT (AGGREGATE)
       2    1     FIRST ROW (Cost=2.0013301108 Card=1453 Bytes=13077)
       3    2       INDEX (RANGE SCAN (MIN/MAX))OF 'T_IDX' (INDEX) (Cost=2.0013301108 Card=1453 Bytes=13077)

  • How do I create my own favorite template for DVD slideshows? I used to be able to select this from pulldown menu, but cannot now do so. I am directed straight to templates, which take more memory. I have a large slideshow, and need all the space I can get

    First, how do I create my own favorite theme template for DVD slideshows? I used to be able to select this from pulldown menu, but cannot now do so. I am directed straight to already existing themes, which take more memory. I have a large slideshow, and need all the space I can get. I just want to use a picture as my DVD cover, and then insert a slideshow. Also, when I try to burn my 8.5gb double sided slideshow, all that burns is the music. It is a large slideshow, a memorial on the life of my now deceased brother. This means a lot to me and to my family, and I am having so much trouble trying to burn it. I have gone into Project View and selected appropriately. The bar shows I have room to burn this DVD, but it does not burn.  I have burned so many DVDs in the past, but this one just will not burn. I am so confused at this point. I will say this is the first 8.5gb I have attempted to create and burn. My specs list a 7.7gb or 4.7gb as operable....but there are no 7.7gb dvds. I had to purchase 8.5gb. Help? What am I doing wrong? I have spent so much time on this, and just cannot figure it out.

    Final Cut is a separate, higher end video editor.  The pro version of iMovie.
    Give iPhoto a look at for creating the slideshow.  It's easy to assemble the photos in an album in iPhoto, put them in the order you want and then make a slideshow of them.  You can select from various themes and transitions between slides and add music from your iTunes library.
    When you have the slidshow as you want use the Export button at the bottom of the iPhoto window and export with Size = Medium or Large.
    Save the resulting Quicktime movie file in your Movies folder.
    Next, open iDVD, choose your theme and drag the QT movie file into the menu window being careful to avoid any drop zones.
    Then follow this workflow to help assure the best qualty video DVD:
    Once you have the project as you want it save it as a disk image via the File ➙ Save as Disk Image  menu option. This will separate the encoding process from the burn process. 
    To check the encoding mount the disk image, launch DVD Player and play it.  If it plays OK with DVD Player the encoding is good.
    Then burn to disk with Disk Utility or Toast at the slowest speed available (2x-4x) to assure the best burn quality.  Always use top quality media:  Verbatim, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
    The reason I suggest iPhoto is that I find it much easier to use than iMovie (except for the older iMovie 6 HD version).  Personal preferences showing here.

  • Issue in FF v 3.6.10: I have a page which have more than 20 link, clicking on these link opens up a popup using window.showModalDialog, for the first 20 popup opens up without any prob but for the 21st n more click it block the popup and do not open.

    Issue in FF v 3.6.10: I have a web page which have more than 20 link, clicking on each of these link opens up a pop-up using window.showModalDialog, for the first consecutive 20 popup opens up without any prob but for the 21st n more click it block the popup and do not open. This is m problem, the real user on the web page can click on more than 20 link in such a scenario it may create problem, please help

    Your above posted system details show outdated plugin(s) with known security and stability risks.
    *Shockwave Flash 9.0 r999
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/
    In Firefox 3.6 and later versions you need the Next-Generation Java™ Plug-In present in Java 6 U10 and later (Linux: libnpjp2.so; Windows: npjp2.dll).
    http://java.com/en/download/faq/firefox_newplugin.xml
    See also http://java.sun.com/javase/6/webnotes/install/jre/manual-plugin-install-linux.html

  • I have my own icloud account separate from my family's apple ID for itunes. I need more storage for icloud...do I have to pay a separate $20/ month to get more storage or does the $20 include all members of the plan?

    I have my own icloud account separate from my family's apple ID for itunes. I need more storage for icloud...do I have to pay a separate $20/ month to get more storage or does the $20 include all members of the plan?

    Welcome to Apple Support Communities
    If your iCloud account uses your family's Apple ID, you will pay $20/year for all your family members. If your iCloud account uses a different Apple ID than your family's Apple ID, you will pay only for you

Maybe you are looking for

  • Is there a way to create a new folder in the Save As dialog box?

    I could do this on my PC in Windows - I find it hard to believe there isn't a way to create a new folder when I'm saving a document?  Perhaps I'm missing something...

  • Windows Could not find the Driver for your Apple iPod USB Device (5G 30GB)

    I have a 8GB iPod Nano. My roommate has a 30GB 5G Video. Black. My iPod syncs flawlessly. His is not recognized by Windows or iTunes. Every time we plug in the iPod, it prompts us for the driver. I tried to install the update apple mentions through t

  • File structure in Sun ONE (aka jForte)

    Hi: I have (and want to use) the following sources file-strcutrue: src/applet.java index.htlm applet.class But ONE (AFAIK) just allows to work this way (compiling the .class files in the same directory): index.html applet.java applet.class Does anybo

  • JSP, Web Layout, Tomcat

    Please help me with the next questions: 1)Oracle DB server and Oracle J2EE container are located in different places. The jsp in Oracle report web layout was generated. I put this JSP on the Oracle J2EE container and tried to run this jsp: http://loc

  • I want to open URL in new tab in SSRS report.

    I want to open URL in new tab. Actually I am passing URL expression in Action options of Textbox properties in SSRS report.The user is getting directed to desired URL but using same tab in which report is generated. I want to open URL in new tab. How