Re: message-resource help!

2005-03-11 Thread Manfred Wolff
How did you name your ressource-file and on which directory did you place it? Manfred wo_shi_ni_ba_ba wrote: hi folks, I am trying to use error message specified in the application resources I specified the following name=pair: newunit.failure = Failed to create a new {0}: {1} and then in my Ac

Re: html:form question

2005-03-11 Thread Erik Weber
Scott Purcell wrote: Hello, I have a login that I call and displays its initial presentation. I am using the line for when I submit its values. But I want to put in some default values into the initial presentation. So upon reading about it looks like I could use the following: I think the na

Re: why complicate? was: Eliminate Setup Actions

2005-03-11 Thread Tak Yoshida
Rick, I really appreciated that you have looked at my small idea. Please write or see the sample code. You must get something from it, if you like page oriented. OzStruts is totally different from other page oriented framework, because it runs on current Struts, meaning it's simple. I'm personally

RE: DynaActionForm

2005-03-11 Thread wo_shi_ni_ba_ba
David, thanks for the suggestion. I will try them. The problem disappeared magically the morning i walked into my office but anyway --- "David G. Friedman" <[EMAIL PROTECTED]> wrote: > Wo, > > I haven't used DynaActionForms in ages but these 2 > issues jump out at me: > > 1. You might stil

RE: Struts ActionForward to HTML anchor

2005-03-11 Thread David G. Friedman
Brian, May of us have tried to solve that same issue using anchors and found them unworkable. Using DOM and JavaScript has given the following working result (From good old[?] Dakota Jack, no less!): > --- Dakota Jack <[EMAIL PROTECTED]> wrote: Also, if you want similar things with other browse

Re: Validator with more than one module

2005-03-11 Thread Cliff Lam
If you not trying to use multi-module, you can try to include your all validation.xml into one config.xml. Lucky Cliff - Original Message - From: "Diego Espada" <[EMAIL PROTECTED]> To: Sent: Saturday, March 12, 2005 2:22 AM Subject: Validator with more than one module > Hi > > I'm tr

RE: DynaActionForm

2005-03-11 Thread David G. Friedman
Wo, I haven't used DynaActionForms in ages but these 2 issues jump out at me: 1. You might still need to add 'dynamic="true"' to your form-bean after the name or type attributes. I think this depends on the version of Struts. I'm pretty sure this is require for Struts v1.1 but shouldn't for Stru

message-resource help!

2005-03-11 Thread wo_shi_ni_ba_ba
hi folks, I am trying to use error message specified in the application resources I specified the following name=pair: newunit.failure = Failed to create a new {0}: {1} and then in my Action class I added an error like this: errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("newunit.failure",

RE: Deploy Issues on WebApp hosting site.

2005-03-11 Thread David G. Friedman
kjc, What is the code in your tile used to call your css? Where is it located in the webapp directory tree and under what name? What is the context/url (you can skip the hostname and just give the /whateverWebApp if you wish) you are using? And what do you see in the actual end result HTML page

Re: Zip of Struts v1.3?

2005-03-11 Thread Ted Husted
On Fri, 11 Mar 2005 20:25:45 -0500, Ted Husted <[EMAIL PROTECTED]> wrote: > There's some from earlier in the week here: > > * http://cvs.apache.org/builds/jakarta-struts/nightly/ Source: http://cvs.apache.org/builds/jakarta-struts/nightly/src/ -

Re: Zip of Struts v1.3?

2005-03-11 Thread Ted Husted
There's some from earlier in the week here: * http://cvs.apache.org/builds/jakarta-struts/nightly/ but everything's a bit torn up right now as we migrate to subprojects. If you have any questions regarding the nightly builds, which are unreleased code, please post to the DEV@ list. USER = Re

Re: Upload Patch for Struts v1.3

2005-03-11 Thread Ted Husted
Your patch -- your decisions :) Backward compatibility can be a relative term. The idea of having a patch is that people can try it with their own applications and say whether it works for them. We are deprecating, replacing, and removing features in the 1.x series. We just have to do things ste

error message and validation

2005-03-11 Thread wo_shi_ni_ba_ba
I know that by default if I specify errors.required = {0} is required in the message resource , struts validator will use this message for missing parameter that is required. But what if I want to have very different error msgs for different missing parameters? can this be done? for example, if

Upload Patch for Struts v1.3

2005-03-11 Thread Dakota Jack
"Okay!", he said, pulling up his britches with gnarled thumbs. I am going to submit a patch for Struts upload to v1.3 if I can get the committers to tell me what this patch must do. I assume that it must be backward compatible and that is it. Any other requirements? Jack -- "You can lead a h

Problem in Action Mapping

2005-03-11 Thread karthick . v
Hi I am pretty new to struts.so the problem i am quoting here may be little childish. Please bear with me. When i call an action class from my JSP, its reporting an error saying "Cannot retrieve mapping for action". The JSP that calls the action looks sthng like this

Zip of Struts v1.3?

2005-03-11 Thread Dakota Jack
Is there a daily zip of Struts v1.3 so that we can get a copy without learning the new SVN stuff? Or is there a way to access this with the old CVS? Thanks. Jack -- "You can lead a horse to water but you cannot make it float on its back." ~Dakota Jack~ ---

Re: Is Struts All right ?

2005-03-11 Thread Dakota Jack
Good point! ///;-) On Fri, 11 Mar 2005 13:52:20 -0600, Simon Chappell <[EMAIL PROTECTED]> wrote: > Does that mean that we only eliminate the lazy idiots from joining? > The fact that I got through shows a quality control issue right there! > ;-) > > > On Fri, 11 Mar 2005 10:54:44 -0800, Dakota

Re: Correct Prepopulate Method

