Click to See Complete Forum and Search --> : How to use classes with JSPs


mizas
05-31-2006, 01:55 PM
I have a class that encryts/decrypts strings. I encrypted some info and stored it on a cookie to access later. This was done with a servlet. Is it possible to access this class to decrypt my cookie using jsp or do I need to make another servlet?

Khalid Ali
05-31-2006, 11:32 PM
u can use classes to do tasks in jsp, I guess what needs to be cleared here is that a jsp page is essentially a servlet. U will read the cookie data, then you will have to send to server where a jsp will process is either by itself( a servlet) another class or a separate servlet. So I'd say take a pick(I'd do something that I already know then to spend time on something that will not be a gain on performance or code complexity)

mizas
06-05-2006, 10:45 AM
Maybe I wasn't clear enough in my question but I found my answer which was
<%@page import="package.class"%>