• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

unknown JSP translation error

 
chimichongga
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I would like to ask for your help regarding JSP's. As a background, I was tasked to make a SessionManager module for our web-based system which should validate and moderate form-based login.
I am not too adept with the JSP technology. In fact, I am just learning the basics. I have made my servlet classes and I would like to test them.
What I would like to do is to be able to use the servlets inside my JSP's. I have attached my code (this is just a test code) for your reference. But when compiling, I get "unknown JSP translation error".
Thank you very much for any help that you can extend.
chimichongga
=============
<%@ page contentType="text/html;charset=WINDOWS-1252"%>
<%@pagelanguage="java" import="com.package2.*"%>
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=WINDOWS-1252">
<META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
<TITLE>
<jsp:useBean class="com.package2.ConnectionManager" id="connmgr" scope="session">
<%
connmgr.getInstance();
Connection con = connmgr.getConnection("test");
%>
</TITLE>
</HEAD>
<BODY>
<%
if (con == null)
{
out.println("Can't get connection");
return;
}
%>
</BODY>
</jsp:useBean>
</HTML>
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"chimichongga"
Your name doesn't agree with the javaranch guidelines. Please take a moment and edit your profile after reviewing the guidelines at http://www.javaranch.com/name.jsp
Please change your Publicly Displayed name to follow the guidelines.
thanks for your cooperation.
- satya
Ps:
The problem is quite obvious to me. But, my hands are tied right now...try changing your profile and see how the magic works.....just kidding!!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic