DynaActionForm - set null for initial value

2005-03-09 Thread Ben
Hi How do I set the initial value of a form property to null (of type String)? When I do a get/getString, it always return an empty string even though I haven't set the initial property to "". Thanks Ben - To unsubscribe, e-mai

Re: Page flow with some business logic

2005-03-09 Thread Erik Weber
Yes, having methods along the lines of "ensure" and "do" that are paired makes sense and I have seen the strategy work well. The challenge is that you often want these two methods to be invoked within a single transaction context. For example, you don't want to return true from ensureXX

RE: Is There a Tool for JSF?

2005-03-09 Thread Rajaneesh
Try WSAD if the cost is not too high for the project -Original Message- From: Michael Oliver [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 09, 2005 9:16 PM To: 'Struts Users Mailing List' Subject: RE: Is There a Tool for JSF? We use Exadel's Eclipse4Web http://www.exadel.com/products_

RE: providers which can host a struts web application

2005-03-09 Thread David G. Friedman
The site I got was all Spanish. Any idea how well they speak english? Let's give you an example of how horrible I am at Spanish: Solo hablo un poco de enspanol.See what I mean? *grin* I will say their hosting prices compared to what I pay are dirt cheap (from my USA point of view). $899 (pes

Page flow with some business logic

2005-03-09 Thread Nic Werner
Hi, Big picture, I have a form that gives you the ability to 'move' an object. I'd like to check to see if the destination location already exists so nothing would be overwritten. If something does exist, I'd like to output what object (and its values) is there, and do a confirmation screen.

Re: struts validation

2005-03-09 Thread wo_shi_ni_ba_ba
Some clarification to my previous post: if I add in the missing required field headWeight, then the action gets called and everything's fine. otherwise, it would not even construct the action, it happened before action gets constructed and called.. If a field is missing, shouldn't it just populate

struts validation

2005-03-09 Thread wo_shi_ni_ba_ba
It seems like if I specify a field as required in struts's validation-rule.xml and that field is missing from the form, when i submit the form it would say file not found /actionName without spitting out an exception. It is as if it's seeing the action specified by actionName as a file... any ide

OT: CSS is killing me, anyone know where I can find a good forum.

2005-03-09 Thread kjc
Using CSS with struts and tiles. Everything is good on both the struts and tiles side, except CSS is giving me a major headache with respect to positioning. Looking for a good CSS forum or mailing list. Thanks in advance. - To un

Re: validation issue

2005-03-09 Thread wo_shi_ni_ba_ba
thanks that works too. --- Anthony Hong <[EMAIL PROTECTED]> wrote: > If you want to set some value befroe generated > javascript to do validation. > You can wrtie a your own javascript function and > then invoke its > generated function. > > eg: > change jsp page > action="/logon" method="post">

Re: changing session timeout?

2005-03-09 Thread Anthony Hong
In HttpSession there is a method: setMaxInactiveInterval Set this value affects session timeout period. On Thu, 10 Mar 2005 01:19:34 -, jelything <[EMAIL PROTECTED]> wrote: > > I want to give my users more time to go for coffe in the middle of a > form submission. Well, that's what they wan

Re: validation issue

2005-03-09 Thread Anthony Hong
If you want to set some value befroe generated javascript to do validation. You can wrtie a your own javascript function and then invoke its generated function. eg: change jsp page write a new function in your own javascript function myFunction(myform) { //set your form value here from hidde

Re: Why code testing is necessary

2005-03-09 Thread James Mitchell
So you found an error on a corporate web site. Did you report this to their IT dept? That would have been the best thing to do instead of posting it here. This stuff is really unnecessary noise. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmit

changing session timeout?

2005-03-09 Thread jelything
I want to give my users more time to go for coffe in the middle of a form submission. Well, that's what they want, if we're being honest. At any rate, what are all the places that I have to change? I've changed: 60 but it still seems to be timing out after 30. TIA, J

Re: ??????????? in JSP

2005-03-09 Thread Anthony Hong
I think you should add encoding in the top of jsp page. <%@ page contentType="text/html;charset=UTF-8" language="java"%> On Wed, 09 Mar 2005 08:00:49 -0700, Eric Lemle <[EMAIL PROTECTED]> wrote: > My app server runs on a unix box and I am getting lots of question marks > showing up in my JSP. > H

Re: validation issue

2005-03-09 Thread wo_shi_ni_ba_ba
thanks, but I need it to be links to a graphics instead of button, any alternative? --- Hubert Rabago <[EMAIL PROTECTED]> wrote: > Use the tag for your Previous button. > > > On Wed, 9 Mar 2005 15:30:27 -0800 (PST), > wo_shi_ni_ba_ba > <[EMAIL PROTECTED]> wrote: > > dear folks, > > I am using

Re: [Validator] maxlength JavaScript not generated

2005-03-09 Thread Matt Raible
Thanks for confirming I wasn't crazy Bill. It turned out that my tag has a "page" attribute defined and I was missing page="1" for this particular field. Thanks, Matt On Mar 8, 2005, at 6:58 PM, Bill Siggelkow wrote: It should be ... I just looked at the latest build and the JS function is de

Re: validation issue

2005-03-09 Thread Hubert Rabago
Use the tag for your Previous button. On Wed, 9 Mar 2005 15:30:27 -0800 (PST), wo_shi_ni_ba_ba <[EMAIL PROTECTED]> wrote: > dear folks, > I am using struts validator framework for both > clientside and serverside validation. On the jsp > page, I have a previous and next button, if the user > cl

validation issue

2005-03-09 Thread wo_shi_ni_ba_ba
dear folks, I am using struts validator framework for both clientside and serverside validation. On the jsp page, I have a previous and next button, if the user clicks previous I don't want to validate; if the user clicks next I want to validate. However I can not modify the javascript function

OT: Why code testing is necessary

2005-03-09 Thread Nic Werner
Saw this in a query, anybody know what you would have to do for this result? http://www.officedepot.com/txtSearchDD.do?uniqueSearchFlag=true&searchTxt=ibook+power+supplie&x=0&y=0 Actually, any search query starting with 'ibook power' and a third word returns this problem. Relevance 1. <%

Re: Why Template Method instead of Strategy in Commons Chain?

2005-03-09 Thread Dakota Jack
Just so you know, Jeff, your references come from http://home.earthlink.net/~huston2/dp/patterns.html which is really useful. I really don't care how you use the term. Go ahead and mean anything you like. On Wed, 9 Mar 2005 17:26:10 -0500, Jeff Beal <[EMAIL PROTECTED]> wrote: > On Wed, 9 Ma

Re: Why Template Method instead of Strategy in Commons Chain?

2005-03-09 Thread Dakota Jack
LOL And, it also does not imply "abstract class" in C, nag nab it! On Wed, 9 Mar 2005 17:26:10 -0500, Jeff Beal <[EMAIL PROTECTED]> wrote: > On Wed, 9 Mar 2005 23:13:41 +0100, Leon Rosenberg > <[EMAIL PROTECTED]> wrote: > > > > Just to clarify things: > > > > Gamma et all Design Pattern page 326

Re: Why Template Method instead of Strategy in Commons Chain?

2005-03-09 Thread Leon Rosenberg
> And implies what in JavaScript? (that does not have > 'abstract' anything) JavaScript isn't a programming language, it's a disease, so design patterns do not apply here. (-: Leon :-) - To unsubscribe, e-mail: [EMAIL PROTECT

Re: Why Template Method instead of Strategy in Commons Chain?

2005-03-09 Thread Leon Rosenberg
> And implies what in JavaScript? (that does not have > 'abstract' anything) JavaScript isn't a programming language, it's a disease, so design patterns do not apply here. (-: Leon :-) - To unsubscribe, e-mail: [EMAIL PROTECT

Re: Why Template Method instead of Strategy in Commons Chain?

2005-03-09 Thread Jeff Beal
On Wed, 9 Mar 2005 23:13:41 +0100, Leon Rosenberg <[EMAIL PROTECTED]> wrote: > > Just to clarify things: > > Gamma et all Design Pattern page 326: > Behavioral patterns | template method > > By defining some of the steps of an algorithm using _abstract_ operations... > > Which implies abstract

RE: Why Template Method instead of Strategy in Commons Chain?

2005-03-09 Thread Fogleson, Allen
Jeff, Not to rain on the parade but the parenthetical abstract to me doesn't mean "optional" but it is a definition of the "style" of class. Its sort of like: we need a (male) soldier to join the infantry. Male is not optional - it is a description of the type of soldier. (my old military sense

Re: Struts DB Access :: Best Practices

2005-03-09 Thread Rick Reumann
Jesse Clark wrote the following on 3/9/2005 4:46 PM: However, I would disagree with your earlier comment that Hibernate is very easy to learn. It is a powerful tool and makes life easier once you learn it, but I think realistically you are looking at a 3 to 6 week learning curve to really figure

AW: Why Template Method instead of Strategy in Commons Chain?

2005-03-09 Thread Leon Rosenberg
Just to clarify things: Gamma et all Design Pattern page 326: Behavioral patterns | template method By defining some of the steps of an algorithm using _abstract_ operations... Which implies abstract class in java. > -Ursprüngliche Nachricht- > Von: Jeff Beal [mailto:[EMAIL PROTECTED]

AW: Why Template Method instead of Strategy in Commons Chain?

2005-03-09 Thread Leon Rosenberg
Just to clarify things: Gamma et all Design Pattern page 326: Behavioral patterns | template method By defining some of the steps of an algorithm using _abstract_ operations... Which implies abstract class in java. > -Ursprüngliche Nachricht- > Von: Jeff Beal [mailto:[EMAIL PROTECTED]

Re: Why Template Method instead of Strategy in Commons Chain?

2005-03-09 Thread PA
On Mar 09, 2005, at 23:11, Jeff Beal wrote: For anybody still interested in knowing whether or not we are allowed to call the Struts RequestProcessor an example of "Template Method Pattern". Arguing about one design cult versus another :P "On the diffusion of Christopher Alexander's 'A Pattern Lang

Fwd: Why Template Method instead of Strategy in Commons Chain?

2005-03-09 Thread Jeff Beal
For anybody still interested in knowing whether or not we are allowed to call the Struts RequestProcessor an example of "Template Method Pattern". Please note that the references below are at the top of a Google search for "Template method pattern". ;) -- Jeff -- Forwarded message

Re: [Help] I need tutorial which tells us how to integrate Struts and Hibernet

2005-03-09 Thread Rick Reumann
Pham Anh Tuan wrote the following on 3/9/2005 5:18 AM: Who can help me or show me where I can get tutorial which tells me how to integrate Struts and Hibernet. I have a brief one (although a bit outdated) on struts/iBATIS. iBATIS is so painless to use, I love it. http://www.reumann.net/struts/iba

Re: Struts DB Access :: Best Practices

2005-03-09 Thread Scott Lamb
karthikeyan balasubramanian wrote: I looked at iBATIS, it seems to be simple and easy to use. I will also check out others and let you know my thoughts. I'll add one to your list: Axamol SQL Library It's a project of mine, so I'd love to hear i

Re: Struts DB Access :: Best Practices

2005-03-09 Thread Jesse Clark
I agree that you can use Hibernate to generate code in a top-down or bottom-up approach fairly easily. However, I would disagree with your earlier comment that Hibernate is very easy to learn. It is a powerful tool and makes life easier once you learn it, but I think realistically you are looki

Re: Eliminate Setup Actions

2005-03-09 Thread Duncan Mills
An extension of the approach here is what we so with the Oracle ADF framework, namely that of associating a metadata XML file with the Action which drives the runtime framework to prepare the bindings for the page. So this is taking the whole declarative thing that much further by basically pu

Re: Eliminate Setup Actions

2005-03-09 Thread Rick Reumann
Can you add this XML functionality to the struts-config please? Then I won't hate you:) write application for me while I surf web Frank W. Zammetti wrote the following on 3/9/2005 4:15 PM: On Wed, March 9, 2005 4:07 pm, Rick Reumann said: (Hope

[perhaps OT] Testing Struts App with JNDI Datasouce

2005-03-09 Thread Manfred Wolff
Hi. My favorite Configuration is Struts, HiveMind and Hibernate together in a servlet Container (Tomcat 5.0). I have configures a datasource in the Tomcat container and have access to the datasource via hibernate (JNDI Lookup). Is there a solution to do this in a testcase without running tomcat

RE: Eliminate Setup Actions

2005-03-09 Thread Fogleson, Allen
What I based it on was a project where we had 3 apps being developed and I got injected at the user acceptance testing phase. 2 used Spring and one did not. The client chose to not use EJB Facades, but regular POJO Facades. In the 2 that used spring it took me approximately 20 minutes to change b

Re: Eliminate Setup Actions

2005-03-09 Thread Frank W. Zammetti
On Wed, March 9, 2005 4:07 pm, Rick Reumann said: > (Hope you take the right way Frank.. because it is very cool:) Of course I do Rick... YOU HATE ME!! :) Seriously though... I do agree with much of what you say... I've always been of the "get those stupid XML files away from me and just write so

Re: Eliminate Setup Actions

2005-03-09 Thread Rick Reumann
Fogleson, Allen wrote the following on 3/9/2005 3:21 PM: I have been there enough times, and I am sure others have, to know that changing that all in a single file is a LOT faster than going through hundreds of files searching for "SetupClass1.setupMethod1(request)". Or the worse case searching for

Re: Eliminate Setup Actions[Scanned]

2005-03-09 Thread Frank W. Zammetti
Fair enough... agree to disagree :) In any case, I would never force something like this on anyone, it would only ever be optional if I had anything to say about it, so it probably wouldn't be a problem anyway. As coded, there is absolutely nothing that says you have to use setupItems, so that go

Re: Eliminate Setup Actions[Scanned]

2005-03-09 Thread Shey Rab Pawo
We probably have beat this to death, Frank, but having the framework setup pages with declarations in the action mappings is not consistent with MVC to my way of thinking. I definitley would not do this. I like to keep things simpler. But, others seem to like it. So, maybe you have something th

Re: Eliminate Setup Actions

2005-03-09 Thread Frank W. Zammetti
I can't state it any clearer than I have, or any clearer than another poster (I forget who) just did a few minutes ago. If for absolutely no other reason, convenience and ease of change are good justifications. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http:/

Re: Eliminate Setup Actions

2005-03-09 Thread Shey Rab Pawo
Frank, watch that "anal" talk, would you? I could do without that. :) My point was just that I don't see a problem and don't understand how this would help. -- No one ever went blind looking at the bright side of life. - To un

Re: Why Template Method instead of Strategy in Commons Chain?

2005-03-09 Thread Dakota Jack
Sure, Jeff. Do what you like. I am going to stick with the meaning established for the Template Method pattern in the literature, but if you prefer to develop your own use of the terms, be my guest. You can call rain "snow" if you like without any objection from me too. If you think of any cl

RE: Eliminate Setup Actions

2005-03-09 Thread Fogleson, Allen
I think the real power here is NOT in whether it is more or less code, but the move to a declarative way of handling the setup. I can compare it to the bean factory portion of spring. Technically I may write more code to use Spring. I certainly have to include other resources (spring jars) to use

Re: Eliminate Setup Actions

2005-03-09 Thread Frank W. Zammetti
On Wed, March 9, 2005 3:11 pm, Frank W. Zammetti said: > On Wed, March 9, 2005 3:02 pm, Shey Rab Pawo said: >> This is more, not less, code, is it not? You have: >> >>>> setupMethod="setupMethod1" /> >> >> which has to be used for all actions that use this, right? Forgot to reply to that las

Using validwhen with multiple Map back properties

2005-03-09 Thread Nathan Maves
I have two LinkedHashMap properties in a DynaActionForm. I need to validate one of the map based on the other. i.e. map1(1) is required if map2(1) is not null. Can this be done? Nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

Re: Eliminate Setup Actions

2005-03-09 Thread Frank W. Zammetti
On Wed, March 9, 2005 3:02 pm, Shey Rab Pawo said: > This is more, not less, code, is it not? You have: > >> setupMethod="setupMethod1" /> > > which has to be used for all actions that use this, right? > > compared to: > > SetupClass1.setupMethod1(request) If you consider lines in an XML

Re: Losing form values after validating

2005-03-09 Thread Fredrik Boström
Phew.. after some testing, recompiling and more testing and more recompiling, I have finally found a solution. After posting the last message, I realised that the "categoryId" form field's value was searched for in a request parameter named "category", while the form field's name (property) tha

RE: Concurrency in Action classes

2005-03-09 Thread Benedict, Paul C
NG, Please see this page: http://wiki.apache.org/struts/StrutsWhyOnlyOneInstanceOfActionClass Thanks, Paul -Original Message- From: N G [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 09, 2005 2:57 PM To: Struts-user Subject: Concurrency in Action classes Hi, Is the Action class's i

JSP Documents and Tiles

2005-03-09 Thread Benedict, Paul C
I am having a problem with JSP Documents and Tiles. I find it very useful to split up JSP into different files, and have Struts Tiles bind them together to form a complete page. This is easy with JSP fragments because not every page needs to be a completed document, but I found this approach bombs

Re: Eliminate Setup Actions

2005-03-09 Thread Shey Rab Pawo
This is more, not less, code, is it not? You have: setupMethod="setupMethod1" /> which has to be used for all actions that use this, right? compared to: SetupClass1.setupMethod1(request) I don't see the "less code" point. Looks like more code to me, but just a different kind of cod

Concurrency in Action classes

2005-03-09 Thread N G
Hi, Is the Action class's instance reused for every request or is a new Action instance is created for every request? I forgot this... I seemed to remember that the Action is just like a HttpServlet: it shouldn't have any member variables that are assumed to be thread safe. Thanks, NG -

Re: [Help] I need tutorial which tells us how to integrate Struts and Hibernet

2005-03-09 Thread Matt Raible
I saw that - good stuff! ;-) On Mar 9, 2005, at 11:33 AM, Antony Joseph wrote: Matt, I have you in one of my jokes on the iBATIS forum. - Original Message - From: "Matt Raible" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Subject: Re: [Help] I need tutorial which tells us how to int

trying to use Apache URL forwarding with struts

2005-03-09 Thread Jonathan Corbin
I've been trying to get struts to do what I want, and I haven't been successful. Since what I'm trying to do is a bit complicated, I'll explain that first =] I want the user of my web application to go to the URL http://webserver/path/i/want Apache then forwards the request to another url, hitt

