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

  • Home
  • SEARCH
  • 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 9320371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T03:37:08+00:00 2026-06-19T03:37:08+00:00

I am migrating my Application from Tomcat 7 to WebSphere 8.5 In Tomcat 7

  • 0

I am migrating my Application from Tomcat 7 to WebSphere 8.5

In Tomcat 7 i Used

-Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false

to reslove Double Quote Issue while Compiling JSP page , i am searching for its eqvivalent parameter in WebSphere.

I Found a Web Container Custom Property

com.ibm.wsspi.jsp.evalquotedandescapedexpression=true

for WAS 8.5 but it is not working.

I get Following error:

JSPG0055E: Unable to create an xml attribute from name [] value [%]

Basically Error Occured in follwoing case

<html:input value="<%="abc"%>"></html:input>

now the Solution is

<html:input value='<%="abc"%>'></html:input>

but it is not possible in my case since there are so many JSPs,In Tomcat this Issue was Resolved by Adding following Property

-Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false

  • 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-19T03:37:09+00:00Added an answer on June 19, 2026 at 3:37 am

    If you have too many JSPs you can try the next conversion code. It covers many of the cases and after you can adjust those special cases:

    package test;
    
    import java.io.FileOutputStream;
    import java.io.FileReader;
    import java.io.LineNumberReader;
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    
    public class JSPParser {
        public static void main(String[] args) throws Exception {
            Pattern pattern = Pattern
                .compile("([A-Za-z]+\\w?\\s*=\\s*(\")<%=\\s*[^%>]*\"+[^>]*\\s*%>(\")\\s*)");
    
            // Pass the input JSP in the first argument
            FileReader fr = new FileReader(args[0]);
            LineNumberReader lnr = new LineNumberReader(fr);
            String fileName = args[0];
            int n = fileName.lastIndexOf("/");
    
            // You must have a "was" subdirectory from the source location
            fileName = fileName.substring(0, n + 1) + "was/" + fileName.substring(n + 1);
    
            FileOutputStream fos = new FileOutputStream(fileName);
            String line = null;
            while ((line = lnr.readLine()) != null) {
                Matcher matcher = pattern.matcher(line);
                while (matcher.find()) {
                    n = matcher.groupCount();
                    for (int i = 2; i <= n; i++) {
                        line = line.substring(0, matcher.start(i)) + "'"
                                + line.substring(matcher.end(i));
                    }
                }
                fos.write(line.getBytes());
                fos.write("\n".getBytes());
            }
            fos.flush();
            fos.close();
            lnr.close();
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am migrating a struts application from Websphere to Tomcat 6 and my application
I am migrating application from JSF1.2/MyFaces+Facelets TO JSF2.1/MyFaces. I have following template which used
Migrating a legacy application from WebSphere v.6 to WebSphere v.8. The application's web.xml only
I am migrating an old JSF application from WebSphere to JBoss: the old version
I will be migrating a websphere application to tomcat. I've read these online docs
Background: Migrating an application from ball of mud to MVC. Many classes contain HTML
I'm migrating my application from Rails 3.0.12 to 3.2. I use the active_record_store to
I'm currently working on migrating an application from MS-Access to MS SQL Server. In
We are migrating a web applicatin from vs05 to vs08. This application is using
I'm currently migrating my application from ember 1.0.0-pre2 to 1.0.0-pre4 and I am having

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.