RE: Testing Struts Applicaton

2005-09-22 Thread rahul
hi Laurie, I am trying to test my struts appplication, first I tried MockStrutsTestCase but its not working because my database connections are coming via tomcat(I have placed my jconnect.jar file in tomcat_home/common/lib and configured my application's context.xml file) Therefore I am looking

RE: Null Pointer exception when using struts html tag library in jsp file

2005-09-22 Thread Archana Soni
MC, Actually, the jsp page is referring a page within my application. For testing purpose, I tried with an absolute URL and I sent U that changed jsp. Anyways, I noted that anything between the tags is not affecting b'coz even after removing the complete body and just leaving (<%@ taglib) wit

Re: Struts over multiple servers

2005-09-22 Thread Laurie Harper
Malcolm Mallia wrote: I wish to implement a database and model classes on one server and have the action, actionform and jsp in another project on another server. Can I map the struts-config to read across servers? What is the best way to implment this without changing my project to an enterp

Re: Taglibrary documentation

2005-09-22 Thread Laurie Harper
yeah, I agree the navigation to *get* to that documentation isn't the most intuitive. I think it's a bit better with the Maven build Wendy pointed to, though. L. Murray Collingwood wrote: Hi Laurie I haven't seent his page before so I tried to trace back the link from the main struts pages.

Re: AW: Cannot find ActionMappings or ActionFormBeans

2005-09-22 Thread Michael Jouravlev
config /struts-config.xml <== is this correct? Seems to me that your servlet container cannot find struts-config.xml file. Is your struts-config.xml in WEB-INF directory or in document root? Michael. On 9/22/05, T West <[EMAIL PROTECTED]> wrote: > I've tried all of the suggestions given s

OT--JBoss-Cache Usage

2005-09-22 Thread Richard Reyes
Hi Guys, Its early Friday to me. Hehe. I need help in using Jboss-Cache. The short tutorial doesn't give anything i can understand. I am very new to this cache thing. I dont think that the bundled sample is working. I hope somebody here can explain something on this. My goal is to run this as a

Re: MailReader demo app is rewritten with Struts Dialogs

2005-09-22 Thread Michael Jouravlev
On 9/22/05, James Mitchell <[EMAIL PROTECTED]> wrote: > I for one figured you would appreciate Ted's offer seeing as you > would be on equal ground with everyone else. If you are willing to > do the work, and it is something people want, then you need to get it > out there and let people try it.

Re: MailReader demo app is rewritten with Struts Dialogs

2005-09-22 Thread James Mitchell
What do you mean? Is it your goal to say "hey, see that in the Struts code, I did that!". If that's true, then you are here for the wrong reason my friend. I for one figured you would appreciate Ted's offer seeing as you would be on equal ground with everyone else. If you are willing to

Struts over multiple servers

2005-09-22 Thread Malcolm Mallia
I wish to implement a database and model classes on one server and have the action, actionform and jsp in another project on another server. Can I map the struts-config to read across servers? What is the best way to implment this without changing my project to an enterprise project? Thanks

Re: AW: Cannot find ActionMappings or ActionFormBeans

2005-09-22 Thread T West
I've tried all of the suggestions given so far, and I'm still receiving the same error. Any more suggestions would be greatly appreciated. Thanks. On 9/18/05, T West <[EMAIL PROTECTED]> wrote: > The exception occurs when I'm in the Tomcat Manager and try to open up > the DatabaseRetrieval project.

Re: Bean association with form

2005-09-22 Thread Murray Collingwood
Thanks for the clarification Laurie. It does make perfect sense. On 22 Sep 2005 at 19:40, Laurie Harper wrote: > As long as you have your mappings setup correctly (and use the right > attribute name if you push the form bean into the request/session > yourself), the tag locates the appropria

Re: Taglibrary documentation

2005-09-22 Thread Murray Collingwood
Hi Laurie I haven't seent his page before so I tried to trace back the link from the main struts pages. It's hidden in a "more..." link at the bottom of a page called "How to build applications" which is under the "Howto Guides". No wonder I didn't find it. I think there is another link f

Re: MailReader demo app is rewritten with Struts Dialogs

2005-09-22 Thread Michael Jouravlev
On 9/22/05, Ted Husted <[EMAIL PROTECTED]> wrote: > On Sep 11, 2005, at 2:18 PM, Ted Husted wrote (on Struts Dev): > > My thinking is that each application should be separate, with it's own > > Maven build, and no shared code between web applications. Though, the > > MailReader applications could s

Re: Taglibrary documentation

2005-09-22 Thread Laurie Harper
Did you look at the documentation Dave referenced? It covers pretty much everything you mentioned, perhaps with the exception of examples. For example, here's the reference documentation for the HTML taglib: http://struts.apache.org/userGuide/struts-html.html I'm sure suggestions for improve

Re: Bean association with form

2005-09-22 Thread Laurie Harper
As long as you have your mappings setup correctly (and use the right attribute name if you push the form bean into the request/session yourself), the tag locates the appropriate form bean automatically and the name attribute is redundant. L. Murray Collingwood wrote: Laurie is right, you ne

Re: Taglibrary documentation

2005-09-22 Thread Wendy Smoak
From: "Murray Collingwood" <[EMAIL PROTECTED]> I've read through most of this documentation and it doesn't help much. I completely agree. I've never been able to just read the taglib docs and figure out what combination of attributes will do what I want. I'm really looking for a reference m

Taglibrary documentation

2005-09-22 Thread Murray Collingwood
Hi Dave I've read through most of this documentation and it doesn't help much. I'm really looking for a reference manual that: 1. lists all of the available tags in a tag library, 2. describes all of the parameters, 3. how the parameters differ from each other and how they interact (you can'

Re: The best way to prepopulate a ActionForm

2005-09-22 Thread Rafael Nami
Sorry ojay, my codes are in the notebook, and right now I don't have access to the internet with it(I don't have the ppoe program to run this ADSL connection in my note). I can send you the code from my work tomorrow. Best Regards Rafael Mauricio Nami 2005/9/22, Dave Newton <[EMAIL PROTECTED]>: >

