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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:45:37+00:00 2026-06-05T02:45:37+00:00

I have another probably basic problem. happy if u can help. there is a

  • 0

I have another probably basic problem. happy if u can help.

there is a request parameter ‘action’. if I write :

<label><s:property value="%{#parameters.action}"/></label>

the value appears (it is 1)

So itry to test now :

<s:if test="%{#parameters.action == '1'}">YES 1</s:if><s:else>NOT 1</s:else>

NOT 1 appears.

I have tries all the syntaxes I found on the net for the test. Nothing changes, NOT 1 still displays

Thank you

  • 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-05T02:45:38+00:00Added an answer on June 5, 2026 at 2:45 am

    This is because:

    • the value of %{#parameters.action} is an array, not a single value, and
    • the value will be type-converted to a number (not sure why; need to look in to that)

    The correct expression would be:

    <s:if test="%{#parameters.action[0] == 1}">YES 1</s:if><s:else>NOT 1</s:else>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have another (probably unanswered) question about map views. I have a map view
i have another question on getting my XML serialization neat, which i can't seem
I have another question and I can't seem to find anything on Google. What
This is probably a basic LINQ question. I have need to select one object
I'm using Visual Basic 2010 Express. I have a form that can be minimized.
I have a basic problem but Google is not yielding many results for me
Sorry, probably another really basic question. In my ViewScoped bean, a 'viewParam' looks like
Probably a very basic question - I have 2 tables #favorites and #leaders ,
I have many instances of the same type of problem using jQuery. Probably because
This is probably a really basic question - but I have a list of

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.