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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:34:23+00:00 2026-06-04T10:34:23+00:00

I have some old JSP files with tags such as <mytag:editbox name=SEL_1 param=onclick=’clickit(); param=size=’4′

  • 0

I have some old JSP files with tags such as

<mytag:editbox name="SEL_1" param="onclick='clickit();" param="size='4'" />.

These JSP runs very well in Websphere 5.0. When I move it into Websphere 8.0, something is wrong. The java source compiled by JSP like this:

editbox.setName("SEL_1");
editbox.setParam("size='4'");  //replaced by the last one
editbox.setParam("size='4'");

The last [attributes] overwrites those before it. I also test the JSP in Websphere 6.0 and Tomcat. WAS6 is same as 8.0, and Tomcat says:

org.apache.jasper.JasperException: /index.jsp (line: 17, column: 20) Attribute qualified names must be unique within an element

The attribute of tag can’t be set more than once.

Is this the requirement of JSP 2.0+ specification? (I think the JSP container in WAS5.0 is JSP 1.2 .)

I can merge the two param attribute into one to correct the problem, but how to get the correct result without changing the JSP source?

  • 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-04T10:34:25+00:00Added an answer on June 4, 2026 at 10:34 am

    Having multiple attributes with the same name was never supported by the JSP spec. If it worked on Websphere 5 then that would have depended on proprietary behaviour permissible by that server version, and not by any others. I take it the tag class does something like adding the values to a collection, or some such.

    You’ll need to refactor the tag to be spec-compliant, either by using a delimited string, or using nested tags.

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

Sidebar

Related Questions

I have some old jsp code that uses the struts tags inside attributes, like
I have some old fortran77 codes, and I convert them into .pyd files using
I have some OLD programs that I'm mantaining. They still use resource files with
I have some old Microsoft Word files (probably Word 97) lying around here and
I have some old code with document.write in it. <script type=text/javascript language=JavaScript1.2> document.write('<form name=InvGenPayDonation
I am using R to access some old FORTRAN input files and have some
I have some old files that need to point to new files - the
I have some old .swf files/links for a website and they currently lead to
I have some old branches in my git repository that are no longer under
I have some old fortran 77 I'm trying to port to gcc on Windows.

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.