Re: Submit form with and

2005-09-22 Thread Frank W. Zammetti
Nope, setting href won't submit a form. In fact, I'm almost completely certain it results in a GET, not a POST Frank Dave Newton wrote: Catherine wrote: function show(url) { window.location.href = url } Does setting the href of the window's location actually submit a form? What happ

Where to put view session state? HttpSession or on a Session form-bean?

2005-09-22 Thread João Paulo Martins
where should I store the view related session state? HttpSession or on a Session form-bean? Thanks in advanced, João Martins - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Bean association with form

2005-09-22 Thread Murray Collingwood
Laurie is right, you need the extra action mapping in your config file. I have also been adding the attribute name to the form elements as in: Is this necessary? It works but I'm wondering if it is redundant? Kind regards mc On 22 Sep 2005 at 15:44, Laurie Harper wrote: > You have your

Re: Submit form with and

2005-09-22 Thread Dave Newton
Catherine wrote: function show(url) { window.location.href = url } Does setting the href of the window's location actually submit a form? What happens if you actually call submit on the form? Dave - To unsubscribe, e

Submit form with and

2005-09-22 Thread Catherine
Hi, I defined a variable in my ActionForm as "submitAction". And I have serveral buttons in my form as below. This works and I get submitAction="Save". function show(url) { window.location.href = url } This also works since

Re: The best way to prepopulate a ActionForm

2005-09-22 Thread Dave Newton
Frank W. Zammetti wrote: Ok, got it working. Ugh, took me 20 minutes to find a stupid typo in the blank Struts app I use to start a new project. ARGH! Hey, does that mean you can bill clients for an extra 20 minutes for every project? That looks almost *exactly* like what I implemented a

Re: The best way to prepopulate a ActionForm

