Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 231937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:58:30+00:00 2026-05-11T19:58:30+00:00

I have a legacy Struts 1.2.8 application that I’m maintaining and porting from Oracle

  • 0

I have a legacy Struts 1.2.8 application that I’m maintaining and porting from Oracle Application Server (OAS) 10g to JBoss 4.2.3. I have a JSP that uses the Struts HTML tag library. The JSP page is backed by EJBs. The user enters an item number and the page displays the details of the item (e.g. item from a product catalog).

On the first 3 times I use this page, the item details are returned correctly. But for some reason, on the fourth submission of the page and on subsequent submissions, some of the item information is missing. I’m using

<html:hidden property="itemNumber"/>
<html:text property="itemNumber"/> 

tags. The bizarre part of this problem is that I can’t recreate the problem in OAS. In addition, if I replace the above html:text tag with

<input type="text" value="<%=itemForm.getItemNumber() %>" > 

The code works correctly. My guess is that this is a session/request/scope problem. But I haven’t found the correct configuration.

Is there special configuration required for Struts in JBoss?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T19:58:30+00:00Added an answer on May 11, 2026 at 7:58 pm

    The problem was caching in the Jasper JSP engine. The default configuration is

    enablePooling - Determines whether tag handler pooling is enabled. true or false, 
      default true. 

    I was able to set enablePooling to false and my problem was resolved. I assume this is a bug in Jasper. This bug appeared when a JSP custom tag (e.g. html:hidden) is followed by a jsp:attribute where the name is “value”. See below.

    <html:hidden property="itemNumber"/>
    .
    .
    <html:text property="regularPrice" maxlength="9" readonly="<%=disabled%>" 
        tabindex="9" onkeyup="onRegularPriceChanged(this)">
        <jsp:attribute name="value">
            <webmodules:currency onlyDisplayValue="false">
                <jsp:attribute name="currencyValue">
                    <bean:write name="updateItemForm" property="regularPrice"/>
                </jsp:attribute>
            </webmodules:currency> 
         </jsp:attribute>
     </html:text> 
    

    There seems to be a namespace and caching conflict between the “value” that is set by the html:hidden and the “value” that is set by the jsp:attribute. After the JSP page was used twice the cached value set by the jsp:attribute was being used as the value for html:hidden.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a legacy DLL written in C that I'd like to call from
I have heard that you can run an ASP.NET application and ASP.NET mvc application
I inherited this gigantic legacy Java web app using Struts 1.2.4. I have a
I inherited this gigantic legacy Java web app using Struts 1.2.4. I have a
I am currently doing some work for a company that runs a legacy web
I have a Websphere Portal application containing several portlets for which I'm currently working
I came across the following markup in a JSP file in a legacy app
On my current project, we've been using Struts 1 for the last few years,
As developer, I am often interested in new language feature that can make your

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.