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
1 answer

Sensible URL patterns in Django-nonrel with MongoDB

A common practice in many news sites is to include both ID and slug in the URL. The ID is used to look up the actual article, and the slug is included for SEO purposes. This way, the slug can be changed to match a change in the article title without…
ACGray
  • 666
  • 3
  • 10
0
votes
1 answer

Django urlpatterns not matching

I've been trying everything, but I can't get these numbers to match. Am I missing anything here? Like a non-default module? Page not found (404) Request Method: GET Request URL: http://example.com/blog/1/1/1/ Using the URLconf…
CDC
  • 51
  • 5
0
votes
1 answer

How to configure web.xml for multiple url-pattern for sitemesh filter. i believe i'm using servlet api 2.5

i've been struggling to enable multiple ulr-pattern for a web site using Spring mvc 3.0.5 sitemesh 2.4.2.my container is tomcat 6.0.26 my pom looks like this: org.freemarker
black sensei
  • 6,528
  • 22
  • 109
  • 188
0
votes
2 answers

multiple sites with Java App Engine

I'm trying to create a series of sites that all run as one application, but have different designs (to localise them). My idea is to map separate domain names to the one site. E.g: www.mysite1.com maps to www.mysite.appspot.com/mysite1 and…
Louis Sayers
  • 2,162
  • 3
  • 30
  • 53
0
votes
1 answer

Java Servlet Web XML URL Mapping

I've been struggling with this web xml file for Tomcat for a while. name Bob test
boxbag
  • 1
  • 3
-1
votes
1 answer

urlpattern Regex is not working as expected

I have a Django website and for the times that pages are not ready I want to redirect any URL to a specific maintenance page. So in the urlpatterns of my website I added this regex expecting it to capture anything after / but it's not…
Sepas
  • 11
  • 2
-1
votes
1 answer

Is there any way to get name of request path in Django

I wanted to get django re_path's name parameter value from request or in any way. I have a url pattern like that, re_path(r'^user/query/page/list$', views.UserListView.as_view(), name="user_list") When request comes with user/query/page/list, I…
-1
votes
1 answer

NoReverseMatch: Urlpatterns path name for route with int:pk

I am trying to create a dashboard with multiple customers rendered in the template, and a link to their individual profile. I was wondering if there is a way to pass in the url name and object pk id using django url in my template. This is my code…
Okhai
  • 3
  • 3
-1
votes
1 answer

Django Page not found, The current path, didn't match any of these

I have created a new template in my app menus.html The index path is working fine but when I added a new template that path is not working. Below is my url code in app urlpatterns = [ path('', views.index, name='index'), #…
Abhijit Kumbhar
  • 923
  • 3
  • 23
  • 49
-1
votes
1 answer

url-pattern "/" vs "/*" vs blank in servlet

When I have "/" as my url-pattern, I can type into whatever I want after the slash in the address bar and land successfully onto the servlet. That is, both http://localhost:8080/firstServlet/ as well as…
Aakash Verma
  • 3,705
  • 5
  • 29
  • 66
-1
votes
1 answer

How would I write this url pattern in python 3.6/django1.11? (it is currently in python 2.7/django1.7)

I am very new, and I am doing a tutorial, that is a little bit old. I keep getting an error that this cannot import name 'patterns' then something about include, then syntax and so on. So what is wrong this section? How would I write it current…
-1
votes
1 answer

Django- NoReverseMatch

I recently took over the development of a Python/ Django project, which uses Git as its version control, having not used either Python/ Django or Git much previously. Having pushed some changes I made to the server, I found that although the changes…
Noble-Surfer
  • 3,052
  • 11
  • 73
  • 118
-1
votes
1 answer

what is the purpose of solid_i18n_patterns?

i am new to python/django and i just want to know the purpose of below function/code (solid_i18n_patterns). from django.conf.urls import url from solid_i18n.urls import solid_i18n_patterns urlpatterns =…
J. Smith
  • 13
  • 4
-1
votes
2 answers

IllegalArgumentException: The servlets named [myservlet] and [MyServlet] are both mapped to the url-pattern [/MyServlet] which is not permitted

I wrote very simple dynamic web application in eclipse Mars(4.5.1) but i cannot start the tomcat server from eclipse. Below is the root cause of the error: Caused by: java.lang.IllegalArgumentException: The servlets named [myservlet] and [MyServlet]…
Shashi Shiva L
  • 495
  • 11
  • 27
-1
votes
1 answer

How to attach a filter to a servlet or URL pattern

I was ordered to use ExampleFilter.java to check response time of the wep application. But i don't how to do this yet. I get this ExampleFilter.java from Tomcat. I want to know how to attached it with servlet or url pattern. * Example filter that…
chetra tep
  • 189
  • 5
  • 20
1 2 3
25
26