File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes context root getting changed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "context root getting changed" Watch "context root getting changed" New topic

context root getting changed

srinivas mandayam

Joined: Aug 24, 2005
Posts: 3
i am srinivas i developed an web application using eclipse ide and deployed it in jboss3.2.3

The ear file consist of a war and jar file

the application.xml file is like this


I am using struts so my web.xml look like this

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"


<!-- Display Name and Description -->

<!-- Standard Action Servlet Configuration (with debugging) -->

<!-- Standard Action Servlet Mapping -->


<!-- Welcome File for the application-->


<!-- Struts Tag Library Descriptors -->






The context root is set to fibo in application.xml

With these settings, i call the JSp with URLs like


now when i call the servlet from index.jsp
<form action="/logon" method="post" >

the above url get changed to


can any one please help me in figuring out y it get changed even though i have specifiied the context root

i tried even specifing the context root in jboss-web.xml

but still i have the same problem

thank you
Ambily G Nair

Joined: Aug 21, 2004
Posts: 28
Remove '/'from action ie give <form action="logon" method="post" >.I think it will work.
srinivas mandayam

Joined: Aug 24, 2005
Posts: 3
tried using just logon in form action

<form action="logon" method="post" >

but still it overwrites the url
I agree. Here's the link:
subject: context root getting changed
It's not a secret anymore!