JSP Auto Autocomplete seems broken in IDEA 5.1.1 on Windows XP

Hi, I've got the following JSP file that behaves strangly:

+<%@ page language="java" session="true"%>
<%@ page import="com.mycompany.myproduct.tomcat.session.SessionInfoProvider"%>
<%@ page import="com.mycompany.myproduct.tomcat.session.SessionInfo"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

<%
SessionInfoProvider sessionInfoProvider = new SessionInfoProvider();
SessionInfo[] sessionsInformation = sessionInfoProvider.getSessionInformation(request);
pageContext.setAttribute("sessionsInformation", sessionsInformation);
%>
<jsp:useBean id="sessionInfo" scope="request"/>
<c:forEach var='sessionInfo' items='$'>

]]>+

This the autocomplete for ${sessionInfo. in the IDE only works when I remove the reference to the http://java.sun.com/jstl/core taglib. This is rather odd imho. Does anyone have any ideas? I've tried restarting, etc,etc.
I've created a global library for the JSTL ( only jars selected ) using jakarta-tagblis/standard-1.0.
2 comments
Comment actions Permalink

Hi,

Will look for it, JIRA item, please ?

milmber wrote:

Hi, I've got the following JSP file that behaves strangly:

+<%@ page language="java" session="true"%>
<%@ page import="com.mycompany.myproduct.tomcat.session.SessionInfoProvider"%>
<%@ page import="com.mycompany.myproduct.tomcat.session.SessionInfo"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

<%
SessionInfoProvider sessionInfoProvider = new SessionInfoProvider();
SessionInfo[] sessionsInformation = sessionInfoProvider.getSessionInformation(request);
pageContext.setAttribute("sessionsInformation", sessionsInformation);
%>
<jsp:useBean id="sessionInfo" scope="request"/>
<c:forEach var='sessionInfo' items='$'>
<tr>
<td>
<c:out value="${sessionInfo.username}"/>
</td>+

This the autocomplete for ${sessionInfo. in the IDE only works when I remove the reference to the http://java.sun.com/jstl/core taglib. This is rather odd imho. Does anyone have any ideas? I've tried restarting, etc,etc.
I've created a global library for the JSTL ( only jars selected ) using jakarta-tagblis/standard-1.0.



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Hi,

sessionInfo is declared in c:forEach tag and actually does not have type
info attached. When you remove it then it becase declared in
<jsp:useBean id="sessionInfo"
scope="request"/>

that have type info (class reference) attached.


milmber wrote:

Hi, I've got the following JSP file that behaves strangly:

+<%@ page language="java" session="true"%>
<%@ page import="com.mycompany.myproduct.tomcat.session.SessionInfoProvider"%>
<%@ page import="com.mycompany.myproduct.tomcat.session.SessionInfo"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

<%
SessionInfoProvider sessionInfoProvider = new SessionInfoProvider();
SessionInfo[] sessionsInformation = sessionInfoProvider.getSessionInformation(request);
pageContext.setAttribute("sessionsInformation", sessionsInformation);
%>
<jsp:useBean id="sessionInfo" scope="request"/>
<c:forEach var='sessionInfo' items='$'>
<tr>
<td>
<c:out value="${sessionInfo.username}"/>
</td>+

This the autocomplete for ${sessionInfo. in the IDE only works when I remove the reference to the http://java.sun.com/jstl/core taglib. This is rather odd imho. Does anyone have any ideas? I've tried restarting, etc,etc.
I've created a global library for the JSTL ( only jars selected ) using jakarta-tagblis/standard-1.0.



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Please sign in to leave a comment.