Hello, 

I'm sorry . I don't use pom.xml in any of my examples.
I work with Netbenas 7.3 and ant, I guess. But no maven.
I have no idea what SNAPSHOT is, and how to use it, and where find it.Is it 
another version of all librairies ?
Regards,
Chris
 

Struts has detected an unhandled exception: 
| Messages: |     
   - This method: execute for action Login is not allowed!
 |


Stacktraces
 This method: execute for action Login is not allowed! - [unknown location]     
 com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:200)
    
org.apache.struts2.factory.StrutsActionProxy.prepare(StrutsActionProxy.java:63)
    
org.apache.struts2.factory.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:37)
    
com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58)
    org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:543)
    
org.apache.struts2.dispatcher.ExecuteOperations.executeAction(ExecuteOperations.java:81)
    
org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:102)
    
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
    
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
    
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
    
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
    
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    java.lang.Thread.run(Thread.java:722)
      


     Le Jeudi 12 novembre 2015 17h33, Lukasz Lenart <lukaszlen...@apache.org> a 
écrit :
   

 2015-11-12 17:23 GMT+01:00 Chris <christal...@yahoo.fr>:
> Hello,My mailreader example still doesn't work.
> Precisely n the Login button, and the Cancel button, in the Login page

Have you used 2.5-SNAPSHOT version? You must manually change Struts
version in pom.xml

> Something strange, the new web.xml file looks like the jboss_blank example...
> I tried without those some lines, like the old mailreader example,  but it 
> didn't work neither.
>    <!-- Restricts access to pure JSP files - access available only via Struts 
>action  -->
>    <security-constraint>
>        <display-name>No direct JSP access</display-name>
>        <web-resource-collection>
>            <web-resource-name>No-JSP</web-resource-name>
>            <url-pattern>*.jsp</url-pattern>
>        </web-resource-collection>
>        <auth-constraint>
>            <role-name>no-users</role-name>
>        </auth-constraint>
>    </security-constraint>
>
> ???
>    <security-role>
>        <description>Don't assign users to this role</description>
>        <role-name>no-users</role-name>
>    </security-role>

It's just a security constraint to spread good practises


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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


  

Reply via email to