Re: tiles problem with findForward

2002-10-14 Thread Cedric Dumoulin
Hi, I suspect that the Tiles definition factory is not properly initialized. The initialization has changed between Struts1.0 and struts1.1b2, to follow the new struts request processing. You need now a TilesRequestProcessor which is set by the TilesPlugin. You don't need the ComponentA

Tiles - Forward problem

2002-10-14 Thread Heligon Sandra
I have overridden the TilesREquestProcessor in order to test if a user is authenticated for each request, but it doesn't work: protected boolean processPreprocess(HttpServletRequest request, HttpServletResponse response) { // Get the session object

Re: When *exactly* does reset get called?

2002-10-14 Thread Markus Herrmann
On 12 Oct 2002 at 10:25, David M. Karr wrote: > From the original description, it sounds like your "reset" method is using > business logic to get data values to populate your fields with. > > From Antoni's explanation of how "reset" is used, I hope it's clear that won't > work very well. > > T

RE: data containing html tag?

2002-10-14 Thread Chanoch
I would recommend preprocessing your content. You would then need to choose filter=false in bean:write. This means that the tags aren't made safe by substituting html reserved chars with safe equivalents thus giving you
chanoch -

Re: Tiles and tabbed display

2002-10-14 Thread Cedric Dumoulin
Hi, You are right that the actual code doesn't works well if you use an action URL instead of a jsp URL. The solution is to not set the page URI at all when computing the tabs href. Like this, the browser use the original URL. To do this, simply replace the offending line by: // compu

RE: Struts and state information

2002-10-14 Thread Chanoch
Cookies is default for jsp containers, jsp only goes to session ids if it cant get a hold of the cookies. X is automatically generated by the container if a session is requested, either directly by calling request.getSession() or by configuring the specific jsp page for sessions. I think html:link

RE: When *exactly* does reset get called?

2002-10-14 Thread Chanoch
This is execution path (is that correct term?): Identify the path to select mapping, Set the locale Set the content-type and non caching headers Preprocess Identify mapping Check if a role is required to perform the action Retrieve or create the form and store in scope Call reset() Populate the f

[OT] What is package commons-services.jar

2002-10-14 Thread Emmanuel Boudrant
Does anybody can explain me in few word what is package commons-services.jar ? Thx, -emmanuel ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com -- To unsubscribe, e-mail:

RE: [OT] What is package commons-services.jar

2002-10-14 Thread Chanoch
I think it allows you to discover system services and java classes - probably using some kind of naming convention that the service then translates to the actual resource chanoch - The information transmitted is intended only for the

Re: [OT] : javascript revival?

2002-10-14 Thread Gemes Tibor
> Konqueror ... doesn't. I'm sorry - I run KDE, but there's a *reason* I Since version 3.0 it's OK imho. Tib -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: [OT] : javascript revival?

2002-10-14 Thread Eddie Bush
Gemes Tibor wrote: >>Konqueror ... doesn't. I'm sorry - I run KDE, but there's a *reason* I >> >Since version 3.0 it's OK imho. > Sorry to say - it's 3.0.0-12 I'm running :-/ and it seems deficient to me. I can do all things, unhindered in Mozilla, whereas there were some sites which flat did

Re: [OT] : javascript revival?

2002-10-14 Thread Gemes Tibor
> Sorry to say - it's 3.0.0-12 I'm running :-/ and it seems deficient to > me. I can do all things, unhindered in Mozilla, whereas there were some > sites which flat did not work under Konqueror. I can't remember now > which specific funcational areas I found lacking. I'll have to look > again

The best practices regarding secure JSP and Action classes

2002-10-14 Thread Hoang, Hai
I want to secure the admin portion of my application from unauthorized users. What is the best way to achieve this task? Should I include a "CheckUser" tag on every jsp pages and call a "CheckUser" function on every single action class? I don't want the user to just key in the direct url of th

Re: [OT] : javascript revival?

2002-10-14 Thread Eddie Bush
Gemes Tibor wrote: > Sorry to say - it's 3.0.0-12 I'm running :-/ and it seems deficient to > >>me. I can do all things, unhindered in Mozilla, whereas there were some >>sites which flat did not work under Konqueror. I can't remember now >>which specific funcational areas I found lacking. I'll

Re: Tiles - Forward problem

2002-10-14 Thread Antoni Reus
Hi, A Dilluns 14 Octubre 2002 10:59, Heligon Sandra va escriure: > I have overridden the TilesREquestProcessor in order to test > if a user is authenticated for each request, but it doesn't work: > > protected boolean processPreprocess(HttpServletRequest request, > HttpServletRespons

RE: The best practices regarding secure JSP and Action classes

2002-10-14 Thread Chanoch
Using sessions? Have you used servlet roles before? chanoch - The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retrans

Struts Tag to insert URI?

2002-10-14 Thread Smith, Johnathan M.
I don't want to hard code the URI into my JSP pages on where the JSP page should post back to. Does struts have a tag that I can insert into my JSP page so struts will insert the URI that was requested for this page -- To unsubscribe, e-mail: For additional commands,

Re: The best practices regarding secure JSP and Action classes

2002-10-14 Thread Eddie Bush
- setup container-managed authentication - as a server-configured service - as a filter (see securityfilter.sourceforge.net) - see your servlet container user guide for setup of non-filter-based solution - in your web.xml - declare the roles you will use - declare the URLs etc

RE: Tiles - Forward problem

2002-10-14 Thread Heligon Sandra
I only have to not cast the result of the findForwardConfig method ? Sandra -Original Message- From: Antoni Reus [mailto:[EMAIL PROTECTED]] Sent: 14 October 2002 16:39 To: Struts Users Mailing List Subject: Re: Tiles - Forward problem Hi, A Dilluns 14 Octubre 2002 10:59, Heligon San

DAO or ... ?

2002-10-14 Thread Kevin Viet
My question is a web app design question. What pattern you guys follow when you want to save a domain object in the database ?: - use the DAO pattern of java blueprint (persistence layer is called into classes) - call to persistence statements into action code : // store examp

RE: The best practices regarding secure JSP and Action classes

2002-10-14 Thread Hoang, Hai
I already have my own database driven security model. Once a user logon I already know his role. But the problem is that how do I make this security model to work with the container-managed model so I don't have to check every on single page. Hai -Original Message- From: Eddie Bush

RE: DAO or ... ?

2002-10-14 Thread Lacerda, Wellington (AFIS)
Hi Kevin Avoid persistence in Action code as much as you can. This is the general recommendation. Wellington Silva Author of "JSP and Tag Libraries for Web Development" FAO of the UN - Consultant -Original Message- From: Kevin Viet [mailto:[EMAIL PROTECTED]] Sent: Monday, October 14, 2

repeating input fields

2002-10-14 Thread Kevin HaleBoyes
I know this has been asked before but I'm unable to find anything in the archive - probably not using the right search terms... I'm trying to create a form that allows the user to input a list of strings. Kind of like a detail block (of a master-detail relationship). So I have public class L

Re: DAO or ... ?

2002-10-14 Thread V. Cekvenich
"Avoid persistence in Action code as much as you can." Yes. And a way to do that is to say in action something like: formBean.save() where the formBean has something like this in save() {getDAO().update()} and the DAo does the save for the bean. .V Lacerda, Wellington (AFIS) wrote: > Hi Kevin

RE: DAO or ... ?

2002-10-14 Thread Andrew Hill
So where should one invoke the persistance layer? -Original Message- From: Lacerda, Wellington (AFIS) [mailto:[EMAIL PROTECTED]] Sent: Monday, October 14, 2002 22:51 To: 'Struts Users Mailing List' Subject: RE: DAO or ... ? Importance: High Hi Kevin Avoid persistence in Action code as

RE: The best practices regarding secure JSP and Action classes

2002-10-14 Thread Alex Paransky
Just use in your web.xml deployment descriptor. For example: Private resources /private member NONE The above will make all pages/actions/anything in app/private require a logon. You wi

Re: [OT] : javascript revival?

