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
0
votes
1 answer
How to filter requests ONLY from application context path?
Environment:
Jboss 5.2
Servlet 2.4
Java 7
I'm trying to execute a filter requests ONLY when the application context path is called but I didn't find any way with url-pattern, because url-pattern /* take all requests.
I would like to execute a…

Joe
- 7,749
- 19
- 60
- 110
0
votes
3 answers
Getting error when I am trying to fetch my main url patterns
I am a beginner in Django I have created a Django project in that I have included two more application when I did add urls.py file in both Applications both are working well but when I am fetching my main admin URL it is giving an error
Page not…

bugfreerammohan
- 1,471
- 1
- 7
- 22
0
votes
1 answer
Disabling SuffixPatternMatch in grails 3.3.8
I am using grails 3.3.8 and by default suffix pattern matching is enabled. This means that a handler with /xyz will also be mapped with /xyz.abc or /xyz.abc.test etc.
We can disable the suffix pattern match in spring as described in…

Vishnu Vasudevan
- 76
- 1
- 3
0
votes
1 answer
How to "customise" the relative URL of a Servlet
I have a Servlet/JSP application.
I'm trying to display a customised URL for each Servlet:
Example, i have a servlet "First_step" that does some work, the URL diplayed is
http://localhost:8080/App/Fisrt_step
How can i change it to display…

K.br
- 33
- 4
0
votes
0 answers
JavaEE Filter for the index page
I used the following Java EE Filter for some pages:
MyFilter
/index.jsp
/user/*
…

Ommadawn
- 2,450
- 3
- 24
- 48
0
votes
1 answer
The server encountered an unexpected condition that prevented it from fulfilling the request. HTTP 500
I want to use one servlet for many pages. when i try to run the project, an error occurs because the request is full. have tried many options for URL patterns, but nothing comes out
right now, i see only one way. to use only post methods and have…

Y.Pratasau
- 3
- 1
- 1
- 4
0
votes
2 answers
Page 404's depending on its position in 'urlpatterns' - why?
So I'm trying to render the page 'submit' which has a generic.CreateView which is correctly configured. This URL pattern renders fine:
from django.contrib import admin
from django.urls import include, path
from curate import views
urlpatterns = [
…

phil0s0pher
- 525
- 10
- 21
0
votes
1 answer
Python - Django add multiple urlpatterns for multiple views of template
I'm very very new to Python 3 and Django and I get to the following problem: I use a standard Template and now how to set it up when there is 1 view. But I don't get the code right for multiple views. I currently run the page locally
At the moment I…

Lotw
- 423
- 1
- 4
- 15
0
votes
1 answer
URL Naming convention for fetching only a column from resource
I have a microservice endpoint that gets a list of company details from the DB. The URL pattern looks like this.
GET https://example.com/api/v1/companies
I need to develop another URL that fetches only the company names from DB. I understand I can…

ByteChip
- 1
- 1
0
votes
1 answer
Apostrophecms : How to add url params in url by slashesh
When I am trying to add params like localhost:8080/one/two,apostrophe is considering this as a slug and gives 404 error.
Whereas adding params like localhost:8080/?one=one&two=two is working fine but I want like localhost:8080/one/two. How should I…

Rahul Mankar
- 910
- 9
- 17
0
votes
1 answer
URL Patterns to exclude in JMeter?
How many URL patterns can exclude at a time in a test case using Jmeter?

Venkat
- 20,802
- 26
- 75
- 84
0
votes
2 answers
Django DetailView is not working with additional parameter
Hi I am new to Django programming
please find my program which is not working.I am not getting any error though.
urlpatterns = [
url(r'departmentlist/',views.DepartmentList.as_view(),name='departmentlist'),
…
0
votes
3 answers
django urlpatterns from sql
I am trying to create urlpatterns with sql query, but this will work only for those things that already was in sql table at the moment of server start. If it possible to make django to check for new urls dynamically from database?
I know, this can…

Hikaru
- 111
- 8
0
votes
1 answer
Django 2 Angular 6 compiled static files always route to static folder
I have a Django 2 + Angular 6 project. I have a build process that moves my compiled JS files into the Django's static folder.
However, whenever I go to a link, say http://127.0.0.1:8000/#/upload, the browser always redirect me to…

7ball
- 2,183
- 4
- 26
- 61
0
votes
1 answer
Jsp doesn't connect to the servlet
I'm getting the error 404 not found When I'm trying to call a new Servlet.
I've already set up the urlPatterns at the servlet and I'm linking the JSP file correctly, I think. Look below the archives.
Servlet:
package controller;
import…

Guilherme Mello
- 7
- 1