It's not a secret anymore!*
The moose likes Servlets and the fly likes JSP in Websphere Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "JSP in Websphere" Watch "JSP in Websphere" New topic
Author

JSP in Websphere

purushottam joshi
Greenhorn

Joined: Feb 26, 2001
Posts: 6

Hi
I am working with Websphere 3.5 Advanced Edition .
I have successfully developed a servlet and ran it.
Now I want to run a JSP Test.jsp which is located
in D:/Websphere/Appserver/...../default_host/MyServer/web/Test.jsp.
There is a simple class (not servlet) in the same directory.
I want to call this class in test.jsp.
I'll appreciate if anybody can tell me how to do that.
Thanks
Purushottam
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
<%@ page import="MyClass" %>
...

<% MyClass mc = new MyClass(); %>
...
<%= mc.thisMethod() %>
<%= mc.anotherMethod() %>


Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
 
Don't get me started about those stupid light bulbs.
 
subject: JSP in Websphere
 
Similar Threads
Context Root in WSAD 5.1
JSP in Websphere
Get HTML Fragment From JSP Page
Exception: java.lang.StackOverflowError
Servlet - doGet - doPost - parameter