2005-09-22 Thread Frank W. Zammetti
On Thu, September 22, 2005 3:50 pm, Frank W. Zammetti said: > P.S. - I just threw together a quick little sample app to see if the > filter can be used this way in the first place... it didn't work right off > the bat, although I think it's just a mapping issue, not so much a flaw > with the underl

Re: Bean association with form

2005-09-22 Thread Laurie Harper
You have your action path set to /EditMappingElement but your form action is SaveMappingElement. There's no link between the form and the form-bean. You need to make sure you have an action mapping for SaveMappingElement, and that it has name="MappingElement" set. L. Michael Oliver wrote: I

Re: The best way to prepopulate a ActionForm

2005-09-22 Thread Frank W. Zammetti
On Thu, September 22, 2005 3:31 pm, Dave Newton said: > If you're going to put an ActionForm into session mightn't it make more > sense to put this in a request processor, as long as it's > Struts-dependent anyway? I dunno. It's certainly a reasonable argument to make. :) My feeling these days th

Re: [OT] Direct-to-DOM validation

2005-09-22 Thread Laurie Harper
Actually, I want to do exactly that; it's on my to-do list. I haven't looked at it at all, but when I do I'll be sure to post. L. Michael Jouravlev wrote: I like IceSoft's "Direct-to-DOM" buzzword ;-) The question is probably better suited for Commons mailing list, but because it is Struts-rel

Re: Testing Struts Applicaton

2005-09-22 Thread Laurie Harper
rahul wrote: Can anyone post some sample CactusStrutsTestCase code That's a bit vague; what are you trying to test? One place you could look is the Cactus test suite for the taglibs subproject in the Struts source (grab a current source distribution or checkout from subversion, and look in t

Re: The best way to prepopulate a ActionForm

2005-09-22 Thread Dave Newton
Frank W. Zammetti wrote: Since an ActionForm is no different from any other class as far as the filter would be concerned, it can instantiate it and place it in the appropriate scope, which would really only mean session, since I'm pretty sure Struts would overwrite it if it was request-scoped..

Re: The best way to prepopulate a ActionForm

2005-09-22 Thread Frank W. Zammetti
Another potentially interesting possibility, although one I have to admit I have not tried yet, is using the DependencyFilter in Java Web Parts. Since an ActionForm is no different from any other class as far as the filter would be concerned, it can instantiate it and place it in the appropriate s

RE: Perm Gen Space

2005-09-22 Thread Bradford, Jeff L
Yep, your right! I checked the source code of the latest prod version (1.2.7) and it does have the one line of code added to the destroy() method. Thanks a lot. Jeff -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Thursday, September 22, 2005 11:52 AM To: Struts Us

Re: The best way to prepopulate a ActionForm

2005-09-22 Thread Wendy Smoak
From: "ojay78" <[EMAIL PROTECTED]> Could you give a example Code for that? You can see an example of form pre-population in the code for the MailReader example app: http://svn.apache.org/viewcvs.cgi/struts/apps/trunk/shared/src/java/org/apache/struts/apps/mailreader/actions/EditSubscription

Stale session data issue

2005-09-22 Thread Vicky
Guys, My application is being used by third party product, in which they call our different actions (.do?param=value etc.) at different places. Whenever they call our application they open up a child window(our application). After doing necessary task user clicks on "Done" button on child window,

AW: The best way to prepopulate a ActionForm

2005-09-22 Thread ojay78
Hi Rafael, "I usually prepopullate an ActionForm from the Action. Like, if I have to save a Person object, I prepopullate the ActionForm in the edit() method, setting the ActionForm again in the web context(request or session). And then, return the according ActionForward." Could you give a examp

Re: The best way to prepopulate a ActionForm

2005-09-22 Thread Rick Reumann
ojay78 wrote the following on 9/22/2005 1:22 PM: On my showFVKNAdminAction I receive a value from the previous ActionForm and put it in the request so that the next handleFVKNAction have this value. I also put a attribute in the request so that the handleFVKNAction knows that it has to act li

Re: The best way to prepopulate a ActionForm

