Caching Details - struts 1

Hai all,
In my application, I want to use caching for DB and JSP
Iam using java, Mysql.. framework is struts, Db-ibatis
Please give me the procedure to follow up and how to implement that?
Thanks,
Mohan

In jsp I use the <cache> tag, for example:
<%@ taglib uri="http://www.opensymphony.com/oscache" prefix="cache" %>
<cache:cache scope="application" language="${locale}" time="-1">
.....code that needs to be cached---
</cache:cache>

Similar Messages

  • Web cache detail statistics monitor page missing

    Hi,
    After installed the 9iAS on SUN Solaris, I can start the web cache statistics page, but I cannot click into the details statictis page, it seems missing.
    Now, I get this description.html page, but I don't know where to put it? Does anyone can tell me where this page be placed and any config. need to set??
    Thanks in advance!!

    Hi,
    First of all, the detailed statistics page
    is only meant for internal diagnostics and
    is not a supported feature.
    All of the useful statistics information
    can be viewed from Oracle WebCache Manager:
    http://<webcache hostname>:<admin port>/webcacheadmin
    Once in there, the bottom 3 links on the left
    frame contain all the exposed statistics
    data of the webcache and the web servers.
    Each page also has context sensitive help
    describing the data.
    The broken links on the detailed stats page
    are simply links to a help file (description.html) describing the different
    fields. To make the links work, you need to
    create a subdirectory "docs", under:
    <webcache installation dir>/docs/
    Put the file in the subdirectory, so it's at:
    <webcache installation dir>/docs/docs/
    Restart WebCache.
    BTW, how did you get hold of the
    description.html file?
    null

  • Edit/View Details (Struts)

    Hello,
    Sorry, I know this is not the place to ask a Struts quesiton. I've got a page with a link for view details and one for edit details. I use the same form-bean and a single action class for both. When I click on View first the details are displayed correctly. After that if I click on Edit details the same values appear in boxes with the submit button. If I then go back and click on the View details link again the same page as 'Edit' details gets displayed again. This should not be the case as in the View details screen the values should not be editable. This has got me going around in circles. Any ideas anyone? Regards

    I presume you have two different JSPs one which is editable, one which is not?
    How are you deciding which one to show - ie how do you know to display "edit" page or "view" page?
    Using the same form is fine.
    Same action - sounds ok to me.
    What does the struts-config for this entry look like?

  • How to enable invalidation cache in struts portlet?

    Dear Friends,
    I am in need of implementing invalidation based caching in my pdk struts portlet application. The sample in the jpdk is for normal pdk portlets (not struts.) and the code did not work for my application. Plz help.
    Many thanks,
    Alvi

    In the [Licensing document|http://download.oracle.com/docs/cd/E11882_01/license.112/e10594/editions.htm#CJACGHEB] , in the 'performance' section of the table, the result cache is only available on Enterprise and not Standard, so I wouldn't expect it to work in Express Edition

  • JDBC Adapter caching details

    Hi,
    We have a JDBC receiver which is configured to use a DNS alias. This is supposed to mean that if the receiver application site switches we don't have to re-configure the JDBC adapter.
    The application site switched but the JDBC adapter didn't pick up the new DNS resolution. This appears to be a SAP problem as pinging the DNS alias from the server itself worked.
    Is there any way to force the JDBC adapter to refresh the DNS alias?
    We are using PI7.0 SP9
    Thanks,
    Gareth

    This might be due to the DNS cashing at JVM. You might need to restart the java engine. Have a look at the below blog for a permanent solution.
    /people/dagfinn.parnas/blog/2005/06/20/controlling-dns-caching-in-the-java-virtual-machine-ie-j2ee-was
    Regards
    TK

  • How can I store ALL cache files in ONE place? i.e. in one folder

    Firefox 28.0
    WIN xp
    I would like all the cache files to be maintained in one single folder and not spread over multiple folders in a directory structure (as it currently operates).
    (current cache location)
    C:\Documents and Settings\xxx\Local Settings\Application Data\Mozilla\Firefox\Profiles\xxxx.default
    (multiple folders and sub-folders)
    Is there some way for Firefox to do this?

    AFAIK that is not possible.
    It is possible to choose an alternative location but the structure will remain the same.
    * see http://kb.mozillazine.org/Browser.cache.disk.parent_directory
    I do not know whether you have discovered it but you cache details may be accessed from Firefox by navigating to ''about:cache'' . About:cache details the three caches.

  • _WLS_ADMIN000000.DAT Caching Issue

    Hi all,
    I have a strange situation here. My intention is to point my application to a new database. My application is deployed using an .ear file in weblogic 11g and reads database connection properties from a properties file placed in the classpath of the weblogic server.
    Now, I kept the old database up and changed the properties file in Weblogic with the new database server details and restarted the weblogic server and it worked. Then I reverted back my changes to point my application to the old database using the same procedure.
    Then, I turned off my old database and then tried doing the same and while I was trying to start my application from weblogic console,it failed saying "Could not establish a Network Connection", though the new database which I was trying to point was up and running.
    Then I found a file _WLS_<domain_name>_ADMIN000000.DAT in the path ".../weblogic/<domain_name>/servers/payments_admin/data/store/default that was caching the old database details and then I removed the file and restarted the server.
    Now here are the inferences I can draw from this...
    1. While the old database is up and running, the application starts with those old cached details in the .DAT file and still points to the new server.
    2. When the old database is down, the application tries to connect to the old database and hence fails.
    3. So the application uses .DAT file only while starting and then points to the new database.
    I just want to verify if my findings are correct or am I missing something here.
    Please suggest.
    Thanks in advance.
    Regards,
    Pritam

    Pl do not post duplicates - _WLS_ADMIN000000.DAT Caching Issue

  • Weblogic _WLS_ADMIN000000.DAT caching issue

    Hi all,
    I have a strange situation here. My intention is to point my application to a new database. My application is deployed using an .ear file in weblogic 11g and reads database connection properties from a properties file placed in the classpath of the weblogic server.
    Now, I kept the old database up and changed the properties file in Weblogic with the new database server details and restarted the weblogic server and it worked. Then I reverted back my changes to point my application to the old database using the same procedure.
    Then, I turned off my old database and then tried doing the same and while I was trying to start my application from weblogic console,it failed saying "Could not establish a Network Connection", though the new database which I was trying to point was up and running.
    Then I found a file _WLS_<domain_name>_ADMIN000000.DAT in the path ".../weblogic/<domain_name>/servers/payments_admin/data/store/default that was caching the old database details and then I removed the file and restarted the server.
    Now here are the inferences I can draw from this...
    1. While the old database is up and running, the application starts with those old cached details in the .DAT file and still points to the new server.
    2. When the old database is down, the application tries to connect to the old database and hence fails.
    3. So the application uses .DAT file only while starting and then points to the new database.
    I just want to verify if my findings are correct or am I missing something here.
    Please suggest.
    Thanks in advance.
    Regards,
    Pritam

    Pl do not post duplicates - _WLS_ADMIN000000.DAT Caching Issue

  • Take advantage of caching in the browser

    It is such that I have taken a test on Google Page Speed insights and describing the more time that I need to looked at my "Take advantage of caching in the browser" on page
    I have azure and set CloudFlare SSL on all https page.
    Is there some code or other as do you in some way help since anything more.

    Hi Jesper,
    It seems that you have already found the solution in this case (http://stackoverflow.com/a/28650357):
    Since you are using CloudFlare, there's an easy way to specify settings for browser caching. From the CloudFlare admin panel go to Domain > CloudFlare Settings > Performance Settings > Minimum TTL. I generally set this to 1 month. 
    FWIW, personally I find www.webpagetest.org gives better feedback for refinements like this, it gives more detailed feedback of caching details for each individual resource. 
    If you have any difficulty in future programming, we welcome you to post in forums again.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • No L2 cache on G3 w/ 10.4.11 ?

    Hello,
    potentially a false alarm - but it would be nice to be sure on this: when checking the "hardware" details in System Preferences this control application is reporting no L2 cache while clock, bus speed and L1 cache details are correct. Switching on the 256K L2 cache is not saved, when checking the next time or after a reload it's back to "L2 cache: None".
    Now this hardware control may be broken due to the update from 10.3.9, it shows "PowerPC (null) v0.0 (tech 0)" in the header. Can anybody confirm there is no problem with G3 L2 cache under 10.4.11?
    Minor question: any chance to get the "hardware" system preference control fixed?
    Thanks & Regards,
    Marc

    Hello,
    no I mean the "hardware" icon (it's a symbolic chip) under system preferences -> Hardware. I think it came on my computer with 10.3.9 or with a later update for wireless encryption (not sure).
    Maybe it's just irrelevant and I should delete it. The computer is working fine, was just wondering if this is a sub-optimal configuration wrt performance. Not that I expect a 6 year-old notebook to fly
    Regards, Marc

  • Zero hit for caching on content engine, why?

    "show statistics http savings" reveals there's zero (0) hit for web requests.
    "show statistics http miss-reason"
    indicates most of them was due to "none_get_method".
    Now, what does that mean, and how can I increase the hits?
    We're using the exact same rules as all the other sites (which have hits), except we're redirecting traffic on the ingress interface instead of egress:
    int g0/0.1
    ip wccp web-cache redirect in
    Any ideas please share.
    thanks.

    Hi,
    There are many reasons why a CE is not caching content, I'll try to list some of the things you may check:
    - Make sure that the router is indeed redirecting traffic to the CE, use this command on the router: sh ip wccp web-cache detail. Make sure that the redirect line is constantly increasing.
    - Make sure that the CE has a CFS partition configured, use this output on the CE to check: sh disk details. Look for the CFS partition and make sure it has some space allocated. If you need to partition the disk, use this command: 'disk config sysfs 5% cfs 50% mediafs 30% cdnfs remaining'.
    - Add this command to the CE: http cache-cookies. This would greatly increase the amount of content that would be cached by the CE.
    - Another thing that needs to be considered is the web site you are going to. Remember that dynamic content would not be cached by the CE.
    Check these points and if you continue having issues, add a sh tech from the CE for review and a tcpdump taken at the CE using this command: '#tcpdump -s 1500 -w dump.cap'. Get the file 'dump.cap' off the CE.
    Let me know how it goes. Thanks!
    Regards,
    Jose Quesada.

  • Only 'web-cache' gets redirected - no other service groups...

    I have a Netcache configured for transparent caching for port 80 and 443. The Netcahce IP is 164.72.49.253. We have a 6509, sup720 IOS. 12.2(17a)SX3, configured to redirect web-cache and 1 to the Netcache. Here is the config:
    ip wccp web-cache
    ip wccp 1
    The 6509 interface that controls the subnet the netcache is on is configured thus:
    interface Vlan1
    ip address 164.72.49.131 255.255.255.128
    ip wccp web-cache redirect out
    ip wccp 1 redirect out
    We have a PC on another subnet connected to the 6509 that we are using to test the config, and we can only get port 80 to be redirected to the Netchace. HTTPS port 443 never gets redirected. Service group 1 is configed on the Netcache as tcp port 443.
    Here is the output of 'sh ip wccp':
    ENGLAB-6513-Native#sh ip wccp
    Global WCCP information:
    Router information:
    Router Identifier: 164.72.232.1
    Protocol Version: 2.0
    Service Identifier: web-cache
    Number of Cache Engines: 1
    Number of routers: 1
    Total Packets Redirected: 3431
    Redirect access-list: -none-
    Total Packets Denied Redirect: 0
    Total Packets Unassigned: 0
    Group access-list: -none-
    Total Messages Denied to Group: 0
    Total Authentication failures: 0
    Service Identifier: 1
    Number of Cache Engines: 1
    Number of routers: 1
    Total Packets Redirected: 0
    Redirect access-list: -none-
    Total Packets Denied Redirect: 0
    Total Packets Unassigned: 0
    Group access-list: -none-
    Total Messages Denied to Group: 0
    Total Authentication failures: 0
    ENGLAB-6513-Native#sh ip wccp 1 detail
    WCCP Cache-Engine information:
    Web Cache ID: 164.72.49.253
    Protocol Version: 2.0
    State: Usable
    Redirection: GRE
    Packet Return: GRE
    Assignment: HASH
    Initial Hash Info: 00000000000000000000000000000000
    00000000000000000000000000000000
    Assigned Hash Info: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
    FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
    Hash Allotment: 256 (100.00%)
    Packets Redirected: 0
    Connect Time: 00:33:23
    ENGLAB-6513-Native#sh ip wccp web-cache detail
    WCCP Cache-Engine information:
    Web Cache ID: 164.72.49.253
    Protocol Version: 2.0
    State: Usable
    Redirection: GRE
    Packet Return: GRE
    Assignment: HASH
    Initial Hash Info: 00000000000000000000000000000000
    00000000000000000000000000000000
    Assigned Hash Info: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
    FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
    Hash Allotment: 256 (100.00%)
    Packets Redirected: 2911
    Connect Time: 23:37:29
    What would cause the router to no redirect service-group 1 packets to the Netcache?

    The sup720 does not support wccp yet.
    The commands are available and some functionalities may work but currently the sup720 does not support wccp.
    http://www.cisco.com/en/US/products/hw/switches/ps708/prod_bulletin09186a00801599bc.html
    Regards,
    Gilles.

  • How to interprete db_stats report for -m option

    Hi
    please help me to interprete the db_stats report (for -m option).
    What is the total number of pages created by DB? (It is "Current page count" or "The number of page allocations").
    what is " Total number of times hash chains searched for a page" , "Total number of hash chain entries checked for page" and " Requested pages found in the cache" ( we see really huge numbers there when XML file size is increased)
    Thanks,
    Santhosh

    Hi Santhosh,
    Here are some explanations on the memory pool (cache) statistics:
    - “The number of page allocations” (st_alloc)
         This accounts for the total number of page allocations made by BDB. We allocate pages in the memory pool when we create, open and rename a file in the memory pool, when we get a page from a database file, when we resize the memory pool, when we create and extend the free page list, etc. This value is grow-only.
    - “Current total page count” (st_pages)
         This represents the number of pages found in the cache (both clean, with non-updated content, and dirty, with updated content). So, this equals the sum of the “Current clean page count” (st_page_clean) and the “Current dirty page count” (st_page_dirty).
    - “Requested pages found in the cache” (st_cache_hit)
         This represents the total number of requests for database pages that were satisfied with pages existing in the memory pool. The percent value represents the cache hit rate, that is, how many requested pages were found in the cache, and it’s calculated using the formula “st_cache_hit / (st_cache_hit + st_cache_miss)”.
    - “Requested pages not found in the cache” (st_cache_miss)
         This is the total number of requested pages that were not served directly from cache and had to be read from disk. You can determine a miss rate value, using the following formula: “st_cache_miss / (st_cache_miss + st_cache_hit)”; or, you may substract the hit rate from 100%. A higher hit rate means a hotter cache; details on how to appropriately size the cache is here:
    http://www.oracle.com/technology/documentation/berkeley-db/db/ref/am_conf/cachesize.html
    - “Number of hash buckets used for page location” (st_hash_buckets)
         We organize and manage the cache buffer space using hash buckets; each hash bucket has a hash chain associated where its entries (hash chain entries) refer to buffers in the memory pool space. Thus, this value represents the number of hash buckets we’re using for administering pages in the memory pool.
    - “Total number of times hash chains searched for a page” (st_hash_searches)
         This value accounts for the total number of times we’ve inspected the hash chains when searching for a page in the cache (memory pool).
    - “Total number of hash chain entries checked for a page” (st_hash_examined)
         This value represents the total number of entries in cache’s hash bucket chains we’ve examined when looking for a page.
    When the container’s/database’s size increases, the number of pages that comprise the file will increase as well. The statistics you’ve mentioned are grow-only, so their values increase during the lifetime of the application.
    Let me know if this information is helpful and if you need further clarification.
    Regards,
    Andrei

  • I use a 'Geocaching" website, and am no longer able to see maps on the webpage

    I go to 'Geocaching .com' and when I log on with my user name and look at a cache via 'Hide and Seek a Geocache', I get a page which shows me the cache details.
    This page should show me a map of the cache location, but the map is always blank now.

    What kind of images are missing?
    Are that background images?
    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    *https://support.mozilla.org/kb/how-do-i-create-screenshot-my-problem
    *Use a compressed image type like PNG or JPG to save the screenshot
    *Make sure that you do not exceed the maximum size of 1 MB
    Make sure that you haven't enabled a High Contrast theme in the Windows/Mac Accessibility settings.
    *http://kb.mozillazine.org/Website_colors_are_wrong
    Make sure that you allow pages to choose their own colors.
    *Tools > Options > Content : Fonts & Colors > Colors : [X] "Allow pages to choose their own colors, instead of my selections above"
    Note that these settings affect background images.
    If images are missing then check that you do not block images from some domains.
    *Tap the Alt key or press F10 to show the Menu Bar
    Check the permissions for the domain in the currently selected tab in "Tools > Page Info > Permissions"
    Check "Tools > Page Info > Media" for blocked images
    *Select the first image link and use the cursor Down key to scroll through the list.
    *If an image in the list is grayed and "<i>Block Images from...</i>" has a checkmark then remove this checkmark to unblock images from this domain.
    Make sure that you do not block (third-party) images, the <b>permissions.default.image</b> pref on the <b>about:config</b> page should be 1.
    There are extensions like Adblock Plus (Firefox/Tools > Add-ons > Extensions) and security software (firewall, anti-virus) that can block images and other content.
    See also:
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    *http://kb.mozillazine.org/Images_or_animations_do_not_load
    *http://kb.mozillazine.org/Websites_look_wrong

  • How to get LastModified time of a file in repository(in weblogic8.2 )

    hi ,
    my task is that i have to compare cache's file and repository's file . which is most recently
    updated (which is newer).
    in i have to done in weblogic server 8.2 's repository and file system(cache) .
    details :
    i want to know that how we can check that when the file in repository last modified.
    i want to check that node content of a particular repository (file /image/any data ) last modified
    by anyone , so that i can put the latest data in cache if cache 's file modified time
    is less then repository's file modified .other wise no need to copy all file/data again ,if no
    modification .

    Cross posted
    http://forum.java.sun.com/thread.jspa?threadID=5126507

Maybe you are looking for

  • Can't update iTunes 10.6.3.25 to 10.7

    I just got an iphone 5 and am unable to update my itunes to 10.7. It prompts me to update my itunes to 10.7 but when I clicked on "Download iTunes 10.7", the box disappears and nothing happens. Any idea what could be wrong? ):

  • Advanced Adapter Engine in PI 7.1

    Hi there, Does anyone know if the Advanced Adapter Engine can be installed and run stand alone? i.e. without being connected to an integration engine? Obviously this would be a Non-Central Advanced Adapter Engine. But does it have to be connected to

  • SQL tracing and TKPROF tool, how to get object name

    Hi, I set sql_trace = ture for my session. Then I use TKPROF (on trace file) to get the explain plan (for my stored procedure). but the explain plan shows obj# (object number), HOW do I get TKPROF to show object name on explain plan (I have checked t

  • Import tablespace problem

    Dear all, I've encountered a problem during importing schema. The case is that I migrated a schema from SQL server by OMWB to a tablespace called ts1 in Oracle 9i. When I export this schema and then import to another tablespace called ts2, some table

  • Ultimamente mi Itouch no recibe mails del Hotmail, me dice que el servidor no esta conectado, que puedo hacer?

    Ayer mi Itouch empezo a no recibir correos del hotmail, me marcaba que no se puede recibir correo error al conectarse con el servidor, y pues si entro en safari si puedo ver mi mail, pero ya intente varias cosas, hasta recetearlo y nada funciona, alg