dcsimg
Calling a pure java servlet from a jsp in VAJ
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Chris_Mackie
Posted On:   Thursday, April 5, 2001 07:33 AM

I am having trouble referencing a pure java servlet from a jsp within a VAJ environment. I don't know in which directory to place the .class file so my jsp will see it.

Re: Calling a pure java servlet from a jsp in VAJ

Posted By:   Darryl_Householder  
Posted On:   Thursday, April 5, 2001 09:21 PM

The servlet is created/imported into a VAJ Project. The Package
that is in the java source is used to reference the class using the
WebSphere "file servlet"
(if you don't define the servlet in the default_app.webapp file
which is located in....

C:Program Files

VisualAge for Java

ide

project_resources

IBM WebSphere Test Environment

hosts

default_host

default_app

servlets

)



the url to execute the servlet which is in package...

com.yourdomain.yourpackage from the JSP is:

http://localhost/servlet/com.yourdomain.yourpackage.servletname



or if you define a virtual servlet path in the default_app.webapp file as
myservlet, it would be:

http://localhost/servlet/myservlet



Sample XML code in default_app.webapp for above:





MyServlet

My Servlet Description

com.yourdomain.yourpackage.myservlet

/myservlet



debug

0





UserID

ADMIN





password









Hope this helps!
About | Sitemap | Contact