2005-09-22 Thread Rafael Nami
I usually prepopullate an ActionForm from the Action. Like, if I have to save a Person object, I prepopullate the ActionForm in the edit() method, setting the ActionForm again in the web context(request or session). And then, return the according ActionForward. Best Regards Rafael Mauricio Nami

RE: MailReader demo app is rewritten with Struts Dialogs

2005-09-22 Thread Wiebe de Jong
Hey Ted, What would be an appropriate tool for creating the UML diagrams for MailReader? I use Rose for my work, but I think documentation for open source projects needs to be readable by everyone. I found this recent article, but it doesn't help much. Open source UML editors lag proprietary lea

The best way to prepopulate a ActionForm

2005-09-22 Thread ojay78
Hi @ all,   I stuck on a problem. I don’t now how to prepoulate a Actionform. What I’m doing is this:   On my showFVKNAdminAction I receive a value from the previous ActionForm and put it in the request so that the next handleFVKNAction have this value. I also put a attribute in the r

Re: Perm Gen Space

2005-09-22 Thread Dave Newton
Bradford, Jeff L wrote: We are using WebSphere 5.1.1 and Struts 1.1 and Struts 1.2.4. IBM made this suggestion. Anyone else heard of having to resort to this? Yep; this has been brought up before: http://issues.apache.org/bugzilla/show_bug.cgi?id=14042 http://www.junlu.com/msg/154784.html

The mailreader example, database access

2005-09-22 Thread Koen Jans
The struts design guidelines states that Actions perform the processing required to deal with a request (such as saving a row into a database); this can be done by logic code embedded within the Action class itself, BUT should generally be performed by calling an appropriate method of a business lo

Re: Null Pointer exception when using struts html tag library in jsp file

2005-09-22 Thread Dave Newton
Murray Collingwood wrote: I've never found any good documentation on the use of various taglib parameters, maybe somebody else on this list could point us in the right direction. For the most part the docs in the Struts userguide (http://struts.apache.org/userGuide/index.html, then follow

Re: [OT] HttpSessionListener question - How to get to request object?

2005-09-22 Thread DGraham
Might be an easier way, but I had to implement this via a Filter that saves this info into a session scoped bean. -Dennis "Barnett, Brian W." <[EMAIL PROTECTED]> 09/22/2005 11:59 AM Please respond to "Struts Users Mailing List" To 'Struts Users Mailing List' cc Subject [OT] HttpSessionL

Perm Gen Space

2005-09-22 Thread Bradford, Jeff L
We are using WebSphere 5.1.1 and Struts 1.1 and Struts 1.2.4. IBM made this suggestion. Anyone else heard of having to resort to this? A series of tests were performed that showed that when we repeatedly stopped and started an application, we could eventually deplete the Perm Gen. The applicati

[OT] HttpSessionListener question - How to get to request object?

2005-09-22 Thread Barnett, Brian W.
Is there a way to get to the request object in an HttpSessionListener.sessionCreated() method? Specifically, I want to call request.getRemoteUser() so I know who just created the session. TIA, Brian Barnett This email m

Testing Struts Applicaton

2005-09-22 Thread rahul
Hi All, Can anyone post some sample CactusStrutsTestCase code --RahulJoshi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: SOLVED:RE: Please help! I have been looling at this problem for two days

2005-09-22 Thread Wojciech Ciesielski
> Hi Vijaya, > > It turn out that I did not put the jbossall-client.jar in the lib/ > directory of myApplication. After I put the jbossall-client.jar in the > lib/ directory, thing works fine. I really don't know why none of the log > statements were never printed when my action class execute meth

SOLVED:RE: Please help! I have been looling at this problem for two days

2005-09-22 Thread Kam Lung Leung
Hi Vijaya, It turn out that I did not put the jbossall-client.jar in the lib/ directory of myApplication. After I put the jbossall-client.jar in the lib/ directory, thing works fine. I really don't know why none of the log statements were never printed when my action class execute method was ca

RE: Bean association with form

