> The getVariableInfo method is not called each time the JSP page is
executed;
> it only gets called when the JSP is being translated to a .java file and
> then compiled.  (I think that's called "translation time")  In other
words,
> only the first time after you've made a modification to the page.
>
> Everything looks to be in order, can you post the code in your
> getVariableInfo()?
>

I'm not sure how, but I seem to have got this working now.

My getVariableInfo method is as follows:

 public VariableInfo[] getVariableInfo(TagData data)
  {
      VariableInfo[] scriptvars = new VariableInfo[3];
      scriptvars[0] = new VariableInfo("firstid", "String", false,
VariableInfo.AT_BEGIN);
      scriptvars[1] = new VariableInfo("secondid", "String", false,
VariableInfo.AT_BEGIN);
      scriptvars[2] = new VariableInfo("thirdid", "String", false,
VariableInfo.AT_BEGIN);

      return scriptvars;
}

Does this look OK?
Thanks for telling me that getVariableInfo is only called at translation
time. That has certainly made it less confusing.

Thanks,
Catharine

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to