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

Struts 1.2 Servlet Filter and web.xml filtering url-pattern

I have a URL in the following form... htts://www.mysite/admin/userprofile.do Using a servlet filter I want to prevent certain things in part of the URL. Using the following in web.xml... myFilter
eric MC
  • 766
  • 2
  • 10
  • 36
0
votes
1 answer

Is there any reason why my filter-mapping doesn't work

when I declare a filter mapping like that : MyFilter /* It works when I browse http://localhost:8080/myApp/pages/test.action But if I declare it like…
flow
  • 4,828
  • 6
  • 26
  • 41
0
votes
1 answer

Django urlpatterns won't match

I have urlpatterns that aren't matching. This is something I'm adapting from the Django tutorial. It's probably something easy, but I'm just missing it. The error: Page not found (404) Request Method: GET Request URL: …
jmoneystl
  • 773
  • 1
  • 8
  • 23
0
votes
1 answer

What url-patern should I use in ADF in the web.xml to protect a page? The URL shows the previous page.

I have the following security constraint in my web.xml file to make the help.jspx page available only for some specific users. protected
Packito
  • 138
  • 12
0
votes
1 answer

writing urlpattern in django for rendering an image

in my django app,I have an index page which lists some summary info which is dynamic(based on some user input data in db) . I have coded it as below views.py def custom_render(request,context,template): …
damon
  • 8,127
  • 17
  • 69
  • 114
0
votes
1 answer

how to direct default page to an spring controller?

The project(named:'myproject') use Spring MVC framework. The default page will be "index.action", web.xml configed as below: springmvc
Ron Hu
  • 1
0
votes
1 answer

How to check condition in url rewrite

I have a rule in url rewrite module like below It works properly as it…
Abbas
  • 4,948
  • 31
  • 95
  • 161
0
votes
2 answers

Conditional reverse name in Django template URL tag

Is it possible to pass an argument contains reverse name to the Django template URL tag For example: note: In this exampleconditional_URLis not a reverse name. urls.py: urlpatterns = patterns('views', url(r'^iframeViewURL/$', 'iframeView',…
Sencer H.
  • 1,201
  • 1
  • 13
  • 35
0
votes
2 answers

django url collision

I have django app, and have one problem: Category and page application have the same url: Here is category.urls.py: urlpatterns += patterns('', url('(?P[0-9A-Za-z-_.]+)/$', Category.as_view(), name='category') ) And here is…
Vlad
  • 947
  • 1
  • 10
  • 24
0
votes
2 answers

django url get method urlpatterns

Page not found (404) Request Method: GET Request URL: http://chinafhp.sinaapp.com/search/?q=ag urlpatterns: urlpatterns = patterns('', # Examples: # url(r'^$', 'web.views.home', name='home'), # url(r'^web/',…
taiguo
  • 9
  • 1
0
votes
1 answer

Spring-mvc servlet mapping, is it possible to have "/" for servlet 1 and "/server/" for servlet 2?

Currently I have the following web.xml config: Website org.springframework.web.servlet.DispatcherServlet
Jaap Oudejans
  • 708
  • 2
  • 9
  • 25
0
votes
2 answers

url-pattern not working in spring mvc application

I had made a basic application on spring mvc framework. when i write the following url pattern on web.xml: springxml *.jsp and runs the…
spring pro
  • 107
  • 4
  • 12
0
votes
1 answer

Expand url django patterns

i have standard django 1.4 url patterns: urlpatterns = patterns('', url('^',include('events.urls')), url(r'^$', home, {'template_name':'index.html','mod':None}, name='home'), url(r'^contact$',contact, {'template_name':'index.html', …
Guillermo Siliceo Trueba
  • 4,251
  • 5
  • 34
  • 47
0
votes
1 answer

War deployment exception

I try to deploy a War on tomcat, but am getting exception as SEVERE: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/DataProvider]] …
Seeker
  • 2,405
  • 5
  • 46
  • 80
0
votes
2 answers

web.xml url-pattern - serving both application wide together with more specific

I'm learning Vaadin and Java web development. Vaadin suggests to redirect all the URLs to com.vaadin.server.VaadinServlet via use of /* in web.xml. I also want to handle some additional URLs with separate servlets,…
Piotr Górny
  • 61
  • 1
  • 6