Re: (forte-users) nested FORTE ITERATE tags in WebEnterprise

 

Yes, they do & one page is 1KB page. We use the same instrument to check
memory usage & to send alerts in our production system.
Thanks.
Suraj
-----Original Message-----
From: Epari, Madhusudhan [mailto:[email protected]]
Sent: Monday, May 14, 2001 2:37 PM
To: 'Saraf, Suraj'; 'Forte User Forum'
Subject: RE: (forte-users) Instrument for memory used in the partition
Thanks all for the response. I observed "Allocated Pages" instrument doesn't
change as and when memory usage by the partition changes. I was trying to
find a way to measure the actual memory (specifically in bytes or KBs).
Thanks,
Madhu
-----Original Message-----
From: Saraf, Suraj [mailto:[email protected]]
Sent: Thursday, May 10, 2001 12:46 PM
To: 'Epari, Madhusudhan'; 'Forte User Forum'
Subject: RE: (forte-users) Instrument for memory used in the partition
Hello,
I think you can use 'OperatingSystem' service agent & check 'AllocatedPages'
instrument to see how many memory pages are used. You can compare that with
your maximum allocation & send alerts depending on that. Thanks.
Suraj
-----Original Message-----
From: Epari, Madhusudhan [mailto:[email protected]]
Sent: Thursday, May 10, 2001 11:15 AM
To: 'Forte User Forum'
Subject: (forte-users) Instrument for memory used in the partition
Hello Everyone,
Is there an instrument to track the memory used in the partition at a given
point of time. I have a requirement where an alert has to be generated in
the environment when partition uses all its available memory.
Thanks in advance,
Madhu
For the archives, go to: http://lists.xpedior.com/forte-users and use
the login: forte and the password: archive. To unsubscribe, send in a new
email the word: 'Unsubscribe' to: [email protected]

