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

Why does URL pattern /admin/* also match /admin

I'm working with JBOSS AS 7 and I noticed an odd behavior, concerning servlet mapping. My web.xml : APPLICATION_NAME scom
Youssef NAIT
  • 1,362
  • 11
  • 27
0
votes
2 answers

java.lang.IllegalArgumentException: The servlets named [foo] and [bar] are both mapped to the url-pattern [/url] which is not permitted

Caused by: java.lang.IllegalArgumentException: The servlets named [JavaQuestionForm] and [JavaQuestion] are both mapped to the url-pattern [/JavaQuestion] which is not permitted at…
user5593848
0
votes
1 answer

Django url dispatcher not identifying the view

Here is my urlpatterns urlpatterns = [ url(r'^volunteer/$', views.volunteerInformation, name='volunteerInformation'), url(r'^volunteer/(?P[0-0]{1})/$', views.volunteerInformation, name='volunteerInformation'), ] Here is the view that…
Roy
  • 59
  • 6
0
votes
1 answer

Url-Pattern required for query string inclueds "?"

I have URL like http://localhost:8080/default/j_spring_security_check?redirect=1 I want to know how to configure the URL pattern for the above URL I have tried already the…
Nithyn. K
  • 101
  • 1
  • 2
  • 8
0
votes
1 answer

Regex split to get top level domain and sub directory

I want to split the URL till sub directory if available else TLD, How to acheive this using Regex? www.xyx.com/features.html => www.xyx.com/ to be selected and www.xyx.com/abc/features.html => www.xyx.com/abc/ to be selected It includes https,…
Bala
  • 1
0
votes
1 answer

Getting multiple parts from URL inside of controller

My servlet is mapped with /controller/*/* my url is like this controller/12341/ABC123 will always like this but values can be changed. I am trying to get value of first * and second * which presents serial & mac I write…
mumair
  • 2,768
  • 30
  • 39
0
votes
2 answers

Django - 'otherwise' fallback default URLConf in urls.py

I have the following urls.py: from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib import admin from django.views.generic.base import RedirectView urlpatterns = [ …
nikjohn
  • 20,026
  • 14
  • 50
  • 86
0
votes
2 answers

How to make spring4gwt export more than 1 service?

I successfully follow GWT and spring4gwt's tutorials and transform the StockWatcher's demo into a Spring(3.0) enabled service , by the following configurations : web.xml :
smallufo
  • 11,516
  • 20
  • 73
  • 111
0
votes
3 answers

Django resolves one URL pattern, but not the other

My root url conf is urlpatterns = patterns( '', url(r'^config-menu/', include('configuration.urls')), url(r'^', include('web.urls')), ) and configuration.urls looks like this urlpatterns = patterns( url(r'^$',…
Eldamir
  • 9,888
  • 6
  • 52
  • 73
0
votes
1 answer

django and matching urls

I want to match a url that has a token in it e.g http://example.com/success/dm00cmw1KnltYkAyJmRfKGdjJGc4\n. But I get error when I try to reverse match it using the following url pattern url(r'success/(?P.*)/$',…
Apostolos
  • 7,763
  • 17
  • 80
  • 150
0
votes
0 answers

Get rid of .xhtml extension

I have sought way to get rid of .xhtml extension, so that it is: www.mysystem.com/view/login rather than www.mysystem.com/view/login.xhtml I found some solutions, but all always use omnifaces, like this: Customize FacesServlet to get…
Mateus Vitali
  • 151
  • 1
  • 4
  • 16
0
votes
2 answers

java.lang.IllegalArgumentException: Invalid WelcomeServlet in servlet mapping

I have installed tomcat server to work with my dynamic web project on eclipse Luna. The server seems to be running fine when I dont load it with any project file but when I load my project it gives the error "Server Tomcat v7.0 Server at localhost…
masterfly
  • 861
  • 4
  • 11
  • 24
0
votes
1 answer

Django: Using named urls in @login_required decorator

Most of views in my django app use @login_required decorator. Also, I have three different login urls. Views have corresponding login urls hardcoded into their @login_required decorators. @login_required('myapp/logintype1'): def…
narendra-choudhary
  • 4,582
  • 4
  • 38
  • 58
0
votes
1 answer

java.lang.IllegalArgumentException: The servlets are both mapped to the url-pattern [/foo] which is not permitted

I get the above error when I'm trying to start the server. Important note, for any other Web Apps the server starts just fine. It's just this particular Web App that does not work. Here is the complete stack trace: Caused by:…
Larry
  • 11,439
  • 15
  • 61
  • 84
0
votes
1 answer

django staticfiles_urlpatterns not working

I have a question about staticfiles_urlpatterns method in django What I've learned so far is the staticfiles_urlpatterns wrapped all the urls with base template in one process, so we may not add {% extends "base.html" %}, {% block content %}, {% end…