Re: two-step container managed authentication

2003-08-16 Thread Erik Price
? ;- in article [EMAIL PROTECTED], Erik Price at [EMAIL PROTECTED] wrote on 5/19/03 8:29 AM: Hi, I am soliciting advice from other struts and web developers. I am moving my in-progress project (JSP servlets only) to Struts framework after having been converted at a JUG meeting, and am planning things

Re: Struts Validator

2003-08-14 Thread Erik Price
Mark Galbreath wrote: I am not looking for a war here. All I ask is to get the damn thing right before offering it as a release to our community. Release early, release often. Most open source software would -never- get released if people waited till they got the damn thing right before

Re: Struts 1.1: what's the preferred way to use databases?

2003-08-14 Thread Erik Price
Reinhard wrote: Ted wrote: If you are starting from scratch, then I would strongly recommend *not* using the datasource manager. The datasource manager was a Good Thing three years ago, but, at this point, has outlived its usefulness in most environments. I'm a bit upset. Any advice on what

Re: [OT - Slightly] Returning Error Status from Business Layer

2003-08-14 Thread Erik Price
Jerry Jalenak wrote: Just curious - how do most of you return errors from your business model? Do you simply return an integer value (-1, 0. 99?) and then interpret it in the action? Or do you return a error string that maps to something in ApplicationResources? Any other techniques? I'm

Re: [FRIDAY] Impossible requirements customer expectation management[WAS: method to get new Id to next action when old Id is in request?]

2003-08-14 Thread Erik Price
Simon Kelly wrote: And talking of impossible requirements . Does anyone know how to include svg into html without having it in a separte downlaod able file? All my svg and html are dynamically created and I need to mirge them both and send out one page. All help would ... well help

Re: Internationalizing 100's of pages of text

2003-08-14 Thread Erik Price
Gary Kephart wrote: I have a web site at http://www.pobox.com/~encyclopaedia_wot. It contains 100's of pages of HTML of mostly text. I'd like to migrate this to JSPs and use Templates/Tiles because: 1) I want to better standardize the layout 2) I want the content writer to not have to worry

Re: Internationalizing 100's of pages of text

2003-08-14 Thread Erik Price
Gary Kephart wrote: As far as database, take a look at the content now and see what you think. The big stumbling block is that the content writers are remote, and so I'd have to set up some sort of remote database access and my content writers don't have much, if any, db experience. Or you

Re: [OT] Rendering Large ResultSet - Value List Handler Design Pattern

2003-08-14 Thread Erik Price
Pat Quinn wrote: where do you keep the initial resultset? Or do you execute the query each time the user requests to page? What would be nice if i could execute an sql statement which would give me a sub set of the results as contolled by a start and end position i specify e.g. Select

Re: [OT] Lightweight weblogger

