0

I have this code in my jsp

<%-- debugging pourpose --%>
<s:property value="%{dettaglio.titolo}"/>

<%-- input field --%>
<div class="form-group" id="form-titolo">
    <label class="col-sm-2 control-label no-padding-right"
        for="titoloLivello">* Titolo </label>
    <div class="col-sm-8">
        <s:textfield disabled="true"  id="titoloLivello" name="dettaglio.titolo"
            class="form-control col-xs-10 col-sm-12" value="%{dettaglio.titolo}" />
    </div>
</div>

And that's the output I get :(

Anyone has an idea about why this happens?

On the top of the page I have this

    <!DOCTYPE html>
    <html lang="it">
        <head>

            <meta http-equiv="X-UA-Compatible" content="IE=edge" />
            <meta charset="UTF-8" />

...

1 Answers1

0

Struts2 is automatically escaped by default

You have to take care of this escaping on your action class if you want to use on other tags that are not escaped automatically.

want2learn
  • 2,471
  • 2
  • 20
  • 37