Questions tagged [url-pattern]

The URL-pattern element of servlet-mapping or filter-mapping associates a filter or servlet with a set of URLs. When using this tag on implementation heavy questions - tag the code language the implementation is written in.

379 questions
0
votes
3 answers

Issue of Regular Expression for URL pattern on POSTGRES

select regexp_replace('https://www.facebook.com/cricket/hello', '.*\..*?\/', '') The above code is giving me hello instead of cricket/hello I checked on Regexp checking website and the pattern is correct. I am not sure where am I going…
Ashish
  • 131
  • 9
0
votes
0 answers

web.xml: Request to url-pattern with wildcard timeouts

I am making a "blog-platform" where users can write articles, and I want each article to get its own URL. Therefore, I'd like every page with the URL /blog/* to be sent to the same Servlet. I have tried using web.xml like this:
0
votes
1 answer

java.lang.IllegalArgumentException: Invalid coreservlets.ShowItems_ArrayList

Eclipse Version: Kepler Service Release 1 Build id: 20130919-0819 Steps taken so far: (1) Deleted the .snap file located in the directory \.metadata\.plugins\org.eclipse.core.resources (2) Deleted tmp folder in the following…
mindfreak
  • 456
  • 3
  • 9
  • 29
0
votes
0 answers

ECLIPSE: ClassNotFoundException for existing class at the project

So I got this project's directory structure at Eclipse: src br.com ... br.com.caelum ... br.com.caelum.agenda.servlet ... br.com.caelum.mvc.logica ... br.com.caelum.mvc.servlet ... …
Mr Guliarte
  • 739
  • 1
  • 10
  • 27
0
votes
4 answers

passing parameter from jsp to servlet through url pattern of servlet

I got a requirement to send one parameter through url pattern of servlet (like we send through send) in the same way I need it through url pattern. I do this with other possibilities like I can send that parameter as…
user4571298
0
votes
1 answer

HttpServlet: Url that contains ID between resources

I have seen this answer but it does not help my case. I have a class that implements an HttpServlet. Now I want to place a URL inside it so that it has the following pattern: resource/identifier/resource. For example, I want to make this REST call:…
Syed Waqas
  • 2,576
  • 4
  • 29
  • 36
0
votes
1 answer

Handle URL Pattern Mapping for Javascript

I have web application developed in java with simple jsp and servlet. And I have javascript files in it. My Applications requirement is other applications can only hit my applications using a javascript file. Example as: I have a starting javascript…
Mandar Pandit
  • 2,171
  • 5
  • 36
  • 58
0
votes
1 answer

Unable to invoke rest web service

I am just trying out a sample rest service example. My rest service class is : @Path("oauth") public class OauthClass { private static Map oAuthBeanMap = new HashMap(); static { OauthBean…
Roy
  • 1,231
  • 1
  • 24
  • 61
0
votes
1 answer

url pattern /* doens't work on jax-rs

If i use /* in a dynamic web project with jax-rs on eclipse when I try to access to index.html i get an 404 error but if I use /whatever/* it works correctly ,somebody knows the reason?
AFS
  • 1,433
  • 6
  • 28
  • 52
0
votes
1 answer

How does
action works?

Trivial it may seeem, however I have some doubts as to how 's action work. I have written a simple web-application, using Spring MVC. Controller code: @Controller public class StudentController { @RequestMapping(value = "/student") public…
CuriousMind
  • 8,301
  • 22
  • 65
  • 134
0
votes
0 answers

Servlet mapping 2 url variable

I'm using servlet java and mapping this in web.xml. I'm trying something like this walmart-freight walmart.Freight
0
votes
1 answer

Variable 'app' in url-pattern for servlet mapping

I'm learning Spring MVC (and servlets in general) and following springsource's mvc-ajax example, which uses annotated controller methods. It appears that there is only one url-pattern (in web.xml) mapped to a servlet in that example: /app/* I've…
Brian
  • 1,351
  • 2
  • 15
  • 29
0
votes
2 answers

DJANGO default/error url

Is there a way for an url in django to be triggered when no pattern matched the url requested by the client, something like: defaulturl = "/path/to/default/page" errorpage = "/path/to/error/page" Thank you!
user3015541
  • 347
  • 1
  • 2
  • 8
0
votes
1 answer

Django template not loading javascript and css properly due to urlpatterns

When this one runs everything goes fine: (r"^newobject$", "views.myobjects.newobject"), All the CSS + JS files are properly fetched from: static/css/... static/js/... When this one…
fmsf
  • 36,317
  • 49
  • 147
  • 195
0
votes
1 answer

Servlet filter doesn't respond on given URL pattern

I have a JSF web application where all the pages that reside under directory web needs to be protected from unautheticatd use i.e., user should be in session to accesss these pages. I am using filter to validate the session for these pages. These…
Akhil
  • 533
  • 2
  • 11
  • 26