2002-10-14 Thread Gemes Tibor
2002. október 14. 16:31 dátummal Eddie Bush ezt írtad: > Which browsers do you build against? ... and what functional areas do > you find you still have to test in other browsers? I haven't even I meant IE. Actually unlike most webdevelopers I know I do not use IE during the devel period. > c

Re: The best practices regarding secure JSP and Action classes

2002-10-14 Thread Eddie Bush
It's not a question of making your model work with CMA. You would use one or the other. Most likely (unless you have "odd" needs), the functionality provided by CMA will suffice to meet your goals. Once you have CMA setup there is *one* hit to authenticate the user - and that information is

Re: DAO or ... ?

2002-10-14 Thread Kevin Viet
Le lun 14/10/2002 à 16:55, V. Cekvenich a écrit : > "Avoid persistence in Action code as much as you can." > Yes. > And a way to do that is to say in action something like: > > formBean.save() > > where the formBean has something like this in save() {getDAO().update()} > > and the DAo does the

Re: The best practices regarding secure JSP and Action classes

2002-10-14 Thread V. Cekvenich
Use JDBC relms that read your db. Hoang, Hai wrote: > I already have my own database driven security model. Once a user logon I > already know his role. But the problem is that how do I make this security > model to work with the container-managed model so I don't have to check > every on singl

RE: DAO or ... ?

2002-10-14 Thread Chappell, Simon P
You invoke your persistence code in the same place that you would invoke any other code ... not in the Action! Write all your core application code (business rules, persistence, communications etc) in a way that has no connection to the view portion of your system and then create a API to it.

RE: repeating input fields

2002-10-14 Thread Alex Paransky
What you are doing is fine for layout, however, when you hit save how is struts supposed to know that id is supposed to map to LoanForm.purposes[??].id, or that descriptions maps to LoanForm.purposes[??].description. It does not, so nothing is set in to your array. You must emit your properties

RE: DAO or ... ?

2002-10-14 Thread Andrew Hill
Dont know that I like the idea of tying the form bean to the persistance layer so tightly. (Although admitedly my own formbeans know a wee bit more than they ought to about the persistance stuff!) -Original Message- From: news [mailto:[EMAIL PROTECTED]]On Behalf Of V. Cekvenich Sent: Mond

RE: DAO or ... ?

2002-10-14 Thread Wendy Smoak
> PeristenceLayer pl = getPerstitenceLayer(); > pl.save(domainObject); > But I'v read that the domain objects needn't know that are persitent, > if you implement a save method that means that ur object know it can be > persisted In that example, the domainObject still doesn't have to know if/how

Re: [OT] : javascript revival?

2002-10-14 Thread Eddie Bush
Gemes Tibor wrote: >2002. október 14. 16:31 dátummal Eddie Bush ezt írtad: > >>Which browsers do you build against? ... and what functional areas do >>you find you still have to test in other browsers? I haven't even >> >I meant IE. Actually unlike most webdevelopers I know I do not use IE duri

RE: DAO or ... ?

2002-10-14 Thread Andrew Hill
But you still call the API from the action right - is this not invoking the functionality that persists your data? Seems a bit like semantic juggling to me... (after all the persistance layer is just an abstraction API on top of writing to db/disk/punchcard itself...) ;-) I would however agree t

RE: DAO or ... ?

2002-10-14 Thread Kevin Viet
Le lun 14/10/2002 à 17:10, Wendy Smoak a écrit : > > PeristenceLayer pl = getPerstitenceLayer(); > > pl.save(domainObject); > > But I'v read that the domain objects needn't know that are persitent, > > if you implement a save method that means that ur object know it can be > > persisted > > In t

RE: DAO or ... ?

2002-10-14 Thread Chappell, Simon P
Andrew, >-Original Message- >From: Andrew Hill [mailto:[EMAIL PROTECTED]] >Sent: Monday, October 14, 2002 10:16 AM >To: Struts Users Mailing List >Subject: RE: DAO or ... ? > > >But you still call the API from the action right - is this not >invoking the >functionality that persists your

I cannot seem to be able to ost to the list.