2003-08-14 Thread Erik Price
Jerry Jalenak wrote: I am looking for a lightweight, Java based weblogger that can be *easily* integrated into an existing Struts-based web application. I looked at Roller, but it requires Tomcat 4 (which we aren't on yet - still running Tomcat 3.3!). I found the MiniBlog by Russell Beatie,

Re: [OT - Slightly] Returning Error Status from Business Layer

2003-08-14 Thread Erik Price
Jerry Jalenak wrote: I have an order screen where a client can, well, order one or more items. The struts action picks up the item number and hands it off to a business class. The business class goes to the database (DAO), and based on what comes back, either returns a JavaBean containing the

Re: [OT - Slightly] Returning Error Status from Business Layer

2003-08-14 Thread Erik Price
Jerry Jalenak wrote: Erik - Thanks. I'm beginning to look at ways to handle returning status using exceptions. The idea of 'wrapping' each exception by layer is very appealing No problem. While exceptions are awesome, I don't want to give the impression that they should be used for

Re: [OT - Slightly] Returning Error Status from Business Layer

2003-08-14 Thread Erik Price
Jerry Jalenak wrote: Erik, David, and Mike - Thanks for the replies - interesting to note that all three of you suggested basically the same answer, that of using the exception mechanism. I think it's just that one of the cool things about Java over PHP or C is that we have exceptions, and

Re: [OT - Slightly] Returning Error Status from Business Layer

2003-08-14 Thread Erik Price
Erik Price wrote: Side note: I like returning Object from a method -- it's rarely, rarely necessary, and in Java, it's a pain to deal with Object instances (because you can't send an arbitrary message to an object, you have to make an explicit cast to appease the compiler). Uh, mental

Re: [OT] Rendering Large ResultSet - Value List Handler Design Pattern

2003-08-14 Thread Erik Price
Paananen, Tero wrote: The disadvantage of this approach is that you'll be tieing your implementation to a specific db vendor at that point. DB vendors implement such functionality differently, from what I've seen. Yep. I've yet to see an application that does NOT target a specific db though.

Re: Struts 1.1: what's the preferred way to use databases?

2003-08-14 Thread Erik Price
Reinhard wrote: Thanks Erik, Ted already gave a very short advice, but with your words, the sun is shining again ;-) Erik wrote: The DataSource management system used in your container. Tomcat for instance, has its own place to specify this Ok, I declared my datasources in server.xml

Re: [OT - Slightly] Returning Error Status from Business Layer

2003-08-14 Thread Erik Price
Jerry Jalenak wrote: Erik, You're right - I asked the wrong question (how to return error and not how to return status), so thanks for sticking with me on this thread. I've started looking at the Type-Safe Enum pattern; except for providing a 'type-safe' construct in which to code return

Re: JSTL ot struts taglibs?

2003-08-11 Thread Erik Price
Bailey, Shane C. wrote: I'm trying state my opinion and learn (from replies). About the only thing in that statement that I know is verifiably screwed up is that Ant has no $var and I apologized and rectified what I meant in one of my recent posts. Whachu talkin' 'bout Willis? I hadn't read

Re: [OT - Slightly] Returning Error Status from Business Layer

2003-08-11 Thread Erik Price
Jerry Jalenak wrote: confused-look-on-face Erik - How then do you return a simple status from your business model to your action? There is not an 'exceptional condition' - simply a return value that the action can use to select the appropriate forward (for instance). As I've been looking

Re: JSTL ot struts taglibs?

2003-08-08 Thread Erik Price
Bailey, Shane C. wrote: Scriptlets are more powerful (you can do ANYTHING Java can do), faster, is a standard (it is the Java language you know) and if you are going to spend time learning a new language (${var} == pooPoo) then you would be better off learning Java (assuming you don't already

Re: [OFF TOPIC] Book recommendations (J2EE, Struts, JUnit, EJB, Weblogic)

2003-08-04 Thread Erik Price
Laurent PETIT wrote: Hello, I'm looking for a good book related to the Test first driven development area. [...] I browsed the amazon customer reviews for the classical books on the subject (Kent Beck, ...) but was still afraid of something : are this book really connected to reality when you

Re: [OFF TOPIC] Book recommendations (J2EE, Struts, JUnit, EJB, Weblogic)

2003-08-04 Thread Erik Price
Linus Nikander wrote: Thank you for the reply. But I'm looking for books, not online articles or documentation. I know I can probably find book recommendations at the sites you point to, but I was trying to save myself the effort of searching for them and of evaluating their recommendations by

Re: Best place to hook the Security Call

2003-08-04 Thread Erik Price
Alen Ribic wrote: Security is really my week side but AFAIK your Container Manager Security does have certain container specific configurations and even requirement for additional java classes to be coded. No. As I said Security Filter component has a small, simple realm interface that is

Re: dynamic columns for a jsp

2003-08-04 Thread Erik Price
You have two choices. 1) Use a simple Collection and test the values with many if statements. This is the option you are using right now. 2) Wrap the Collection in a custom object that contains the logic needed to determine which values are appropriate. Then in your JSP you can simply call

Re: Struts w/EJB

2003-08-01 Thread Erik Price
Martin Naskovski wrote: Hello all. Is there an app that demonstrates the use of Struts EJB as a persistence layer? I checked out Struts-Resume from Matt Raible, but it uses Hibernate... Is there anything available w/EJB's? Thanks. http://xpetstore.sf.net/ There are two implementations of

Re: OT - Struts w/EJB

2003-08-01 Thread Erik Price
message message wrote: How come there is so much free ware available especially from sourceforge ? The whole point of sourceforge is to foster the development of open source/free software by providing web hosting, CVS repositories, mailing lists, and most other needs traditionally used by

Re: Need help for design

2003-07-31 Thread Erik Price
Anubhav Kale wrote: Hello I want to create a simple JSP page with login and password fields. If i/p is correct (verified against a database) I should give user access to some JSP pages. If user tries to go to these JSP pages directly without entering correct username and password then he should

Re: JSTL and Struts

2003-07-31 Thread Erik Price
Mainguy, Mike wrote: When I return a currency or date value, the client has a specific format they want it in. i.e. $1,000.000 or 02/02/2003. Do you mean you are using an input tag for display purposes (i.e. returning data to the browser with an input tag that has a default value). Erik

Re: request.getSession().invalidate() problem

2003-07-30 Thread Erik Price
Ionel Gardais wrote: Hi, I am using the invalidate() method to force logout of the logged client but even after a call to this method, clients can navigate to a secured content without beeing prompt for their password. Do you know what the problem is and/or how to solve it ? This only works

Re: [newbie] Nested Beans

2003-07-29 Thread Erik Price
[EMAIL PROTECTED] wrote: Hello, I use one form with data of type A and within an iteration of data with type B. Each member of B has its own submit button thus I can in the following action do some work with exactly this entry (e.g. make changes to a database). Question: how does the action

Re: Working with Struts + Dreamweaver

2003-07-28 Thread Erik Price
Erez Efrati wrote: I have a JBoss/Tomcat/Struts project in which till now I have written all the pages manually with a simple editor. I have recently downloaded Dreamweaver by Macromedia and started playing with it to see what it is capable of doing. Being far from expert in HTML page design my

Re: Working with Struts + Dreamweaver

