|
|
|
|
| Re: Context Assistant on JSP Expression Language dot operators [message #523396 is a reply to message #523356] |
Fri, 26 March 2010 06:11   |
 |
Ian Tewksbury Messages: 48 Registered: July 2009 Location: RTP, NC, USA |
Member |
|
|
| Sarika Sinha wrote on Fri, 26 March 2010 02:24 | We do have limitation in EL content assist support in WTP 3.2 as well. Content assist on dot operator never works for pageContext like this: ${pageContext. }
| That is the one case that does work in WTP 3.2, or at least it should be. There are JUnits that specifically test for that.
| Wil wrote on Fri, 26 March 2010 04:11 | Thnx.
What will work? Could you show me some examples?
Ps. In netbeans it works on dot operators, a great benifit while programming JSP with expression language, will this be introduced later?
| The example that should work in WTP 3.2 is ${pageContext.}, or really any dot operator on a variable. What does not work is variable completion.
Again I am not positive what was and was not working in WTP 3.1, but I do know EL support especially in content assist has been improved for WTP 3.2.
While it would be great to support it like a first class citizen like the JSP scriplet regions there are lots of issues with supporting EL especially because of translation and scoping issues. Also there are many more higher priority issues the core Structured Source Editor is working on. If there are any other specific issues with EL support you believe should be fixed you can find an existing bug for it in Bugzilla and vote on it, or if you are feeling very ambitious the team is always willing to review high quality patches from the community. I know there are already a hand full of Bugzillas open in this area, and I would mention the bug numbers here bug Bugzilla currently seems to be down for me.
If you have any further questions please feel free to ask.
Blue Skies,
~Ian
Ian Tewksbury
WTP JavaScript Tools
IBM Rational
-----
“When once you have tasted flight, you will forever walk the earth with your eyes turned skyward, for there you have been, and there you will always long to return.” ~Leonardo da Vinci
[Updated on: Fri, 26 March 2010 06:11] Report message to a moderator
|
|
|
| Re: Context Assistant on JSP Expression Language dot operators [message #523552 is a reply to message #523396] |
Fri, 26 March 2010 15:20   |
Wil Messages: 5 Registered: March 2010 |
Junior Member |
|
|
Hi Ian,
I've downloaded build 20100318-1801 with the Eclipse Web Developer Tools 3.2.0.v200911160530-.... After creating a Dynamic Web Project, adding a JSP page in /WEB-INF/ and trying to use some of the implicit objects that JSP offers, I was unable to succeed using context assistant.
pageContext [${pageContext}]
pageScope [${pageScope}]
requestScope [${requestScope}]
sessionScope [${sessionScope}]
param [${param}]
paramValues [${paramValues}]
header [${header}]
headerValues [${headerValues}]
cookie [${cookie}]
initParam [${initParam}]
None of them works, using a dot operator, or even by just typing ${ }, I'm unable to get any tips from the context assistant. 'No default proposals' is what I keep getting.
Am I using it according to a way you would expect it to work now?
[Updated on: Fri, 26 March 2010 17:38] Report message to a moderator
|
|
|
| Re: Context Assistant on JSP Expression Language dot operators [message #523554 is a reply to message #523552] |
Fri, 26 March 2010 15:36   |
 |
Ian Tewksbury Messages: 48 Registered: July 2009 Location: RTP, NC, USA |
Member |
|
|
| Wil wrote on Fri, 26 March 2010 15:20 |
I've downloaded build 20100318-1801 with the Eclipse Web Developer Tools 3.2.0.v200911160530-.... after creating a Dynamic Web Project, adding a JSP page in /WEB-INF/ and trying to use some of the implicit objects JSP offers you I was unable to succeed using context assistant.
| That driver may not be new enough to have all the EL fixes that have gone into WTP 3.2. If you want to try the latest and greatest you can get our M6 driver from http://download.eclipse.org/webtools/downloads/.
| Wil wrote on Fri, 26 March 2010 15:20 | pageContext [${pageContext}]
pageScope [${pageScope}]
requestScope [${requestScope}]
sessionScope [${sessionScope}]
param [${param}]
paramValues [${paramValues}]
header [${header}]
headerValues [${headerValues}]
cookie [${cookie}]
initParam [${initParam}]
But on none of them using any dot operator, or even by just typing ${ }, I'm able to get any tips from the context assistant. 'No default proposals' I keep getting.
| Not sure what you are saying here.
| Wil wrote on Fri, 26 March 2010 15:20 | Am I using it according to a way you would expect it to work now?
| Steps that you would need to follow are:
- Create new DWP pointing at a server runtime such as Apache 6.0
- Create a JSP in the new DWP
- Add the line ${pageContext. } and invoke content assist after the dot
Let me know if you have any luck. Again this MAY work on the driver you have, but I do not remember when the relevant fixes went in. Possible before then so its worth giving a try on your current driver if you are doing something different then in my provided steps.
Blue Skies,
~Ian
Ian Tewksbury
WTP JavaScript Tools
IBM Rational
-----
“When once you have tasted flight, you will forever walk the earth with your eyes turned skyward, for there you have been, and there you will always long to return.” ~Leonardo da Vinci
[Updated on: Fri, 26 March 2010 15:37] Report message to a moderator
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01950 seconds