This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes Call Helper class in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Call Helper class in JSP" Watch "Call Helper class in JSP" New topic
Author

Call Helper class in JSP

Dan Parsons
Ranch Hand

Joined: May 30, 2007
Posts: 70
I am trying to call a helper class in my JSP (in Tomcat container) where I am checking to see if a record exists. Please advise how I can get this to work because it wont call the class method and gives me blank output.

JSP


Helper class

[ June 26, 2007: Message edited by: Dan Parsons ]
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by Dan Parsons:
...it wont call the class method and gives me blank output.


Can you elaborate on this?

It seems to me that your JSP shouldn't even compile.
Your Java class's method throws SQLException but the JSP doesn't catch it.

Did you check your server logs to see if you're getting compile errors?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Amit M Tank
Ranch Hand

Joined: Mar 28, 2004
Posts: 257

<%@ page import="package.classA %>



Even the import syntax is not proper. Please double check your code


Amit Tank
Linked In
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

Dan Parsons, please read this carefully. If you want people in a forum to help you, you've got to take the time to compose your post without silly transcription errors.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Call Helper class in JSP
 
Similar Threads
Servlet becomming slow
Servlet becomming slow
Connection Pooling
Problem while Tag lib Up gradation
can't find information in property"access" in a bean of type 'ministry.LoginBeans'