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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:25:20+00:00 2026-05-24T03:25:20+00:00

I have a struts2 application and I am trying to show a KML layer

  • 0

I have a struts2 application and I am trying to show a KML layer on top of Google Earth using the Google Earth plug-in. I am using: ge.parseKml(kmlString)

If I put the KML string in the script section such as
var kmlString ='<?xml version=\"1.0\" encoding=\"UTF-8\"?> <kml xmlns=\"http://www.opengis.net/kml/2.2\"> <Document> <Camera> <longitude>-122.444633</longitude> <latitude>37.801899</latitude> <altitude>139.629438</altitude> <heading>-70.0</heading> <tilt>75</tilt> </Camera> <Placemark> <name>Placemark from KML string</name> <Point> <coordinates>-122.448425,37.802907,0</coordinates> </Point> </Placemark> </Document> </kml>';

then the marker shows up on the globe. The problem is that this KML string is not fixed, but will be generated after the user selects certain values. So I am getting the KML string from the java bean class property “kmlStr” like this:

var kmlString='<s:property value="kmlStr"/>';

The problem is that the following special characters are replaced '<' becomes '&lt;' and '>' becomes '&gt;'
This breaks the “parseKml” method since the greater than and less then symbols are not interpreted (the marker does not show up).

So the question is how do I can get the string from the java bean property ‘kmlStr’ without
'<' and '>' being replaced to "&lt;" and "&gt;" respectively ?

  • 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-24T03:25:22+00:00Added an answer on May 24, 2026 at 3:25 am

    I think you can use either:

    var kmlString='<s:property value="kmlStr" escape="false"/>';
    

    or

    var kmlString='<s:property value="kmlStr" escapeHtml="false"/>';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a struts2 application with a single page that may show one of
I have an application written with Struts2 and Spring for DI and I'm using
I am using Struts2 for a web application development. i have this particular problem
I have a struts2 web application which accepts both POST and GET requests in
I am developing a web application using Struts 2.1.2 and Hibernate 3.2.6.GA. I have
I have a Struts2 webapp, in which I compiled using the Tomcat 5.5 libraries.
I'm trying to have my Struts2 app redirect to a generated URL. In this
I have struts2 application with struts2 version 2.0, There is no error on server
I have struts2 web application. Right now I need embed with help of iframe
In a web application using struts2 ejb hibernate, is it possible to tell the

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.