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.
Questions tagged [url-pattern]
379 questions
1
vote
0 answers
Exclude custom urls from ant matchers in Spring Security
After upgrading some of the APIs into version 2, I have to configure a custom filter on authentication failures to give newly formatted error responses to the user. I have encountered a problem there since the version 2 urls also follow the same url…

vigamage
- 1,975
- 7
- 48
- 74
1
vote
0 answers
Spring @WebFilter causes 404 on prod, runs fine on local
I am using a @WebFilter with urlMapping = "/*" option. (Also tried with servlet). I use it to manage my oAuth single sign ons. It runs fine on local with tomcat on eclipse.
On prod it throws a 404. Disabling the filter(thus, by passing the filter)…

Dixyantar Panda
- 11
- 1
1
vote
2 answers
Spring MVC - URL pattern not working
I have the following files:
web.xml:

t-MURO
- 642
- 5
- 10
1
vote
1 answer
Get url-pattern from servlet-name
I have this configuration in web.xml fileof my Java EE Web application:
ChangeLanguageServlet
/change
What I want to do is get the String of…

Ommadawn
- 2,450
- 3
- 24
- 48
1
vote
1 answer
Check if current URL pattern exist in another language in Django
I'm trying to start of my new website in Django with a lot of settings which down the road will be tougher to implement. One of these things is website internationalization, but also url pattern internationalization.
What I am trying to achieve is…

Gjert
- 1,069
- 1
- 18
- 48
1
vote
1 answer
web.xml URL pattern
Can anyone give me the information regarding rules in setting URL pattern and if I am using / as my index page and also I need to use request.getRequestDispatcher("/html/file.html").forward(request,response).
File file.html is in the html folder…

Prakash
- 630
- 3
- 10
- 20
1
vote
1 answer
name 'urlpatterns' is not defined when doing translation (+= i18n_patterns)
I want to add a language prefix in URL patterns just like the django documentation homepage. Following this example my urls.py looks like this:
from django.conf.urls import include, url
from django.conf.urls.i18n import i18n_patterns
from…

Tom
- 2,545
- 5
- 31
- 71
1
vote
1 answer
Exclude url pattern in regex
This is my input string
http://google.com
http://byebye.com is a dummy website.
for this case I need to match…
subash
- 3,116
- 3
- 18
- 22
1
vote
1 answer
url-pattern in web.xml not recognising multiple url
I have web.xml like this :
MyDisplayCourse
edu.itn.controller.MyDisplayCourse
and servlet-mapping for the servlet is:
…

Bishal Gautam
- 380
- 3
- 16
1
vote
3 answers
Positional Arguments withDjango url patterns
I have been stuck on this Django error for a while:
tutorials() missing 1 required positional argument: 'tutorial_id'
Below are the files. Using Python 3.5 and Django 1.10.
tutorials/urls.py:
from django.conf.urls import url
from . import…

Tyler
- 23
- 4
1
vote
2 answers
Django app view - how to get an entry from the django database in the url and to obtain more information from the database for the view?
I have a django application 'test_app'. The test_app page - "domain/test_app/" has a link to another page within the app "Genes". This takes me to "domain/test_app/genes/". In this page I have a list of links which comes from my a table in my django…

trouselife
- 971
- 14
- 36
1
vote
3 answers
Laravel 5.3: How do I map all urls under a prefix to one controller method?
I have a route group under a prefix admin:
Route::group(['prefix' => 'admin'], function(){
Route::get('/', 'AdminController@method');
});
I would like a url such as /admin/dashboard/ and /admin/blogmanager/, basically, any arbitrary url under…

TaeKwonDev
- 93
- 1
- 8
1
vote
2 answers
REST API with web application(JSP,Servlets)
I have one normal servlet and one jersey specific REST related servlet i.e.ServletContainer configured in web.xml.
Case 1 -
Url pattern for normal servlet is "/login"
Url pattern for other REST servlet is "/"
In this case all request will got REST…

LetsSyncUp
- 4,155
- 4
- 18
- 15
1
vote
2 answers
javascript - Custom URL Pattern
Get Values from URL
var acutal_url = HTTP://my_host.com/account/apps/6/dashboard/6;
what i want is
var pattern_url = HTTP://my_host.com/account/apps//dashboard/ ;
I want app_id & dash_id separately from this URL ..
Is it…

Siva Sakthi Velan
- 90
- 8
1
vote
1 answer
REST giving 404
I have written a REST webservice using jersey in a project where it works fine(eclipse). Now I am trying to move that webservice into an already existing project but there its failing with 404 status.
The web.xml of the project where it was working…

samir
- 339
- 6
- 19