Re: Eliminate Setup Actions

2005-03-09 Thread Frank W. Zammetti
More (application-level) code isn't needed... it's just a question of making it declarative rather than programmatic, which is how so much of Struts already is. Here's an example from the example app posted to the Bugzilla ticket I referenced (ticket # 33935 if you want to download it and try it).

Fwd: Why Template Method instead of Strategy in Commons Chain?

2005-03-09 Thread Jeff Beal
Accidentally replied to only Jack. -- Forwarded message -- From: Jeff Beal <[EMAIL PROTECTED]> Date: Wed, 9 Mar 2005 14:23:35 -0500 Subject: Re: Why Template Method instead of Strategy in Commons Chain? To: Dakota Jack <[EMAIL PROTECTED]> Hey, thanks for the reply. I did go out

RE: overwriting default tile attribute value

2005-03-09 Thread wo_shi_ni_ba_ba
Actually I just tried again and my approach worked. It did overwrite the default value of param1 I that I specified in tiles-def.xml... weird but anyway... thank you --- "Fogleson, Allen" <[EMAIL PROTECTED]> wrote: > In the tiles-def.xml subclass the common.default, > then use an action to > for

Re: Eliminate Setup Actions

2005-03-09 Thread Shey Rab Pawo
On Wed, 9 Mar 2005 14:07:04 -0500 (EST), Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > But do you see the point in setup functions *outside* an Action's code > that occurs on the forward-level? Meaning, once an Action returns a > forward, do some setup based on what forward was returned? Yes.

RE: Why Template Method instead of Strategy in Commons Chain?

2005-03-09 Thread Fogleson, Allen
Well maybe other than the singleton pattern :) I don't know, in fact, if a single class can have a pattern. I think that most, if not all, of the patterns only make sense in combination with other classes. - To unsubscribe,

RE: Eliminate Setup Actions

2005-03-09 Thread Fogleson, Allen
Well im in the camp of "never show a jsp if you can get away with it" so almost everything in the app is fronted by an action. Now lets say I have a class that gets a bunch of stuff out of a db, caches it, etc for dropdowns or whatever. And let's further suppose that the page (or tile) I want t

Strange Exception Behavior

2005-03-09 Thread CRANFORD, CHRIS
Has anyone noticed in your struts application that when you call an oracle stored procedure and register an output parameter of type OracleTypes.CURSOR and that function call fails for any reason, any values you may have set in the oracle session will be lost? In our application we typically ca

Re: Losing form values after validating

2005-03-09 Thread Fredrik Boström
Thanks for your comment. I tried what you proposed, replacing the action path with the tile definition name. The result was that the tile didn't know which form to display (because the page containes three forms, one of which is selected according to the action request parameter), and thus didn'

Re: Eliminate Setup Actions

2005-03-09 Thread Frank W. Zammetti
But do you see the point in setup functions *outside* an Action's code that occurs on the forward-level? Meaning, once an Action returns a forward, do some setup based on what forward was returned? If so, check out the Bugzilla ticket I opened today where I provide this functionality, as well as

