File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Web App Ctx
Joined: Jun 23, 2003
Jan 05, 2007 07:59:00
I have looked on the net, but cannot find an example on how to configure the context of a deployed war file.
What I want is have a war file named xxx.war, but when you start the application you goto /yyy/index.jsp.
I'm not in the position to deploy this within an ear, which would allow me to use
web context xml file...
Do anyone know how to acheive this?
Joined: Jul 20, 2005
Jan 05, 2007 08:19:00
Try this - in the WEB-INF folder of your war, create a jboss-web.xml containing:
<?xml version="1.0" encoding="UTF-8"?> <jboss-web> <context-root>/yyy</context-root> </jboss-web>
I agree. Here's the link:
subject: Web App Ctx
Please help for Context root
Forward to JSP outside of war
whats wrong with this code?
Context and WAR file
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014