I have a created an struts2 tags url. something like this.
<s:url action="login" var="login_url">
</s:url>
Upon Seeing the generated HTML. it gave me this
<a href="/MyProjectName/login">login</a>
Which is something I Do not like. I all I want to see is this
<a href="login">login</a>
It is currently giving me the full project name. is there a way I can prevent this when using struts2
Your application is deployed in that context. You need it to get the url to work. If the context is not present you will get 404 errors. You should deploy your application as a ROOT application to not show that context