2005-09-22 Thread Michael Oliver
Yes that works! Thanks. It does open the questions: 1) Why is it necessary? I have dozens of Struts applications and this is the first time this has been needed. 2) Why can't you specify the bean to use in the html:form tag? I tried adding the undocumented features name="MappingElement" type

Re: Migrating to struts 1.2.7 from 1.1

2005-09-22 Thread Wendy Smoak
From: "Gaurav Shrivastava" <[EMAIL PROTECTED]> new to struts and migrating an application from struts 1.1 to struts 1.2.7 can anyone give me hints/suggestions on what all things (struts feature wise) should i consider while migrating to higher version. There are Wiki pages to help you move fro

RE: JSF or Struts Classic (was Vs)

2005-09-22 Thread Michael Oliver
For me, a "Component" can occur at any level. On a page for example a Component may be a custom control, applet or an object that is exposed via a custom tag. Tapestry, JSF, ASPX all have these kinds of components. But if you are talking at the application level, then Components take on a comple

RE: Null Pointer exception when using struts html tag library in jsp file

2005-09-22 Thread Murray Collingwood
Hi Archana Try changing your html:link page to href. ie From: http://yahoo.com";>Yahoo to http://yahoo.com";>Yahoo >From what I gather the 'page' parameters refers to a page within your >application. You should use the 'href' parameter to refer to a URI. I've never found any g

Re: MailReader demo app is rewritten with Struts Dialogs

2005-09-22 Thread Ted Husted
On Sep 11, 2005, at 2:18 PM, Ted Husted wrote (on Struts Dev): > My thinking is that each application should be separate, with it's own > Maven build, and no shared code between web applications. Though, the > MailReader applications could share a business backend, again with its > own Maven build

Migrating to struts 1.2.7 from 1.1

2005-09-22 Thread Gaurav Shrivastava
new to struts and migrating an application from struts 1.1 to struts 1.2.7 can anyone give me hints/suggestions on what all things (struts feature wise) should i consider while migrating to higher version. __

Re: JSF or Struts Classic (was Vs)

2005-09-22 Thread Ted Husted
On 9/22/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > And that ASP.NET component approach relies on massive IDE and backend > support. I wonder how to encapsulate one component into another with > JSF or ASP.NET. Visual tools help to drag the component on the screen Hmmm, I wouldn't say "rely

RE: Validating Indexed Properties

2005-09-22 Thread Jason . Jones
Thank you, Kishore. That sounds like what is happening, but I lacked the in-depth knowledge of how Struts works to figure it out. This helps me understand a lot. I will try the LazyDynaBean[] method. Jason Jones Ann Arbor VAMC (CIO) 2215 Fuller Rd. Ann Arbor, MI 48105 734-769-7100 x5387 -Or

Re: JSF or Struts Classic (was Vs)

2005-09-22 Thread Ted Husted
On 9/21/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > It is possible to create Struts/JSP components which can do > everything from the bulleted list above, maybe not nicely > packaged, but they can be called components nonetheless: > http://today.java.net/pub/a/today/2005/08/04/jsp

Re: Help - I cannot validate a simple form with 2 fields

2005-09-22 Thread Francisco Antonio Vieira Souza
Alright thanks, you know what? I am giving up Struts I dont understand why this stuff has to be so complicated and nobody in the whole world knows anything about it, I am Swing developer and I think I will keep that. Thanks anyway Laurie Harper escreveu: Erm, yes? You were complaining th

Re: [OT] Direct-to-DOM validation

2005-09-22 Thread Leon Rosenberg
I am not sure that modifying the DOM is such a good idea. I mean, sure it works on some browsers, but not on all, so it's not "production-ready" (same problem as with ajaxtags). On 9/21/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > I like IceSoft's "Direct-to-DOM" buzzword ;-) The question is

Fwd: JSF or Struts Classic (was Vs)

2005-09-22 Thread Michael Jouravlev
On 9/21/05, Craig McClanahan <[EMAIL PROTECTED]> wrote: > On 9/21/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > I would like to hear what a component is. Definitions can differ. > > ... ... > below, I'll quote a couple of references that might be the beginnings of > research for your own inv