mtnp
mtnp

Reputation: 369

Missing end tag for "s:text" with Eclipse and Struts 2

My Eclipse project has found an error on this line :

var SAI_Art26_Prorog_Rech = '<s:text name="labels.requete.requete.query.SAI_Art26_Prorog" />';

But everything is OK I never touched this line before and the project always worked.

I think it's a bug of Eclipse, or maybe not ?

enter image description here

Upvotes: 0

Views: 252

Answers (1)

Dave Newton
Dave Newton

Reputation: 160191

In general, all other things being equal, this is likely due to issues above where the issue was reported, like a missing quote.

As an alternative, you might consider rendering JSON instead of relying on <s:text> tags for a variety of reasons, the biggest of which is that all of these fields need to be JS-escaped (which I do not see reflected in your screenshot).

This can lead to difficult-to-diagnose errors because you need to look across domains (server, view, JS-in-the-view) instead of localizing problems.

Upvotes: 1

Related Questions