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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:48:19+00:00 2026-05-22T21:48:19+00:00

Am passing some parameters through in Struts2, and am getting below error when there

  • 0

Am passing some parameters through in Struts2, and am getting below error when there is a HTML special Character in parameter value how can i over come this…?

A herf tage used:

<a href="ManufacturerProducts.action?manufId=<s:property value="manufId"/>&amp;mName=<s:property value="manufName"/>"><img src="<s:property value="manufLogo"/>" alt="<s:property value="manufName"/>" /></a>

Error:

12:21:46,034 WARN  [OgnlValueStack] Error setting expression ' A Manufacturing Co' with value '[Ljava.lang.String;@4acc69'
ognl.ExpressionSyntaxException: Malformed OGNL expression:  A Manufacturing Co [ognl.ParseException: Encountered " <IDENT> "Manufacturing "" at line 1, column 4.
Was expecting one of:
    <EOF> 
    "," ...
    "=" ...
    "?" ...
    "||" ...
    "or" ...
    "&&" ...
    "and" ...
    "|" ...
    "bor" ...
    "^" ...
    "xor" ...
    "&" ...
    "band" ...
    "==" ...
    "eq" ...
    "!=" ...
    "neq" ...
    "<" ...
    "lt" ...
    ">" ...
    "gt" ...
    "<=" ...
    "lte" ...
    ">=" ...
    "gte" ...
    "in" ...
    "not" ...
    "<<" ...
    "shl" ...
    ">>" ...
    "shr" ...
    ">>>" ...
    "ushr" ...
    "+" ...
    "-" ...
    "*" ...
    "/" ...
    "%" ...
    "instanceof" ...
    "." ...
    "(" ...
    "[" ...
    <DYNAMIC_SUBSCRIPT> ...
    "(" ...
    ]
    at ognl.Ognl.parseExpression(Ognl.java:112)
    at com.opensymphony.xwork2.ognl.OgnlUtil.compile(OgnlUtil.java:225)
    at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:209)
    at com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:173)
    at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:160)
    at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:151)
    at com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:288)
    at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:199)

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-05-22T21:48:20+00:00Added an answer on May 22, 2026 at 9:48 pm

    Try

    <a href="ManufacturerProducts.action?manufId=<s:property value='manufId'/>&mName=<s:property value='manufName'/>">
        <img src="<s:property value='manufLogo'/>" alt="<s:property value='manufName'/>" />
    </a>
    

    or

    <a href="ManufacturerProducts.action?manufId=${manufId}&mName=${manufName}">
        <img src="${manufLogo}" alt="${manufName}" />
    </a>
    

    or

    <s:url id="urlId" action="ManufacturerProducts.action">
        <s:param name="manufId" value="manufId" />
        <s:param name="mName" value="manufName" />
    </s:url>
    <a href="${urlId}">
        <img src="${manufLogo}" alt="${manufName}" />
    </a>
    

    or (better)

    <s:a action="ManufacturerProducts.action">
        <s:param name="manufId">${manufId}</s:param>
        <s:param name="mName">${manufName}</s:param>
        <img src="${manufLogo}" alt="${manufName}" />
    </s:a>
    

    or (better)

    <s:a action="ManufacturerProducts.action">
        <s:param name="manufId" value="manufId" />
        <s:param name="mName" value="manufName" />
        <img src="${manufLogo}" alt="${manufName}" />
    </s:a>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

iam passing some parameters in url to a page through curl, but to my
Is there a way to start an instance of eclipse, passing it some sort
I am passing some parameters as POST to a Servlet from my Flex WebApplication.
I'm passing some numeric arguments while creating a process (in VC++) I'm stuck at
I'm just in the process of parsing some text and can't remember what the
I've been parsing through some log files and I've found that some of the
What are some good tools for getting a quick start for parsing and analyzing
I have in a users_controller: @user = User.new(params[:user]) Passing parameters to a User model
Is there some sort of built-in authentication in WCF? I need to expose a
I am developing some functions in assembly language, at the beginning, my functions passing

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.