Does this modular approach works well in jsp?

HI all!
we are currently working on an application having more then 25 parameter (setup) tables and in almost all the pages we need to fill one or more combos from those tables (like combo of all countries,currencies e.t.c).
Instead of writing logic for filling those combos in each page i have defined small pages all containing the logic (and HTML)for filling a single combo....like for filling a combo having all countries in the database i have made a seprate litle page which does that (no HTML,BODY,FORM tages in it just a combo and logic of filling it)..... this way i have made those 25 pages each having a combo....
now when ever i need any of those combos in my page i just include them using <jsp:include> action...this way i only have to add one line in my page and combo is included at that point....
this approach is working fine.....But i have one doubt about it ....as it is a distributed application so if there are 100 or more users accessing pages having those combos then it will let the application down ...as a sngle jsp will load for those 100 or more users (assuming all hundrad pages have one common combo)..and since we are not managing any pool for those jsps therefore a time will come when our server will go out of memory....
so question is can we pool our jsps the same way as we pool other java objects?....or do you have any other good approach for that?
plz tell me ASAP it's urgent
thanks in advance
sajjad ahmed paracha

Try using custome tags for each of the combos. The server will hold a pool for the tags, getting, serving, then releasing from/to the pool as necessary.
If you are using a JSTL 2.0 container (like Tomcat 5, the syntax for making a .tag (tag-file) custom tag is not much different that JSP pages.
Or you could use Tag Handlers (java classes that implement from javax.servlet.jsp.tagext.Tag).
Chapter 15 of the J2EE tutorial explains: http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSPTags.html#wp74644

Similar Messages

  • Topology diagrams - advice on doing this type of work?

    I'm considering a contract position where I'd be doing topology diagrams and maps..Can anyone who has done or is doing this type of work offer any suggestions/advice for making this work go well?
    And I'm thinking along the lines of maybe...re-useable geometry...I suppose swatching for colors and styles for objects...just thinking out loud here..
    I'm sure that after awhile, I'll develop my own work patterns for this..might be nice to see if anyone has any "tips and tricks" to share.
    Thank you!
    John

    jdanek;
    well I resonate with your questions...so far, I don't have all the granular details, but I have to think that I'll be given some standards, and I know that I will produce this art from supplied sketches.
    I did google this and found that the spectrum went from playful/whimsical (think: kid's textbook) to the more serious and accurate, just a few steps short of full-on cartography.
    I don't yet know where this client falls on that spectrum.
    Probably be a good idea for me to develop a list of questions for them, maybe request some links so that I can see what ball park I'll be working in.
    thank you!

  • How does this IMPORT statement works

    can any one tell me how does this statement will work..
    I am wokring on Solution manager system , where in there is a function module SSF_FIELD_LIST
    to which system passes form name.
      import fields to fieldlist
             from database stxfcontr(sf) id l_fullname.
    stxfcontr is a table which contains value of in  a diff
    Regards,
    mayank

    It will import data object stored in memory under named fields to your custom data object fieldlist .
    The table which it is stored is name stxfcontr under RELID (memory area) SF .
    Cluster key (key of the entry) in that table is behind var l_fullname
    Anyhow I think [this link|http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3bf8358411d1829f0000e829fbfe/frameset.htm] is more that any explanation. Once you study it, you will understand the above.
    Regards
    Marcin

  • I have 2nd generation apple tv, and this has always worked well with Lion, have now upgraded to Mountain Lion, and now can not connect to itunes, all other things work, can buy or rent films.

    I have 2nd generation apple tv, and this has always worked well with Lion, have now upgraded to Mountain Lion, and now can not connect to itunes, all other things work, can buy or rent films, but can not listen to my music or show photos. Can anybody help please?

    I have 2nd generation apple tv, and this has always worked well with Lion, have now upgraded to Mountain Lion, and now can not connect to itunes, all other things work, can buy or rent films, but can not listen to my music or show photos. Can anybody help please?

  • How does this Linked List work?

    Hi.
    I wonder how this linked list work
    import java.util.Scanner;
    public class LinkedList {
        public static void main(String[] args) {
            Scanner in = new Scanner(System.in);
            Elem front = null;    // First element of list.
            Elem back  = null;    // Last element of list.
            while (in.hasNext()) {
                String word = in.next();
                Elem e = new Elem();     // Create a new list element.
                e.data = word;           // Set the data field.
                if (front == null) {
                    front = e;            // Back element will be set below.
                } else {
                    back.next = e;       // Link last elem to new element.
                back = e;           
            System.out.println("*** Print words in order of entry");
            Elem curr = front;
            while (curr != null) {
                System.out.println(curr.data);
                curr = curr.next;
    class Elem {
        public Elem next;    // Link to next element in the list.
        public String data;  // Reference to the data.
    }Does anyone know how this allocates memory?
    I feel strange because it's just front = e
    and back = e
    but it never says anything like front.next = back or something..
    Can anyone help me on this?

    Does anyone know how this allocates memory?Memory is allocated on this line:            Elem e = new Elem();     // Create a new list element.
    I feel strange because it's just front = e
    and back = e
    but it never says anything like front.next = back or something..Well, it doesn't need to. Setting .next is taken care of after the initial element is added. It never explicitly says front.next = back because front.next is set when the second element is added. It's set implicitly, on this line:                back.next = e;       // Link last elem to new element.It's implicit in that at that point front and back point to the same element.

  • HI, I recently upgraded my operating system IOS 5.0.1 on an iphone 3gs. MY question is, how do I get the text messaging preview to just pop up so that I can see the name only when the lock screen is on? The conventional ways of doing this aren't working

    HI, I recently upgraded my operating system IOS 5.0.1 on an iphone 3gs. My question is, how do I get the text messaging preview to just pop up so that I can see the name only when the lock screen is on? The conventional ways of doing this, such as using turning off the SMS preview under the "passcode lock", well that option no longer exists, or if it does, I'm somehow missing it.
    When I go to the "messages" setting under settings on my phone, I still don't see an option of turning it off.
    If I can just get the name of the person sending the message, as I had it before, I'd be happy.
    Help!

    That option still exists in Settings > Notifications > Messages > Show Prview (OFF) and View in Lock Screen (ON). Here's how to configure your Notifications and Notification Center for iOS 5: http://iphone-and-i.blogspot.com/2012/01/how-to-customize-notification-center-in .html

  • How does this SAVE View works in WAD ?

    Experts,  Before putting this question, i did search for this isssue but couldnt find the correct answer.
    when i run the query in portal i get the correct report. but when i right click on any of the charastractis, i could see the drop down list with some options. in this list of options, there is one entry "Save View"
    I tried saving it, with technical name and desc. but i couldnt find it anywhere.
    does anyone has idea ? how this save view works in Portal ?
    thanx

    Hi, plz. find my answers inline.
    My question is how can we make use of this View. So, what is the importance of VIEW ? How users get benefited ?
    >> If you have scenarios wherein users would want to carry out their own analysis & save for future reference/records, then query views prove to be beneficial. Else creating individual queries to suit user preferences is cumbersome & time consuming.
    I was researching on SDN, and found that if i save it As a VIEW. then if we change the query. the saved view remains unchanged. is that right ? But, what if i remove some characteristics from the query ? Does it remove from the VIEW too ?? Or, Its just, if we make some changes to Key figure structure. It wont make any impact on view.
    >>  You execute a query with its initial view, change the initial view by navigating in the data, and save this new navigational state as a query view. If you later change the initial view of the query in the BEx Query Designer, this change has no effect on the query view previously saved. The query view already exists as an independent object.
    Please let me know. if you find some documentation please post a link, i am happy to read that.
    >> http://help.sap.com/saphelp_nw70/helpdata/en/46/0294bc82f37041e10000000a155369/content.htm
    That if you are using WAD and save as view, you can open using BEx analyzer or the other way around ?
    >> You can create and open a query view from BEx Analyzer or Web / WAD, as long as you have the option to.
    --Priya

  • Does the iPod Touch work well for web browsing and submitting resumes?

    Hi, I am interested to know if the Touch would work well for a specific application. Lets say I'm surfing company career websites and want to browse and submit my resume. Would this work well for that? Usually on a computer, I can upload a Word Doc or PDF resume when the career site asks for it. Is this possible? I was wondering if anyone has tried this and can tell me. For instance, has anyone used the Touch to post a resume to Apple's or IBM's career job sites?
    Thanks.

    Just to clarify. I'm specifically asking if a web form that allows you to browse your hard drive on a Mac to submit a word doc can also be used on Touch. So if I have a PDF of my resume, can I use a webform to submit it just like on a mac?

  • Why does this expression not work as I'd hoped?

    I have a Black Solid 3 with a CC Particle World placed within it. I have some particles set up to run at 0.01 velocity outward from the center of my composition. I've put the following expression on the Velocity setting:
    value = thisComp.layer("Audio Amplitude").effect("Both Channels")("Slider");
    if (value > 50) 20 else 0.01
    The Audio Amplitude layer it is linked to is a auto-keyframe layer created from a .mp3 file - the values that it hits during the most intense part of the song range from 1 to around 85-90.
    Why does my velocity setting remain at 0.01 consistently, despite it being clearly evident that the Audio Amplitude layer is going far over 50.
    P.S.: If I change the > sign to a < sign, it stays at 20. Why?
    EDIT: Okay, it seems the issue was having the variable named as 'value'. Now that it works, it still doesn't seem to work as intended - I'd wanted the particles to move very slowly outward, and then whenever bass was detected, to speed up, until the bass was no longer detected, in which case it would return to a slow pace again, anyone have any idea how I'd go about doing this?
    Message was edited by: James Wingate

    One way is to prepare a "Remap Speed" slider somewhere in the comp that will control the remapping speed, and animate it.
    0 = time lock, 1 = normal speed, 2 = speedx2, etc
    Then in the time remap property of the layer, set this expression:
    s = [pickwhip the "Remap Speed" slider]
    t=inPoint;    // normal time
    T=inPoint;    // remapped time
    dt = thisComp.frameDuration;
    TIME = time-0.001;
    while (t<TIME){
        T+= s.valueAtTime(t) * dt;
        t+=dt;
    T;
    Ok i reread the original post again, in your case the "Remap Speed" slider could have the expression:
    value = thisComp.layer("Audio Amplitude").effect("Both Channels")("Slider");
    if (value > 50) 1 else 0.01          // above 50 : normal speed, under : very small speed

  • Does 10.7.5  work well with aperture?

    Does aperture work well with a Mac mini, Lion 10.7.5?   was there an initial problem that has been solved?   I was about to down load it when I read of some real problems.  I have never used aperture. But it seemed like a good application to use with iphoto.

    Aperture works well with Lion 10.7.5. and it will offer you many advanced features compared to iPhoto.
    If you read about problems, they are usually caused by problems on the particular systems running the applications.
    I'd check the hardware requirements. How much RAM does your Mac MIni have? Aperture is more efficient with plenty of memory. You should have at least 4GB of memory, more would be better.
    Have you looked at the Tutorials at the  Aperture Support page? Look at the information there to see, if you would like to work with Aperture, maybe try it out at your local Apple Store?
    Regards
    Léonie

  • How does this JSF mapping work

    an example I'm looking at has a forward " <jsp:forward page="/pages/inputname.jsf" /> " in index.jsp. How does faces map this forward request to inputname.jsp
    The only mapping in the web.xml is
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    Thanks ..

    RaymondDeCampo wrote:
    JFrain2004 wrote:
    Yes, I've seen that in the web.xml. Is it under the hood that JSF looks for a file called inputname.jsp when it gets a request for inputname.jsf?Yes; the default ViewHandler implementation does this. Alternate ViewHandlers, e.g. the FaceletsViewHandler, perform different mappings.Indeed. If you want to know how they did it in Mojarra, download the sources and check the com.sun.faces.application.ViewHandlerImpl class.

  • Why does this websites not work on our Mac products?

    http://www.gordonbennett2012.ch/
    We are working on the above website: We cannot get it to work on the following Mac devises. Would you please advise the reason for this and how we can fix it?
    From: FLY GAS
    Subject: Fwd: Website of Gordon Bennett 2012  
    Date: August 11, 2012 1:52:22 PM MDT
    To: René Louis  Cc: Mark Sullivan
    Hello René,   Thank you very much for your email. I am happy to work with you. I have been working on this all day. I still have not figured out why this is not working. I am Mark Sullivan and Cheri White's Crew Chief/Technical Support for the USA.
    The following products are being used:
    MacBook Pro,Mac OS X Version 10.7.4, Processor 2.8 GHz Intel Core 2 Duo
    Mac iPad, Version 5.1.1 (9B206)
    Non of these prodects will upload your site    http://www.gordonbennett2012.ch/
    I have tried the following browsers:
    Opera: Could not connect to remote server,
    Safari: no responce
    Firefox: The connection has timed out                                                                The server at gordonbennett2012.ch is taking too long to respond.
    Google Chrome: Oops! Google Chrome could not connect to www.gordonbennett2012.ch
    I have had all our crew do the same. They are in different parts of the USA.
    And the response has been the following:
    North Carolina on PC and Android: Site uploaded
    New Mexico on PC and iPhone: Site did not upload on either
    New Mexico on PC and iPhone: Site did upload
    I have also contacted Mac. Please let me know your thoughts so we can sort this out.  In the past I have been able to get your site. Just in the past month I have not been able to. I am getting a timed out error from ALL the above browsers.
    Kind regards,  Letitia
    Ms. Letitia Hill
    TEAM USA/FLY GAS
    PO Box 7186
    Albuquerque, New Mexico 87194 USA
    TEL: 505-270-6759
    FAX: 505-503-8430
    E-Mail: [email protected]
    Website: www.flygas.net
    Begin forwarded message:
    From: René Louis 
    Subject: Website of Gordon Bennett 2012 Date: August 11, 2012 1:25:13 PM MDT
    To: [email protected]
    Dear Letitia  Thank you very much for your message about our website.
    I am also working with a Mac and could not find any problems.  I would be very interested to know which products you are using and what is not working so I could have a detailed look at it.
    Thank you very much.
    Best Regards
    René
    Gordon Bennett 2012 Secretariat / Postfach 280 / CH-9650 Nesslau / Switzerland www.gordonbennett2012.ch  René Louis / Kirchweg 672 / CH-9650 Nesslau / Switzerland

    There seems to be a block with the Internet server in the United States as other Internet and cell servers i.e. Verizon and Century-Link DSL work with Mac, Andriod and PC. It just seems to be Mac on Comcast that is not...
    Without more data I'm inclined to say it's more likely to be Comcast itself, rather than 'Macs on Comcast'.
    For example, do other devices (PCs, Android, iOS) on that Comcast network also have problems connecting? or do they connect fine?
    I'd expect that any device at that network has a problem, which indicates a problem with Comcast. It might be their DNS not resolving properly, or them not routing data correctly, but that should be your focus.
    Perform a DNS lookup on the www.gordonbennett2012.ch hostname. What result do you get? Is it the expected address?
    If that returns the right address, what do you get with a traceroute?
    That will test the routing befween your system and the server, and may indicate other problems on the network.

  • How does this configurator module work?

    Hello,
    I'm a PHP programmer that has some work that I need to do for
    a client.
    He owns an online tshirt store and wants to develop a
    configurator similar to the own seen here:
    http://propercloth.com/custom-mens-shirts.php#
    You can see as you select fabrics & components the image
    of the shirt on the left updates with the texturised version. My
    client already has a database of his materials ready to plug into
    something like this. I'm quite unfamilar with flash as I mainly do
    backend PHP and I was wondering if someone here might know how this
    flash module works or has some experience coding one so I can get
    my head around how this thing works.
    What is required to create or how would I go about creating:
    1. The base model tshirt
    2. Individual components such as pockets that can be
    shown/hidden
    3. The texturisation engine
    4. Populating the base model with a selected material
    (colour)
    Any advice much appreciated!
    Marv.

    There is no flash on that page. All of that animation is done
    using Javascript. It looks like its using elements from the jquery
    library. You can find out more about it at
    http://www.jquery.com. There are
    other libraries with similar functionality. I prefer mootools:
    http://mootools.net/ .

  • Does the iphone 3gs works well with ios 5

    I need to buy an iphone 3gs for my daughter and need to know if it works well with the new IOS 5 or what ?

    I have the nearly the same problem.
    My problem is exactly that the music will play, but not over the internal loud speakers.
    When in plug in the earphones i will hear the music.
    Also the loud speakers would be fine, because the loudspeakers would work when i make a hands free phone call.
    There must be a bug in the ios 5.1.
    I also had a phenomen when I was connected in my local network, I have some airport express, I see these airport express device, the dock connector, but not the internal speaker or the iphone to select as an sound source.
    And i tried to make a reset. Doesn't help.
    Maybe i try next to set back the phone to manufacturer settings and restore it.

  • How does this new Firewall work?

    I've upgraded from Tiger to Leopard, but I just don't understand the new firewall.
    Does anyone know what the correct settings should be? Is it wise to 'allow all connections'? Does this mean the firewall is off?
    Really confused by this, I wish they left the firewall alone, the Tiger version was much easier to configure.

    I think I'll wait until 10.5.1 and see what Apple do about this ridiculous firewall.
    BRING BACK THE TIGER FIREWALL!!!

Maybe you are looking for

  • File Upload Example in ADF Development Guide

    I tried to upload a file using ADF as described in Development Guide. I have taken a <af:inputFile> component as described. <af:inputFile label="#{res['srfileupload.uploadlabel']}" valueChangeListener="#{backing_SRFileUpload.fileUploaded}" binding="#

  • APEx '03 and Non-Apple Wireless Client Connection Problems

    Good morning. I have a 2003 vintage AirPort Extreme, running 5.5.1 firmware (due to the issues with the newer firmware discussed on this forum). --> Wired iMax My setup is DSL-->APEx--| --> Apple Wireless Clients --> Linksys w54 acting as a bridge In

  • ITunes 10.2.1 does not decode mp3 files properly

    Hello, I have recently posted the results of my MP3 decoder test, covering iTunes, Winamp, Windows Media Player and Foobar2000: http://blog.szynalski.com/2011/03/16/itunes-10-2-1-fails-to-decode-mp3-files-pro perly/ The result is that iTunes 10.2.1 (

  • Why can't i delete some songs off my 4s Iphone with iso7

    I want to detele some songs off my phone but i have tried the tap songs, and then swip and then press delete - as sugguested in the manual

  • Unified crm connector for salesforce

    I have the crm connector for salesforce installed.  It works however it works intermittently.  Sometimes in order to get click to dial to work I would have to click on the phone number 2 times.  Other times it works fine with just a single click.  Ho