This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Most likely you don't have the Struts DTD registered with the IDE. Probably if you look at a Struts JSP, the DTD or xml schema reference is highlighted, meaning its URL could not be resolved. You DID include the Struts DTD in your JSP, didn't you???
If your URL for the Struts schema is correct, there's a simple way to register it locally (so the IDE doesn't have to hit the Internet every time a schema validation is required). However, it's more complicated than I can explain here. Fortunately, the IntelliJ docs on the subject are pretty good.
An IDE is no substitute for an Intelligent Developer.
Joined: Apr 02, 2008
Sorry, not sure what you mean. Not the taglib tlds?
I have these in the file and they are not underlined or otherwise highlighted (because I've already setup that local mapping you spoke of):
And when I type in the IDE "<bean:" it will popup the correct possible values, and autocomplete the rest of the tag. And then inside, I can begin typing "prop" and it will popup "property=""", but then when I put the cursor inside the property attribute, nothing comes up. well... when I force it, it will say "No suggestions" [ April 04, 2008: Message edited by: Mike Fourier ]
Joined: Apr 02, 2008
Just an update on this. The URI turned out to be the problem, in a round-about way.
It's not that it wasn't mapped: it was that it was mapped to an obsolete TLD. Once I updated the TLDs the "external resource mapping" actually pointed to, my code assist started working.
This was quite puzzling, because after all, if it could identify that "write" was a valid value to put after "bean:", and recognized that "property" was an attribute *of* that tag... why then not the code assist for valid javabean methods? I'm still puzzled as to what that has to do with the TLD, but whatever, I'm just happy it's fixed.