[Struts 2] Internationalization

2007-10-19 Thread ChristopherAngel
I've developed a web app using Struts2 - I need to make it display different languages based on the locale of the browser but I'm having a little difficulty getting it to work. Here is a cut down version of what I have: 2 properties files in the default package: narrative.properties: index.wel

Re: Struts 2 Jasper Reports Plugin

2007-04-10 Thread ChristopherAngel
Apparently using HttpServletRequest request = ServletActionContext.getRequest(); So why is the setServletRequest method not called? ChristopherAngel wrote: > > I have the following package defined in my struts.xml file: > > >method="generateReport"> &g

Struts 2 Jasper Reports Plugin

2007-04-10 Thread ChristopherAngel
I have the following package defined in my struts.xml file: reports/report.jasper dataSource the generateReport method is called as expected except despite ReportAction implementing ServletRequestAware the setServletRequest method is never called. How

Re: Excaption Handling in Struts 2

2007-04-05 Thread ChristopherAngel
Looks like you're right. I now have: exception WEB-INF/jsp/exception.jsp and it is working. Thank you. Dave Newton-4 wrote: > > --- ChristopherAngel wrote: >> How do I call

Re: Excaption Handling in Struts 2

2007-04-05 Thread ChristopherAngel
Ah - thank you. Strange that I couldn't see it. Ok I've now redirected all exceptions to a page. How do I now call an action before going to that page? Dave Newton-4 wrote: > > --- ChristopherAngel wrote: >> I think I'm having a bit of a fick day. > > It&#x

Re: Excaption Handling in Struts 2

2007-04-05 Thread ChristopherAngel
I think I'm having a bit of a fick day. Not only did I spell "Exception" "Excaption" but I have to ask in which jar can I find it? Dave Newton-4 wrote: > > --- ChristopherAngel wrote: >> Not only that but I'm confused by the 1st one > talking >

Excaption Handling in Struts 2

2007-04-05 Thread ChristopherAngel
How do I redirect all Exceptions to a particular jsp page? I've looked at both: http://struts.apache.org/2.x/docs/exception-configuration.html and http://struts.apache.org/2.x/docs/exception-interceptor.html but these have not helped me. In fact they've confused me a little as the examples giv

Struts 2 Parameter Redirect

2007-03-27 Thread ChristopherAngel
Hi, How can I pass a parameter to a struts redirect-action? i.e. given that the doSomething action requires a dynamic parameter, how do I add this parameter to the redirect? doSomething Thank you in advance. -- View this message in context: http://www.nabble.com/Struts-2-Parameter-Redirect-

Re: [S2] Unable to get Struts 2.0.6 working

2007-03-08 Thread ChristopherAngel
Ah-ha! Thank you! Ian Roughley wrote: > > I think you need to change the struts.properties file to enable .do as > the extension rather than .action - this can also be achieved from the > struts.xml file. > > /Ian > > > ChristopherAngel wrote: >> I am

Re: [S2] Unable to get Struts 2.0.6 working

2007-03-07 Thread ChristopherAngel
Yes it does, I am able to go directly to it http://localhost:8084/MyProject/StrutsSomething.jsp Dave Newton-4 wrote: > > A 404? > > Does the JSP exist at the root level of your > deployment? > > --- ChristopherAngel <[EMAIL PROTECTED]> wrote: > >> >&

Re: [S2] Unable to get Struts 2.0.6 working

2007-03-07 Thread ChristopherAngel
getInstance INFO: Detected AnnotationXWorkConverter, initializing it... ChristopherAngel wrote: > > No nothing. > > > Musachy Barroso wrote: >> >> Any error on tomcat's log? >> >> musachy >> >> On 3/7/07, ChristopherAngel <[EMAIL PROTE

Re: [S2] Unable to get Struts 2.0.6 working

2007-03-07 Thread ChristopherAngel
No nothing. Musachy Barroso wrote: > > Any error on tomcat's log? > > musachy > > On 3/7/07, ChristopherAngel <[EMAIL PROTECTED]> wrote: >> >> >> I am unable to get my own example web app working with struts 2.0.6 >> >> I am

Unable to get Struts 2.0.6 working

2007-03-07 Thread ChristopherAngel
I am unable to get my own example web app working with struts 2.0.6 I am using Netbeans 5.5 and tomcat 5.5.17 and have included the following jars: commons-collections-3.2.jar freemarker-2.3.8.jar struts2-core-2.0.6.jar commons-logging-1.0.4.jar ognl-2.6.11.jar xwork-2.0.1.jar st