2002-10-14 Thread Jan Fetyko
Can somebody check it out please ? (If this goes through of'course) I did reply to number of messages, but it never got it into the list neither to the archive on www.mail-archive.com Jf -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: I cannot seem to be able to ost to the list.

2002-10-14 Thread James Mitchell
We got that one! James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org > -Original Message- > From: Jan Fetyko [mailto:[EMAIL PROTECTED]] > Sent: Monday, October 14, 2002 10:26 AM > To: struts > Subject: I cannot seem to be able to ost to the list. > > > Can

Best practices using value objects

2002-10-14 Thread Roy . Stephan
"Best practices using value objects" I still have questions regarding best practices, the use value object and of the package. How would you convert a value object to a form bean if a property of the VO is a list of other object that would need to be converted to a form? Here is an example of w

Re: I cannot seem to be able to ost to the list.

2002-10-14 Thread Eddie Bush
Sometimes it's just slow. Check your "Sent" folder to make sure you actually sent the message, and make sure you don't receive anything from the MAILER-DAEMON saying it bounced. If those two things are true then most likely it's just taking a while to be shown. I have this happen a lot late

Validator XML error in logs

2002-10-14 Thread Bhamani, Nizar A TL56E
I have setup my struts application to use the StrutsValidator Plugin. As directed, the validator-rules.xml file looks something like : --- http://jakarta.apache.org/struts/dtds/validation_1_1.dtd";> ...

RE: [ANNOUNCE] struts-layout 1.0b1

2002-10-14 Thread Tal Lev-Ami
First of all, great job! This looks like a very useful extension. I tried to download and compile it and ran into trouble with the struts-menu package. I tried to download the struts-menu package from http://husted.com/struts/resources/struts-menu.zip but it is old and refers to org.apache.struts.

Re: Extending DynaValidatorForm

2002-10-14 Thread Jan Fetyko
Understood, however the problem I'm facing is that I have an ArrayList of Objects that I'd like to pass to the "EditProd" form , within this form the Method would create a String separated by some delimiter. This value would be then passed to the JSP to store in a field. Eventualy the "EditP

Jakarta Library Versions Used In Struts 1.1 B2

2002-10-14 Thread Hohlen, John
My team likes to keep track of what versions they're using of a third party libraries (.JAR files). The Struts 1.1B2 release is dependent on a dozen or so Jarkarta libraries. How can I determine which version of each library I got when I downloaded Struts 1.1 B? More specifically, which version

Re: Struts and state information

2002-10-14 Thread Craig R. McClanahan
On Sun, 13 Oct 2002, Brett Elliott wrote: > Date: Sun, 13 Oct 2002 22:07:13 -0700 > From: Brett Elliott <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Struts and state information > > I would like to keep session state soley in c

Scaffold Framework

2002-10-14 Thread Charles McClain
All: I saw a reference recently to Scaffold being "outdated"; however, I decided to look into it a little bit -- primarily because of the BaseAction class -- and downloaded it this morning to take a look at the code. It is obviously still being maintained and, indeed, is being upgraded for compa

Re: Tiles - Forward problem

2002-10-14 Thread Antoni Reus
Hi, A Dilluns 14 Octubre 2002 16:44, Heligon Sandra va escriure: > I only have to not cast the result of the findForwardConfig method ? > No, you have to change the call to processActionForward for processForwardConfig. The TilesRequestProcessor overwrites processForwardConfig to look for til

RE: DAO or ... ?

2002-10-14 Thread Couball, James
I recommend taking a look at the Session Façade pattern in the Java Blue Prints. No matter if you use EJBs or not, this pattern encapsulates the ideas that Simon was mentioning. Does anyone know the name of the more general pattern that doesn't involve Session Beans specifically? One of my ge

Re: DAO or ... ?

2002-10-14 Thread John Owen
The generic pattern is just the facade pattern. A unified interface to a set of interfaces in a subsystem. You may incorporate the usage of a Proxy pattern or Mediator pattern to produce layering such as the facade->DAO does. - Original Message - From: "Couball, James" <[EMAIL PROTECTED]>

RE: DAO or ... ?

2002-10-14 Thread Jamie M
How about the Command Pattern: http://www.javaworld.com/javaworld/javatips/jw-javatip68.html An EJB version is mentioned in 'EJB Design Patterns' (http://www2.theserverside.com/books/EJBDesignPatterns/index.jsp) too. jamie --- "Couball, James" <[EMAIL PROTECTED]> wrote: > I recommend taking a

Re: Help with Dynamic Includes

2002-10-14 Thread Cedric Dumoulin
Hi, Have you check the Tiles framework that come with Struts ? Cedric Greg Cutler wrote: >Hello - > >I'm new to the Struts architecture, and am writing a >small application to teach myself. I've got the basic >concepts and simple design patterns, but am having a >problem trying to s

RE: Tiles problem with Struts action path - Tiles and tabbeddisp lay

2002-10-14 Thread Peterkofsky, Don
Cedric - While this solution will work in IE browsers and Netscape 6+ browsers, it isn't a particularly robust solution, as it relies on the URL in the browser "location" string, and this varies depending on the particular browser version (try your solution on Netscape 4.7, and see what happens).

Re: Tiles problem with Struts action path - Tiles and tabbed disp lay

2002-10-14 Thread Eddie Bush
The action mapping is available in the request (!) under the key of o.a.s.Globals.MAPPING_KEY. Peterkofsky, Don wrote: >Cedric - > >While this solution will work in IE browsers and Netscape 6+ browsers, it >isn't a particularly robust solution, as it relies on the URL in the browser >"location

RE: repeating input fields

2002-10-14 Thread Kevin HaleBoyes
> instead of: > property="id" > property="description" > > use: > property="purposes[1].id" > property="purposes[1].description" That makes sense! I made the changes to the JSP file and also added indexed getter/setter to the form bean. public class LoansForm extends ActionForm {

error page for jsp

2002-10-14 Thread Billy Ng
Hi folls; I don't want to see the exception error if anything goes wrong in jsp. Should I use <%@ page errorPage="errorpage.jsp" %>? or Struts has better mechanism to handle the exception is thrown in jsp? Thanks! Billy Ng

RE: DAO or ... ? [Scanned for known viruses]

2002-10-14 Thread Kevin . Bedell
James - I've attached a few files from my upcoming book Struts Kick Start that provide a basic design pattern that sounds like it may be similar to what your describing. What I do is: - Create a Value Object that encapsulates data communicated with the Model component. - Create a facade

RE: DAO or ... ?

2002-10-14 Thread Couball, James
That was it, the Command pattern was what I was thinking of... but Session Façade had a bit more to it. Thanks for the info. James. > -Original Message- > From: Jamie M [mailto:[EMAIL PROTECTED]] > Sent: Monday, October 14, 2002 10:37 AM > To: Struts Users Mailing List > Subject: RE: DA

Re: Best practices using value objects

2002-10-14 Thread David Graham
You can use BeanUtils.copyProperties to copy properties between forms and value beans. Dynamic forms have nothing to do with this. Your form could be dynamic or static. I would only add properties to the value bean if it ends up in the database. Also, it's best practice to not use Vector.

RE: Tiles problem with Struts action path - Tiles and tabbeddisp lay

2002-10-14 Thread Peterkofsky, Don
Eddie - Thanks for the pointer to the request attribute -- that got me what I needed. Cedric - Here is the code snippet below, that will get the action in a robust way, and allow us to write out the href in the tabs in a Struts-compatible way; you may want to update your tabsLayout JSP examp

RE: DAO or ... ?

2002-10-14 Thread Chappell, Simon P
You know, patterns are wonderful, but am I the only person who thinks that the names that were selected by the GoF are terrible? I may just be old fashioned, but I think in terms like wrapper, API and controller, not facade and command. Oh well. At least I can use patterns even I can't remember

Re: DAO or ... ?

2002-10-14 Thread John Owen
The funny thing is that they gave them these names so we (developers) could communicate better. ;) It was one of the reasons for the book. - Original Message - From: "Chappell, Simon P" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, October 14, 2002 1

Multiple configuration files

2002-10-14 Thread Tal Lev-Ami
I want to be able to split my configuration files for each sub-application into multiple files. To do this I thought about adding support similar to the validator plugin where a list of configuration files can be given. Two questions: 1) The default configuration file is taken from a static cons

RE: DAO or ... ?

2002-10-14 Thread Chappell, Simon P
I'm sure that if I was an accademic chap sitting in my Ivory tower, I'd be able to remember the "official" names, but some days I'm too busy using the actual patterns to get beyond thinking "I need a wrapper here" and "I'd better hide that behind an API". Maybe I need a cheat sheet so that I ca

RE: DAO or ... ?

2002-10-14 Thread Hookom, Jacob John
you should pick up "Design Patterns - Elements of Reusable Object-Oriented Software" by Gamma, Helm, Johnshon and Vlissides under Addison-Wesley Publishing it's the bible for design patterns -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]

Re: DAO or ... ?

2002-10-14 Thread John Owen
That's the book he was referring to when he said GoF. They are called the Gang of Four. - Original Message - From: "Hookom, Jacob John" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, October 14, 2002 2:12 PM Subject: RE: DAO or ... ? you should pick

RE: DAO or ... ?

2002-10-14 Thread Chappell, Simon P
Jacob, I have the GoF book (you did realise that GoF is it's nickname right?). I have read it quite a few times and it sits on my shelf less than 36 inches from my keyboard. The book is wonderful and the patterns are even more wonderful. This does not stop me from thinking that they names tha

RE: DAO or ... ?

2002-10-14 Thread Chappell, Simon P
Thanks John. These youngsters ... what do you do with them!? ;-) >-Original Message- >From: John Owen [mailto:[EMAIL PROTECTED]] >Sent: Monday, October 14, 2002 2:16 PM >To: Struts Users Mailing List >Subject: Re: DAO or ... ? > > >That's the book he was referring to when he said GoF. The

RE: DAO or ... ?

2002-10-14 Thread Hookom, Jacob John
is there a newsletter for geeks that i'm missing? -Original Message- From: John Owen [mailto:[EMAIL PROTECTED]] Sent: Mon 10/14/2002 2:16 PM To: Struts Users Mailing List Cc: Subject: Re: DAO or ... ? That's t

RE: DAO or ... ?

2002-10-14 Thread Chappell, Simon P
It's called experience it's why they pay us old guys more than you young bucks! ;-) -Original Message- From: Hookom, Jacob John [mailto:[EMAIL PROTECTED]] Sent: Monday, October 14, 2002 2:19 PM To: Struts Users Mailing List Subject: RE: DAO or ... ? is there a newsletter for geeks

Re: DAO or ... ?

2002-10-14 Thread John Owen
To be truthful, I hadn't heard of them until about 2 years ago. I had been mired in a job that did not allow me to pursue my design and professional goals. Once I got out of there and found a place that needed an experienced developer that was familiar with Java and C++, I was lucky enough to work

RE: DAO or ... ?

2002-10-14 Thread Wendy Smoak
> It's called experience it's why they pay us old guys more than you young bucks! ;-) LOL! It's also called being absolutely CERTAIN that someone has solved this problem before, and not going off reinventing the wheel. As an aside, are patterns being taught in computer science? I'm workin

RE: DAO or ... ?

2002-10-14 Thread Hookom, Jacob John
I'm working on finishing up a paper comparing Adapter, Bridge, and State Patterns in OO, but I don't remember reading/hearing anything about the GoF :-P -Original Message- From: John Owen [mailto:[EMAIL PROTECTED]] Sent: Mon 10/14/2002 2:26 PM To: Strut

ActionForm & Value Objects

2002-10-14 Thread Wendy Smoak
I have an ActionForm (ContactForm) object in scope, and _also_ a ContactImpl value object that pretty much mirrors the get/set methods in the ContactForm. I'm using the BeanUtils.copyProperties method to move the properties back and forth, but I'm confused as to when each of the objects should h

