Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4895

s:select tags performance issue after upgrading to 2.5.1.3

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Cannot Reproduce
    • 2.5.13
    • 2.5.13
    • Core Tags
    • IBM Websphere 8.5 , apache 2.x

    Description

      We recently upgraded from Struts 2.1(don't ask) to Struts 2.5.13 , while the upgrade process was smooth, we are facing some performance issue while JSP is rendering at runtime. This JSP used to load in less then 2 secs before and now it's taking around 40 secs to load. It's a very simple JSP with some text fields and a few select fields. I am just posting a simple select that is taking around 20 secs, I cannot post the whole code because of obvious reasons. The time difference between the two-time statements below is around 20 secs.

      I have tried to remove styles, javascript function but still it's taking a long time. Any suggestions in this regard will be helpful. This is happening most of the select boxes.

      System.out.println("logging started");
      java.util.Date date49 = new java.util.Date();
      %>
      The time is now <%= date49 %>
                                  <s:select cssClass="textBox_normal" cssStyle="width:100%; height:100%" name="showDoc" id="showDoc" multiple="true" size="5" 
      	       						  headerKey="-1" 
      	       						  list="doclist"
      	       						  listKey="id"
      	       						  listValue="Description"
      	       						  onchange="disableErrormsg('VarLibAssetErrorDiv');"
      	       						  />
      	                </div>
                          <div style="float:left; width:20%; height:100%; display: none" id="documentTypeDiv">
                          	<%
      	System.out.println("logging started");
      java.util.Date date5 = new java.util.Date();
      %>
      The time is now <%= date5 %>
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            uniqueharsh Harsh Choudhary
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: