Re: Basic architecture question

2009-09-04 Thread Rusty Wright
I don't have a lot of hibernate experience but my memory, from reading that big hibernate book, is that you get more flexibility by using hibernate sessions instead of jpa entity managers. For me, strict jpa compatibility wasn't a requirement so I used hibernate sessions (via spring). measwe

Re: problem uploading a text file

2009-09-04 Thread Rusty Wright
I make it a point to try and remember to click that red box to stop tomcat as soon as I'm done playing with it. My preferred steps (when I can remember) are: stop tomcat, edit files, click the build button and/or do a mvn package, click the Publish to server button for tomcat, then click the S

Re: how do you test your action classes?

2009-09-04 Thread Rusty Wright
0.html On Fri, Sep 4, 2009 at 3:23 AM, Rusty Wright wrote: For example, how can I test the validations if I'm using an xml file with the validation specifications in it? Seems like there are a lot of moving parts around the invocation of the action classes that ma

how do you test your action classes?

2009-09-04 Thread Rusty Wright
For example, how can I test the validations if I'm using an xml file with the validation specifications in it? Seems like there are a lot of moving parts around the invocation of the action classes that make testing hard. - To

Re: logic:iterate

2009-09-03 Thread Rusty Wright
Oops, sorry; I didn't realize this was a struts 1 question. Rusty Wright wrote: http://struts.apache.org/2.1.6/docs/ognl-basics.html senderj wrote: If I have a text input in my jsp named scoreNdays, I know I should declare my variable scoreNdays in the struts formbean with gette

Re: logic:iterate

2009-09-03 Thread Rusty Wright
http://struts.apache.org/2.1.6/docs/ognl-basics.html senderj wrote: If I have a text input in my jsp named scoreNdays, I know I should declare my variable scoreNdays in the struts formbean with getter and setter like getScoreNdays(). Then it will work with the jsp. Now I have an iternation in m

Re: Action Tag java.lang.StackOverflowError

2009-09-02 Thread Rusty Wright
Think subroutine. musom...@aol.com wrote: Different tags do different things so I'm afraid you have to look at the documentation for a tag to see just what it does. This one was written for the purpose of allowing you to use the result of an action in the page you are currently rendering.

Re: Table(grids)

2009-09-02 Thread Rusty Wright
I haven't tried DisplayTag yet with Struts 2 but I've used it with Spring MVC and can say that DisplayTag is very nice. Very flexible. Johannes Geppert wrote: I use the display tags for tables. it's easy to use with struts2. http://displaytag.sourceforge.net/1.2/ Arthur Neves wrote: Hi,

Re: struts2 filter-mapping url-pattern

2009-09-02 Thread Rusty Wright
will be mapped as requests to /struts/* -Wes On Wed, Sep 2, 2009 at 3:20 AM, Rusty Wright wrote: That's good to know; thanks. This struts newbie would like to know, what's the /struts/* mapping for? Rajeev Sharma wrote: *.action works fine for me too. -Original Message- F

Re: How To Post A Message To the Struts User Mailing List

2009-09-02 Thread Rusty Wright
Yes. Also note that you probably must be sending the email from an email address that is subscribed to the list. 谢冬鸣 wrote: > can i directly send mail to "user@struts.apache.org" from my gmail and all > the mailling list users will see it ? > > > On Tue, Sep 1, 2009 at 06:34, Java Struts wrot

Re: struts2 filter-mapping url-pattern

2009-09-02 Thread Rusty Wright
o address the problem than to try to get rid of the filter. -Wes On Tuesday 01 September 2009 07:30:59 pm Arthur Neves wrote: I think It' s impossible to do, because all of request's must pass to the filter! If I'd been wrong, please, somebody correct me! 2009/9/1 Rusty Wright

struts2 breaks welcome-file in web.xml for jetty

2009-09-01 Thread Rusty Wright
I'm in the same boat as Steven Mitchell; was this problem ever resolved? http://xrl.in/30sz If I remove the filter for FilterDispatcher from my web.xml then my index.jsp starts working. With FilterDispatcher in, it doesn't work. It works with tomcat with FilterDispatcher in, but does not wit

struts2 filter-mapping url-pattern

2009-09-01 Thread Rusty Wright
In the web.xml why is the filter-mapping url-pattern /* ? Would it work to change it to *.action instead? For some reason, I can't get jetty to serve my welcome-file index.jsp file and if I change the url-pattern to *.action then it starts working.

Re: Mapping of form object to a java bean

2009-08-31 Thread Rusty Wright
You could do it with lombok: http://projectlombok.org/features/index.html vishalj wrote: Is it possible to map all the form fields from struts form to some java bean without writing getter and setters in the action class for each field --

Re: preferred way to jump start app into struts?

2009-08-30 Thread Rusty Wright
oot of your web app. Tomcat will see the empty file and then call your action directly. 2009/8/30 Luis Martín Canaval Sánchez : My bad, I´m really sorry the code I posted is totally wrong. please ignore it. I usually start with a index.jsp or html as a welcome page. On Sat, Aug 29, 2009 at 18:3

Re: preferred way to jump start app into struts?

2009-08-30 Thread Rusty Wright
y file and then call your action directly. 2009/8/30 Luis Martín Canaval Sánchez : My bad, I´m really sorry the code I posted is totally wrong. please ignore it. I usually start with a index.jsp or html as a welcome page. On Sat, Aug 29, 2009 at 18:37, Rusty Wright wrote: Luis, are you using

Re: preferred way to jump start app into struts?

2009-08-29 Thread Rusty Wright
-resource, so it has to be a file. I'm ok with this if that's the way it has to be, but it seems a bit klunky and I was wondering if there was a better way. And it seems to be a generic problem; I do the same redirect/forward thing with Spring MVC apps. Dave Newton wrote: Rusty Wrig

Re: preferred way to jump start app into struts?

2009-08-29 Thread Rusty Wright
file start.action No redirects just straight to the action. On Sat, Aug 29, 2009 at 17:34, Rusty Wright wrote: Is there a preferred way to "jump start" a web app when the user starts at the top; e.g., they use the url http://somehost.com/myapp/ What I'm doing now is p

preferred way to jump start app into struts?

2009-08-29 Thread Rusty Wright
Is there a preferred way to "jump start" a web app when the user starts at the top; e.g., they use the url http://somehost.com/myapp/ What I'm doing now is putting a redirect in index.jsp, as follows. Is there a better way? <%@ page contentType="text/html; charset=UTF-8" %> <%

Re: Convention Plugin problem

2009-08-28 Thread Rusty Wright
owser-plugin.html Best greetings, Paweł Wielgus. 2009/8/28 Dave Newton : Rusty Wright wrote: I can't get struts.convention.result.path to work. /catchall.jsp ... But it's always looking for the catchall.jsp file in the top level directory of my web app, ~tomcat/webapps

Convention Plugin problem

2009-08-27 Thread Rusty Wright
I can't get struts.convention.result.path to work. I'm using maven and as far as I can tell the Convention Plugin is being used; when I make a war it's in the lib directory. And "mvn dependency:tree" shows the following. My struts.xml is as follows: /catc