RE: DAO or ... ?

2002-10-14 Thread Chappell, Simon P
I have no idea whether they teach patterns in University. I graduated in 1990 and we didn't even have the Internet back then let alone Patterns! Jacob: How about it my friend? Do they teach patterns in the UW? Simon >-Original Message- >From: Wendy Smoak [mailto:[EMAIL PROTECTED]] >Sen

difference between forward and include?

2002-10-14 Thread Andy Kriger
The DTD specifies for attributes named 'forward' and 'include' for action. These have the same documentation. Is there any difference? -a -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: DAO or ... ?

2002-10-14 Thread Chappell, Simon P
It's a good job that you have all of us supplementing your education then! I'll be having a stern word or two with your professors, concerning this lamentable oversight on their part! ;-) Simon -Original Message- From: Hookom, Jacob John [mailto:[EMAIL PROTECTED]] Sent: Monday, Octobe

Re: DAO or ... ?

2002-10-14 Thread John Owen
We were taught algorithms and finite state machines, but I don't remember any design pattern coverage. I graduated in 1994 and other than that, they perfectly prepared me for my future as a developer. We covered many software design principles in my Software Engineering classes, but the memory is

Re: ActionForm & Value Objects

2002-10-14 Thread Eddie Bush
Wendy Smoak wrote: >I have an ActionForm (ContactForm) object in scope, and _also_ a ContactImpl >value object that pretty much mirrors the get/set methods in the >ContactForm. > >I'm using the BeanUtils.copyProperties method to move the properties back >and forth, but I'm confused as to when eac

Re: DAO or ... ?

2002-10-14 Thread John Owen
I'd say one week working the printout desk will suffice! - Original Message - From: "Chappell, Simon P" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, October 14, 2002 2:36 PM Subject: RE: DAO or ... ? It's a good job that you have all of us supplem

RE: DAO or ... ?

2002-10-14 Thread Chappell, Simon P
Wow, you're mean! Even I wouldn't make him do that. How about one night pulling security at the Student Union? >-Original Message- >From: John Owen [mailto:[EMAIL PROTECTED]] >Sent: Monday, October 14, 2002 2:46 PM >To: Struts Users Mailing List >Subject: Re: DAO or ... ? > > >I'd say on

RE: DAO or ... ?

2002-10-14 Thread Chappell, Simon P
Yup, we learned algoritms and state machines. I know that we didn't learn patterns. I am so glad that we did learn about state machines, because they are wonderful for web applications. Simon >-Original Message- >From: John Owen [mailto:[EMAIL PROTECTED]] >Sent: Monday, October 14, 200

RE: DAO or ... ?

2002-10-14 Thread Jerry Jalenak
You guys have it lucky to even know what a pattern is. I graduated with a C.S. degree in 1983 - object oriented programming barely existed then, let alone taught. Matter of fact we were required to learn IBM Assembler, and either COBOL or PL/1 as a graduation requirement! If I remember right, m

RE: DAO or ... ?

2002-10-14 Thread René Eigenheer
does anybody remember the "read ahead" rule - wasn't that something like a pattern? I'm not sure, but I think this rule origins from Jackson (70s or 80s) > -Original Message- > From: John Owen [mailto:[EMAIL PROTECTED]] > Sent: Montag, 14. Oktober 2002 21:45 > To: Struts Users Mailing Li

RE: DAO or ... ?

2002-10-14 Thread Hookom, Jacob John
we are taught patterns in programming through example, which means we learn about it one day in lecture, then we get an absurdly complex assignment to make sure we not only know the pattern, but to also make sure that we have no social life. I can't complain though, the program is nationally a

Re: DAO or ... ?

2002-10-14 Thread John Owen
Maybe, but I'd prefer to make him strike up conversations with the 45 year-old professional student outside the Union and make requests for some original poetry. - Original Message - From: "Chappell, Simon P" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Mon

RE: DAO or ... ?

2002-10-14 Thread Chappell, Simon P
You have my sympathy and my respect. While I graduated after you, they still hadn't invented the World Wide Web and Java was a way off yet. Almost everything skill that I use to earn my living today is something that I have taught myself. I spotted Java and learned it back when it first came o