2005-03-11 Thread Dakota Jack
As an aside and merely as a suggestion, Joel, you might want to cut out parts of the emails that are not relevant to your point. This cuts down on the size of the output stream and makes things easier to read too. See within: On Fri, 11 Mar 2005 12:39:49 -0700, Schuster Joel M Contr ESC/NDC <[E

Re: Substring of

2005-03-11 Thread Rick Reumann
Schuster Joel M Contr ESC/NDC wrote the following on 3/11/2005 4:50 PM: I can't seem to find a clean way of getting a substring of ... suggestions? Use JSTL instead. There really are no advantages I can think of to use bean:write vs c:out (Or just use a more recent servlet container like Tomcat 5

Re: using the validwhen validator

2005-03-11 Thread Niall Pemberton
Does this help? http://www.mail-archive.com/user@struts.apache.org/msg22433.html Niall - Original Message - From: "Reddy, Ajith" <[EMAIL PROTECTED]> To: Sent: Friday, March 11, 2005 8:45 PM Subject: using the validwhen validator Sorry for my previous incomplete mail. Here is the pr

Re: two struts-config.xml

2005-03-11 Thread Joe Germuska
Struts has to know how to rewrite action URLs, and it can only do that by using the url-pattern. Do you have a different which points /*.do to a different servlet configured with the other XML file? For what you're trying to do, Modules are probably the closest Struts feature which supports

Re: Correct Prepopulate Method

2005-03-11 Thread Dakota Jack
On Fri, 11 Mar 2005 12:09:25 -0800, Jesse Clark <[EMAIL PROTECTED]> wrote: > Joel, > > Here is a short description from the FAQ that starts to describe the > alternative that Jack mentioned below: > http://struts.apache.org/faqs/newbie.html#prepopulate. > > This approach basically means that you

RE: BRANCH: Typical Struts development team and distribution of tasks?

2005-03-11 Thread Kelly Harward
Not sure that there is a lot of value in throwing around any kind of empirical numbers since they will certainly vary greatly depending on numerous factors (the query you're executing, network latency, the actual RDBMS underneath, the amount of data in the database, proper use of indexes, etc.). Ho

RE: BRANCH: Typical Struts development team and distribution of tasks?

2005-03-11 Thread Kelly Harward
Not sure that there is a lot of value in throwing around any kind of empirical numbers since they will certainly vary greatly depending on numerous factors (the query you're executing, network latency, the actual RDBMS underneath, the amount of data in the database, proper use of indexes, etc.). Ho

RE: Struts ActionForward to HTML anchor

2005-03-11 Thread Scott Piker
I don't think you can do it quite in the manner that you're attempting, but you can achieve this behavior by doing the following: - in your action class, populate a request attribute when this page refresh occurs - forward back to your jsp as normal - in your jsp, check for the existence of this

Substring of

2005-03-11 Thread Schuster Joel M Contr ESC/NDC
I can't seem to find a clean way of getting a substring of ... suggestions?

Re: Validator with more than one module

2005-03-11 Thread Corey Probst
By adding a comma separated list of struts config files, you are not specifying multiple *modules*, just multiple config files. ValidatorResources are stored in the ServletContext after being read by the plugin. So, when struts-config-two is read, it overwrites the info stored for struts-config-o

Struts ActionForward to HTML anchor

2005-03-11 Thread Brian Bezanson
I'd like to know if it is possible to get a ActionForward to scroll my target page to an anchor on the page created with the . Problem Description -- I have a page in struts (rather large form) where I have a drop-down menu near the bottom with some choices. (AKA html:s

two struts-config.xml

2005-03-11 Thread Carl Smith
In my application I have two configuration file (1) struts-config.xml and (2) struts-app1.xml. I have this entry in the web.xml action /*.app1 When using this approach, I have a strange issue: For almost all the form submit, in the url the action will automatically apend .app1, example

using the validwhen validator

2005-03-11 Thread Reddy, Ajith
Sorry for my previous incomplete mail. Here is the problem again: Our problem is that we have a checkbox(ChangeAddredd) called "check here to enter and change address". Once this is checked there are some address fields that need to be entered. We want error messages to be displayed when user e

RE: Correct Prepopulate Method

2005-03-11 Thread Joe Germuska
--- I keep getting the impression that I've missed something in my understanding of how and more importantly why --- I want to understand, not just do things blindly. I understand that the ActionForm is intended to STORE and VALIDATE USER-ENTERED data (off the struts page)... but then there seems t

BRANCH: Typical Struts development team and distribution of tasks?

2005-03-11 Thread Leon Rosenberg
> P.S. I take issue with Leon's comment in this thread > regarding Hibernate's performance. I work on an app that has > very intense requirements for database IO (lots of data going > in and out) and even though we've rolled our own persistence > layer framework (for reasons other than performa

BRANCH: Typical Struts development team and distribution of tasks?

2005-03-11 Thread Leon Rosenberg
> P.S. I take issue with Leon's comment in this thread > regarding Hibernate's performance. I work on an app that has > very intense requirements for database IO (lots of data going > in and out) and even though we've rolled our own persistence > layer framework (for reasons other than performa

Struts Flow: parallel JS files

2005-03-11 Thread Timo -Blazko- Boewing
Hello List, I plan to use Struts Flow plugin in order to realise a wizard for a survey tool. However, the survey tool can handle different survey definitions (depending on an URL parameter) at once. Thus, using a simple flow control file (the server side JavaScript) is not that ideal, because the

Using validwhen with jdeveloper 10g

2005-03-11 Thread Reddy, Ajith
Hello, We have had problems using struts "validwhen" validator with jdeveloper 10g all last week. Traditionally jdeveloper 10g is shipped with struts 1.1 but after reading that "validwhen" is what we should be using instead of "requiredif" we decided to plugin sturts 1.2.4 into jdev 10g and this w

Re: Correct Prepopulate Method

2005-03-11 Thread Jesse Clark
Joel, Here is a short description from the FAQ that starts to describe the alternative that Jack mentioned below: http://struts.apache.org/faqs/newbie.html#prepopulate. This approach basically means that you end up with two actions per form/jsp which will increase your maintenance work a little

Re: Is Struts All right ?

2005-03-11 Thread Simon Chappell
Does that mean that we only eliminate the lazy idiots from joining? The fact that I got through shows a quality control issue right there! ;-) On Fri, 11 Mar 2005 10:54:44 -0800, Dakota Jack <[EMAIL PROTECTED]> wrote: > They have made the Struts mailing lists hard to find on purpose, > believe it

Re: Typical Struts development team and distribution of tasks?

2005-03-11 Thread Frank W. Zammetti
Same here. It's kind of odd because we are a very large organization, yet, it's still "one guy doing everything" kind of a place. The only thing we don't do any more is actual server administration, but we used to. We're also moving towards not doing DBA work, but that's still a ways off. G

RE: Correct Prepopulate Method

2005-03-11 Thread Schuster Joel M Contr ESC/NDC
Ok, I understand. I'm just really trying to understand this. http://resonus.net/wiki/uploads/strutsq.jpg Here's a link to a little picture that I put together because that happens to be how I think. Please tell me what I'm missing in my understanding of what struts is all about. 1. Standard lo

Re: Typical Struts development team and distribution of tasks?

2005-03-11 Thread Jeff Beal
> In practice, there are mutliple iterations of this, and I couldn't > conceive of it working unless the framework person and the developer > person work well together and are close both in the organization chart > and geographically. You can't get any closer than the two being the same person! :

Re: efficiency question

2005-03-11 Thread Jeff Beal
I cannot imagine there being a significant performance difference in the two scenarios. They are practically the same thing. On Fri, 11 Mar 2005 10:51:22 -0800 (PST), wo_shi_ni_ba_ba <[EMAIL PROTECTED]> wrote: > Are there any difference in performance between the > following two scenarios? > 1.

Re: Is Struts All right ?

2005-03-11 Thread Diego Espada
so is not using anymore ?? THAT i didn't know !! Thanks !! On Fri, 11 Mar 2005 12:59:13 -0600, Joe Germuska <[EMAIL PROTECTED]> wrote: > At 3:26 PM -0300 3/11/05, Diego Espada wrote: > >Ok, > > > >the problem with this is that we cannot look for common problems in > >the list. It doesn't allow yo

Re: Typical Struts development team and distribution of tasks?

2005-03-11 Thread Neil Erdwien
We don't even try to have the development people do the web page. In theory the process is: 1. Framework/HTML/User interface person creates an HTML version of the page that includes as manny of the options and alternatives as possible. 2. Application developer builds the business logic and c

Re: Is Struts All right ?

2005-03-11 Thread Joe Germuska
At 3:26 PM -0300 3/11/05, Diego Espada wrote: Ok, the problem with this is that we cannot look for common problems in the list. It doesn't allow you to search, and, for example, if you click in "by subject" in the mailing list, you get this: The problem with which? You are searching using Eyebrows

Re: Correct Prepopulate Method

2005-03-11 Thread Dakota Jack
I may be wrong, Joel, but I think Joe and Hubert are thinking of you instantiating a form that is not listed in your action mapping. You can readily figure out why they think this way. You can, as you seem to want to, avoid this complication that actually sort of takes you out of the reason for t

RE: Correct Prepopulate Method

2005-03-11 Thread Schuster Joel M Contr ESC/NDC
I've been looking into the RequestProcessor and RequestUtils classes and it looks like as long as my action mapping specifies a name, even on a setup action goes through the same process... calling createActionForm(). Thus there is no reason to go through my own ModuleConfig again. -Original

Re: Is Struts All right ?

2005-03-11 Thread Dakota Jack
They have made the Struts mailing lists hard to find on purpose, believe it or not. The rationale is on the lists. Jack On Fri, 11 Mar 2005 15:04:35 -0300, Diego Espada <[EMAIL PROTECTED]> wrote: > Hello ? I'm totally surprised about the current state of the Struts web > site... > > 1) I coul

efficiency question

2005-03-11 Thread wo_shi_ni_ba_ba
Are there any difference in performance between the following two scenarios? 1. creating and storing an attribute in the request in the action.execute() then use the attribute as a bean by struts from the jsp 2. creating the attribute store it in the request as scriplet in the jsp page, then use th

Re: Struts Business Logic :: Best Practices

2005-03-11 Thread Dakota Jack
On Fri, 11 Mar 2005 13:09:58 -0500, Ted Husted <[EMAIL PROTECTED]> wrote: > > [http://raibledesigns.com/page/rd?anchor=appfuse_refactorings_part_ii_spring] > > Matt refactored Appfuse "in Anger" for Spring and has never looked back :) > What does this mean? Was AppFuse for something else ori

Re: Struts Business Logic :: Best Practices

2005-03-11 Thread Dakota Jack
Rod Johnson's progress is from the latter book to the former one. Spring is in the middle. On Fri, 11 Mar 2005 19:27:04 +0100, Leon Rosenberg <[EMAIL PROTECTED]> wrote: > > > If anyone is actually interested in IoC containers, check out Rod > > Johnson's book, "J2EE Development without EJB". >

Re: Correct Prepopulate Method

2005-03-11 Thread Joe Germuska
Hubert has already pretty well described good coding practice for getting an ActionForm instance. Note that the pages you cited may have been written before the FormBeanConfig object acted as a factory, which is a relatively recent enhancement. Really, though, I think there should probably be

replacing attribute in session

2005-03-11 Thread wo_shi_ni_ba_ba
if I do a request.getSession().setAttribute(name,val1); then request.getSession().setAttribute(name,val2) would the val1 get garbage collected? So if I use session to store user, I don't really need to invalidate the session when the user log in again, right? thanks ___

Re: Struts Business Logic :: Best Practices

2005-03-11 Thread Leon Rosenberg
> If anyone is actually interested in IoC containers, check out Rod > Johnson's book, "J2EE Development without EJB". ok, bought... :-) Expert One-on-One J2EE Development without EJB what about Expert One-to-One J2EE Design and Development ? regards Leon --

Re: Is Struts All right ?

2005-03-11 Thread Diego Espada
Ok, the problem with this is that we cannot look for common problems in the list. It doesn't allow you to search, and, for example, if you click in "by subject" in the mailing list, you get this: VelocityServlet: Error processing the template General error: Got error 127 from table handler org.a

Re: Is Struts All right ?

2005-03-11 Thread Joe Germuska
At 3:04 PM -0300 3/11/05, Diego Espada wrote: Hello ? I'm totally surprised about the current state of the Struts web site... 1) I couldn't find the address to subscribe to this list. I just made it up, imagining that it would be the same as the Tomcat list. 2) The Mailing list archive functional

Survey on Understanding Code

2005-03-11 Thread Vineet Sinha
Hi, We are running a set of small surveys, in an attempt to understand developers problems when attempting to understand code. Results from this survey will be used in refining (open-source) tools that we are building. If you have looked at the code of any of the (Java) projects below, we woul

Validator with more than one module

2005-03-11 Thread Diego Espada
Hi I'm trying to use the validator with one that more Struts module, but I've found that if you've more than one module, only one of them load the validation xmls correctly, the others don't. Having this in the web.xml /WEB-INF/struts-config-one.xml, /WEB-INF/struts-config-two.xml: Each one loa

RE: Is Struts All right ?

2005-03-11 Thread Benedict, Paul C
Diego, I agree. It is nearly impossible to to find the Struts Mailing list on the Struts website unless you do some heavy digging. I could only find it after giving up and relying on google to find it for me. Anyway, here is the address for the mailing list: http://struts.apache.org/mail.html Th

Re: Struts Business Logic :: Best Practices

2005-03-11 Thread Ted Husted
Well, a framework is a semi-complete application [Johnson]. A lightweight container is essentially an object factory, as you implied. Struts is more than a framework. It's also a container that manages the lifecycle of the objects created by the struts-config. You could, for example, use Spring t

RE: Typical Struts development team and distribution of tasks?

2005-03-11 Thread Kelly Harward
You've underscored one of the most compelling aspects of an MVC architecture. The inherent separation of concerns allows teams to be formed where members have differing skill sets and yet the architecture helps to define roles and responsibilities. At the most cursory level, it sounds like you're i

RE: Typical Struts development team and distribution of tasks?

2005-03-11 Thread Kelly Harward
You've underscored one of the most compelling aspects of an MVC architecture. The inherent separation of concerns allows teams to be formed where members have differing skill sets and yet the architecture helps to define roles and responsibilities. At the most cursory level, it sounds like you're i

Re: Typical Struts development team and distribution of tasks?

2005-03-11 Thread Ted Husted
I still see both. The larger team, the more likely it is that people start to specialized. But it is not unusual to see teams where everyone can do everything, from code HTML to code Java to code SQL. -Ted. On Fri, 11 Mar 2005 16:38:06 +, Lawrie Gallardo <[EMAIL PROTECTED]> wrote: > Do most c

Is Struts All right ?

2005-03-11 Thread Diego Espada
Hello ? I'm totally surprised about the current state of the Struts web site... 1) I couldn't find the address to subscribe to this list. I just made it up, imagining that it would be the same as the Tomcat list. 2) The Mailing list archive functionality is at 20 % at best. You can't search messag

Re: Help With Action

2005-03-11 Thread Dakota Jack
The color of the page is not that helpful. Code packed pages can be white. Is there any code on the page? Have you checked the HTML source code? What's there? When you know that, then you have some data to work with. Jack On Fri, 11 Mar 2005 10:22:29 -0600, Scott Purcell <[EMAIL PROTECTE

Re: Typical Struts development team and distribution of tasks?

2005-03-11 Thread Leon Rosenberg
I don't know whether we are typical... 2 senior developers, one mainly responsible for the architecture and backend (everything behind an action) and another one for frontend (tiles, taglibs, action-hierarchy, etc). 1 developer / database responsible - the guy who writes sql and persistence serv

RE: Typical Struts development team and distribution of tasks?

2005-03-11 Thread Mark Benussi
I agree, a good J2EE developer can take a UI from a designer (A Photoshop file or the like) and return a pixel perfect html representation as well as meeting the MVC business requirements. -Original Message- From: Radu Badita [mailto:[EMAIL PROTECTED] Sent: 11 March 2005 17:20 To: Struts

Re: Correct Prepopulate Method

2005-03-11 Thread Dakota Jack
What would have been ideal would have been to allow Struts configuration to tie more than one ActionForm to an Action. Then page-centric and action-centric thinkers would have had common ground. As things stand, you can avoid much of the sophistication in what Hubert is suggesting by having an Ac

RE: Help With Action

2005-03-11 Thread Scott Purcell
Found the problem thanks to Joe Germuska, My inputForward was "true" and this was the cause of my problem. Read what he sent me. I figure this will probably happen to someone else, so here is some great information. Thanks again Joe, the most common causes of "white screens" are when the proce

Re: Correct Prepopulate Method

2005-03-11 Thread Dakota Jack
There is no right way. However, if you think Action-centric rather than page-centric everything is really easy. If you do this, you won't think of the ActionForm as some sort of mirror of the JSP/HTML form which stands between the Action and the form. Think, rather, of the Action as something th

Re: Typical Struts development team and distribution of tasks?

2005-03-11 Thread Radu Badita
Good question! I barely can wait for answers from the other guys out there; cuz in what I saw so far, the Java Developers are supposed to be able to turn static visual models (often not even html) into Struts web applications, finding "clever" solutions (usually good ol' javascript) to UI design

Re: Upper case converter in the view

2005-03-11 Thread Jeff Beal
As a side note, be aware that the text-transform CSS property doesn't change case on letters, they just "look" upper case. Our app uses the text-transform property to put all form fields in upper case, and I've got a bug to fix because the submitted field value wasn't actually upper-case values.

RE: Correct Prepopulate Method

2005-03-11 Thread Schuster Joel M Contr ESC/NDC
Thanks... I'll keep playing around using your suggestions. -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Friday, March 11, 2005 10:13 AM To: Struts Users Mailing List Subject: Re: Correct Prepopulate Method On Fri, 11 Mar 2005 09:50:59 -0700, Schuster Joel M Con

Re: Correct Prepopulate Method

2005-03-11 Thread Hubert Rabago
On Fri, 11 Mar 2005 09:50:59 -0700, Schuster Joel M Contr ESC/NDC <[EMAIL PROTECTED]> wrote: > I'm not sure I understand the need for the moduleConfig and such for > creating the DynaActionForm. The FormBeanConfig object provides access to the createActionForm() method. That's the object you actu

RE: Correct Prepopulate Method

2005-03-11 Thread Schuster Joel M Contr ESC/NDC
Ok, then what am I missing? I have a jsp/html form that needs to be 'pre-populated' with dynamic fields from a table in a database that simply has name-value pairs. I'm willing to accept that I'm looking at the world the wrong way... what's the right way? -Original Message- From: Dakota

RE: Correct Prepopulate Method

2005-03-11 Thread Schuster Joel M Contr ESC/NDC
I'm not sure I understand the need for the moduleConfig and such for creating the DynaActionForm. If we've specified the name="myForm" in the action config then shouldn't the form coming into the execute be and empty version of my form? Thus allowing: execute( ActionMapping mapping, ActionFo

Re: Correct Prepopulate Method

2005-03-11 Thread Dakota Jack
Too bad ActionForms were called "ActionForms" rather than something like "ActionData", "ActionState", or "ActionContext". The html pages are "populated", I guess, with data. If you try to map ActionForms to html or JSP forms, I think your whole way of looking at the problems becomes completely sk

Typical Struts development team and distribution of tasks?

2005-03-11 Thread Lawrie Gallardo
Do most companies developing Struts applications tend to employ Web Designers, or is it more common for Struts development to be undertaken by a team consisting solely of Java Developers (who therefore need strong knowledge of HTML, Struts Tags, JSTL, CSS, JavaScript, etc as well as J2EE)? Alon

Re: Correct Prepopulate Method

2005-03-11 Thread Hubert Rabago
You would usually do prepopulation in a setup form. Which scope you place the form in depends on how you configure the action that the form will be submitted to. For example, if you have "/showPage.do" and "/submitForm.do", where submitForm is configured as: Then in the action for showPage

Re: Struts Business Logic :: Best Practices

2005-03-11 Thread Duong BaTien
Ted Husted wrote: As to business objects, the usual advice is to use Plain Old Java Objects (POJOs). The current MailReader example application is an excellent example of creating a set of interfaces to represent business logic, then instantiating a set of classes to implement the business logic. T

RE: Help With Action

2005-03-11 Thread Scott Purcell
Yes, they should be the same, I have been changing the paths and watching the log. And no matter what I do, the log shows it tries to forward to the path under "input". scott -Original Message- From: Schuster Joel M Contr ESC/NDC [mailto:[EMAIL PROTECTED] Sent: Friday, March 11, 2005 10

RE: Help With Action

2005-03-11 Thread Schuster Joel M Contr ESC/NDC
It seems that your input is: /dealer/jsp/login.jsp And your Failure forward is: /jsp/login.jsp Is there a reason it's different? Validation is different and happens before Action.execute where your forward would happen on Failure. -Original Message- From: Scott Purcell [mailto:[EMAIL PRO

RE: Help With Action

2005-03-11 Thread Scott Purcell
I guess I could do that, but the docs state that if the validation fails, request will go to the "input" tag. and I do not see how to do a redirect on that. Anyone? Scott -Original Message- From: Schuster Joel M Contr ESC/NDC [mailto:[EMAIL PROTECTED] Sent: Friday, March 11, 2005 10:16

Correct Prepopulate Method

2005-03-11 Thread Schuster Joel M Contr ESC/NDC
I've read a number of articles about correct pre-populate forms methods, including the following: 1. http://www.javaworld.com/javaworld/jw-09-2004/jw-0913-struts-p3.html 2. http://struts.apache.org/faqs/newbie.htm

RE: Help With Action

2005-03-11 Thread Schuster Joel M Contr ESC/NDC
?? maybe ?? -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: Friday, March 11, 2005 9:13 AM To: user@struts.apache.org Subject: Help With Action Hello, I have the following action setup in my struts-config.xml file: I am failing the ActionFor

Help With Action

2005-03-11 Thread Scott Purcell
Hello, I have the following action setup in my struts-config.xml file: I am failing the ActionForm so my request should go to the "input" tag. And according to the Logger it does. 2005-03-11 10:12:12,349 INFO com.ddi.dealer.bean.LoginForm - XXX setting username= 2005-03-11 10

Re: Struts Business Logic :: Best Practices

2005-03-11 Thread Leon Rosenberg
> :) Basically, the same reason web applications and struts applications > need a container. :) hmm... disagreed. Web applications need a container so they don't need to handle the http protocol theirself, handle jsps, taglibs and all the other stuff. struts itself is a framework, not a container.

RE: Upper case converter in the view

2005-03-11 Thread Benedict, Paul C
Agreed. Good catch Mark! You could also use the text-transform property. -Original Message- From: Mark Benussi [mailto:[EMAIL PROTECTED] Sent: Friday, March 11, 2005 10:29 AM To: 'Struts Users Mailing List' Subject: RE: Upper case converter in the view Your could use css -Original

RE: Upper case converter in the view

2005-03-11 Thread Mark Benussi
Your could use css -Original Message- From: Benedict, Paul C [mailto:[EMAIL PROTECTED] Sent: 11 March 2005 15:22 To: 'Struts Users Mailing List' Subject: RE: Upper case converter in the view Brian, I believe the Jakarta-Taglibs Project will be able to do this: http://jakarta.apache.org

Re: Of Struts and Tiles and Portals

2005-03-11 Thread Matt Raible
On that note, how about how to install Jetspeed and deploy a Struts app to it? ;-) http://raibledesigns.com/page/rd? anchor=installing_jetspeed_and_deploying_struts Matt On Mar 11, 2005, at 5:38 AM, Ted Husted wrote: If you wanted to use "conventional" portlets with Struts, you're suppose to a

RE: Upper case converter in the view

2005-03-11 Thread Benedict, Paul C
Brian, I believe the Jakarta-Taglibs Project will be able to do this: http://jakarta.apache.org/taglibs/doc/string-doc/intro.html http://jakarta.apache.org/taglibs/doc/string-doc/string-1.1.0/index.html Thanks, Paul -Original Message- From: Brian McGovern [mailto:[EMAIL PROTECTED] Sent

Upper case converter in the view

2005-03-11 Thread Brian McGovern
Has anyone tried to use the bean:write tag to convert the output to all Upper or all lower case? Thanks -B - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts Business Logic :: Best Practices

2005-03-11 Thread Ted Husted
:) Basically, the same reason web applications and struts applications need a container. :) Being able to instantiate objects using a XML driven factory is very, very convenient, and make programing strategies possible that would be otherwise impractical. Consider how difficult a Struts applicati

Re: Struts Business Logic :: Best Practices

2005-03-11 Thread Ted Husted
Yep. Lately, I've started writing inner classes to access the business logic for a particular transaction script. The inner classes take input in a way conventient to the client, (say, by passing in an ActionForm,) use that input to interact with the business classes, and return the output in a w

html:form question

2005-03-11 Thread Scott Purcell
Hello, I have a login that I call and displays its initial presentation. I am using the line for when I submit its values. But I want to put in some default values into the initial presentation. So upon reading about it looks like I could use the following: Because in my struts-config.xm

[ANNOUNCEMENT] XDemo petstore 1-0-4

2005-03-11 Thread mario nee
XDemo petstore 1-0-4 Struts + XMoon + Hibernate + JSTL http://www.demozone.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts Business Logic :: Best Practices

2005-03-11 Thread Leon Rosenberg
Why do you need a container? Or why do I need a container? Leon On Fri, 2005-03-11 at 07:27 -0600, NetSQL wrote: > I used Hivemind and switch to CoR, which I consider a light weight > container. > Good article on CoR at onJava.com. > > .V > > Manfred Wolff wrote: > > > > Ted. > > > > +1 to

Re: Struts Business Logic :: Best Practices

2005-03-11 Thread NetSQL
I used Hivemind and switch to CoR, which I consider a light weight container. Good article on CoR at onJava.com. .V Manfred Wolff wrote: Ted. +1 to this approach. I prefer leightweight container such as hivemind to manage the entrypoints to the business logic. Hivemind is easy to learn and you

Re: Of Struts and Tiles and Portals

2005-03-11 Thread NetSQL
Google on Tiles 101 and 201 artilces. 1up.com is a portal done in struts, you can see like 12 tiles per page (it has 100s of pages and each of the 12 tiles per page is CMS db driven, ex: top 10 games in category) It was done open source projeect basicPortal (if you have a big struts project and

Re: Struts Business Logic :: Best Practices

2005-03-11 Thread Larry Meadors
Yes. You are describing almost exactly how I write my struts code. Here are the components I would use to maintain a Customer table: - com.myorg.domain.bean.Customer.java - com.myorg.domain.dao.CustomerDao.java (interface) - com.myorg.domain.service.CustomerService.java (interface) - com.myor

Re: Of Struts and Tiles and Portals

2005-03-11 Thread Ted Husted
If you wanted to use "conventional" portlets with Struts, you're suppose to able to do that. * [http://portals.apache.org/] * [http://portals.apache.org/jetspeed-2/multiproject/portals-bridges-struts/] -- HTH, Ted. On Thu, 10 Mar 2005 14:03:27 -0700, Wendy Smoak <[EMAIL PROTECTED]> wrote: > My n

  1   2   >