Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

c:out - JspTranslate:unable to load class null.  RSS feed

 
Manish Das
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting this silly error on build while using Websphere Studio ver 4.0.3
Here's my login.jsp
================================================================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META name="GENERATOR" content="IBM WebSphere Studio">
<META http-equiv="Content-Style-Type" content="text/css">
<LINK href="theme/Master.css" rel="stylesheet" type="text/css">
<TITLE>login.jsp</TITLE>
<%@taglib uri="WEB-INF/jakarta-taglibs-standard-1.1.0-B1/tld/c.tld" prefix="c"%>
</HEAD>
<BODY>
<jsp:useBean id="errorMessage" class="java.lang.String" scope="request"></jsp:useBean>
<c ut value="${errorMessage}"></c ut>
<FORM action="MessagingCenterLoginServlet" target="_self">
<TABLE border="1">
<TBODY>
<TR>
<TD><INPUT size="20" type="text" name="username"></TD>
<TD><INPUT type="submit" name="Submit" value="Submit"></TD>
</TR>
</TBODY>
</TABLE>
</FORM>
</BODY>
</HTML>
==============================================
I can send you the c.tld file contents if you want but it is the same standard one downloaded from the jakarta apache site. It must be something silly like version incompatibility. Anyone has any idea?

Manish
 
Manish Das
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry those red faced expressions were not meant to be and are actually combination of characters ':' and 'o' and should be read the same way.
 
Tina Williams
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add a page directive statement with import attribute with the errormessage class and see what happens. sometimes jsp doesn't understand bean classes without mentioning packages explicitely
 
Manish Das
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay I think the problem is not with errorMessage, instead its with the "c: out". I am getting the same problem in another JSP for "c:forEach" tag. And if I use a "test string" instead of "${errorMessage}" I still get the problem. Any thoughts?
 
R. Shellbay
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure you have the jstl.jar in web-inf/lib or some in som eother classpath?
 
Manish Das
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes I have jstl.jar in WEB-INF/lib and my .classpath shows the entry as shown below.
<classpathentry kind="lib" path="webApplication/WEB-INF/lib/jstl.jar"/>
 
Manish Das
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I am still stuck with this problem. I would be grateful if anyone can help me out. As a workaround I am using java servlet scripts in the JSP page which I don't want to. I am a newbie with JSP.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!