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 9250193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:23:26+00:00 2026-06-18T10:23:26+00:00

I am able to use acctNum inside scriptlet as <%=acctNum %> with in the

  • 0

I am able to use “acctNum” inside scriptlet as <%=acctNum %> with in the block of statements inside tag as mentioned in the below code.

<logic:greaterEqual name="childArraySize" value="1">
 <bean:define id="acctNum" name="overviewSel" property="accountNumber" type="String"/>
 <logic:equal name="accountNumber" value="<%=acctNum %>">
    <bean:define id="STItemIndex" name="ItemIndex"/>
    <bean:define id="overviewCh" name="overviewSel" type="com.beans.statements.StatementAccount"/>
    <bean:define id="arraySize"  name="childArraySize"/>
    <bean:define id="statementAccountTypeDesc" name="statementAccountTypeDescSel"/>
  </logic:equal>    
</logic:greaterEqual>

But I’m not able to use this in the code anywhere after </logic:greaterEqual>
it gives me intermittent error when using it in a scriptlet i.e., inside <% --- %>, I am getting ‘acctNum can not be resolved‘

But it works if I use it in any struts tag like <bean:write name="acctNum">

Please let me know if there is a work around for this

  • 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-06-18T10:23:27+00:00Added an answer on June 18, 2026 at 10:23 am

    I was able to resolve this issue.

    I found that all stuts tags are fine with getting the values, but if I’m using scriptlet/ JSTL tags I was not getting the values,

    For that I had to do a workaround and use it like this <%pageContext.getAttribute("acctNum") %> in case of a scriptlet
    and
    for JSTL <c:out value="pageContext.acctNum">

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

Sidebar

Related Questions

I was able to use the code in this answer to access a value
I want to be able to use the iPhones Mail.app inside my application so
I have been able to use CDT's AST API for parsing source code successfully.
So I was able to use this code: RewriteRule ^portfolio$ _pages/_portfolio/port.html [NC,L] to rewrite
I like being able to use the (Java) Code Formatter in Eclipse, but Eclipse
I have an app that needs to be able use either an sqlite3 datebase
I am able to use WebGrid in any controller like: var grid = new
The init() is able to use the parameter passed to it in this example:
Is anyone able to use Scala IDE in Eclipse with syntax highlighting showing different
I want to be able to use a wildcard in string::find and then fetch

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.