Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes JBoss/WildFly and the fly likes How access web application use root context? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "How access web application use root context?" Watch "How access web application use root context?" New topic

How access web application use root context?

yanhe shi

Joined: Mar 26, 2003
Posts: 1
I deploy a web application example.war on Jboss 3.06&Tomcat4.1
but I can only access the jsp files as http://localhost:8080/example/index.jsp
I want to access the file like that:
what need I do? Thanks
[ April 17, 2003: Message edited by: yanhe shi ]
sanjay kalsi

Joined: May 01, 2003
Posts: 4
In your application dir make WEB-INF dir and put jboss.xml file with contents
and then make the war.
Then you will be able to access all your jsp file
with url http://localhost:8080/xyz.jsp
and you dont have to type http://localhost:8080/examples\xyz.jsp

Please let me know
shilpa A G gupta

Joined: May 02, 2003
Posts: 4
i tried with jboss.xml..
but it' doesn't seem to work.
few doubts..
1] this jboss.xml should be in my context
along with web-inf rt?
2] and is it okey to mention the servlet /jsp web.xml also .
3] could u plz send the complete content of ur jboss.xml plz
thx ..
[ May 06, 2003: Message edited by: shilpa A G gupta ]
I agree. Here's the link:
subject: How access web application use root context?
It's not a secret anymore!