Questions tagged [contextpath]

Context path refers to the portion of the web request URI that indicates the context of the request. The context path always comes first in a request URI.

Context path refers to the portion of the web request URI that indicates the context of the request. The context path always comes first in a request URI.

For example - in the http://www.example.com/myContextPath/hello.jsp, the context path is myContextPath.

206 questions
0
votes
2 answers

Tomcat and Context paths

I created a web application in Netbeans, and it packages the application in a file called "aa-bb.war". When I run the project in netbeans, I can access it at "localhost:8080/aa/bb". This is all good. Moving the .war file into a standard tomcat…
user85116
  • 4,132
  • 7
  • 32
  • 33
0
votes
2 answers

Omit app name from URLs & just use domain name to access application?

I want my application to run under URLs like: www.myDomainName.com/welcome instead of : www.myDomainName.com/myAppName/welcome How should I configure for this ? I did found a way to accomplish this by specifying in context.xml(within the project…
Rajat Gupta
  • 23,343
  • 56
  • 165
  • 281
0
votes
2 answers

How to display images and .css file in .jsp

I have a file FixHome.jsp that is trying to display a logo and formatting from style.css. However, when I run the .jsp file the image does not appear and the formatting from the stye.css file is not implemented. The file locations are under the…
Stevenyc091
  • 175
  • 1
  • 2
  • 20
0
votes
1 answer

defining href for static resources coming under a context built with spring mvc

I am using Spring MVC with spring security. Problem I am facing is with building static resources paths to set in jsp files. Suppose my app is deployed in context name ctxt Suppose I want to include a css file in all of jsp, so I write href for it…
Abhi
  • 2,962
  • 5
  • 43
  • 55
0
votes
1 answer

How to change the root context for the Web module in the IHS+WAS configuration?

I have following configuration: Websphere ND 8.0 with some deployed applications; IHS (IBM HTTP Server) 8.0; Web Server Plug-ins 8.0; All of the deployed applications has some unique root context. What I need is to change this root context for…
Sergii_13
  • 1
  • 2
0
votes
2 answers

Apache - How to get resources from the context path and not default when trying to get from /

I have various web application running on my apache server. I can access the first web app by using http://localhost:8080/app1/login But within the login page, I am trying to access an image, login.png as "/images/login.png". This tries to get the…
tushar2289
  • 73
  • 1
  • 2
0
votes
1 answer

How to set a relative tomcat docbase?

This is my Context definition: If I let this run in tomcat the problem is that tomcat adds a absolute path like c:\something\something../myupperProject How can I get rid of the first part?…
Androidewbie
  • 345
  • 3
  • 13
0
votes
1 answer

adding context information to the URL

I need to add context or the current state of my website to the URL of the page.. So that if a user copies and sends the URL to another user. The other user can see the exact state of the website that the sender was watching, i.e. the tab he was…
Mitaksh Gupta
  • 960
  • 4
  • 21
  • 46
0
votes
1 answer

Setting ContextPath in Struts2 Action Class gives wrong path

I'm currently trying to set a context path for a config file in my webapp, but it seems no matter what solution I try, none of them give the right path. The config file is found in WEB-INF/Config. I've tried using ServletContextAware in order to…
Bird
  • 143
  • 3
  • 17
0
votes
1 answer

Tomcat 6 to Tomcat 7 causes context path to stop cooperating

I have a webapp that is working swimmingly in Tomcat 6. Let's say it's running on server:8282/MyApplication. I have a context xml that looks like this:
corsiKa
  • 76,904
  • 22
  • 148
  • 194
0
votes
1 answer

WebSeal JSF Context path stripping Junction Name

We are using WAS & IHS as servers and WebSEAL as reverse proxy. Application is developed using JSF 2.0 and using .xhtml pages for view. Issue: Using ${facesContext.externalContext.requestContextPath} to generate the context for JavaScript and CSS…
Aragorn
  • 3,864
  • 3
  • 23
  • 35
0
votes
1 answer

Tomcat context root

It might be a silly question. When I run the code from eclipse the URL I hit is http://localhost:8080/Test. There are some images and css and javascript in this project. I am giving the path for them as /css/test.css, /javascript/x.js and…
Ritesh
  • 907
  • 5
  • 13
  • 24
0
votes
1 answer

How to access remote folder using http in java through cross context?

Below is the snippet : File folder = new File("http://10.155.6.108:9292/downloads/EA0005632_000000000/"); File file[] = folder.listFiles(); And Context is defined in server.xml file of tomcat 7 on remote system 10.155.6.108.It is…
Edward
  • 1,187
  • 7
  • 24
  • 41
0
votes
4 answers

How can I run servlet without user interacting

I want to excute a servlet to get server name,server port and ContextPath from request. But I don't want to invoke servlet by user interacting. I want excute this servlet by Java code. I'm not sure it's possible. Please give me recommendation.
Chan Tee
0
votes
1 answer

Accept any URL in context root Websphere 6.1

I am currently trying to devlop a single sign-on feature for my company. We have a bunch of applications that each reside within their own application server and/or EAR. We even are going across platforms as not all of the web applications use…
1 2 3
13
14