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.
Summary: | scriptlet code completion doesn't work if the scriptlet is not closed | ||
---|---|---|---|
Product: | javaee | Reporter: | Jindrich Sedek <jsedek> |
Component: | JSP | Assignee: | Tomasz Slota <tslota> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | mfukala, mschovanek, pjiricka |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | Sun | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Jindrich Sedek
2008-07-02 17:38:51 UTC
Confirmed. It will be rather difficult to fix though, we'll need smth like code sanitation for JSP. it's hard to use java in JSP's with this bug, there is an easy workaround, but while not knowing it, cc in scriptlet doesn't work at all Is this a regression, or did it never work? I think it worked before 6.0, but probably not since that time. It seems to work fine now as long as there is a prefix, e.g. <%! String str = "HELLO"; %> <% S| completes OK. On the other hand there is no CC if there is no prefix even if there is a closing scriptlet tag, e.g. <%! String str = "HELLO"; %> <% | %> - no CC I think there is a prefix in most real-life use cases, besides a fix in this area would be risky for the patch. (In reply to comment #5) > It seems to work fine now as long as there is a prefix, e.g. > > <%! String str = "HELLO"; %> > <% S| > > completes OK. On the other hand there is no CC if there is no prefix even if > there is a closing scriptlet tag, e.g. > > <%! String str = "HELLO"; %> > <% | %> - no CC > > I think there is a prefix in most real-life use cases, besides a fix in this > area would be risky for the patch. both cases works for me now, closing as fixed |