How much data is actually sent to the client?

Hi,
On the web application stuff I'm doing, I have a somewhat complex class structure for my objects. For example: I have a Project class and a Concept class, and technically you can access a Project object's assocated Concept object, but to do so you'd have to access a chain of three associated classes. Right now if I want to display some information from the Concept object in a JSP, I have to access the Project object from the session and then call a cascade of four methods to get to it.
I was wondering if it'd make things simpler (and just easier to read) if I just set the Concept object in my session along side with the Project object that's already in the session. That made me worry about how much data is really being "stored." How much data is really being sent to the client? I know that JSP's are produced server side, so I'm guessing that the only thing sent to the user is the final rendered html/xml page. Is this correct? Do I have anything to consider when I decide what data put in the session?
Thanks for any help,
Will

I know
that JSP's are produced server side, so I'm guessing
that the only thing sent to the user is the final
rendered html/xml page. Is this correct? Do I have
anything to consider when I decide what data put in
the session?Yes, that is correct. Only the HTML (or whatever it is) that your JSP generates is sent to the client. (Except that the server may send a cookie too, but that's just a few bytes to identify the client.)
As for what to put in the session: Data in the session takes up memory space, but data not in the session will have to be recreated later if you need it again. It's the usual trade-off of the cost of caching data in memory versus the cost of reproducing that data.
(And if it wasn't obvious, don't put anything in the session if it is only being used to process the current request and response. Only put data in the session if it will be needed to process subsequent requests.)

Similar Messages

  • How much data is needed to download the whole creative suite?

    How much data is needed to download the whole creative suite?

    Jacoedit you can see the size of the base installers at http://prodesigntools.com/adobe-cc-direct-download-links.html.  Please be aware that you will still need to download the updates for the applications as well.

  • Does anyone know how to view the amount of songs you have and how much data it takes up in the new iTunes?

    i have downloaded the new itunes on to my computer, but cant find where it says how many songs you have and how much data they will take up on my phone. thanks

    Just a comment that the playlist size only shows in List View (not Grid or Artist view).
    varjak paw wrote:
    If I understand correctly what you're referring to, View menu -> Show Status Bar.
    For some peculiar reason this option does not show up for me (11.0.1).  I do see the "status bar" (i.e. size) of playlists at the bottom of each, and I know that I've seen this setting, but this View option seems to have vanished!

  • How much data can I put on the RAID?

    We have always heard not to go over the 80% full mark on our RAID. We have a 7TB (5.4 usable) that has about 1TB free sitting on it. We could really use some of that space for other things. Is 80% a true limit, or should we just start filling until we notice problems? Thanks

    Performance will slow as the RAID fills up. For a few reasons:
    1) As the volume approaches capacity, there are fewer contiguous blocks on the storage. So the volume will get fragmented, which forces the heads to move around substantially more for reads and writes. This will also make the heads work harder -- it could reduce life span of the drives, but truthfully it's likely this isn't enough to be noticeable.
    2) The density of tracks on the inside of the drives is less than the outside. Drives just can't read as fast on the inside, because there are fewer tracks there (given track "length" is constant but the linear distance is less on the inside). So performance reading from the inner tracks is often less than half what it is on the outer tracks.
    3) As the disks fill, the heads have to move more just "in general," in addition to fragmentation. Some files are on the inside, some are on the outside, and the heads have to access all along the radius of the disk to find info (the disks generally fill outside-in, so on a half-full disk the heads are typically "stroking" only half this radius). Moving heads costs time, so this slows things down.
    So the penalty you'll pay is a decrease in speed. At 80% it will be noticeable, and at 90% it's likely it will be dramatic (say, 30% to 40% slower in some cases). Do you need the speed, and is it random access?
    Most professional IT folks I deal with have a standing practice to not let enterprise storage get over 80% full. Their EMC sales reps are "nice enough" to give them a friendly call when they hit 50% capacity, and suggest it's time to start looking for more storage, so they can roll it in when they hit 70%. How helpful
    While this may be a bit excessive for those on lesser budgets, I'd still recommend you consider adding storage before you fill. It will get painful... starting as a dull ache and getting more and more acute as you pass 90%.

  • URGENT : Reading a cert sent by the client

    Hi,
    I am using Apache/Jserv with JSSE 1.0.2 and JDK1.2.2
    No problems if I connect to a https site and retrieve the content through a servlet.
    When someone connects to my servlet through https protocol, then the client needs to send his certificate to my server. Then I need to read the contents of the certificate in my servlet code.
    Once I get the certificate I can use X509Certificate class to extract all the information.
    But how should I get certificate sent by the client in my code.
    Please help me...

    I am very sorry for the delay...
    I have solved the problem.
    Here is the solution for this problem.
    I have used Oracle's implementation of Java SSL. The following three
    files http_client.jar, javax-ssl-1_2.jar, jssl-1_2.jar
    should be in CLASSPATH.
    In httpd.conf add
    (1) SSLVerifyClient require
    (2) SSLCACertificateFile /path/file /*point to the CA file which can
    verify client certificate - typically a file called CA-bundle.crt. */
    (3) Add the following lines :
    <Location /servlet>
    SSLOptions StdEnvVars ExportCertData
    </Location>
    In jserv.conf
    (4) ApJServMount /servlet /root ( should be there by default )
    (5) ApJServEnvVar SSL_CLIENT_CERT MY_CLIENT_CERTIFICATE
    Here is a snippet of code:
    public class Hello extends HttpServlet
    public void doGet (HttpServletRequest request, HttpServletResponse
    response)
    throws ServletException, IOException
    PrintWriter out;
    String title = "Example Apache JServ Servlet";
    // set content type and other response header fields first
    response.setContentType("text/html");
    // then write the data of the response
    out = response.getWriter();
    // test client certificate fields
    String sCert =
    (String)request.getAttribute("org.apache.jserv.MY_CLIENT_CERTIFICATE");
    out.println("<HTML><HEAD><TITLE>");
    out.println(title);
    out.println("</TITLE></HEAD><BODY bgcolor=\"#FFFFFF\">");
    out.println("<H2> client Certificate , is " + sCert +
    "!<br>");
    java.security.cert.X509Certificate xCert =
    getX509Certificate(sCert);
    out.println("<H2> Subject DN, is " + xCert.getSubjectDN() +
    "!<br>");
    //Do whatever you want with the certificate.....
    out.println("</BODY></HTML>");
    out.close();
    private java.security.cert.X509Certificate
    getX509Certificate(java.lang.String trimmedCertificate )
    String beginCert = "-----BEGIN CERTIFICATE-----";
    String endCert = "-----END CERTIFICATE-----";
    int start = trimmedCertificate.indexOf(beginCert);
    int end = trimmedCertificate.indexOf(endCert);
    String mainCertificate =
    trimmedCertificate.substring(beginCert.length(), end);
    try
    byte data[];
    BASE64Decoder decoder = new BASE64Decoder();
    data = decoder.decodeBuffer(mainCertificate);
    CertificateFactory cF =
    CertificateFactory.getInstance("X509");
    ByteArrayInputStream bAIS = new ByteArrayInputStream(data);
    X509Certificate cert =
    (X509Certificate)cF.generateCertificate(bAIS);
    //Do whatever you want with the certificate.....
    bAIS.close();
    return cert;
    } catch(Exception ) {
    e.printStackTrace();
    return null;
    Please let me know if you want any information regarding this.
    my id is [email protected]

  • Is there a place I can see how much data I uploaded other server like the old version of Sync did?

    In the old version of Firefox Sync you can see what data was uploaded, with the next Sync I see nothing and when I got my account on the website Firefox, I don't see nothing just a sign in and change password screen. Would there be more there soon?

    Hi Kurbo,
    Please do leave feedback for the developers at input.mozilla.org, currently there is not a feature that shows how much data or what data is uploaded.
    However if you are handy at picking up apis there are some apis that can be read about [https://blog.mozilla.org/services/2014/05/08/firefox-accounts-sync-1-5-and-self-hosting/ here]

  • How much data does the mobile hotspot use?

    I am trying to figure out how much data the mobile hotspot will use?  I do not have a lot of data on my plan and don't want to go over.  Any ideas?

        Hi wenfam!
    That's a great question! Data usage can differ depending on how the device is used. Here's a helpful link on how to monitor the usage: http://is.gd/52jiNm ^CB

  • How much data is being used when i mirror my ipad to my tv through the apple tv?

    how much data is being used when i mirror my ipad to my tv through the apple tv?

    wwcswapmeet wrote:
    I will try that. Thank you.  I am hoping to buy a wifi hotspot, but wondered what type of data plan I should get if I were to use it consistantly for 8 hours a day (only on saturdays and sundays).  A great tool for work & presentations!!
    It will use minimal internet bandwidth unless your content is streaming from web>iPad>AppleTV. 
    Local network comms for content already on the iPad (eg presentations) will not generally use internet bandwidth apart from protected iTunes material that requires brief internet authorisation.
    AC

  • Is there a way to find out how much data was used over the lifetime of my phone (cumulative cellular and wifi)?

    Is there a way to find out how much data was used over the lifetime of my phone (cumulative cellular and wifi)?
    I was just curious

    Given that the phone doesn't track how much data is used over WiFi, no. And cellular data usage can be reset.

  • HT5815 The most important piece of info about an update I need is how much data does it require. I am travelling and using prepaid data. I cannot even consider an update until I know how much data it will use. Please provide this information.

    The most important piece of info about an update I need is how much data does it require. I am travelling and using prepaid data. I cannot even consider an update until I know how much data it will use. Please provide this information.

    http://www.apple.com/feedback/macosx.html

  • How much data is used if i watched nba league pass on the phone

    how much data is used if i watched nba league pass on the phone

    As much as you use... really... how should we know? We're users.

  • How much data does the itunes radio use?

    Just wonder how much data it takes to listen to iTunes radio.

    Chandra,
    I don't know exactly, but I am aware of a similar radio streaming service that streams at 128 kbps, which therefore uses about 60 MB per hour of listening.
    Most people avoid doing too much radio streaming over cellular data, preferring WiFi or a LAN connection instead.

  • Why do I have to guess how much data I might use in a month when I select a plan?

    When I sign up for water service, I don't guess that I might use 1,000 gallons a month, and then pay three times the going rate for water if I take a few extra showers. I get charged for how much water I use that month.
    When I sign up for electricity service, I don't guess that I might use some set number of kilowatt hours, and then pay three times the going rate if we have a heat wave and I run my air conditioner for a few extra hours.
    Why do I have to guess how much data I might use, and then spend three times the going rate if I stay up watching youtube videos for a few extra nights?
    It is stressful to have to constantly monitor usage, and figure out ratios of how much I've used compared to how much time is left in the billing cycle to see if I need to curb my usage. It is not a good customer experience. I would prefer that data be charged a flat rate based on actual usage, perhaps with an option to throttle speeds at certain levels to prevent cases where a minor lapse in judgment could ruin my monthly budget, like forgetting to check data usage religiously on a device meant to simplify my life.
    Thank you for your consideration.

    Simple answer is Verizon is offering a block of data for usage.
    Where I live the water bill states my wife and I are being charged for 30,000 gallons per quarter/half and the price is say $60 however we never use any where near that amount. I send the meter reading in and it shows the amount we use. But the hamlet we are in has a set amount of gallons. Not fair but we live with it.
    For your data outside of the unlimited which is not available any more to new customers you may be a light user and never go over the 2GB for $30 dollars a month. If you do you will pay through the nose for data. If you pay for more data say 4GB and I don't have the price for it so lets say its $70 then you don't have to watch as much for overage fees. But you are paying for the data in advance so as not go over and get hit with whopping fees.
    It is just the way it is.

  • How can I see how much data passes through my Time Capsule?

    I am thinking of using a cellular data plan at home. My current, rural internet provider is slow and unreliable. I use a MiFi as a backup and have 4G service which is much faster and rarely goes down. I need to see how much data is downloaded and uploaded to compare costs. All our data passes through my Time Capsule.

    A similar app to what Bob mentions is peakhour.. it works on any of the newer OS.
    https://itunes.apple.com/au/app/peakhour/id468946727?mt=12
    It is a good app. BUT.. fat ugly BUTT.. just the same as Bob has explained, it depends on SNMP to work.. and so due to apple removing a very useful and functional protocol from its airport range you can no longer use it. Bizarre.
    I strongly recommend a Netgear WNDR3800 (older model now but you can pick up one cheaply on ebay) and a 3rd party firmware called gargoyle. Apple delete my posts if I point you to it, so you will have to search yourself.
    Replace your tall TC with the Netgear as the main router.. bridge the TC to it and you can continue to use its wireless and for TM backups. The advantage is that gargoyle will not only measure everyones usage, by IP, it is able to set a quota on everyone using the net and you can set that quota for hourly, daily or weekly or monthly. It will track the usage and you can see at a glance what everyone has used.
    It is simple to load.. just like a standard firmware update. The interface is as clear as anyone can make it with such of lot of tools. And the actual router is powerful enough to provide excellent QoS and parental controls on top of measurements and quota.

  • How much data canbe cache in SGA

    Hai everybody,
    my company using Oracle 11g 11.2.0.1.0 - Production database, my os is RHEL 5.5 ,my server's physical memory is 30.9 GB ( cat /proc/meminfo ) ie the SGA size [ (30.9*40/100)=12.5 GB ] so i use 12.5GB SGA size for one instance, we need to cache some data for our application performance how much data can cache in SGA based on 12.5 GB or how to calculate how much data can cache in SGA without any performance degradation.
    Regards Benk

    Aman has it right. WHY?
    the keep pool, alter table cache, etc - I would not be doing ANY of these without a good reason.
    Often times, people think that forcing a table to stay in the cache is a good idea. It rarely is. If you want things in the cache, use them. If they are used, they will naturally have their blocks cached. If you don't use them, they can get flushed out. But if you don't use them, why do you want them using memory that could better be used by other things?
    My advice: don't try to second-guess Oracle's memory management and caching strategy. If you think you have a reason to, post it here and we can help you (or debunk your reason). Based on the fact that you've apparently calculated the SGA using that silly, meaningless "rule" that says give it 40% of your total RAM, I'd guess that you are looking around for a magic bullet, and you don't actually have a problem to solve.
    John

Maybe you are looking for

  • Can InDesign CC 2014 automate image placement?

    I have designed a certificate of achievement to award participants for a variety of activities. I have also designed badges for each activity in the form of png files. I will be creating numerous certificaes and already know how to auto-generate them

  • Process Flow branches to Error, displays success in RAB

    Hello, I am calling a custom function from within a process flow in OWB. This function is performing some basic, customized validations after the mappings execute within the process flow. Depending on the result of the validation function, I want the

  • Assignment Set

    We have a requirement to create an assignment set every time we do medical payment to employees. We do medical payments 2 times a week and its not necessary that every time we have same employees. Element entries of NON RECURRING nature are created t

  • PowerPoint Shuts Down When View Slide Show

    I am using Office 2004 and when I try to View Slide Show, the program shuts down. It just started doing this. Have had it 2-1/2 years. I used Disk Repair. I Removed Office and Reinstalled. And, it still is doing that. Any suggestions?

  • Strange happenings after recent update to PSE 7

    The other day, I downloaded and installed an update to PSE 7. When I go to open an art file that came as an attachment to an email, the resolution in Outlook immediately seems to switch to 640 x 400 and then it takes PSE forever to open. Once it does