>> also, IDEAS jsp support does not seem to recognize variables that are
>> introduced by tags. I have a tag which introduces a variable, and
>> scripting
>> which appears after the tag and makes use of the variable. IDEA shows
>> errors, but the pages work flawlessly
>
>
>It's also impossible to resolve the error having this amount of
>information. Do you have WebApp correctly defined? Is IDEA able to
>autcomplete tags in your tag library? Do you have TEI classes for your
>tags?
Here you go: My jsp looks roughly like below. The webapp is correctly
defined and recognized, tag autocompletion works nicely. The trick is that
the <runtime> tag introduces a scripting variable named "var" (as defined by
the parameter) into the current context (see the TEI class definition
below). However, inside the <% %> script, IDEA does not recognize that
variable, and wrongly flags an error...
JSP:
===
<%@ taglib uri="www.dynabeans.com/wcf/taglibs/wcf01.tld" prefix="wcf" %>
<p>blablabla</p>
<wcf:runtime id="var" />
<%
var.doSomething();
%>
TEI class:
======
public final class RuntimeTEI extends TagExtraInfo
{
/**
* Return information about the scripting variables to be created.
*/
public VariableInfo[] getVariableInfo(TagData data)
{
String id = data.getId();
if(id != null) {
return new VariableInfo[] {
new VariableInfo(id,
"com.dynabeans.wcf.util.WCFRuntimeJ2EE",
true,
VariableInfo.AT_END)
};
} else
return new VariableInfo[0];
}
public boolean isValid(TagData data)
{
return data.getId() != null;
}
}
_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list