It's not a secret anymore!
The moose likes JSP and the fly likes unknown JSP translation error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "unknown JSP translation error" Watch "unknown JSP translation error" New topic

unknown JSP translation error


Joined: Feb 08, 2002
Posts: 1
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.
<%@ page contentType="text/html;charset=WINDOWS-1252"%>
<%@pagelanguage="java" import="com.package2.*"%>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=WINDOWS-1252">
<jsp:useBean class="com.package2.ConnectionManager" id="connmgr" scope="session">
Connection con = connmgr.getConnection("test");
if (con == null)
out.println("Can't get connection");
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
Your name doesn't agree with the javaranch guidelines. Please take a moment and edit your profile after reviewing the guidelines at
Please change your Publicly Displayed name to follow the guidelines.
thanks for your cooperation.
- satya
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!!!

Take a Minute, Donate an Hour, Change a Life
I agree. Here's the link:
subject: unknown JSP translation error
It's not a secret anymore!