Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JSP for WAS (WebSphere Application Server 3.5.4)

Status
Not open for further replies.

foongkim

MIS
Apr 8, 2002
5
MY
Hi all, I am having a trouble here. I can't find anyplace for me to put in my JSP page. I would like anyone fo you can guide me thorugh.

My version is 3.5.4 Standard Edition. I manage to find the path to ftp in my Servlet but I can't do the same for my JSP. I know I have to create the JSP Processor in, but it's already done there.
Do I need to create another new Application Server?

Please.... help.
 
Which platform are you running on? Did you define the jsp to was.conf via a DeployedWebApp directive? This contains mapping information about the code. If you have a servlet that currently works, look for it's webapp name in was.conf. You should be able to repeat it and create the new webapp for the jsp. I'm being very general here because I don't know what platform you're on nor what you are using to deploy your code.

Thanks..

Dan
 
I am running my WebSphere 3.5.4 with AS400. That's means I am using W2K to be my Admin Console where els my pages, servlet and all the data is directly connected to AS400.

Now, the latest infor is I have found the Document Root of the application. I have posted my JSP and Bean within that rooot. BUt I don't think it's the proper way.

I should, set a path for document root, and within that document root, I create 2 sub-folder, Web and Servlets. One is for .JSP, and Servlets is for serlet, .class. But if I do so, my whole JSP pages totaly can't be browse.

So, I am wondering is it any missing piece I miss out? Do I need to set something in the "Classpath"? or anything need to be pay more attention?
 
I didn;t use any ide to develop my code. Budget constraint. So, I use notepad to develop my JSP and Servlet code, compile it in AS4000, after ftp it in.

 
Here is an example of a webapp I run. I run WAS 3.5 Standard Edition on OS/390 2.10 under HTTP Server 5.3. This app was developed using Visual Age for Java.

deployedwebapp.TMSapp.host=default_host
deployedwebapp.TMSapp.rooturi=/tmsviewpoc
deployedwebapp.TMSapp.classpath=/usr/webserver/tmsdev/tmsviewpoc.jar
deployedwebapp.TMSapp.documentroot=/usr/webserver/tmsdev
deployedwebapp.TMSapp.autoreloadinterval=0
webapp.TMSapp.servletmapping=/servlet
webapp.TMSapp.jspmapping=*.jsp
webapp.TMSapp.jsplevel=1.0
webapp.TMSapp.servlet.TmsViewServlet.servletmapping=/tmsview.servlet.TmsViewServlet
webapp.TMSapp.servlet.TmsViewServlet.code=tmsview.servlet.TmsViewServlet

Based on your comments, it sounds like you're just running servlets that aren't bundled in a jar file. In that case, follow this example:

deployedwebapp.pwcheck.host=default_host
deployedwebapp.pwcheck.rooturi=/servlet
deployedwebapp.pwcheck.classpath=/system/servlets
deployedwebapp.pwcheck.documentroot=/system/servlets
webapp.pwcheck.jspmapping=*.jsp
webapp.pwcheck.jsplevel=1.1
webapp.pwcheck.filemapping=/
webapp.pwcheck.servlet.PasswordChange.code=PasswordChange
webapp.pwcheck.servlet.PasswordChange.servletmapping=/PasswordChange
webapp.pwcheck.servlet.PasswordCheck.code=PasswordCheck
webapp.pwcheck.servlet.PasswordCheck.servletmapping=/PasswordCheck
webapp.pwcheck.servlet.TestPasswordCheck.code=TestPasswordCheck
webapp.pwcheck.servlet.TestPasswordCheck.servletmapping=/TestPasswordCheck
webapp.pwcheck.servlet.TestPasswordChange.code=TestPasswordChange
webapp.pwcheck.servlet.TestPasswordChange.servletmapping=/TestPasswordChange

In my case, this is just a proof of concept, so I stuck all of the associated files (html,jsp,class) in directory /system/servlets. I'm not sure how AS/400 works, but you may need to add a Service directive in your httpd.conf file which matches your deployedwebapp.webapp.rooturi= directive. The Service directive invokes the WAS plugin when a client comes in with a url matching the rooturi / Service directives. Example..Service /servlet/*...... in HTTPD.CONF and deployedwebapp.pwcheck.rooturi=/servlet in WAS.CONF. A client types this url on their browser: WAS gets invoked.

Also, deployedwebapp.webapp.classpath= tells WAS where your class files reside. Not documentroot. Try that.

Hope this helps.

Dan
 
DanSS2471
Sorry to bother you but I would really appreciate if you could share your expertise with me.
I'm relatively new to all this stuff (only theoretical knowledge) but I want to know the importance of wscp instead of admin console
and also general advise on supporting websphere applications on W2k

thanks
 
My Godness, please, i am running on AS400 not mainframe. And I am asking for help for that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top