Re: Why Template Method instead of Strategy in Commons Chain?

2005-03-09 Thread Dakota Jack
Hi, Jeff, I am going to say some really intelligent things here, so listen up. ///;-) > The Template Method, not "Template" merely, pattern is really clear, well understood, a matter of public record, and not really a subject of debate. What I think is really irrelevant. The RequestProcessor i

Re: Eliminate Setup Actions

2005-03-09 Thread Shey Rab Pawo
Many people would suggest that using Actions in Struts would be preferrable whether or not you need to do any "setup" or any "processing" in the movement from one page to another in a website. I think of Actions as places to organize what needs to be done (processing the request) and providing any

RE: overwriting default tile attribute value

2005-03-09 Thread Fogleson, Allen
In the tiles-def.xml subclass the common.default, then use an action to forward to the subclassed definition. Of course if you are using the tiles taglib in your jsps... you are going to have to write a bunch of jsp's to do it. Doing it with struts built in support... Al ---

Re: tiles:insert and tiles:put an attribute and the import it to request scope

2005-03-09 Thread wo_shi_ni_ba_ba
thanks that helps --- Tim Christopher <[EMAIL PROTECTED]> wrote: > Try: > http://www.arc-mind.com/papers/advanced-tiles.pdf > > > On Tue, 8 Mar 2005 10:30:58 -0800 (PST), > wo_shi_ni_ba_ba > <[EMAIL PROTECTED]> wrote: > > Tim, > > thanks for the example. What I really want is to > > modify th

