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
2 answers

Structuring Django URL Patterns

I'm new to Django, and I'm having trouble understanding URL patterns. When a user visits the index page of my website (http://www.example.com), they have the ability to conduct a search. They input a first name in one box, and a last name in…
datasci
  • 1,019
  • 2
  • 12
  • 29
0
votes
1 answer

How to define subpaths in tomcat 6 web.xml servlet-mapping servlet-pattern

My goal is reaching the same servlet servlet1 with all urls of the following pattern: myserver.com/path1/* where * can be anything like "x", "x/xx", "x/xx/x.cfg" etc. In the end I only want to treat urls following the regex…
ASA
  • 1,911
  • 3
  • 20
  • 37
0
votes
1 answer

URL Patterns in Django - Different Combinations

I'm finding it hard to understand what exactly is passed to the patterns method in Django. You see, I usually have my urls.py as: urlspatterns = patterns('example.views', (r'/$','func_to_call'), ) Then in func_to_call I would get everything…
Federer
  • 33,677
  • 39
  • 93
  • 121
0
votes
0 answers

included jsp page can't call servlet

I have two jsp files login.jsp which has a login form
..........
The second file is pages/errors.jsp which include login.jsp When login.jsp runs it calls…
jmt
  • 223
  • 1
  • 8
  • 28
0
votes
2 answers

Filter mapping Url pattern *.action not working struts2

in the struts2 web.xml application i have filter and servlet web.xml ... SchServlet com.vk.translate.report.SchServlet
0
votes
0 answers

Java Web - Canonical Url unlimited redirection

At the moment I am trying to make my own canonical links in Java web. I got this in my web.xml ControllerServlet /* ControllerServlet will call a…
Tom
  • 403
  • 3
  • 14
0
votes
1 answer

Asynchronous servlet 3.0 url mapping

How to set two Url patterns in Servlets 3.0 through annotation as: @WebServlet(urlPatterns = "/flow", asyncSupported = true) public class FlowService extends HttpServlet This example is for one url pattern but I want to set it for two urls.
Charles Stevens
  • 1,568
  • 15
  • 30
0
votes
1 answer

How can I make imports that will satisfy django-registration's 'activate' and 'register' calls?

I have boilerplate code in my urls.py, taken from http://www.michelepasin.org/blog/2011/01/14/setting-up-django-registration/: url(r'^activate/(?Pw+)/$', activate, {…
Christos Hayward
  • 5,777
  • 17
  • 58
  • 113
0
votes
2 answers

Unable to send two params in URL path to python

I'm using pythons in backend and i like to get some data through URL, simply i can say as through REST. My URL works with single param but fails for two params. Please refer below two URL Single param: curl -XPUT -HContent-type:text/plain --data…
Hari
  • 3
  • 1
0
votes
1 answer

django and url creation

I want to construct the following url domain/edit/xray// where id is a model's id and image_name is the name of an image. I have an app that will handle image editing with its own views lets say it mypil mypil.views def…
Apostolos
  • 7,763
  • 17
  • 80
  • 150
0
votes
0 answers

How do I allow Django take in arbitrary URLs for usernames?

So basically I want to allow the user to go to mydomain.com/username and I have it working by adding this to the end of urlpatterns (r'(?i)(?P\w+)/$',user), A potential issue I see arising is when a user has a username that matches with…
Jared Joke
  • 1,226
  • 2
  • 18
  • 29
0
votes
1 answer

Django page redirect based on locale url

Lets say we have a page: http://www.example.com/cs/department/category/ I am using django-locale for internationalization. How am I going to achieve that if somebody type: http://www.example.com/en/department/category/ EN instead of CS it will…
Radek
  • 1,149
  • 2
  • 19
  • 40
0
votes
0 answers

Webfilter double urlpattern definiton required?

I am using Tomcat 7 in my JSF-Project and I am working with Webfilters I have following problem: When I define a Webfilter like below, Tomcat starts without problems: @WebFilter(filterName="isLoggedInFilter", urlPatterns={"/pages/*"}) public class…
Niko
  • 1,054
  • 5
  • 25
  • 52
0
votes
1 answer

Spring MVC Url-Pattern DispatchServlet

I think I crashed my setup because my mapping isn't working any more and I don't know why. Here are my web.xml, applicationContext.xml payment-servlet.xml and payment.beans.xml. **web.xml**
vicR
  • 789
  • 4
  • 23
  • 52
0
votes
1 answer

Deploying CXF webservices in Tomcat

I am trying to deploy a web service in Tomcat7 using maven. Below I provide some configuration info: web.xml ... CXFServlet
Eugen
  • 2,292
  • 3
  • 29
  • 43