Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

JSP - WEBSPHERE urgent

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends
could anyone plz help me in configuring the WEBSPHERE for running my JSPs??In which dir should i place my JSPs and how to set the path(where my JSPs resides)?
thanx in advance
ram
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why dont you use java web server 2.0 for running your jsp.its free.in websphere find public_html folder and put your jsp in it with .jsp extension no need to configure.
 
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
When u made the application for that particular alias, you specify the working directory of the web folder and the servlets , say in ur websphere app server dir, go to hosts, default_host,<applicationname>, there u should have one servlets folder and one web folder, i normally have my jsp's in the pages folder inside the web folder, and call it by /pages/myfile.jsp but you can keep them directoly in the web folder itself, just make sure also that the correct mappings are there in your httpserver, i am using apache.
Hope this helps,
Daman
 
daman sidhu
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
When u made the application for that particular alias, you specify the working directory of the web folder and the servlets , say in ur websphere app server dir, go to hosts, default_host,applicationname, there u should have one servlets folder and one web folder, i normally have my jsp's in the pages folder inside the web folder, and call it by /pages/myfile.jsp but you can keep them directoly in the web folder itself, just make sure also that the correct mappings are there in your httpserver, i am using apache.
Hope this helps,
Daman
 
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Here are the steps to deploy a JSP and invoke in WebSphere
1. Create the JSP and copy it to the \websphere\appserver\hosts\default_host\default_app\web
2. From the Administrator's console select
Console->Tasks->Add JSP or Web resource-> and select the path to where you have stored the JSP.
You will get a message on the console saying ""WebApp.addWebResource" running.
3. On the Console select the View menu and set view to Topology(this is default)
4. Topology view gives you a tree structure, the last branch is default_host. Select this branch. On the right hand you will get default_host(Virtual host). Select the Advanced tab check the aliases used for default host.
5. Start the browser and give
http://alias/filename.jsp
Thats it !!
Suneel
P.S : please post queries with respect to Websphere in the WebSphere forum as we can have all of it together and can refer to the info.
Thanks!!
 
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Matt,
Could this too be transfered to IBM WebSphere forum.
Thanks
 
Sheriff
Posts: 440
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Done.
 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Matt
I am not sure link to websphere forum can you post the link to websphere forum.
Thanks
Konda
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If u r using Websphere App server, also use Websphere Studio. All deployment problems are solved. Moreover it has wizards.
 
I'm not dead! I feel happy! I'd like to go for a walk! I'll even read a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic