Hi all,
I have a problem with usebean tag in JSP. My jsp is unable to find the bean. m using
tomcat and have placed the bean and jsp file in /examples/jsp.
my jsp file looks like this.....<html>
<head>
<title>
Color Demo Example
</title>
</head>
<body>
<!-- This page generates a series of rainbow colored letters -->
<!-- It uses plain method calls to the Bean -->
<%@ page language="java" %>
<%! char c = 0; %>
<jsp:useBean id="letterColor" scope="application" class="AlphabetCode" />
<%
for(int i=0;i<26;i++){
for(int j=0;j<26;j++){
c=(char)(0x41+(26-i+j)%26);
Character thisChar=new Character(c);
letterColor.setCharacter(thisChar.toString());
%>
<font color=<%=letterColor.getColor() %> >
<%=letterColor.getCharacter() %>
</font>
<%
}
%>
<br>
<%
}
%>
</body>
</html>
let me know where i have gone wrong.
nitin