The Artima Developer Community
Sponsored Link

Java Answers Forum
guys/gals hlp me plz

1 reply on 1 page. Most recent reply: Feb 17, 2004 1:19 AM by Viswanatha Basavalingappa

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
shyamlal c.h

Posts: 14
Nickname: blrboy
Registered: Dec, 2003

guys/gals hlp me plz Posted: Dec 27, 2003 5:15 AM
Reply to this message Reply
Advertisement
I have a small query.Recently i worked with j2ee server.I deployed a servlet.I got a folder in public_html which inturn contains web-inf and meta-inf.Inside web-inf i got a xml file(deployment descriptor) and a classes folder where i found my class file.Its working fine.My question is if i want 2 deploy another servlet should i repeat the same procedure or can i create a folder in public_html and put inside a class folder to place the new servlet and copy the previous xml file and make necessary changes in that.In that case I can save lot of deployment procedure.Without deployment procedure can i run a servlet.The deployment procedure is a big head ache.Kindly take time and help me guys


Viswanatha Basavalingappa

Posts: 84
Nickname: viswagb
Registered: Nov, 2003

Re: guys/gals hlp me plz Posted: Feb 17, 2004 1:19 AM
Reply to this message Reply
hi
To add one more servlet do the following things..

1. go to WEB-INF folder under public_html folder

2. Open the web.xml file under WEB-INF folder

3. look for the tag <servlet> in web.xml

4. add one more tag <servlet> with MyServlet2
<servlet>
<servlet-name>MyServlet1</servlet-name>
<servlet-class>MyServlet1</servlet-class>
</servlet>
<servlet>
<servlet-name>MyServlet2</servlet-name>
<servlet-class>MyServlet2</servlet-class>
</servlet>

that sol to add one more servlet..for your web application....

no need to creat one more folder..Public_HTML....

Try ,, good luck..
Viswa
IBM, Bangalore, INDIA
bgviswan@in.ibm.com
----------------------

Flat View: This topic has 1 reply on 1 page
Topic: jdk 1.4 not installing Previous Topic   Next Topic Topic: How To Get User Input from Command Prompt

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use