This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "unknown JSP translation error" Watch "unknown JSP translation error" New topic
Author

unknown JSP translation error

chimichongga
Greenhorn

Joined: Feb 08, 2002
Posts: 1
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

Joined: Jun 03, 2000
Posts: 5040
"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!!!


Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: unknown JSP translation error