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
2 answers
Issues with URL conf in Django
So I'm working on a project that displays titles of and songs and albums released by a particular artiste from a database. I'm kinda stuck. I'm trying to create a page that displays the songs in an album when you click on the album link. When the…

HackAfro
- 720
- 1
- 12
- 28
0
votes
1 answer
Creating dynamic URLS by concatenating strings rises UnicodeEncodeError
I am trying to build my urls dynamically upon my project execution, it retrieves all my projects and concatenates the strings to create the urls like following:
for project in projects:
domain =…

bobleujr
- 1,179
- 1
- 8
- 23
0
votes
1 answer
how action URL can be constructed dynamically. I have above URL in JSP and it is working fine in the local system.
http://localhost:8080//escSave.html
what needs to be added to work in all…

Kings Light
- 19
- 8
0
votes
2 answers
regex url pattern, http https in R
There are text that includes http and https.
I tried this to get url.. It works well only for http.
url_regex <- "http[^([:blank:]|\\"|<|&|#\n\r)]+"
When I tried like below, it doesn't work.
url_regex <-…
user3139530
0
votes
1 answer
Struts 1 mix url pattern *.do with regular urls web.xml
I have the following situation in a struts 1 application.
The old functionality of the application works with struts 1 and has the following servlet mapping (i think it is the standard way of doing things).
…
0
votes
2 answers
Restlet URL/path pattern mismapping
I'm developing a REST API using Restlet.
So far everything has been working just fine. However, I now encountered an issue with the Router mapping of URL to ServerResource.
I've got the following scenario:
GET /car returns a list of all cars
GET…

Baz
- 36,440
- 11
- 68
- 94
0
votes
1 answer
Create sites in runtime with different domains
I would like to create django sites in runtime, using the same settings.py
For example, I have in my django_site table the following rows,
1 | 127.0.0.1:8001 | sitea
2 | 127.0.0.1:8002 | siteb
3 | 127.0.0.1:8003 | sitec
My django goes to my…

bobleujr
- 1,179
- 1
- 8
- 23
0
votes
1 answer
Multiple in not working
I use several filter in my web.xml of my spring App. some of my filter has multiple url-pattern to act on these urls, likes below:
AuditLogFilter
AuditLogFilter
…

Morteza Asadi
- 1,819
- 2
- 22
- 39
0
votes
1 answer
Why isn't variable caught in django url being passed to view as a string?
Am trying to catch a variable in a url in my urls.py file, then pass it to a function in my views file, where I want to use it as a string:
# urls.py
from django.conf.urls import url
from . import views
urlpatterns = [
…

Matt Craig
- 33
- 10
0
votes
2 answers
How to make a Django urlpattern accept only slugs from a model
I'm making a weblog site in Django. I have a Blog model like this:
class Blog(models.Model):
name = models.CharField(max_length=255)
slug = models.SlugField(max_length=255)
...
And I want the front pages of each blog to be at URLs like…

Phil Gyford
- 13,432
- 14
- 81
- 143
0
votes
1 answer
@WebFilter("springSecurityFilterChain") throws java.lang.IllegalArgumentException: Invalid
I have a problem with my filter. I have it defined this way:
@WebFilter("springSecurityFilterChain")
public class JwtAuthenticationFilter extends AbstractAuthenticationProcessingFilter {...}
And in my web-fragment.xml I…

Aurasphere
- 3,841
- 12
- 44
- 71
0
votes
2 answers
springmvc and url-pattern
web.xml
springMVC
org.springframework.web.servlet.DispatcherServlet
contextConfigLocation
…

EricLin
- 21
- 1
- 3
0
votes
0 answers
Understanding URL pattern matching in servlets and filters
I have some doubts in understanding how the value in is interpreted to match in either or . Basically the doubts comes in how * is interpreted.
Let us assume that I deployed a web-application(.war)…

CuriousMind
- 8,301
- 22
- 65
- 134
0
votes
1 answer
How to get correct URL for Java Servlet?
I'm working on a web based project where I have to pass data from JavaScript to a Java s Servlet with the following request:
var xhr = new XMLHttpRequest();
xhr.open('GET', 'DCCServlet?command=' + encodeURIComponent(command),…

Cailean
- 37
- 2
- 9
0
votes
2 answers
Spring Mvc does not work with any `url-pattern` other than `/`
I'm trying to learn the Spring Mvc through writing some simple controller. This is what I've got so far:
HomeController.java
package com.mehran.controller;
import org.springframework.stereotype.Controller;
import…

Mehran
- 15,593
- 27
- 122
- 221