This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 207142 - Illegal Encountered Colon Error
Summary: Illegal Encountered Colon Error
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 7.0.1
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-10 20:02 UTC by nitin.cool4urchat
Modified: 2012-04-24 11:58 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nitin.cool4urchat 2012-01-10 20:02:11 UTC
Following a legal line when developing a webapp using Struts2.

<s:select name="dept" list="#{'it':'Info Tech','cs':'Comp Sci'}" label="Department" multiple="true" cssStyle="padding:5px"/>

Netbeans 6.9.1 shows no error on the above line.
But Netbeans>7 shows an error on the use of # saying that 
"Encountered :" as an intellisense error.

Please fix it at your earliest because it won't allow running of already created webapps using Netbeans 6.9 in Netbeans 7 or higher.
Comment 1 Petr Jiricka 2012-01-13 20:56:55 UTC
Does it really prevent *running* the application? What happens when you run the project?
Comment 2 nitin.cool4urchat 2012-01-13 21:12:00 UTC
I get a RED mark on that JSP page which is propagated all way back to the project name.
It doesn't really prevent from running the web-app. Everything is working fine. Just the red mark makes you and other project members feel that something is incorrect.
So I would really be glad if we don't get the red mark on the page saying "Error Parsing File".
Comment 3 Petr Jiricka 2012-01-16 08:50:51 UTC
Ok, thanks for clarification. P2 is a more appropriate priority.
Comment 4 Martin Fousek 2012-04-24 11:58:45 UTC
Sorry, but in fact this isn't a defect. According to your first comment, you are using Object-Graph Navigation Language instead of traditional JSP EL.

You are right that constructs like "#{'it':'Info Tech','cs':'Comp Sci'}" are allowed in OGNL but we don't support Struts2 as well as OGNL. I'm switching this issue to enhancement for future releases.