Similar Messages

  • Struts html:iterate tag

    Hello all,
    Does anyone know if the struts html:iterate tag can be used to iterate through an ArrayList? Can you populate a html:radio tag with such an iterator?
    If anyone has code examples of these, they would be MOST appreciated!
    Thank you!

    I have an ArrayList object that contains a collection of Listing objects.
    The Listing object has two methods getID, getName
    In the ActionForm there is a variable listingData of List type. How can I use the logic:iterate tag to traverse the ArrayList object and display the id and name of the ListingObjects?
    What has to be added in the logic:iterate tag below?
    <table>
    <logic:iterate id="listingForm" name="listingForm" property="listingData">
    <tr>
    <td>
    // Here I want to output the value of ids
    </td>
    <td>
    // Here I want to output the value of names
    </tr>
    </logic:iterate>
    </table>Do I need a nested logic:iterate tag?
    Should the ArrayList be populated with a J2SE class rather than a business object, i.e. the Listing class?

  • Loop through elements within nested:iterate tag using javascript

    Hello,
    I would like to loop through the adjustedLineItems list and set the checkbox values to true on click of a select all button.
    I am getting the error document.all['adjustedLineItems.selected'] is null or not an object
    however it works if I manually substitute values for i within the function
    document.all['adjustedLineItems[0].selected'].checked=true;
    document.all['adjustedLineItems[1].selected'].checked=true;
    document.all['adjustedLineItems[2].selected'].checked=true;
    Could someone please help me do this via a for loop?
    Thanks
    <nested:iterate name="invoiceForm" property="adjustedLineItems" id="adjli" type="com.bt.lex.common.lineItem.beans.LineItemDetailBean" indexId="idxadjli">
              <tr>
                   <td class="dataLeft"><nested:checkbox property="selected"/></td>
                   <td class="dataLeft"><nested:write property="liNumber"/></td>
              </tr>
    </nested:iterate>
    <script type="text/javascript">
    function onclick_all(ctl) {
         var checkFlag = "false";
         var count = document.all.numOfAdjustedLIs.value;
         var i = 0;
         //alert(count);
         if(ctl.checked)
              if(checkFlag=="false")
                   for (i = 0; i <count; i++)
                        document.all['adjustedLineItems[i].selected'].checked=true;
                   checkFlag = "true";
    </script>

    Its got nothing to do with nested iterate tags :). However,
    document.all['adjustedLineItems.selected'].checked=true;
    The variable 'i' is not getting evaluated as is evident from the error message - document.all['adjustedLineItems.selected'].
    The appearance of 'i' in the error message tells it all, right ? :)
    So
    document.all['adjustedLineItems[' + i + '].selected'].checked=true;should do the trick.
    ram.

  • Problem in Iterating using logic:iterate tag

    Hi ,
    I am using <logic:iterate> tag to iterate through a list of contents.
    When the List size is 1222, all the Contents in the List are displaying properly.
    When the size execdes 1223, the JSP is not displaying properly.
    I am not getting any exception also.
    I have added try and catch. Still it is not showing any exception.
    When the size is more than 1300, Some contents are not displaying in JSP.
    Can any one provide some inputs, so that I can crack my issue.
    The JSP code :
              <logic:iterate id="someXXXX" property="someXXX" name="someXXX" indexId="count" scope="request">
              <tr>
    <td><html:text name="someXXXX" property="someXXXX"
                             size="50" maxlength="50" onchange="setDirty()" indexed="true"/> </td>               
    <td height="15" align="center"><html:checkbox property="someXXXX" name="someXXXX" indexed="true" onclick="setCheckboxFlag(this)" />               
                   <td width="4"> </td>               
              </tr>
              <html:hidden property="someXXXX" name="someXXXX" indexed="true" />
              </logic:iterate>
    Thanks,
    RamaKrishna

    get the records and store them in a collection. Store the collection in session. take the first 10 records as a subset and pass it to the iterate tag. use the hidden field to keep the last record number in the jsp. So when you first see the jsp the first 10 records will be shown and when user clicks for next records send the hidden field value to the server and take next 10 records as subset and pass it to iterate tag. This is how you can do this. but if you have thousands of records storing them in the session is not recommended. you can pull them directly from the database.

  • User interface template substitution tags problem

    Portal 9.0.2.0.3 (Upgraded from 9.0.2.2.14A)
    Hi all,
    I am designing an unstructured user interface for use with my portal reports.
    I have located a help document called 'Unstructured user interface template substitution tags' from the standard portal help pages.
    My problem is that only a few of these tags are actually being substituted for their correct values when I run my reports. For example the help document says the #PAGE.CUSTOMIZEPAGE# tag should be substituted with HTML text hyperlink to the customize page dialog. On my report this tag and the majority of others are substituted with a blank line.
    Any ideas?

    Same problem exists with the #TITLE# tag. However, SOMETIMES (I don't know how or why) the tag shows up. If I find out what the secret is, I'll let you know.
    Anyone else have any input?
    Pat Murray

  • Iterate tag in xml

    Hi,
    <?xml version="1.0" encoding="UTF-8"?>
    <entity-mappings xmlns="http://www.eclipse.org/eclipselink/xsds/persistence/orm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.eclipse.org/eclipselink/xsds/persistence/orm http://www.eclipse.org/eclipselink/xsds/eclipselink_orm_2_4.xsd">
      <entity class="com.ofss.fc.domain.party.entity.core.PartyAddress">
        <discriminator-value>CZ</discriminator-value>
        <table name="flx_pi_addresses_b"/>
        <attributes>
          <embedded-id attribute-type="com.ofss.fc.domain.party.entity.core.PartyAddressKey" name="id">
            <attribute-override name="partyId">
              <column name="party_id"/>
            </attribute-override>
            <attribute-override name="addressType">
              <column name="address_type"/>
            </attribute-override>
            <attribute-override name="languageCode">
              <column name="language_id"/>
            </attribute-override>
            <attribute-override name="determinantValue">
              <column name="determinant_value"/>
            </attribute-override>
            <attribute-override name="effectiveDate">
              <column name="effective_date"/>
            </attribute-override>
          </embedded-id>
      </entity>
      <entity class="com.ofss.fc.domain.party.entity.contact.AccommodationType">
        <discriminator-value>CZ</discriminator-value>
        <table name="flx_pi_accommodation_type"/>
        <attributes>
          <embedded-id attribute-type="com.ofss.fc.domain.party.entity.contact.AccommodationTypeKey" name="accommodationTypeKey">
            <attribute-override name="id">
              <column name="accommodation_id"/>
            </attribute-override>
          </embedded-id>
          <basic attribute-type="com.ofss.fc.enumeration.party.PartyType" name="partyType">
            <column name="party_type"/>
            <enumerated>VALUE</enumerated>
          </basic>
          <basic attribute-type="java.lang.String" name="name">
            <column name="accommodation_name"/>
          </basic>
          <basic attribute-type="java.lang.String" name="description">
            <column name="accommodation_desc"/>
          </basic>
        </attributes>
        <discriminator-column discriminator-type="STRING" name="DOMAIN_OBJECT_EXTN"/>
      </entity>
    </entity-mappings>
    I am using xpath to create expression. Please can I know how to iterate tag.
    I want to process tag <entity> with different logic.
    I want a output like
    Entity
    com.ofss.fc.domain.party.entity.core.PartyAddress
    Table
    flx_pi_addresses_b
    Attribute
    Column
    partyId
    addressType
    languageCode
    determinantValue
    effectiveDate
    Entity
    com.ofss.fc.domain.party.entity.contact.AccommodationType
    Table
    flx_pi_accommodation_type
    Attribute
    Column
    id
    accommodation_id

    Or don't use dbms_xml at all:
    SQL>  with t as
      select 'data1' col1, 'data2' col2 from dual union all
      select 'data3' col1,  null   col2 from dual
    select xmlserialize(content xmlelement ("rowtag",
                       xmlelement ("col1", col1),
                       xmlelement ("col2", col2)
                      ) indent) xml
      from t
    XML                                                                            
    <rowtag>                                                                       
      <col1>data1</col1>                                                           
      <col2>data2</col2>                                                           
    </rowtag>                                                                      
    <rowtag>                                                                       
      <col1>data3</col1>                                                           
      <col2/>                                                                      
    </rowtag> /* xmlserialize is just used for nicer formatting */

  • How can I write the analogous code to the logic:iterate tag functionality

    Hai This is Rayalu .And I am very new to the Java World. I have a doubt?.How can I write the analogous code to the<logic:iterate> tag functionality using the JSP Tag Libraries . Pleae Send me some examples .

    Hi,
    SELECT objnr objid aufnr
            from afih
            into table t_afih.
    SELECT objnr
            from JEST
            into table t_JEST
            where stat = 'A0045'
               OR stat = 'A0046'
               AND inact 'X'.
    SELECT objnr
            from COBRB
            into table t_cobrb.
    SELECT arbpl werks objid objty
          from crhd
          INTO table it_crhd
          FOR ALL ENTRIES IN it_afih
          WHERE objty eq 'D'
          AND gewrk = it_afih-objid.
    SELECT aufnr objnr auart txjcd pspel gstrp werks aufnr
            FROM caufv
            INTO table t_caufv
            FOR ALL ENTRIES IN it_afih
            WHERE aufnr = it_afih-aufnr
              And pspel = ' '
              AND txjcd = ' '
             ANd objnr ne it_crhd-objnr
              AND auart in s_wtype
              AND werks in s_plant.
             AND objnr ne it_jest-objnr.
    dont use NE in the select statements, it may effect performance also. Instead use if statements inside
    loops.
    loop at t_caufv.
    read table it_chrd............
      if t_caufv-objnr ne it_chrd-objnr.
      read table it_jest..........
       if   if t_caufv-objnr ne it_jest-objnr.
        (proceed further).
       endif.
      endif.
    endloop.
    hope this helps.
    Reward if useful.
    Regards,
    Anu

  • Problems with iterate tags

    Hi everybody,
    We're using OC4J 9.0.2 but we have a problem with iterate tags. The doAfterBody is ignored and so, the body is never done !
    This work fine with version 9.0.3. If we compare the two generated servlets(9.0.2 & 9.0.3), the code is really different.
    Is this a know bug, is it possible to solve this problem ?
    Our client is still in 9.0.2 and is not ready for an upgrade.
    Any idea is welcome ...
    Jean-Pierre Evrard
    [email protected]
    Belgium

    It's unlikely anyone can help you if you don't show any of your code or explain what is really happening.
    Have you set breakpoints (or added print statements) in your doStartTag, doEndTag, and doAfterBody methods, and verified the return values are what they should be?

  • Using Strut Logic Iterate tag in JavaScript

    Has anyone tried this or experienced this problem.
    I have JSP pages with JavaScript imbedded. Not my web page but an out of the box portal we bought from a vendor. The JavaScript uses the Logic Iterate Strut tag but gives an error in Nitro:
    "feature is not resolved" on the lines where getLink() and getID() are called. I have put the code in other editors and it does not give me any error. Does any one have a clue to why this error occurs or is this something that NitroX can not handle?
    Thanks,
    Zim 8)
    Some of Code:
    function selectFolder(folderName,doExpandPath)
                        if (typeof(doExpandPath) == 'undefined')
                             doExpandPath = true;
                        var form = document.forms['TreeForm'];
                        // unselect old one
                        var cell = document.getElementById(selectedId);
                        if (null != cell)
                             cell.className = '';
                        // select new one
                        if ('/' == folderName.charAt(folderName.length-1))
                             folderName = folderName.substring(0,folderName.length-1);
                        var targetCellId = 'cellLabel./Documents'+folderName;
                        var isContentFolderBrowser = true;
                        try {
                             var sideBarSelected = top.frames['main'].window.sideBarSelected;
                             isContentFolderBrowser = '/getfolderitems.do' == sideBarSelected;
                             if (!isContentFolderBrowser) {
                             <logic:iterate id="feature" name="userinfobean" property="sideBarFeatures"
                                       type="com.actuate.activeportal.functionality.config.Feature">
                                       if (sideBarSelected == '<%= feature.getLink()%>' )
                                            targetCellId = 'cellLabel./<%= feature.getID()%>';
                                  </logic:iterate>
                        } catch (e) {
                        cell = document.getElementById(targetCellId);

    May I ask why have you done it?
    If it is related to printing of the list then it is of no use.But it IS of use. The objects compEmployees is in scope.
    It has the list we want to print out.
    With logic:iterate:
    <table>
         <tr>
           <th>Number</th>
           <th>Employee</th>
         </tr>
         <logic:iterate name="compEmployees" property="totalEmps" id="emp">
              <tr>
                <td>
                  <bean:write name="emp" property="empNo"/>
                </td>
                <td>
                  <bean:write name="emp" property="empName"/>
                </td>
              </tr>
         </logic:iterate>
    </table>or alternatively with JSTL and c:forEach
    <table>
         <tr>
           <th>Number</th>
           <th>Employee</th>
         </tr>
         <c:forEach items="${compEmployees.totalEmps}" var="emp">
              <tr>
                <td>
                  <c:out value="${emp.empNo}"/>
                </td>
                <td>
                  <c:out value="${emp.empName}"/>
                </td>
              </tr>
         </c:forEach>
    </table>Cheers,
    evnafets

  • C:forEach and logic:iterate tags repeating elements of a collection

    I have an issue that makes absolutely no sense to me. Basically I am using struts, and I am returning a form that contains a List of customers. I am simply trying to iterate that list into a simple table for each customer. The end result will have rows for each table, but I tried to simplify this example.
    The only filter is that I don't want to display customers that don't contain any data that I care to display. In my dataset, there is only one customer that has any data that I care about, and that has been verified in the database and in the backend action feeding the struts page.
    I first attempted this with the c:forEach JSTL tag. What I saw was that the customers were just getting repeated. Instead of showing one table for each customer, it was repeating the tables for each customer equal to the size of the Collection. For example, there were *5* customers in the List, only customer C should have been set into a table, but the table for customer C was being repeated *5* times. I went into the backend code, and made sure the object being sent back to struts contained the correct number of records.
    I then tried the same thing using the logic:iterate Struts EL tag. This did exactly the same thing. Instead of one table for customer C, I had 5 tables, all for customer C.
    Frustrated, I then went back to just writing a basic scriptlet in the JSP, to iterate over the object returned from the struts action. When I did this, everything came back as normal. Only customer C met my conditional statement, and only customer C had a table created in the generated HTML.
    Now I must be missing something with how the JSTL tags are handling the iteration, so I wanted to post the code to see if anyone had any idea what I am doing wrong here.
    The JSP page is found below. As you can see, the first part is done as a scriptlet, and the last part is done with JSTL tags. Unless I am mistaken, the 2 approaches should produce the same result. Please let me know if I am missing something here.
    <%@ include file="/common/customConfig.inc"%>
    <%@ page import="java.util.Iterator,
        com.pw.cemp.webapp.common.forms.CempDocumentsForm,
        com.pw.cemp.webapp.common.views.CustomerView"%>
    Write table with straight scriptlets...
    <br />
    <br />
    <%
        CempDocumentsForm cdForm =
            (CempDocumentsForm) session.getAttribute("cempDocsForm");
        Iterator itCustomers = cdForm.getCustomers().iterator();
        while (itCustomers.hasNext())
            int idx = 0;
            CustomerView customer = (CustomerView) itCustomers.next();
            if (customer.getCemps() != null && !customer.getCemps().isEmpty())
    %>
            <table>
                <% if (idx == 0) { %>
                    <caption>
                        Customer CEMP Listing
                    </caption>               
                <% } %>
                <tbody>
                    <tr>
                        <td class="level1">
                            <%=customer.getName() %> -
                            <%=customer.getSapCustomerId() %>
                        </td>
                    </tr>
                </tbody>
            </table>
    <%      
            idx ++;
    %>
    <br />
    <br />
    Now try using JSTL...
    <br />
    <br />
        <logic:iterate name="cempDocsForm" property="customers" id="customer" indexId="index">
        <!-- <c:forEach items="${cempDocsForm.customers}" var="customer" varStatus="status"> -->
            <c:if test="${not empty customer.cemps}">           
            <table>
                <c:if test="${index == 0}">
                    <caption>
                        Customer CEMP Listing
                    </caption>
                </c:if>
                <tbody>
                    <tr>
                        <td class="level1">
                            <c:out value="${customer.name}" /> -
                            <c:out value="${customer.sapCustomerId}" />
                        </td>
                    </tr>
                </tbody>
            </table>
            </c:if>
        <!-- </c:forEach> -->
        </logic:iterate>
        <br />
        <br />The code above produced the following HTML. As you can see, the scriptlet did exactly what I wanted, it produced 1 table for the only company that met the conditional statement. The JSTL section repeated the table for that one company, equal to the number of items in my List.
    Write table with straight scriptlets...
    <br />
    <br />
            <table>
                    <caption>
                        Customer CEMP Listing
                    </caption>                           
                <tbody>
                    <tr>
                        <td class="level1">
                            FMP Test Company -
                            5
                        </td>
                    </tr>
                </tbody>
            </table>
    <br />
    <br />
    Now try using JSTL...
    <br />
    <br />
            <table>           
                    <caption>
                        Customer CEMP Listing
                    </caption>           
                <tbody>
                    <tr>
                        <td class="level1">
                            FMP Test Company -
                            5
                        </td>
                    </tr>
                </tbody>       
            </table>
            <table>
                <tbody>
                    <tr>
                        <td class="level1">
                            FMP Test Company -
                            5
                        </td>
                    </tr>
                </tbody>
            </table>
            <table>           
                <tbody>
                    <tr>
                        <td class="level1">
                            FMP Test Company -
                            5
                        </td>
                    </tr>
                </tbody>
            </table>
            <table>           
                <tbody>
                    <tr>
                        <td class="level1">
                            FMP Test Company -
                            5
                        </td>
                    </tr>
                </tbody>
            </table>
            <table>       
                <tbody>
                    <tr>
                        <td class="level1">
                            FMP Test Company -
                            5
                        </td>
                    </tr>
                </tbody>
            </table>
        <br />
        <br />Thanks in advance...
    Edited by: cdbyrd on Feb 28, 2008 4:22 PM
    Edited by: cdbyrd on Feb 28, 2008 5:12 PM

    Okay, it looks like I kept moving things around until I stumbled upon something. One thing to note is that I am using Tiles in my struts 1.2.9 application. I don't know if that has anything to do with it, but this is what I found.
    If you notice in my code, with the iteration tags, I had one active and one commented version of the tag. I kept flipping them around, thinking it was some kind of syntax problem or it was specific to either the logic:iterate or c:forEach tag.
    Well, as it turns out, when you comment something the way I did, I think the custom tag processor doesn't ignore the commented sections. I had things commented like the following.
        <logic:iterate name="cempDocsForm" property="customers" id="customer" indexId="index">
        <!-- <c:forEach items="${cempDocsForm.customers}" var="customer" varStatus="status"> -->Now I have done this many times in the past, and I have never noticed any adverse behavior. I guess it was just the correct situation here to make the problem come to the surface. As soon as I removed any comments on the JSP, the page started working as expected. I can't explain why it happens, I just know it happened.
    Does anyone out there have a good explanation for this, so I can put a reason to why I lost so much hair today? Also, does anyone have the proper way to comment out JSTL tags to keep them from being parsed?
    Thanks...

  • How can I "nest" CSS span tags?

    I have a piece of text to which I want to apply three successive CSS classes, making increasingly broad selections of the text.  (Or, conversely, apply to the broadest span of text and then selectively style smaller subsets of the inner text.)  Either way I try this, the "span" tags do not end up nested.
    For example, I first select a single word and apply CSS style-1 to just the one word.  Next, I select 3 words (one being the word I just styled) and apply CSS style-2 to that.  Finally, I select the entire clause, which contains the 3 styled words, and apply style-3 to that.
    The objective is to have the span tags "nest" -- but when I apply the styles in the Design view using the "Class" selector, the resulting HTML has the span tags starting and stopping for each bit of text, rather than being nested.  Rather than that, I want to end up with the effect below:
    <span class="style-1">a clause <span class="style-2">with <span class="style-3">some</span> words</span> within the clause.</span>
    I can, of course, do this by hand in the Code view but it is very time-consuming.  Is there a way to achieve this in the Design view?

    Are you attempting something like this?
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Span Tag Nesting</title>
    <style type="text/css">
    .style-1 {
        font-weight:bold;
    .style-2 {
        color:green;
    .style-3 {
        font-style:italic;
    </style>
    </head>
    <body>
    <span class="style-1">a clause <span class="style-2">with <span class="style-3">some</span> words</span> within the clause.</span>
    </body>
    </html>
    I'm pretty sure you're going to be stuck adding the span tags in by hand. As far as I can tell, there's no way to get DW to nest <span> tags from within Design View. With the way span tags currently work in DW, there is no way for the program to know you want them nested or overwritten when you select an area of text in Design View.
    That might be an interesting Feature Request: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • JSTL nesting of foreach tag in the c:import

    Ran into the problem when migrated the jstl to 1.2.
    We have the code like below with the c:import and dynamic parameters.
    jstl 1.2 is complaining about the nesting of tags.
    <c:import url="Ixxxxxxxx">
    <c:forEach var="entry" items="${usebean1.htmlParameters}">
    <c:param name="${entry.key}" value="${entry.value}" />
    </c:foreach>
    </c:import>
    What is suggested approach for the c:import with dynamic parameters?
    Any suggestions/solutions will be appreciated.
    Thank you,
    -Sreeni.

    Are you the one who commented out the code you're looking for ?//String desc = StringFactory.getString(attributes.getValue("desc"));You just have to modify you AttributeObject class to hold a new field : String description. And then, it's up to you to create a new constructor or a new setter method.
    Btw, this is not a Swing related question.

  • Logical translation of nested logic:equal tags ?

    I see this in a JSP (I've simplified it) that I have to modify:
    <logic:notEqual name="someForm" property="XYZ" value="4">
    <logic:notEqual name="someForm" property="XYZ" value="5">
    <logic:notEqual name="someForm" property="XYZ" value="5">
    <TD>String 1</TD>
    </logic:notEqual>
    </logic:notEqual>
    </logic:notEqual>
    The effect it has is like an "AND".
    So if ((XYZ != 4) AND (XYZ != 5) and (XYZ != 6))
    then show the string.
    Now I wanted to add something that said "but if it IS one of those three... (an OR condition, like "equals this OR this OR this"), then show something else."
    So I tried the above except changed them to logic:equals, and it doesn't work. In fact the behavior doesn't change at all, because I think it's doing "AND" again. And of course, it's never going to equal 4 AND 5 AND 6 at the same time.
    Am I straight on this? How do you create an OR condition? I looked at the <nested:equal> tag a little bit, but I'm not certain I understand what it offers.

    Hi,
    You are not getting the desired result because you are trying to aggregate the depreciation and the accumulated depreciation of the same month and post the result again in the same month. Lets say the code is working for 2009.MAR. You are trying to add the depreciation and accumulated depreciation of 2009.MAR. However, you still dont have the acc depreciation of 2009.MAR. You basically need to take the acc depreciation of the previous month.
    You can try something like:
    *WHEN ACCOUNT
    *IS Depreciation
         *FOR %MON% = 2009.FEB,2009.MAR,2009.APR
              *REC(EXPRESSION = %VALUE% + ([ACCOUNT].[AccumDep],[TIME].Previous), ACCOUNT=AccumDep)
         *NEXT
    *ENDWHEN
    *COMMIT
    You can have a property called Previous to store the previous month of each period in the time dimension.
    Hope you got the idea.

  • Validate the user input against HTML tags

    There is text field in my form, the user inputs in this field should be validated against HTML tags. like:
    <H1>HAI</H1> ,
    and "<script>alert('Hai')</script>"
    it should say pls validate a text without HTML tags.
    Pls let me how can I achieve this?
    Regars,
    Nagalakshmi

    You have to spilt the text in the form field, identifiy the difference between the text and HTML tags. The available options are ucan use String.lastIndex("<") methos apply some logic to find the same
    baiju

  • Challenge: how to login a user from a custom Tag?

    Hey. The question is in the title.
    This is the doEndTag() function inside a TagSupport implentation class :
    public int doEndTag() {
      String j_username = pageContext.getRequest().getParameter("j_username");
      String j_password = pageContext.getRequest().getParameter("j_password");
      // HOW TO USE THESE 2 STRINGS FOR LOGING THE USER?
      return EVAL_PAGE;
    }I can do basic authenticaton (I'm using tomcat btw), it's fine but I need to do this because the client is a Flash and not an html page. Any help is welcome, thanks!

    maybe spit out some javascript which sets hidden variables j_username and j_password on the page and submits to /j_security_check?
    The important thing is that the special URL /j_security_check is what handles the authentication, and that's handled by the Web Container. Unless you can exactly duplicate what the Web Container is doing in your custom tag, it's probably best to stick with the standard authentication, or roll your own.
    Brian

Maybe you are looking for

  • Every time I save an image my mac changes the sizing, why?

    I need help.  For my job I need to find images and save them in the file size I  find.  Every time I do this my mac changes the size of the image.  For eg.  I find an image that is 325x315 and then simply click "save as".  I then go back into the ima

  • How to edit move rename files in iTunes

    how to edit move rename files in itunes

  • Messages to Weblogic Queue from JCAPS

    Hi, We are facing problems looking up a Weblogic queue from JCAPS to send a JMS message into it. The same code works fine from ICAN and stand alone java class. Has anyone done this before in JCAPS? Any help would be highly appreciated. Thanks.

  • Image loading problem

    I've been having a problem with my app that is designed to take an image, scale it into 3 different sizes and then save it. The problem seems to be that the image doesn't load correctly as when I look at the width and height of it, they come back as

  • Selecting an area in canvas

    Hi all, I have a canvas inside an application. I want to select a rectangular area inside the canvas, just like  we use to select text in MS Word , i.e, by dragging the mouse by left click.  i know it can be done by Mouse_UP and Mouse_DOWN events, bu