I have trouble using the break tag to break the text in new line.
Here is what I get in my Web-Browser:
The text is read from a database table.
Heree the entry:
And the database entry is created with java. Here the java code:
StringBuilder sb = new StringBuilder();
sb.append("in Folgender Stückelung : <br />");
while (itKassette.hasNext()) {
KassetteBefuellungZuweisung kassetteBef = (KassetteBefuellungZuweisung) itKassette.next();
int Anzahl = kassetteBef.getAnzahl();
double inhaltNennwert = kassetteBef.getWert() / Anzahl;
if (Anzahl != 0) {
sb.append("<br />Inhalt (Nennwert): " + inhaltNennwert + " Anzahl: " + Anzahl);
}
}
I also tried to figure out what is wrong by looking in the chrome console.
Here:
But I didnt found anything wrong there so I searches the HTML-Sourcecode form that site and got something suspicious.
Here the HTML:
For any reason the browser convertet the encoding!
This is a Struts project and Im pretty new to struts, cant say where or why this happens but hopefully I get a few answeres here. Thanks in advance.