struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: [S2] Trouble getting started
Date Thu, 01 Oct 2015 13:58:31 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Christoph,

On 9/28/15 12:11 PM, Christopher Schultz wrote:
> Christoph,
> 
> On 9/28/15 6:52 AM, Christoph Nenning wrote:
>>> From: Christopher Schultz <chris@christopherschultz.net> To: 
>>> Struts Users Mailing List <user@struts.apache.org>, Date: 
>>> 26.09.2015 23:31 Subject: [S2] Trouble getting started
>>> 
>>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
>>> 
>>> All,
>>> 
>>> I'm working on a fresh project and using Struts 2 for the
>>> first time. I've been using Struts 1 for more than 10 years and
>>> I generally know my way around web applications.
>>> 
>>> I just can't seem to get a fairly simple setup working. I'm 
>>> intending to use XML-based configuration and not
>>> annotation-based configuration.
>>> 
>>> Here's what I've got:
>>> 
>>> * Struts 2.3.24.1 * Tomcat 8.0.24 * A simple web app
>>> 
>>> My web.xml looks like this: <filter> <description> Struts 2 
>>> action filter. </description>
>>> <filter-name>struts2</filter-name>
>>> 
>>> <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareA
n
>
>>> 
dEx
>>> 
>>> 
> ecuteFilter</filter-class>
>>> <init-param> <param-name>actionPackages</param-name> 
>>> <param-value>my.package.business</param-value> <!-- do I need

>>> this if I'm going to use XML-based config? --> </init-param> 
>>> </filter>
>>> 
> 
>> Nope, "actionPackages" is used by convention-plugin only. You
>> don't need it in your case.
> 
> Thanks.
> 
>>> <filter-mapping> <filter-name>struts2</filter-name> 
>>> <url-pattern>/*</url-pattern> </filter-mapping>
>>> 
> 
>> This could be the problem. Please try *.action here. Not sure 
>> anymore but I think there are issues when using different 
>> url-patterns.
> 
> /* ought to work, but I'll try *.action.

No change, but I really didn't expect any. The Filter can't tell what
its own url-mapping is, so this shouldn't have made any difference.

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJWDTwHAAoJEBzwKT+lPKRYC4EP/3VrseXUH2J7MP9Z7TR82DBC
NTkMqUxUGLC/f+d+XjL5v5s0sYJc3KlS/gcl5DN4nbZ2+cRPZwskMqncASLrLQ+2
355+C7jLLKP9Pri7Tl4Bw/RjO53OCFxTqIx7xr12MHwgiq9ZKj3uAJFAXZew7V8/
7aSRjO0FS0yeEXRUiI+u7AeU2Flqv+t6D6OHawbyJ2iQQwQv0cIiQIIqL6HhdR1E
pX421RIFbFna5323s1JuasUgKF+RnTm1T6guw6/ATcbP2qg4on/HjeamQAFsfFO+
FtdFyBmjcjKp6W21e9dvaNQZhrcpet1SavvqjSLuOZ9QEPt50oEmhPDtL6xDpqyE
JYuVYROunH20QS0zV3WxYMexXavdiH2Cp8VxrLj9tzdvCePPc9fPQxC6dhIMp/5P
B5igQmJjt/WVRcKUlBbVEgoz6lJGRnh0VXymx2hY2bZPkSusRw8qPsww72dmsfYl
aRSXy6W6RM2L7mTYO4F2Q45XNM75TKFQbZrwN8vsfrjvVkdf888Yt/1CUR65oOK6
A2qHHNeKh08S6q0yShtazvSi/pGvA+WXzvqXWySCjU725vzha4a/puqciOQWuIt+
SsybXAJyhQYTBBgd6R2ZE0ydfb1NIzZDjtP7kgMwpYXz+bV+L4cNO3OwVEmme6Vh
wY2c5BWdeZSA9ywsqgYM
=DIBz
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message