2003-07-28 Thread Erik Price
-Original Message- From: Erik Price [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 8:06 PM To: Struts Users Mailing List Subject: Re: Working with Struts + Dreamweaver Erez Efrati wrote: I have a JBoss/Tomcat/Struts project in which till now I have written all the pages manually

Re: OT Posts on this List almost [FRIDAY]

2003-07-24 Thread Erik Price
Yansheng Lin wrote: I thought it's already Firday in Munich, no? And I think Mark made a valid point. Some of the questions can be answered by simply doing a search on Java Developer's Forum. But I guess a lot of people are like me, feel good about this mailing list and wanna ask questions

Re: Session management

2003-07-22 Thread Erik Price
Jason Meredith wrote: Chaps I am sure this question has been asked before, if it has please point me in the right direction (URL - example) A user log's into a web site, once the user has been authenticated, a session is created , there are many different actions that a user can perform, and it

Re: [Friday] How far can we let the clients push us?

2003-07-22 Thread Erik Price
Rise and fall of the American empire What's funny is that many misguided fools will accuse you of being unpatriotic if you *don't* support globalism, et al. Erik Vic Cekvenich wrote: Together with low demand http://news.com.com/2100-1022_3-5051028.html?tag=lh

Re: [OT]Java equivalent to ASP function

2003-07-22 Thread Erik Price
Yan, Charlene wrote: All, I need to rewrite some ASP codes in Java. What are the Java equivalent to Asc(String) and Hex(Number) in VB? I appreciate any insight from you! I don't know VB. I assume Hex(Number) transforms the number to hexadecimal. You can get the hexadecimal representation

Re: Multiple row selection

2003-07-18 Thread Erik Price
Goldy J wrote: Hello, I am facing a peculiar problem . I have a Action Class1 which gets RS from DB. I set the elements of FormBean1 and add them into a ArrayList1. So at the end of my Action Class1 i have a Array List 1 which has objects of my formbean1. I call this ArrayList1 in my JSP1

Re: Is it possible to get the ActionMapping object in a filter ?

2003-07-18 Thread Erik Price
Navjot Singh wrote: correct me if i am wrong The filter servlet is hit before the request reaches the main servlet - ActionServlet in struts case. As the request has not even reached ActionServlet, ActionMapping object has not been initialized as of now. You can always have the access code

Re: [Friday] How far can we let the clients push us?

2003-07-18 Thread Erik Price
Yansheng Lin wrote: To them, Online spreadsheet data-entry is a reasonable request. They don't want to change their ways of practise, what can we do? They are paying us! Darn, life is so hard! Can you embed an applet that replicates spreadsheet functionality into a web page? Erik

Re: [Friday] How far can we let the clients push us?

2003-07-18 Thread Erik Price
Raible, Matt wrote: We had the same requirement from our client - and we actually implemented it! Using JavaScript and the DOM, we're able to add/delete rows, sort by columns, have tabs for different sheets - pretty slick IMO. That is cool. DOM is unwieldy, but it's an incredibly powerful

Re: Struts and JSF?

2003-07-17 Thread Erik Price
Christian Cryder wrote: to me, JSF looks like a souped up version of Struts. It seems like its taking an awful long time to deliver anything. Its not going to be open source when its finally released either (has this changed?). Are you referring to the RI? If so, that's unfortunate. In short,

Re: Question on making Action classes thread-safe

2003-07-17 Thread Erik Price
Ajay Patil wrote: Hello, I found out that it is possible to make the Action class thread-safe by over-riding RequestProcessor (processActionCreate method) so that it creates a new Action instance for each request. I would like to know the implications and possible problems ? If anyone has

Re: Question on making Action classes thread-safe

2003-07-17 Thread Erik Price
Andrew Hill wrote: Yep more memory and more time for the garbage collector - but in fact its probably insignificant - your already creating an actionform (if its request scoped) , a request object, and all sorts of other things as by products of processing the request. This is just one more

Re: Struts and JSF?

2003-07-17 Thread Erik Price
Craig R. McClanahan wrote: JavaServer Faces is a lot of things, one of which is support for rendering standard HTML components so that it's usable out of the box (but components are not tied to ONLY render HTML -- that's up to which renderer you choose to use). The best way to prevent horrible

Re: Struts + EJB

2003-07-17 Thread Erik Price
Marc Gibert Ginestà wrote: Hi! We're starting a project based on Struts with EJBs for the business logic and JSPs for the view. So far, we've successfully coded Actions that call stateful Session EJBs that talk to Entity EJBs. The problem we have is on the view (JSPs). How is the JSP

Re: Where to build dropdown lists?

2003-07-15 Thread Erik Price
[EMAIL PROTECTED] wrote: When using the client side validation, there is always a javascript pop up box that says something along the lines of 'Your a thick b*stard, fill in xxx!' Our client requirement is that we produce a list of errors at the top of the page, (the red UL kinda thing), which

July 14

2003-07-14 Thread Erik Price
Happy Bastille Day to all FR struts users. Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Xdoclet

2003-07-11 Thread Erik Price
Saman Ghodsian wrote: Hi everyone, Just starting with struts, I'm looking for xdoclet for struts, where I can put attributes on my model source code and it will generate all the Action, form, etc and xml files for me. Any ideas? Pointers appreciated..

Re: Xdoclet

2003-07-11 Thread Erik Price
Saman Ghodsian wrote: Hi thanks for the reply, Any information or sample code on how to use those?. Maybe not those tags particularly, but example of XDoclet use at http://xpetstore.sf.net/ Erik - To unsubscribe,

Re: Using JSTL tags instead of Struts tags

2003-07-11 Thread Erik Price
Davidson, Glenn wrote: As an aside, Dog Food has a specific tech meaning? If it is not to much trouble what exactly does it mean in techie http://www.catb.org/~esr/jargon/html/D/dogfood.html Erik - To unsubscribe, e-mail:

Re: Losing data on a upload with Mac

2003-07-11 Thread Erik Price
Justin F. Knotzke wrote: Hi, I am having a small issue with a Mac (of which I know nothing). When uploading a file on Linux or on Windows all of the data arrives correctly. However with files larger then 500K or so on a Mac, not all of the data arrives (say 506 when 512 should have

Re: How to differentiate between timed-out user and new user?

2003-07-10 Thread Erik Price
Paananen, Tero wrote: So when you say persistent user repository, do you mean something that the programmer manually store in the DB or is there some API that we can query it on the web server? manually store in the DB (or flat files, whatever), unless you're using a product that provides this

Re: How to differentiate between timed-out user and new user?

2003-07-10 Thread Erik Price
K.C. Baltz wrote: I use a SessionListener to record the SessionIDs when they are created. I'm not sure yet how I'm going to handle the Set filling up with SessionIDs. I'll have to find some way to expire them. Someone just told me recently (on this list) about using SoftReference and

Re: [OT] Use of Static Methods

2003-07-10 Thread Erik Price
NYIMI Jose (BMB) wrote: In my view, it's a much better solution to have one object that can be used to locate other objects. I call this an application context object, although I've also seen it termed a registry or application toolbox. Any object in the application needs only to get a

Re: [OT] Session Management using EJB

2003-07-10 Thread Erik Price
Nimish Chourey , Tidel Park - Chennai wrote: Hi all , I want to know if there are applications that implements Session Management using EJB's rather then using the HttpSession on Web tier . I want to know the pros and cons of this approach . For all the RD that I have done , it seems

Re: Struts 1.1 Bug? PlugIn Objects Not Serializable

2003-07-10 Thread Erik Price
Hohlen, John C wrote: Craig: I added a comment to the Bugzilla report with a link to the thread. Thanks for the idea. Do you or anyone else know if WebLogic 6.1 requires that servlet context attributes to be serializable? How can I figure that out? Not trying to be sarcastic at all,

Re: [FRIDAY] Burnt Ashes

2003-07-10 Thread Erik Price
Shane Mingins wrote: After the lawyer cashed the check, the insurance company had him arrested on 24 counts of ARSON With his own insurance claim and testimony from the previous case being used against him, the lawyer was convicted of intentionally burning his insured property and was

Re: [OT] Use of Static Methods

2003-07-09 Thread Erik Price
David Graham wrote: Static methods are evil for many reasons including philosophical (they're not OO) and practical (you can't override their behavior). You should use a Singleton class with non-static methods. And the generally accepted way to get a reference to the singleton is with a

Re: [OT] Use of Static Methods

2003-07-09 Thread Erik Price
Brian Lee wrote: That's incorrect. Static methods cannot be overridden. Actually, that's incorrect. Static method can be overridden. foo.java public class foo{ public static void bar(){} } baz.java public class baz extends foo{ public static void bar(){} } compiles Let's settle this before

Re: Populating select boxes dynamically

2003-07-08 Thread Erik Price
sriram wrote: James, As explained by you, I have done the following: I need list of countries in a drop-down box in .jsp page. I have an EJB that maps to country table in database. In that I've a method getAllCountries() that returns a collection. In that method, I've used LabelValueBean and

Re: Webapp Security?

2003-07-03 Thread Erik Price
David Bolsover wrote: I ended up writing my own application security manager - when the user logs in, his permissions are loaded from DB and then checked before any action is performed - with appropriate errors if a violation is detected. Where are you doing the checking, in the Action? Erik

Re: Webapp Security?

2003-07-03 Thread Erik Price
David Erickson wrote: Ok well lets suppose you want to protect 100% of your content, perhaps minus the login.jsp or what not page. We just spent a couple hours brainstorming how to protect our webapp. We want flexibility above and beyond what container security provides, so we want to use our

Re: Webapp Security?

2003-07-03 Thread Erik Price
Rick Reumann wrote: On Thu, 2003-07-03 at 14:41, Erik Price wrote: I am really confused as to why you don't want to use a Filter. It seems that they were developed specifically for situations like the one you describe Here's the problem I'm having with the securityFilter stuff that I'm

Re: Testing Frameworks - experience/recommendation

2003-07-02 Thread Erik Price
Brian McSweeney wrote: Hi all, I know this has been discussed previously, but Id like some user feedback. Im going to start writing test cases soon, and Id like to know peoples experience using the various frameworks available. First off, my environment: Im using Struts talking to ejbs

Re: Webapp Security?

2003-07-02 Thread Erik Price
David Erickson wrote: Just curious how others have gone about protecting the resouces within their webapp.. in our personal setup we would like to control access to every resource if possible, we have our own custom login page that sets session variables, and pulls the data from the database. We

Re: Webapp Security?

2003-07-02 Thread Erik Price
David Erickson wrote: Is it based on using security restraints and having all your users set into groups in the tomcat-users.xml file? If so our problem is we don't want to have users based into groups but want to give permissions to users individually to many different things.. and we want to

Re: using struts datasource from a servlet

2003-07-01 Thread Erik Price
Richard Raquepo wrote: Another option would be to configure the DS in struts but register it with a singleton (Service Locator) that can retrieve the datasource in your data access classes. maybe you can give me some link about this? tutorials maybe? any code maybe? :p As you wish:

Re: Simplest way to show the matrix

2003-07-01 Thread Erik Price
Take the red pill. Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Looking for ideas for action servlet checking for logged in user.

2003-06-25 Thread Erik Price
Adam Hardy wrote: I would use container-managed security. All the secured pages should go in a directory which is the target of a security constraint in the deployment descriptor. This forces the user to log in when trying to access any secured pages. In the actions where a user-object is

Re: [OT] url-pattern

2003-06-25 Thread Erik Price
Filip Polsakiewicz wrote: Hi, i have a problem with url-patterns in web.xml i need a pattern that matches /webdav/*, /webdav/hello/* and so on. I.e. webdav and all subdirectories. i tried url-pattern /webdav/* /url-pattern Maybe: /webdav/*/* Erik

Re: Form field styling/error reporting - Alternate solution [Long]

2003-06-25 Thread Erik Price
Mike, this seems like a great idea. But wouldn't it be easier to just have the html:errors property=prop/ tag output the appropriate span type directly? This would avoid incurring the extra overhead of XSLT, and would work on non-XML-valid pages (not that I think very highly of

Re: Looking for ideas for action servlet checking for logged in user.

2003-06-25 Thread Erik Price
Adam Hardy wrote: Erik Price wrote: I would use container-managed security. All the secured pages should go in a directory which is the target of a security constraint in the deployment descriptor. This forces the user to log in when trying to access any secured pages. In the actions where

Re: Http:// line display

2003-06-24 Thread Erik Price
Simon Kelly wrote: Hi all, Does anyone know of a conveniant way to stop the http:// line in the browsers from showing the *.do at the end of the site address? Personally I hate using sites that put the content into a single-frame window because sometimes I like to see the current page's URL

Re: [OT] caching strategy

2003-06-23 Thread Erik Price
= null; this.map.remove(identity); } } return result; } Jacob Hookom Senior Programmer/Analyst McKesson Medical Surgical Golden Valley, MN -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003

