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 7227 - Compiler error message not I18n - "Unable to open ..."
Summary: Compiler error message not I18n - "Unable to open ..."
Status: CLOSED INVALID
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P2 normal (vote)
Assignee: Petr Jiricka
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2000-08-02 02:05 UTC by John Baker
Modified: 2002-12-23 16:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Baker 2000-08-02 02:05:58 UTC
A .jsp file uses a tag library jar file.  When the .jsp file is compiled,
there is a compiler error message "Unable to open taglibrary/ietags.jar"
appears in the Compile window.  This message should be I18n'd.
I'm running Japanese version, build 1068 on Japanese Solaris.

Here is the .jsp file:


<HTML>


<%@taglib uri="/ietags.jar" prefix="f" %>

<%@page import="org.netbeans.jsptags.results.BeanVectorResults" %>
oops hh
<%!
     Vector v = new Vector();
     public class item {
          public String foo = "foo";
          public String getFoo() { return foo; }
          public void   setFoo(String value) { foo = value; }
          public String bar = "bar";
          public String getBar() { return bar; }
          public void   setBar(String value) { bar = value; }
          public item(String foo, String bar) {
              this.foo = foo;
              this.bar = bar;
          }
     }

     public class itemBeanInfo {
     }
%>



<%

   v.addElement(new item("one", "1"));
   v.addElement(new item("2", "too"));
   v.addElement(new item("3", "three"));
   v.addElement(new item("for", "four"));


   BeanVectorResults vds = new BeanVectorResults(v, item.class);
   String RESULTS = "BEAN_VECTOR_RESULTS" ;
   pageContext.setAttribute(RESULTS, vds, PageContext.SESSION_SCOPE);

%>
<BODY>





<%-- <%@  include file="iterator.jsp"  %> --%>


<%
    String RESULTS_SCOPE = "session" ;
    String TYPE = "all" ;
    String NEXT_ROWS = "4" ;
    String START_ROW = "0" ;
    String DIRECTION = "forward" ;
%>




<H2>Data source test. </H2>



<%!
     public boolean even(int n) {
         return (n == 2 * (n/2));
     }

     String colorA="#FFFFDD";
     String colorB="#DDDDFF";
%>

<TABLE border=1>

<f:iterator results="<%= RESULTS %>" resultsScope="session" type="<%= TYPE %>"
            n="<%= NEXT_ROWS %>" start="<%= START_ROW%>"
            indexVar="i" iterationsVar="it" resultsObjectVar="beancontainer"
            currentObjectVar="currentobject" direction="<%= DIRECTION %>">
    <TR bgcolor="<%= (even(it.intValue())?colorA:colorB) %>" >

  <TD>
   index=<%= i %>
    <P>
    iterations=<%=it%>: <f:field index="0" />
  </TD>

      <f:fieldIterator results="<%= RESULTS %>"
                      indexVar="fi" iterationsVar = "fit">
        <TD>
         <%=fi%> . <%=fit%> .. <f:field op="name" /> -- <f:field /> |
        </TD>
      </f:fieldIterator>
   </TR>

</f:iterator>
</TABLE>


</BODY>
</HTML>
Comment 1 Petr Jiricka 2000-08-17 14:32:59 UTC
This message is internationalized, see bundle
org/apache/jasper/resources/messages.properties, key jsp.error.badtaglib. It is
only not localized to Japanese, and will not be, as there are no plans to
localize Tomcat server to Japanese.
Comment 2 Jesse Glick 2002-12-23 16:35:41 UTC
Consistent use of the I18N keyword.