Questions tagged [wildcard-mapping]

An action mapping that uses wildcards in the action name attribute to configure actions in the Struts 2 framework. Wildcards can be used to combine similar mappings into one more generic mapping.

Wildcards, and their possible applications in Struts2 action mapping are both diverse and powerful.

Rather than attempt to explain it all here, just go read the article here: https://cwiki.apache.org/WW/wildcard-mappings.html

53 questions
12
votes
2 answers

asp.net 4.0 web forms routing - default/wildcard route

I there a simple way when using ASP.NET 4.0 routing with Web Forms to produce a route that will act as some kind of wildcard? It seems to me that within WebForms, you have to specify a route for every page - I am looking for some kind of generic…
Martin Robins
  • 6,033
  • 10
  • 58
  • 95
9
votes
1 answer

Wildcard Action Mapping no longer working after updating to Struts 2.5

I have the following action mapping in my application's struts.xml, which was working just fine with Struts 2.3.28.1; calls to the /editApplication action where being handled by the x.ApplicationHandler.edit method.
john
  • 165
  • 1
  • 7
6
votes
2 answers

How to create custom URL in Struts 2? Like www.twitter.com/goodyzain

I am working on a project where I want to provide unique URL for each user. For example: www.SocialNetwork.com/jhon www.SocialNetwork.com/jasmine So far I'm able to achieve this: www.SocialNetwork.com/profiles/jasmine here profiles is my action…
goodyzain
  • 683
  • 2
  • 8
  • 21
6
votes
3 answers

Mapping classic asp pages to .net in IIS

I'm trying to map requests for classic asp pages to be handled by .net, so that it runs through a custom httpmodule. In IIS I have remapped asp requests to aspnet_isapi.dll - I'm sure I've done this bit right Now in my test app I am getting this…
DannykPowell
  • 1,227
  • 5
  • 18
  • 30
4
votes
0 answers

Elastchsearch exception for large input text search using wildcardquery ,Eg"reason": "input automaton is too large: 1001""

while performing wildcard search on elastic documents with large input text(more than 1000 characters) I'm getting this exception for "starts with" search my starts with search eg: "myinputtext..*" myinputtext = more than 1000 characters detailed…
raja
  • 41
  • 2
4
votes
3 answers

How to map URL contains slash in action (Wildcard mapping)

I have a package name /cabinet/s where all actions return JSP snippets. and the rest of the path of any URL for this package below /cabinet/s/actionid/snippetgroup/filename.do actionid - identifier for action class snippetgroup - identifier of…
simar
  • 1,782
  • 3
  • 16
  • 33
4
votes
2 answers

jQuery selector wildcard-mapping unknown variable

HTML This is generated by a cms and I cannot do anything JQUERY: …
axscode
  • 123
  • 8
3
votes
1 answer

Struts2 wildcard action mapping with ognl expressions as field-names

I am trying to populate a parameter named 'member.id' in an action class using regular expression and wildcard action mapping with Struts2. The action mapping is something like this:
Saffar
  • 520
  • 1
  • 5
  • 13
3
votes
1 answer

Wildcard sub-domain mapping in Ambassador API Gateway

I am using Ambassador API Gateway in my GKE as below: apiVersion: getambassador.io/v2 kind: Mapping metadata: name: my-service spec: host: app.mycompany.com prefix: / service: my-service However, I would like to map all sub domains…
3
votes
2 answers

Wildcard mapping on Struts2

I followed an online tutorial on how to use Wildcard technique in Struts2 but it does not work as shown. On execution of the command, it only calls the execute() method and never calls any other methods. I'm not sure what the issue is, but any help…
DuyL
  • 33
  • 4
3
votes
1 answer

Underscores and wildcard action mapping in Struts 2

I'm working with a Struts 2 webapp with the following action mapping: blah/myJsp.jsp ... So if I load the URL /something_load.action, it calls to…
AJPerez
  • 3,435
  • 10
  • 61
  • 91
3
votes
1 answer

How to map URL like "/user/{user_id}" to a specific action?

How could I map a regex number class (\d) to an action? Example: /user/123 , /user/345, /user/546456 ....
lovespring
  • 19,051
  • 42
  • 103
  • 153
3
votes
3 answers

Grails: How do I map a 404 with /**

I've tried to create a custom 404 url mapping for URL's that are not found: "/test" { controller="test" } "404" { controller="application" action="send404" } "500" { controller="application" action="send500" } But for some…
sparkyspider
  • 13,195
  • 10
  • 89
  • 133
3
votes
4 answers

IIS6 Wildcard Mapping Security Concerns?

We are looking to utilize extensionless URL's for the first time in our organization. We've requested our sys admins add a wildcard mapping to IIS6 so all requests get processed through the asp.net. They are pushing back, citing security…
Striker
  • 567
  • 1
  • 4
  • 12
2
votes
2 answers

What is the best workaround for the ASP.NET forms authentication timeout when using wildcard mapping?

My team is working on a crappy old website and most of the pages are still ASP classic. However, we've recently migrated to forms authentication using ASP.NET and wildcard mapping. Everything works surprisingly well except for one thing: logged in…
Spencer
  • 75
  • 1
  • 5
1
2 3 4