Re: File upload question yet again

2003-06-23 Thread Erik Price
Alen Ribic wrote: What I whish to avoid is that a file does not get loaded as a property each time the value object is needed but only when a image viewing is required. (e.g. a view image link is clicked in manager role view) Store a reference to the file (perhaps a String pathname) rather than

Re: Living in a frame

2003-06-23 Thread Erik Price
Wendy Smoak wrote: So far I've resisted, but I have a feeling my next Struts app is going to get sucked into a frame. The department that handles the website likes to appropriate content, and of course it looks more unified if things don't pop out into their own browser window like I'm doing

Re: How much should Struts be aware of my persistence system

2003-06-20 Thread Erik Price
Alen Ribic wrote: Hi all Where do you think is the best place to initialise your persistence, ORM, system in Struts? Action classes, etc.? I would like to make the Struts framework least aware of my Persistence system. One place (easy to set up) is to just create a static initializer block in

Re: [FRIDAY] SIA Trivia Game - Re: [ANNOUNCEMENT] Struts 1.1 ReleaseCandidate 2 released

2003-06-20 Thread Erik Price
It's not The Green Futures of Tycho by William Sleator is it? Erik Ted Husted wrote: Martin Cooper wrote: The Struts team is proud to announce the release of Struts 1.1 Release Candidate 2. As many of you know, one of the stepping stones in getting RC2 out was falling back to the 1.02

