RE: Parameters not being set on Action in Struts 2

2006-11-25 Thread Wesslan
See the following thread: http://www.nabble.com/-S2--Duty-now-for-the-future--%28was-Re%3A-Question-ab out-struts2%29-tf2559552.html#a7132875 Struts2 also depends on a beta(snapshot) release of XWork2. Hth, Peter -Original Message- From: Tarek Nabil [mailto:[EMAIL PROTECTED] Sent: den 2

RE: Parameters not being set on Action in Struts 2

2006-11-25 Thread Tarek Nabil
Thanks Ted. I renamed my method to "execute" and changed the URL to remove the "!setup" part. I also changed the struts.xml file accordingly, so now it's like that (note that I removed the input result, just in case it's causing any problems). /jsp/billCreation/PageName.jsp

re:struts 2.0.x samples on java 1.4.2

2006-11-25 Thread David Bloom
I tried the same stuff with the blank app and i get same results. However, this time I made sure of the four jars were present I which replace the regular jars: java -jar retrotranslator-transformer-1.0.8.jar -srcjar struts2-core-2.0.1.jar -destjar struts2-core-j4-2.0.0.jar java -jar retrotransla

Re: Struts considering exceptions in Action class .execute() as unhandled

2006-11-25 Thread Ted Husted
As explained, the code doesn't make any sense to me. An Action is a Java class, and it can't violate the rules of Java. The rules say that an Exception thrown in a try block is handled by the closest catch block. There's nothing Struts can do about that. Though, Struts does have a declarative exc

re:struts 2.0.x samples on java 1.4.2

2006-11-25 Thread David Bloom
Since I was using Java 1.4.2 I downloaded The J4 to C:\java\struts2\struts-2.0.1\j4\ Took all the files in that folder and placed in mailreader lib folder. I see files like you mentioned -retrotranslator-runtime-1.0.8 -retrotranslator-transformer-1.0.8 -translate.bat I get message /struts2-mail

Re: [s2] Message resources from database

2006-11-25 Thread Ted Husted
On 11/25/06, Ted Husted <[EMAIL PROTECTED]> wrote: Essentially, you can implement the Java ResourceBundle interface /s/implement the Java ResourceBundle interface/extend the Java ResourceBundle class - To unsubscribe, e-mail:

Re: [s2] Message resources from database

2006-11-25 Thread Ted Husted
It's actually fairly simple to do. There's a detailed example in the WebWork in Action book (see page 375). Struts 2 (and WW2) search the class heirarchy for message resources, looking first for classes that Essentially, you can implement the Java ResourceBundle interface and have it lookup the

Re: Pros and cons of multi module applications

2006-11-25 Thread Ted Husted
It's not difficult to migrate. We did the same with three of our appilcations, by combining them in to the single struts-examples application. The session would be shared, so beans with the same name would be a problem, if they shouldn't overwrite each other. Tiles should work just fine with mod

Re: Regarding Compatability for Struts-2.0.1

2006-11-25 Thread Ted Husted
On 11/23/06, Jeevan Kumar Kade <[EMAIL PROTECTED]> wrote: I worked on Struts 1.1 for around 1 year. 1. Architecture changes are more and complex to understand between the different layers From the perspective of coding Struts application, the architecture is easier. The Struts 2 configu

Re: struts 2.0.x samples on java 1.4.2

2006-11-25 Thread Mitchell James
I can't remember if these jars are included in the war, but they are required at runtime: retrotranslator-runtime-n.n.n.jar backport-util-concurrent.jar -- James Mitchell 678.910.8017 On Nov 24, 2006, at 9:31 PM, David Bloom wrote: I tried all the sample struts 2.0.1 wars individually

Re: Parameters not being set on Action in Struts 2

2006-11-25 Thread Ted Husted
First, simplify the problem. Right now, the code seems to be calling an alternative method, setup. What happens if you try the same thing with the default execute method? If your application is based on the blank application, it may turned the "!" syntax off, since it can conflict with using wild

Re: Problem using LookupDispatchAction

2006-11-25 Thread Yujun Liang
Jim, You need an resource.properties file define in Message resources section of the struts config file. When made getMethodMap, you need to use the key in the resource file as the key for the map, the value of the method name in your extended LookupDispatchAction. You can refer to Struts exampl