overwriting default tile attribute value

2005-03-09 Thread wo_shi_ni_ba_ba
Hi folks, In my tile definition file I put an attribute with its value, in the jsp that uses this definition I attempted to put the same attribute in with another value. However , the default value always shows up at the end. Is there a way that I can provide a default value for a tile attribute

Re: [Help] I need tutorial which tells us how to integrate Struts and Hibernet

2005-03-09 Thread Antony Joseph
Matt, I have you in one of my jokes on the iBATIS forum. - Original Message - From: "Matt Raible" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Subject: Re: [Help] I need tutorial which tells us how to integrate Struts and Hibernet Date: Wed, 9 Mar 2005 11:11:23 -0700 > > AppFuse

Re: Losing form values after validating

2005-03-09 Thread Antony Joseph
Try this. The input point to your tile. - Original Message - From: "Fredrik Boström" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Subject: Re: Losing form values after validating Date: Wed, 09 Mar 2005 19:46:23 +0200 > > Just for completeness, I'll post some more

Re: [Help] I need tutorial which tells us how to integrate Struts and Hibernet

2005-03-09 Thread Matt Raible
AppFuse has tutorials for using Hibernate, XDoclet and Struts. It also uses Spring to glue all the different pieces together: http://raibledesigns.com/appfuse/tutorials Matt On Mar 9, 2005, at 3:18 AM, Pham Anh Tuan wrote: Hi all, Who can help me or show me where I can get tutorial which tells m

