Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] How to get reference to object in embedding app from JSP or servlet

Hello

We have an application and we need to create some simple web to work with it. We embedded Jetty and created web application with some servlets and JSPs. In our application there are some objects which represent bussines logic and I need to use them from JSP but I don't how to get reference to it. 
I tried to set necessary object as attribute in ServletContext but when I use it in JSP I get "com.xxx.MyClass cannot be cast to com.xxx.MyClass". 
Can somebody give me some advice how to do it? Or I might be on totally wrong way (I am new in development of web applications) so I would appreciate if you tell me the right way I should do my app.
Thanks

Martin


Back to the top