Re: [FRIDAY] SIA Trivia Game - Re: [ANNOUNCEMENT] Struts 1.1 ReleaseCandidate 2 released

2003-06-20 Thread Erik Price
(The perils of mailing list Reply-to munging. Sigh my apologies, list.) Erik Erik Price wrote: It's not The Green Futures of Tycho by William Sleator is it? Erik Ted Husted wrote: Martin Cooper wrote: The Struts team is proud to announce the release of Struts 1.1 Release Candidate

[OT] caching strategy

2003-06-20 Thread Erik Price
There is an internal app that is used at my company and I am tossing around the idea of investing a little time and energy into making a simple web front-end for accessing data in this app. However, it does not use a traditional database with JDBC connections, so I could not maintain a

Re: [OT] caching strategy

2003-06-20 Thread Erik Price
Hookom, Jacob wrote: create primary keys for your data, create an identity object to represent legacy data, create a hashmap or cache interface and use either LRU's or Softly referenced caching. Pretty straight forward. Logic would be select primary keys + lastModified if changed or not found,

[OT] Re: Problems with an inherited getter in a derived bean

2003-06-19 Thread Erik Price
Alen Ribic wrote: My friend, I must admit that I have never applied inheritance on static nested classes in my life. (Not at least that I can remember :) ) I'm not to sure what the minimal access control level for static nested classes is from point of nested inheritance and Struts system. Maybe

Re: Struts and database

2003-06-19 Thread Erik Price
Sloan Bowman wrote: I will do my best to explain this but I will also point you in the right direction. First off you need to read the Java Blueprints on using DAO with J2ee. This will teach you the best methods of using Databases by using the DAO to encapsulate the DataSource . Here is

Re: design issue MVC - forms, EJB, data marshalling

2003-06-19 Thread Erik Price
Adam Hardy wrote: I am starting a new app and trying to work out the best design approach. At the moment I want to get the app up and running, and so I'm just going to use tomcat and struts and achieve MVC by seperating out the database access into factory classes. At some point after I've

Re: design issue MVC - forms, EJB, data marshalling

2003-06-19 Thread Erik Price
Mike Jasnowski wrote: Actually I wasn't referring to OLE as in M$ speak, Ole is just a short version of Old :) But not much shorter! ;) Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: design issue MVC - forms, EJB, data marshalling

2003-06-19 Thread Erik Price
David Graham wrote: Actually I wasn't referring to OLE as in M$ speak, Ole is just a short version of Old :) By short, do you mean the same amount of characters ;-) ? For some reason the POJO term really irritates me. I'm not sure why we need a special nomenclature for Java objects. NB,

Re: Making Value Objects Into Form Objects

2003-06-18 Thread Erik Price
Adam Hardy wrote: You think one day HTTP will allow real types like int and date? Let's hope not! KISS. You can use SOAP for something like that. ;) Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [OT] IDE with easy tomcat upgrade?

2003-06-17 Thread Erik Price
Brandon Goodin wrote: Netbeans is not easily upgraded as new Tomcat releases become available and the Swing environment can be burdensome and buggy unlike SWT (which is what eclipse is built on). Kind of FUD there -- SWT and Swing are equally burdensome/buggy on MacOSX. That said, on Windows

Re: [OT] MVC / Model 2 for Microsoft ???

2003-06-13 Thread Erik Price
Adam Hardy wrote: MVC is never used as a term in the Microsoft world that I know of. But this makes complete sense, in a sick way. In a MS environment, portability probably isn't as big a concern, and while there are certainly other reasons to use MVC, it strikes me that the biggest is to