Re: Struts DB Access :: Best Practices

2005-03-09 Thread Matt Raible
Equinox (http://equinox.dev.java.net) allows you to use Struts+Spring and any of the following persistence engines: Hibernate iBATIS JDO (JPOX) OJB Spring JDBC Personally, I like Hibernate when I get to create my schema, and iBATIS when it already exists. iBATIS is the easiest to learn/use in

Re: Losing form values after validating

2005-03-09 Thread Fredrik Boström
Just for completeness, I'll post some more relevant information about the application. newForm.jsp (partly) New Thread Topic: Message: struts-config.xml (partly) - type="org.apache.struts.validator.DynaVal

Re: I need help..

2005-03-09 Thread Antony Joseph
You may want to post the jsp, struts-config.xml and action form so that someone can help you. - Original Message - From: "Apte, Dhanashree (Noblestar)" To: "'Struts Users Mailing List'" Subject: I need help.. Date: Wed, 9 Mar 2005 10:55:08 -0600 > > I have a page that needs to disp

Re: Design problem

2005-03-09 Thread Gaet
That's exactly my problem now Rick! I will have a look ! Thanks! - Original Message - From: "Rick Reumann" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, March 09, 2005 6:01 PM Subject: Re: Design problem > Gaet wrote the following on 3/9/2005 11:04 AM: > > > I ha

Re: Design problem

2005-03-09 Thread Rick Reumann
Gaet wrote the following on 3/9/2005 11:04 AM: I have defined the /EmployeeDetail action-mapping with validate equal to false to be able to display the employee detail page without any checkbut if the user made any changes on the employee information in the detailled page, the same action is ca

Re: Why Template Method instead of Strategy in Commons Chain?

2005-03-09 Thread Jeff Beal
Here I go, exposing my ignorance of patterns. (No, I have not read the "Gang of Four" book on patterns or any other such scriptural reference.) Jack -- Exactly what would have to change in the current RequestProcessor for you to consider it a "Template" pattern? -- Jeff On Wed, 9 Mar 2005 06:

Re: Design problem

2005-03-09 Thread Nicolas De Loof
This is a simple way to do it. Have 2 mappings for 2 behaviours. Using a dispatchAction is usefull if you have code to share. Nico. Gaet a écrit : Nicolas, Do you mean this : So, when I click on an employee name in may list I will call /ShowEmployeeDetail.do and I define the edit form o

Re: Design problem

2005-03-09 Thread Nicolas De Loof
Each mapping have to define a parameter that sets the internal method to be used You can use parameter as the method name : and in execute() : if ("show".equals(getParameter)) return show(mapping, form...) else if ("update".equals(getParameter)) return update(mapping, form...) else retu

I need help..

2005-03-09 Thread Apte, Dhanashree (Noblestar)
I have a page that needs to display two empty addresses (each address is a combination of street1, street2, city, state, zip) for user input. The Form for that page has a collection of AddressBeans and the jsp iterates over this collection to display the Address section. The Action that displays t

Re: Servlet and JSP dependencies for Struts, JSF and Shale

2005-03-09 Thread Duncan Mills
For Shale check out the WIKI: http://wiki.apache.org/struts/StrutsShale http://wiki.apache.org/struts/BuildingShale Duncan Simon Chappell wrote: I need to pull a document together that lists the JSP and Servlet versions required by each of the available versions of Struts, JSF and Shale. I have loo

Re: Design problem

2005-03-09 Thread Gaet
Nicolas, Do you mean this : So, when I click on an employee name in may list I will call /ShowEmployeeDetail.do and I define the edit form of EmployeeDetail.jsp like this : Like this I don't need to change my actual Action class... Is it well-designed like this? Thanks -

Arrays/PlSql Tables

2005-03-09 Thread CRANFORD, CHRIS
Has anyone ever successfully returned PL/SQL or Array tables from a JDBC call to a store procedure in Oracle? If so, an example would be helpful. Right now I'm returning ref cursors and thought in some cases it might be more efficient to return a populated pl/sql table of data ... __

setupItems posted to Bugzilla

2005-03-09 Thread Frank W. Zammetti
For those that expressed an interest (one or two with baited breath as I recall!), and even for those that didn't catch the previous threads, I just added a Bugzilla ticket for the initial posting of setupItems. In short, this is an addition to Struts (1.2.4) that allows for setup-type functionali

Re: [ot] Need a webpage that for newsletter sign-ups without internet access?

2005-03-09 Thread amin
Check out http://javascript.internet.com/cookies/address-book.html#source Save it in a cookie, then later on read the cookie, present it as a web page for your data export needs. Amin http://www.cheblogs.com/roller/page/princeamin/ > I have an issue I need help with. > I currently have a Struts

Re: Design problem

2005-03-09 Thread Gaet
Thanks nicolas, I know the dispatch action but I don't see how to use it with 2 mappings: how the mappings "/showEmployeeDetail" and "/updateEmployeeDetail" will know the method to execute in my dispatch action? Thank you very much! - Original Message - From: "Nicolas De Loof" <[EMAIL PR

Re: Design problem

2005-03-09 Thread Woodchuck
another alternative, if you want to keep your action definition the same (ie. not define any new action) set your action validate to "true" in struts-config.xml define a hidden input value on your form update this value when the save/update button is clicked (simple javascript) in your action f

RE: Struts, ActionForward and Redirect

2005-03-09 Thread Marco Mistroni
Hello, Thanx a lot for reply.. Yes it was a problem in my mappings.. Thanx again and regards marco -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: 09 March 2005 16:00 To: Struts Users Mailing List Subject: Re: Struts, ActionForward and Redirect

Re: Design problem

2005-03-09 Thread Nicolas De Loof
You should define 2 mappings for detail : a "/showEmployeeDetail" without validation (or a unique rule employeeId required) a "/updateEmployeeDetail" with validation. Your action can be a dispatch action if you don't want to have 2 classes. Nico. Gaet a écrit : Hi, I have page with a list of empl

Design problem

2005-03-09 Thread Gaet
Hi, I have page with a list of employees. On that list, if you click on an employee name, I want to redirect to an edit page...easy no? but how to define the complete process into struts-config? Below you will find my actual struts-config but here is my problem : I have defined the /EmployeeDetai

Re: Struts, ActionForward and Redirect

2005-03-09 Thread Hubert Rabago
I would recheck the config information if I were you. If you can't retrieve it from the mapping, it could be a typo problem. Otherwise, paste your code so we can see what you're dealing with. On Wed, 9 Mar 2005 12:05:07 -, Marco Mistroni <[EMAIL PROTECTED]> wrote: > Hello all, > I ha

DataSource in

2005-03-09 Thread Jean Stamm
Hello, In a Struts app I use the standard DataSource interface to implement the connection pooling to my DB. I use it in my Actions, calling getDataSource with the request as argument like getDataSource(request, "datasourcename"). I also have a plug-in which puts an array of beans in the applic

RE: Is There a Tool for JSF?

2005-03-09 Thread Michael Oliver
We use Exadel's Eclipse4Web http://www.exadel.com/products_eclipse4web.htm Michael Oliver CTO Alarius Systems LLC 3325 N. Nellis Blvd, #1 Las Vegas, NV 89115 Phone:(702)643-7425 Fax:(702)974-0341 *Note new email changed from [EMAIL PROTECTED] -Original Message- From: Caroline Jen [mailto:

Re: MVC Frameworks

2005-03-09 Thread Dakota Jack
I understand, Simon. Believe me, I do. But, "knowing" and "saying" are two different things. On Wed, 9 Mar 2005 09:06:38 -0600, Simon Chappell <[EMAIL PROTECTED]> wrote: > Actually, it *can* be a liability to mention anything that management > don't want spoken of. For example: we're about to s

Re: Servlet and JSP dependencies for Struts, JSF and Shale

2005-03-09 Thread Hubert Rabago
Try http://struts.apache.org/userGuide/installation.html#Prerequisites - Hubert On Wed, 9 Mar 2005 09:27:06 -0600, Simon Chappell <[EMAIL PROTECTED]> wrote: > I need to pull a document together that lists the JSP and Servlet > versions required by each of the available versions of Struts, JSF an

RE: MVC Frameworks

2005-03-09 Thread Fergal O'Shea
A novel way of resolving differences with management, I'd say. I think that's generally frowned upon by most Human Resource departments. On Wed, 9 Mar 2005 07:17:54 -0800 (PST), Woodchuck <[EMAIL PROTECTED]> wrote: > no no no, you guys are playing the game wrong. > > i bring my 32oz Easton (t

Re: Is There a Tool for JSF?

2005-03-09 Thread Duncan Mills
Check out Oracle JDeveloper 10.1.3 preview - you can download that for free from http://www.oracle.com/technology/software/products/jdev/index.html This has both Struts and JSF visual modeling as well as JSP WYSIWYG editing. ( And no you don't need Oracle Application Server or database to use it

Servlet and JSP dependencies for Struts, JSF and Shale

2005-03-09 Thread Simon Chappell
I need to pull a document together that lists the JSP and Servlet versions required by each of the available versions of Struts, JSF and Shale. I have looked all over the Struts website and wiki, but I'm not finding what I'm looking for. Can anyone help? --

Re: MVC Frameworks

2005-03-09 Thread Simon Chappell
I think that's generally frowned upon by most Human Resource departments. On Wed, 9 Mar 2005 07:17:54 -0800 (PST), Woodchuck <[EMAIL PROTECTED]> wrote: > no no no, you guys are playing the game wrong. > > i bring my 32oz Easton (tm) black magic baseball bat to these meetings. > i don't have prob

  1   2   >