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
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
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
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
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
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
>
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
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-
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
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:
>
>>
>&
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
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
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
13 matches
Mail list logo