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 225374 - Incorrect detect whitespace where variable substitution is in place
Summary: Incorrect detect whitespace where variable substitution is in place
Status: RESOLVED WORKSFORME
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP Parser (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-26 20:54 UTC by ecerichter
Modified: 2013-03-25 11:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of the issue (21.46 KB, image/png)
2013-01-26 20:55 UTC, ecerichter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ecerichter 2013-01-26 20:54:47 UTC
Product Version = NetBeans IDE Dev (Build nbms-and-javadoc-10056-on-20130112)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_11
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.6-b04

JSP editor incorrect point an error in the "action" attribute of "form" tag, detecting whitespaces where exists a variable substitution.

Expression is:

<form method='post' action='${ctx}/myServlet'>

where ctx is a session variable declared in a included page fragment elsewhere (it is not empty for sure, but it is not declared in the page itself).

See attached screenshot for the hint provided by NetBeans.
Comment 1 ecerichter 2013-01-26 20:55:33 UTC
Created attachment 130687 [details]
Screenshot of the issue
Comment 2 Vladimir Riha 2013-03-25 11:27:34 UTC
Could you please try it in newer build? It seems to work now, thanks.



Product Version: NetBeans IDE Dev (Build web-main-10157-on-20130325)
Java: 1.7.0_17; Java HotSpot(TM) Client VM 23.7-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_17-b02
System: Linux version 3.2.0-39-generic-pae running on i386; UTF-8; en_US (nb)
Comment 3 ecerichter 2013-03-25 11:50:18 UTC
Works for me in DEV 201303222300.

Thanks,

Edson
Comment 4 Vladimir Riha 2013-03-25 11:56:26 UTC
Thanks a lot.