ActionContext.getContext().getSession return null when I test Struts2 action by JUnit.

2008-02-01 Thread Joey Watson
Hi everybody. I want to test a action class (Struts2) by JUnit. and then method in this action need a value in session, then when I run my JUnit test class, ActionContext.getContext().getSession return null. (not ActionContext.getContext().getSession().get("XXX") return null). this action class i

Re: Pls help me to find Struts 1.0.2 binary, library and source

2007-09-02 Thread Joey Watson
Wendy , Thank you very much. On 9/3/07, Wendy Smoak <[EMAIL PROTECTED]> wrote: > On 9/2/07, Joey Watson <[EMAIL PROTECTED]> wrote: > > > I have to find Struts 1.0.2 Binary Distribution, Struts 1.0.2 Library > > Distribution and > > Struts 1.0.2 Source Code Dist

Pls help me to find Struts 1.0.2 binary, library and source

2007-09-02 Thread Joey Watson
Hi everybody. I have to find Struts 1.0.2 Binary Distribution, Struts 1.0.2 Library Distribution and Struts 1.0.2 Source Code Distribution for a project, but I didn't find it on apache website(http://archive.apache.org/dist/jakarta/struts/binaries/), only 1.1 can be found, so anybody know where I

JSP Compile error

2006-07-02 Thread Joey Watson
Hello everybody. I got a strange problem, I use the code : ' /> it can work if I add onchange to JSP directly in Jboss tmp folder, but when I try to compile this JSP , got a compiling error, [jasperc] 2006-07-03 09:39:35 - error-the file '\jsp\com\xxx\xxx\xxx\User.jsp' generated the followi ng

Re: How to avoid lots of "if else" in Action class.

2006-05-04 Thread Joey Watson
Thanks Michael. I will study it. On 5/5/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: Dispatching action. Do not use old and crusty DispatchAction. See these links: http://wiki.apache.org/struts/EventActionDispatcher http://wiki.apache.org/struts/DataEntryForm Michael. On 5/4/06

How to avoid lots of "if else" in Action class.

2006-05-04 Thread Joey Watson
hello everybody. When I was working a big project. I always met this problem. coz the sometimes there are a lot of event need to be handled in a single jsp page. so programer need to use lots of "if - else" to deal with different event in Action.execute method. of cause. I think those codes is

Re: How to use

2006-05-04 Thread Joey Watson
Thanks Kjersti. ur code works. but I am just thinking. is it a best way? coz it seems little bit hard to read. On 5/4/06, Kjersti Berg <[EMAIL PROTECTED]> wrote: Try making the entire onchange one scriptlet like this: Kjersti On 03/05/06, Joey Watson <[EMAIL PROTECTED]>

Re: How to use

2006-05-03 Thread Joey Watson
;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< struts does not translate the '<%=ApplicationAction.ACCSUBJ_CHANGE%>' to its value 'accsubj_change

How to use

2006-05-02 Thread Joey Watson
Hi All. I got a problem when I was using . I used to use before. like those codes can work well. but now I want to use . but the code '<%=ApplicationAction.ACCSUBJ_CHANGE%>', and '<%=index%>' value can not be get. the va

Re: Problem about first page.

2006-02-20 Thread Joey Watson
Thanks Bryan and Michael. I have solved this problem. Thanks you very much. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Problem about first page.

2006-02-20 Thread Joey Watson
Or I think maybe many project would meet this kind of quesition. Just want to know how to deal with it when you need to display some information loaded from db in you first page. On 2/21/06, Joey Watson <[EMAIL PROTECTED]> wrote: > yes. I think it is a good idea. but I don't know t

Re: Problem about first page.

2006-02-20 Thread Joey Watson
ke you welcome page different than login.jsp and have it forward > to login.jsp? If login is your front door, maybe all of your welcome pages > could forward to it. > > - Original Message - > From: "Joey Watson" <[EMAIL PROTECTED]> > To: "Struts Users

Problem about first page.

2006-02-20 Thread Joey Watson
Hi everybody. I want to write a login module. login.jsp-display userId , userName, password, company infomation (a drop down box) LoginAction.java check login information LoginForm.java -- some command class. one of them will load company information from db. When user open we

Re: looking for struts,ejb,jboss,ant demo

2006-02-09 Thread Joey Watson
gt; not so much all together. Maybe JBoss's site? > > > > - Nick > > > > On 2/9/06, Joey Watson <[EMAIL PROTECTED]> wrote: > > > Hello everyone. > > > > > > I am looking for a demo using struts,ejb,jboss, ant. I searched by > > > g

Re: [other] Borland want to sell its IDE products.....

2006-02-09 Thread Joey Watson
Borland, a great company is gone. I can not forget Delphi, best IDE tool I have used. to be honesty, I like Delphi more than Eclipse. haa, but it's life... On 2/9/06, Legolas Woodland <[EMAIL PROTECTED]> wrote: > > Hi > just look at > http://blogs.borland.com/davidi/archive/2006/02/08/23013.aspx

looking for struts,ejb,jboss,ant demo

2006-02-09 Thread Joey Watson
Hello everyone. I am looking for a demo using struts,ejb,jboss, ant. I searched by google. but only found struts,ejb,jboss demo by eclipse. but I don't depend on IDE tools. I want to learn more. So hope anybody can help me find a demo using struts,ejb,jboss with ant. Thanks so much. Joey

Re: How to use checkbox in struts.

2006-02-08 Thread Joey Watson
Thanks everybody, I followed the method that Vidya told me. it can work well. and Robert , you can send Vidya's letter to the programer , if still unsuccessful you can tell me. I will make a demo for you. Thanks again. Joey.

How to use checkbox in struts.

2006-02-06 Thread Joey Watson
Hello everybody. I think this is a old question. but I can not find a good and complete example in Google. My question is : I have a Jsp page which will list some datas for user. user can choose(by click the checkbox) some of those data and click a botton for delete or some others operator. So I