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

WCF Methods Return 404 When Wildcard Mapping Is Enabled In IIS6

I have a REST WCF service defined as follows: [ServiceContract] public interface IRest { [OperationContract] [WebGet(UriTemplate = "/test")] int Test(); } With the following web.config:
Lawrence
  • 51
  • 5
2
votes
0 answers

Struts 2.5 + convention plugin and slashes in action

I'm developing a Struts2 web-app with Struts2 convention plugin and I want to enable the wildcards mapping in order to do somenthing like: http://localhost:8080/myApp/user -> go to users' list http://localhost:8080/myApp/user/1 …
IlGala
  • 3,331
  • 4
  • 35
  • 49
2
votes
2 answers

MVC2 + ASP.NET 4.0 + IIS6 + extensionless URLS, no longer need wildcard mapping?

I noticed that asp.net 4.0 now installs a top-level isapi plugin (in iis6), such that it can inspect every request coming to the server. Should this now allow us to run MVC applications with extensionless URLS and have the aspnet isapi process them…
Brady Moritz
  • 8,624
  • 8
  • 66
  • 100
2
votes
3 answers

Why the interceptor brokes the wildcard in Struts 2?

I have this action with wildcards: @Namespace("/posts") public class SearchPostBeansAction extends ActionSupport{ private static final long serialVersionUID = 1L; private static Logger logger = Logger.getLogger(SearchPostBeansAction.class);…
2
votes
1 answer

Struts 2.3 ignores wildcard actions

I'm setting up an application that uses Struts 2.3 and Tiles 2. Some pages will be heavily Struts driven (e.g. lots of CRUD) while others will be simple, static HTML/JSP pages. I want to set up some actions that handle specific functionality and…
2
votes
2 answers

Why action mapping "*_*" works just like "*"?

There are two actions and the *_* is in front of **(it doesn't matter at all that the default namespace does its work after specific namespace(unless the specific namespace extends it))
fairjm
  • 1,115
  • 12
  • 26
2
votes
2 answers

Passing parameters in URL without query string in Struts 2

I want to use URLs like host/ActionName/123/abc/ instead of passing query string like host/ActionName?parm1=123&parm2=abc How can I do that in Struts 2? I done as below but it is not working, showing 500 error code
Sagar
  • 980
  • 1
  • 11
  • 27
2
votes
1 answer

Overriding IIS6 wildcard maps on individual directories

When Im publishing a MVC4 application on IIS6 i need to add the isapi.dll go get my application to work, but it enables wildcardmapping to all staticcontent to so Im trying to override wildcardsettings on a subfolder (content-folder) in my…
mattematico
  • 669
  • 3
  • 14
1
vote
1 answer

ADF Copy Activity problem with wildcard path

I have a seemingly simple task to integrate multiple json files that are residing in a data lake gen2 The problem is files that need to be integrated are located in multiple folders, for example this is a typical structure that I am dealing…
Robert
  • 39
  • 5
1
vote
2 answers

Redirecting dynamic extensionless urls using urlrewrite wildcards

I have a dynamic list of "referrers", example ANN, BOB, ..., ZED. I want people who go to my url www.website.com/ANN, www.website.com/BOB, www.website.com/ZED to be directed to a special dynamically generated referrer page. What I want to do is set…
1
vote
1 answer

WCF + Wildcard Mapping + IIS6 = 404s on Every Method!

I am receiving 404s when executing a WCF method on IIS6 when wildcard mapping is enabled. You can all reproduce this by creating a new WCF Service in VS2008 (new Project > WCF Service Application). Browse to the dummy method ('GetData')... you will…
Lawrence
  • 51
  • 5
1
vote
2 answers

How do I get the site root to return the correct page w/ ASP.NET MVC + WebForms + ISS 6 Wildcard mapping?

Currently, I'm converting a web application from web forms to ASP.NET MVC. The project has been converted and IIS 6 is setup w/ wildcard mapping. I also have made one MVC view/controller that works just fine. There is one problem though. When…
Darren
  • 43
  • 6
1
vote
1 answer

How to use the entire wildcard value as a redirect result in Struts 2

I am wondering how I can use the Struts2 wildcard feature to redirect users to another action based on the return value: struts.xml:
Othya
  • 390
  • 1
  • 3
  • 18
1
vote
1 answer

Tiles 2 Wildcard to remove duplicate not working

I'm using Spring, Struts 2, and Tiles 2 in my project and I'm trying to use wildcard notation here to remove the duplicate in my setup from here
Jiro Manio
  • 137
  • 10
1
vote
1 answer

Generating dynamic URL on creation of a blog entry using Struts2

I have a music blog, where people can write their own article or review as a blog entry and it would show up among other blog entries. Each blog entry should have a URL associated with it, similar to: www.myblog.com/blog/title-of-blog-entry How…