action include or forward attribute not working?

2002-10-14 Thread Andy Kriger
I am setting up the following: a JSP containing a form; the submit action of the JSP calls a Struts Action class. Since I don't really need an action simply to forward to the JSP, I thought I'd use the action include or foward attribute which seems to accomplish this. But I can't make it work. He

Re: action include or forward attribute not working?

2002-10-14 Thread David Graham
You need to do it like this: Dave >From: "Andy Kriger" <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >Subject: action include or forward attribute not working? >Date: Mon, 14 Oct 2002 16:15:38 -0400 > >I am

RE: action include or forward attribute not working?

2002-10-14 Thread Teh, Kah Loong
like you said, since you don't need an action try using i.e., register here -kael Teh -Original Message- From: Andy Kriger [mailto:[EMAIL PROTECTED]] Sent: Monday, October 14, 2002 3:16 PM To: Struts Users Mailing List Subject: action include or forward attribute not working?

RE: action include or forward attribute not working?

2002-10-14 Thread René Eigenheer
try this one: > -Original Message- > From: Andy Kriger [mailto:[EMAIL PROTECTED]] > Sent: Montag, 14. Oktober 2002 22:16 > To: Struts Users Mailing List > Subject: action include or forward attribute not working? > > > I am setting up the following: a J

RE: action include or forward attribute not working?

2002-10-14 Thread Hookom, Jacob John
Kael, this is MVC, you should never see *.jsp ;-) We went over this before in lab -Original Message- From: Teh, Kah Loong Sent: Mon 10/14/2002 3:15 PM To: Struts Users Mailing List Cc: Subject: RE: action include or forward attribute

Origin of MVC design pattern - was RE: DAO or ... ?

2002-10-14 Thread Kevin . Bedell
Interestingly enough - MVC was already around even back then. Below is an e-mail I received from a Professor Trygve Reenskaug who is based in Norway now but who is widely credited as being the inventor of the MVC pattern while at the Xerox PARC in the 70's. I traded e-mails with him while res

RE: action include or forward attribute not working?

2002-10-14 Thread Chappell, Simon P
Actually, I have no problem seeing *.jsp. MVC only requires that the Model, View and Controller be separated. Using a mix of *.do and *.jsp is not going to violate MVC. For simple pages that require no pre-processing, we used direct calls to the JSP. Simon -Original Message- From: Ho

[OT] RE: action include or forward attribute not working?

2002-10-14 Thread Hookom, Jacob John
I remember a fellow posting a link to his struts site and everyone went off on him for having jsp urls ;-) -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] Sent: Mon 10/14/2002 3:24 PM To: Struts Users Mailing List Cc:

RE: action include or forward attribute not working?

2002-10-14 Thread Teh, Kah Loong
Good point. however, i'm not convinced that that is the absolute way to go. First off, there is no interaction with the Model component in the MVC for this context. also, if Struts is supposedly a variation of the MVC framework, why is the tag provided? seems that would be a contradiction in it

RE: DAO or ... ?

2002-10-14 Thread Jerry Jalenak
Thanks - it's nice to know somebody out there respects me! :-) Seriously though, I agree with you 100%. Technology changes to quickly to be able to rest on your laurels - just look at this list and evolution of Struts in the past 90 days! Fortunately for me, I managed to find this list when I fi

RE: [OT] RE: action include or forward attribute not working?

2002-10-14 Thread Chappell, Simon P
No one said life is fair. Even if I find myself in the minority, I still have no problem with *.jsp. The trick is to know which is the best use for which tool. Direct calls to JSP can be fine if there is no pre-processing required on a page. Any page that needs any setup should be called throug

RE: action include or forward attribute not working?

2002-10-14 Thread David Graham
Now your view is tied to that particular jsp and you can't change it for a different one later or any other presentation logic format. Also, you've circumvented any common logic that the controller might be doing (authentication, logging, etc). Dave >From: "Chappell, Simon P" <[EMAIL PROTEC

  1   2   >