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
Unable to call servlet from form action
I have a form in which I want to submit request to a servlet called registrationServlet.The register servlet is under a directory called "Controller". But it fails to access the servlet after submitting the form. How can I resolve this issue? I get…

AL-zami
- 8,902
- 15
- 71
- 130
0
votes
1 answer
Prevent Django i18n_patterns from using dash as prefix separator
Django's documentation states that i18n_patterns uses the forward slash as prefix separator for language codes. So, the URL /en/id-123 activates English as language, while /id/id-123 activates Indonesian.
However, it seems that the dash is also used…

Simon Steinberger
- 6,605
- 5
- 55
- 97
0
votes
1 answer
Servlet works on Eclipse but not on Tomcat server "The requested resource is not available."
I created a servlet that worked on Eclipse but gives me
"The requested resource is not available."
When accessed on my tomcat server at http://cs3.calstatela.edu:8080/cs3220stu48/Labs/RequestSummary
yet works when on…

STRAN
- 73
- 1
- 8
0
votes
0 answers
Internal Server Error when upgrading from django 1.9 to django 1.11
I have upgraded from django 1.9 to django 1.11.
As I run python manage.py runserver after the upgrade I got an error due to the import of patterns. I realised it made sense, since patterns is depracted.
So I changed my urls.py from
if…

J0ANMM
- 7,849
- 10
- 56
- 90
0
votes
1 answer
Python-django url with two slugs
Hello I have a problem while I am trying two slugs in one url. I have:
html file:
0
votes
1 answer
How to write a url pattern for 3 modules in Yii2 ?
My urls:
1) It work
http://yii2store/backend/web/en-us/seller/catalog/products
en-us/seller/catalog/products
[
'name' => 'lang_country_module',
'pattern' => '-///',
'route' =>…

Anton Beletsky
- 1
- 2
0
votes
2 answers
how to design Django url pattern to avoid 301
I have a project called blog, the url pattern shows below. I want to make the app "posts" to route all the traffic.
Url patterns of them shows below:
#blog/urls.py
from django.conf.urls import include, url
from django.conf.urls.static import…

Tony Wang
- 971
- 4
- 16
- 33
0
votes
1 answer
Java Servlets set urlPattern from database
I have been practicing java Servlets. Can I set urlPattern from database?
@WebServlet(name = "PatternServlet", urlPatterns = "/pattern")
The following servlet creates html pages getting information from postgres, so content is dynamic. However url…

valijon
- 1,304
- 2
- 20
- 35
0
votes
1 answer
Multiple Django apps sharing the same URL patterns
I have multiple apps that share almost the same URL patterns, defining almost the same views. Currently i have a urls.py for each app to serve its routing. What i want to do is to group the similar patterns into a single shared_urls.py file then use…

Mohammed Ibrahim
- 56
- 7
0
votes
1 answer
In Django, How to get the currently running app from within a model on another app?
Basically i am trying to use .get_absolute_url() to return dynamic links in relative to the current app running, in other words reverse the model url to a different url based on which app being called.
Let me try to explain what i am trying to do by…

Mohammed Ibrahim
- 56
- 7
0
votes
1 answer
Servlet - Dispatching request when the url-patern is like
I have some questions about dispatching a request in a servlet.
To sum it up, I deployed a website on a public server which forces me to have a url-pattern like /servlet/* for all my servlets (I heard that it was a default configuration anyway).
The…

Sampawende
- 13
- 4
0
votes
0 answers
How to redirect invalid URLs with valid action at the end
When accessing our website with an invalid action in the url followed by a valid action, web xml is not filtering it out. Below is an example.
https://portal.abcd.org/Enroll - Loading Enroll Page
https://portal.abcd.org/sdafj - Loading Page not…

RakeshS
- 119
- 1
- 2
- 13
0
votes
4 answers
URLconf not matching URL patterns for loading a template
Python/Django beginner here. I'm running into this error:
Using the URLconf defined in learning_log.urls, Django tried these URL
patterns, in this order:
^admin/
^$ [name='index']
^topics/$ [name='topics']
^topics/(?P\d+)/$ [name='topic']…

James Pratt
- 1
- 4
0
votes
0 answers
Can I make a servlet filter with pattern to match file names ending with *x.ext?
I want to use expression language in some of my javascript files. So I set up a JSPServlet, mapped to all javscript files, so they could be evaluated:
jsp
…

jumps4fun
- 3,994
- 10
- 50
- 96
0
votes
0 answers
How do I update my url pattern to django 1.10?
So I'm going through PluralSight's 'Django Fundamentals' and it's based on an older version of Django. As I'm writing this now I am using Django 1.10 which I believe is the up to date version. As I'm following the video I'm creating a database for a…

Wadzanai Mufunde
- 823
- 3
- 9
- 18