Re: Easy way to deal with Dynamic Form elements

2003-06-13 Thread Erik Price
Giampiero De Ciantis wrote: I have basically a shopping cart application and I am wondering what is the easiest way of updating the quantity of each item in the shopping cart. Populating the page with the list of cart items is easy. I have no clue how I will process the Dynamic form elements

Re: Login and security checks

2003-06-13 Thread Erik Price
[EMAIL PROTECTED] wrote: I'm currently working on a web app which will be available publicly. In the past I've secured my webapp using Tomcat's form based security. This works fine if you require a user to log in as soon as the webapp is initiated (as is the case with most internal web apps).

Re: Easy way to deal with Dynamic Form elements

2003-06-13 Thread Erik Price
Giampiero De Ciantis wrote: Sorry, I didn't explain myself. Basically the page that shows the cart contents will have an unknown number (Cardinality 0..*) of items listed. Beside each item there will be a text box where the user can input the quantity of the item that they want to order. When

Re: [RETRACTION] PHP version of Struts

2003-06-12 Thread Erik Price
Brandon Goodin wrote: David, I agree. But, it would be nice to be able to access Java Objects from a scripting language. For example, If someone wanted to use Lucene to index their site, and the site already exists in php. Then it would be appropriate to be able to interact with the Lucene java

Re: [OT] Transaction Safe Java Code

2003-06-12 Thread Erik Price
Navjot Singh wrote: Hi List, I have 2 methods that i am calling in same sequence. + txnMethod1() + txnMethod2() I wish either both of them get _executed_ or none of them. Can i rollback the state to what was before method1's _execution_ if method2 fails? Is it possible or i should start

Re: [OT] Transaction Safe Java Code

2003-06-12 Thread Erik Price
Johan wrote: Maybe to simple :-) consider the following snippet int x = 0; try { x=x+10; x=x+10; somethingMightThrowingAnException(x); x=x+10; } catch (Exception e) { } if somethingMightThrowingAnException(x) is not throwing an exception x would be 30 in the end. but if

Re: Cloning Form Beans

2003-06-12 Thread Erik Price
Jerry Jalenak wrote: Not sure what you mean by 'defensive copies' Is there something special I need to do in my bean so I end up with a 'true' duplicate, and not just a second reference? Defensive copies... described in Josh Bloch's Effective Java. Getter methods return a copy of the

Re: Cloning Form Beans

2003-06-12 Thread Erik Price
Jerry Jalenak wrote: So, something like this? private String myString; public String getMyString() { String returnedString = this.myString; return (returnedString); } I'm not sure how this applies to my cloning issue Well, String

Re: Cloning Form Beans

2003-06-12 Thread Erik Price
Erik Price wrote: But you're still not safe yet. What if somehow someone had held onto a reference to one of the Date objects passed into the constructor? Date myEvilStart = new Date(); Date end = new Date(); Period p = new Period(myEvilStart, end); // at this point is p immutable

Re: Cloning Form Beans

2003-06-12 Thread Erik Price
Jerry Jalenak wrote: Erik, Thanks for the lesson - and I'll get out and get a copy of Josh's book. In the meantime I've also discovered that 'clone' basically does a shallow copy - i.e. if there is a nested construct of javabeans, clone will only copy the hightest level, and then place

Re: need all info. regd Tags in Struts..

2003-06-11 Thread Erik Price
Rajat Nayer wrote: I can upgrade to Tomcat 4.x version .. i do not see any issue there.. just need to know the link to a tutorial that helps me build a simple EJB-Strust appln. Try Xpetstore: http://xpetstore.sourceforge.net/ Uses EJB, Struts, Xdoclet, Hibernate, JBoss, etc Erik

Re: Why is dbcp / pool removed?

2003-06-10 Thread Erik Price
Ed Yu wrote: You are better off using JNDI lookup to get the datasource. This is suppose to be universal (Tomcat and Jrun seems to work identical) although I've found a couple of differences among containers. Do you know of a decent how-to document on designs to use this method rather than

  1   2   >