Re: Migrating to Struts

2004-11-30 Thread Leon Rosenberg
Hi, we recently migrated an application, which i consider large (about 100K loc java code) from XSLT / XSP / EJB to JSP / STRUTS / COD To be true we have not reused a single line of java code. We reused much of XSLT code in jsps, because the outgoing html had to look the same. We reused some of

Re: Migrating to Struts

2004-11-30 Thread Leon Rosenberg
Hi, we recently migrated an application, which i consider large (about 100K loc java code) from XSLT / XSP / EJB to JSP / STRUTS / COD To be true we have not reused a single line of java code. We reused much of XSLT code in jsps, because the outgoing html had to look the same. We reused some of

AW: obfuscation Struts config

2004-12-02 Thread Leon Rosenberg
Tried http://www.zelix.com/klassmaster/ already? Regards Leon -Ursprüngliche Nachricht- Von: Franck DARRAS [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 2. Dezember 2004 18:31 An: Struts Users Mailing List Betreff: obfuscation Struts config Hello, I search a product (free

AW: obfuscation Struts config

2004-12-02 Thread Leon Rosenberg
Tried http://www.zelix.com/klassmaster/ already? Regards Leon -Ursprüngliche Nachricht- Von: Franck DARRAS [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 2. Dezember 2004 18:31 An: Struts Users Mailing List Betreff: obfuscation Struts config Hello, I search a product (free

Re: [OT]Threads and Servlets Question

2004-12-06 Thread Leon Rosenberg
-Original Message- From: Craig McClanahan [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 1:24 PM To: Struts Users Mailing List Subject: Re: [OT]Threads and Servlets Question If you're running on a J2EE app server, or a servlet container configured with

Re: [OT]Threads and Servlets Question

2004-12-06 Thread Leon Rosenberg
-Original Message- From: Craig McClanahan [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 1:24 PM To: Struts Users Mailing List Subject: Re: [OT]Threads and Servlets Question If you're running on a J2EE app server, or a servlet container configured with

AW: [OT]Threads and Servlets Question

2004-12-06 Thread Leon Rosenberg
If the brass monkeys upstairs would let me, I would. However, they won't, and I've used up all of my oops I did it anyway cards for a while. So, while helpful, doesn't really answer my question. As for a finite resource.. as someone else said so is memory, disk space, CPU, etc etc.

AW: [OT]Threads and Servlets Question

2004-12-06 Thread Leon Rosenberg
If the brass monkeys upstairs would let me, I would. However, they won't, and I've used up all of my oops I did it anyway cards for a while. So, while helpful, doesn't really answer my question. As for a finite resource.. as someone else said so is memory, disk space, CPU, etc etc.

Re: [OT] Tomcat vs Resin

2004-12-07 Thread Leon Rosenberg
Hi, 1) What do people think about Resin 3.x? It's very cool, and development under resin is much easier, at least till 3.0.8 (haven't tried 3.0.9 and new performance packs yet) 2) I've seen quite a few people say that Resin is faster than Tomcat. Is this still true for Tomcat 5.x (not 5.5,

Re: [OT] Tomcat vs Resin

2004-12-07 Thread Leon Rosenberg
Hi, 1) What do people think about Resin 3.x? It's very cool, and development under resin is much easier, at least till 3.0.8 (haven't tried 3.0.9 and new performance packs yet) 2) I've seen quite a few people say that Resin is faster than Tomcat. Is this still true for Tomcat 5.x (not 5.5,

[OT] Tomcat vs Resin

2004-12-08 Thread Leon Rosenberg
-Ursprüngliche Nachricht- Von: Bill Keese [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 8. Dezember 2004 08:44 An: Struts Users Mailing List Betreff: Re: [OT] Tomcat vs Resin With lightweight pages resins performance is double of tomcat performance (400 requests per second

[OT] Tomcat vs Resin

2004-12-08 Thread Leon Rosenberg
-Ursprüngliche Nachricht- Von: Bill Keese [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 8. Dezember 2004 08:44 An: Struts Users Mailing List Betreff: Re: [OT] Tomcat vs Resin With lightweight pages resins performance is double of tomcat performance (400 requests per second

AW: Preventing concurrent execution of an Action

2004-12-14 Thread Leon Rosenberg
Replace synchronized(UpdateXmlAction.class) with synchronized(this) and you have the same behaviour, as if you would make the whole method synchronized. You don't need your locked flag, it's provided by java object monitors automatically. BUT, synchronizing doExecute in an

AW: Preventing concurrent execution of an Action

2004-12-14 Thread Leon Rosenberg
Replace synchronized(UpdateXmlAction.class) with synchronized(this) and you have the same behaviour, as if you would make the whole method synchronized. You don't need your locked flag, it's provided by java object monitors automatically. BUT, synchronizing doExecute in an

AW: Preventing concurrent execution of an Action

2004-12-14 Thread Leon Rosenberg
Small correction, In your example there is a difference whether you have a multiprocessor machine. On a single-proc machine it will work fine (prevent second user from overwriting), on a multi-processor machine it's undefined. Regards Leon -Ursprüngliche Nachricht- Von: Durham David R

Re: Preventing concurrent execution of an Action (example)

2004-12-14 Thread Leon Rosenberg
Ok, just in case it was more confusing then helping. Here is the (imho) safe solution (haven't tested it, but it should work fine): The isLock method is needed to ensure, that all threads have the same lock value. Volatile should guarantee it, but it's not supported on all vms. You should call the

AW: Struts and JDK 1.4.2_06

2004-12-17 Thread Leon Rosenberg
Have you made a clean build? Deleted the work directory of the jsp-container? -Ursprüngliche Nachricht- Von: Mike Darretta [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 17. Dezember 2004 20:21 An: [EMAIL PROTECTED] Betreff: Struts and JDK 1.4.2_06 I encountered a strange issue

AW: Preventing concurrent execution of an Action

2004-12-14 Thread Leon Rosenberg
Small correction, In your example there is a difference whether you have a multiprocessor machine. On a single-proc machine it will work fine (prevent second user from overwriting), on a multi-processor machine it's undefined. Regards Leon -Ursprüngliche Nachricht- Von: Durham David R

Re: Preventing concurrent execution of an Action (example)

2004-12-14 Thread Leon Rosenberg
Ok, just in case it was more confusing then helping. Here is the (imho) safe solution (haven't tested it, but it should work fine): The isLock method is needed to ensure, that all threads have the same lock value. Volatile should guarantee it, but it's not supported on all vms. You should call the

AW: ServletContext, Initialisation, Distributed Environments

2004-12-15 Thread Leon Rosenberg
Having to set things back explicitly is very bad. You should _always_ set whatever you change explicitly! Silent changes will fail in most frameworks or distributed environments. If struts would show such behaviour you should report it as bug. Often the objects in question are non-trivial

AW: ServletContext, Initialisation, Distributed Environments

2004-12-15 Thread Leon Rosenberg
Having to set things back explicitly is very bad. You should _always_ set whatever you change explicitly! Silent changes will fail in most frameworks or distributed environments. If struts would show such behaviour you should report it as bug. Often the objects in question are non-trivial

AW: How to implement OR functionality in STRUTS

2005-01-05 Thread Leon Rosenberg
The ... is exactly one line, because it's only a flag: logic:equal condition1 bean:define id=flag type=java.lang.String value=dummy toScope=page/ /logic:equal logic:equal condition2 bean:define id=flag type=java.lang.String value=dummy toScope=page/ /logic:equal logic:present name=flag ...

AW: How to implement OR functionality in STRUTS

2005-01-05 Thread Leon Rosenberg
The ... is exactly one line, because it's only a flag: logic:equal condition1 bean:define id=flag type=java.lang.String value=dummy toScope=page/ /logic:equal logic:equal condition2 bean:define id=flag type=java.lang.String value=dummy toScope=page/ /logic:equal logic:present name=flag ...

AW: Attributes Initialization

2005-01-07 Thread Leon Rosenberg
I think you need following: action path=/dialog type=segev.CreateFormAction scope=request forward name=success path=/submit.jsp/ /action In execute of CreateFormAction you can do your initialization. -Ursprüngliche Nachricht- Von: [EMAIL

[SOLVED] [OT] Tomcat hangs in getAttribute / HashMap.get()

2005-09-06 Thread Leon Rosenberg
Tomcat user list was very helpful :-) As I know struts commiters, they will refuse to add an utility to syncronize access to session attributes, someone else interested? regards Leon On Tue, 2005-09-06 at 11:24 +0200, Leon Rosenberg wrote: Hi, I know this is quite OT but maybe someone has

[IMPORTANT] tomcat 5.0.19+ is broken / not useable with struts / your voice needed

2005-09-07 Thread Leon Rosenberg
to whom it may concern There is a serious bug in tomcat 5. To make it short, if you write to or read from session (taglibs included) and have a chance that there is more than one request from same user currently proceeded on the server (and it can be just a web-page refresh, our beloved F5 key)

Re: Who (really) decides?

2005-09-10 Thread Leon Rosenberg
-Ursprüngliche Nachricht- Von: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Gesendet: Samstag, 10. September 2005 17:12 An: Struts Users Mailing List Betreff: Re: Who decides? Ted Husted wrote: Sometimes, we hear about people voting with their feet. Here, we invite people

AW: Who decides?

2005-09-10 Thread Leon Rosenberg
-Ursprüngliche Nachricht- Von: Craig McClanahan [mailto:[EMAIL PROTECTED] Gesendet: Samstag, 10. September 2005 18:06 An: Struts Users Mailing List; [EMAIL PROTECTED] Betreff: Re: Who decides? Here's a couple of things that (had we known then what we know now) would very

AW: AW: Who decides?

2005-09-10 Thread Leon Rosenberg
-Ursprüngliche Nachricht- Von: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Gesendet: Samstag, 10. September 2005 18:47 An: Struts Users Mailing List Betreff: Re: AW: Who decides? Leon Rosenberg wrote: I think they 'de facto' are stateless singletons? I mean the controller

Re: Who (really) decides?

2005-09-12 Thread Leon Rosenberg
On Mon, 2005-09-12 at 06:23 -0400, Ted Husted wrote: On 9/10/05, Leon Rosenberg [EMAIL PROTECTED] wrote: I agree with Frank that, what Ted says, is nice and right and everything, but it's the theory. The real life shows it's cold shoulder. I don't know whether my example fits your

RE: Who (really) decides?

2005-09-12 Thread Leon Rosenberg
a quote from remy (in the bug comments) I wasn't really serious. In the end, it's not really my decision, so you should send a request to the pmc once it is correctly setup. So I assume TC is a TLP but they aren't functional yet, this would explain Ted's and your posts :-) regards Leon On Mon,

Re: Session Synchronization Issues (Re: Who (really) decides?)

2005-09-12 Thread Leon Rosenberg
On Mon, 2005-09-12 at 11:18 -0500, Joe Germuska wrote: At 5:24 PM +0200 9/12/05, Leon Rosenberg wrote: And I think there is no PMC for tomcat? Tomcat is still officially a Jakarta subproject, so the Jakarta PMC fills this role. I'm not sure at this time if they are planning to move

re: Who decides?

2005-09-12 Thread Leon Rosenberg
-Ursprüngliche Nachricht- Von: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Gesendet: Montag, 12. September 2005 20:36 An: Struts Users Mailing List Cc: Struts Users Mailing List Betreff: Re: Who decides? On Mon, September 12, 2005 2:26 pm, Rick Reumann said: An employeer

[TEST] Test please ignore

2005-09-14 Thread Leon Rosenberg
Test please ignore, switched account to gmail and somehow my mails seems to be ignored... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: logic:equal versus Scriptlet...

2005-09-15 Thread Leon Rosenberg
I'm making a guess, since I'm too lazy to check the actual jsp source code, but i would assume, that bean:define defines the variable to the scope page and ties it to the page for scripting. When you perform your: isEmpty = false; you change the value of the scripting variable, but not the one

Re: [OT] Direct-to-DOM validation

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

Re: Populating a select box from a database

2005-09-24 Thread Leon Rosenberg
2cents I think you should check Rick Reumans lessons on struts. Unfortunately I forgot the link, but you can easily google it out. In short words, nothing in your classes which has an import to *.struts or javax.http.* should even know anything about the database or that there is a database. You

Re: Serializable

2005-09-30 Thread Leon Rosenberg
I wouldn't do it, unless you use distributed sessions. Having serializable forms will cause tomcat to dump everything from the session to a file, and reload it after restart. Unless you explicitely want this (user-invisible restart, but then you need to make EVERYTHING serializable) it makes

[Shale]Newbie question

2005-10-03 Thread Leon Rosenberg
Hi, after long time of scepticism I decided to try out Shale. I downloaded the shale nightly and installed it on my tomcat 5.0.28. Somehow it was not very satisfying. The struts-shale-usecases runs (or I suppose it to run) with a lot of warnings, but dont give the example, an application

Re: [Shale]Newbie question

2005-10-04 Thread Leon Rosenberg
Thanx David, Gary. On 10/4/05, Gary VanMatre [EMAIL PROTECTED] wrote: The use-case application's purpose is to demo the requirements of a specific feature of Shale. We have not built an example using all the Shale features. Shale is a framework built on top of JSF. It provides value added

Re: [Shale]Newbie question

2005-10-04 Thread Leon Rosenberg
Thanx, Graig, but you opened more new questions as you answered :-) On 10/4/05, Craig McClanahan [EMAIL PROTECTED] wrote: ... I would think that for most web applications, you wouldn't want a user to attempt to jump into the middle of a dynamic web application without a context within

Re: Struts action forms crossing sessions? Any idea whythisishappening?

2005-10-04 Thread Leon Rosenberg
What's your container? I saw this behaviour on older resin implementations, it was obviously a bug, that in some sequence of requsts the session got mixed, B got A's session, but only for one request, after that it had it's own session. Try to log out the session id and the value of the jsessionid

Re: [Shale]Newbie question

2005-10-04 Thread Leon Rosenberg
ok, asking the other way around, does someone have anything that could serve an example application for Shale and he or she is ready to share? thanx leon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [Shale]Newbie question

2005-10-04 Thread Leon Rosenberg
On 10/4/05, Greg Reddin [EMAIL PROTECTED] wrote: On Oct 4, 2005, at 3:55 AM, Leon Rosenberg wrote: That's another interesting question, if JSF is all-component, what do I need tiles for? I mean Tiles was cool to define a common renderer for an abstract view-component which

Re: Struts action forms crossing sessions? Any ideawhythisishappening?

2005-10-04 Thread Leon Rosenberg
On 10/4/05, Preston CRAWFORD [EMAIL PROTECTED] wrote: Tomcat 5.0.28. this should work. However try logging out the sessionIds and compare them to the jsessionid cookies, just to be sure. Maybe you are also hit by the tomcat session bug: http://issues.apache.org/bugzilla/show_bug.cgi?id=36541

Re: [OT] Struts , Portal how does this fit

2005-10-05 Thread Leon Rosenberg
what exactly is your definition of a portal? Why shouldn't you be able to build a portal with struts? If you can build it with Servlets/JSPs, than you can build it with struts. as for your third question, what is the difference between a website and a portal? regards leon On 10/5/05, Ashish

Re: Where to start?

2005-10-05 Thread Leon Rosenberg
On 10/5/05, Brian Gorby [EMAIL PROTECTED] wrote: Where is a good place to begin here? Should I start at the View and work my way down, or first program the model and ORM service? Are there any design tools that prove overly helpful in determining all of this? Most agile development books (XP

Re: bean:message with dynamic key?

2005-10-05 Thread Leon Rosenberg
bean:define id=key toScope=page type=java.lang.Stringbean:write name=foo/bar/bean:define bean:message name=key/ regards Leon On 10/5/05, Mick Knutson [EMAIL PROTECTED] wrote: I want to write a bean:message with a dynamic key such as: bean:message key=c:out value='$foo' /bar / So that my

Re: Base action class

2005-10-06 Thread Leon Rosenberg
personally I do overwrite execute in my baseaction and define an abstract doExecute which all extending classes has to implement and which is called by the execute method of the BaseAction after all checks are done. My BaseAction usually also define methods which can be overridden by the

Re: Base action class

2005-10-06 Thread Leon Rosenberg
On 10/6/05, Koen Jans [EMAIL PROTECTED] wrote: What BaseActions also can do is to instantiate and manage resources (yes servlet content listener can do this too, but i like to have it in one place), services and so on. They also provide methods to handle request parameters typed

Re: [OT] Struts , Portal how does this fit

2005-10-06 Thread Leon Rosenberg
Just out of the interest, what are the feature of a portal server, I don't have either way? On 10/6/05, Martin Gainty [EMAIL PROTECTED] wrote: Indeed The websphere portal server is a comprehensive approach when deploying in IBM environments.. If you are looking for an approach which works

[OT] How much RAM can java use

2005-10-06 Thread Leon Rosenberg
Sorry for off-topic, but there are so many experts here! :-) Does anyone know for sure how much RAM I can use with JAVA 1.4 or 1.5? It seems to me, that the VM don't use more than 1.2 GB RAM even I gave it more (with mx/ms settings). We are planning to go to 16GB RAM machines to have a better

Re: Base action class

2005-10-07 Thread Leon Rosenberg
On 10/6/05, Frank W. Zammetti [EMAIL PROTECTED] wrote: Leon Rosenberg wrote: Well you shouldn't have anything with Database in the name in your action, it should be encapsulated in a service POJO. I'm not so sure about this... I understand the motivation for saying it and agree

Re: Strange Problem with logic:equals!

2005-10-07 Thread Leon Rosenberg
On 10/7/05, starki78 [EMAIL PROTECTED] wrote: Hi, we have a strange Problem with logic:equal Look at the following code: //-- first we create a bean bean:define id=myBeanValue value=1/ //-- changing the value is this possible in the way??? % myBeanValue = 2; % change this to

Re: OT: RE: Development philosophy and such (was: Base action class)

2005-10-07 Thread Leon Rosenberg
On 10/7/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Frank, Sorry couldn't help but remark that... it seems some people are forgetting the software engineering basics.. :) There is no silver bullet! Damned, and I actually thought I found one :-) But seriously, I think the

Re: JSP/design/flow question.

2005-10-09 Thread Leon Rosenberg
Actually, it's your choice. If you wish you can serve all three pages from a single JSP. Probably it would be nearest to best practices to make 2 and 3 one jsp. I think the best way, would be to have Page2 und Page 3 as separate JSPs, but using a common tile for data presentation. Regards Leon

Re: OT: RE: Development philosophy and such (was: Base action class)

2005-10-10 Thread Leon Rosenberg
On 10/10/05, Ted Husted [EMAIL PROTECTED] wrote: In terms of requirements, my favorite silver bullet is Cockburn-style Use Cases. Looking back over some of the requirements documents I've written over the the years, this Use Case format was my missing link. *

Re: OT: RE: Development philosophy and such (was: Base action class)

2005-10-10 Thread Leon Rosenberg
On 10/10/05, Ted Husted [EMAIL PROTECTED] wrote: Cockburn includes examples of all that in his book. An author is just not compelled to include more detail than is needed for a particular case. Issues like granularity are a matter of taste for particular team, not an issue proscribed by the

[OT] Servlet 2.5, what is the right JSR?

2005-10-12 Thread Leon Rosenberg
Hi, There are a lot of google entries about servlet 2.5 spec, but I fail to find the JSR for it. The JSR 154 states itself as 2.4 (shorty in maintenance review), but offers a 2.5 download. Now is this the http://www.jcp.org/aboutJava/communityprocess/maintenance/jsr154/index3.html official 2.5

Re: findforward w/session objects

2005-10-12 Thread Leon Rosenberg
session.setAttribute(file, temp); vs. request.getAttribute(file); you know that request and session are different scopes? change the second line to request.getSession().getAttribute(file); regards leon On 10/11/05, Chris Pat [EMAIL PROTECTED] wrote: Hello When I use the code below the Action

Re: Communication between Applet and Struts

2005-10-13 Thread Leon Rosenberg
On 10/13/05, Matthias Holthus [EMAIL PROTECTED] wrote: Hi! Perhaps this is offtopic but I don't know a better place to ask. Sorry for that. ;) Step 1. Define a protocol to be spoken between the applet and the server side application. XML would be first choice, but you also can use Java

Re: Communication between Applet and Struts

2005-10-13 Thread Leon Rosenberg
On 10/13/05, Matthias Holthus [EMAIL PROTECTED] wrote: Hi! Perhaps this is offtopic but I don't know a better place to ask. Sorry for that. ;) Step 1. Define a protocol to be spoken between the applet and the server side application. XML would be first choice, but you also can use Java

Re: Communication between Applet and Struts

2005-10-13 Thread Leon Rosenberg
On 10/13/05, Matthias Holthus [EMAIL PROTECTED] wrote: Hi! Perhaps this is offtopic but I don't know a better place to ask. Sorry for that. ;) Step 1. Define a protocol to be spoken between the applet and the server side application. XML would be first choice, but you also can use Java

Re: Struts and db connections :: best practice

2005-10-14 Thread Leon Rosenberg
I will try to answer for Larry :-) On 10/14/05, emre akbas [EMAIL PROTECTED] wrote: Larry, I think you are using DAO. Then, I want to ask you how do you deal with the SQLException's and unclosed connections in your DAO classes if you are using JDBC as the persistence layer. Say, you have

Re: Clever trick required

2005-10-18 Thread Leon Rosenberg
1) Don't high-jack threads. Start a new one if you really want an answer. 2) This is hardly a topic for the struts-user list. mail to [EMAIL PROTECTED] 3) What is tomcat 5.1??? leon On 10/18/05, Neil Meyer [EMAIL PROTECTED] wrote: Hi, I know this is probably of topic but I have huge problems

Re: What's wrong with DTOs?

2005-10-18 Thread Leon Rosenberg
On 10/18/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: -Original Message- From: Frank W. Zammetti [snip] Ted, this seems to be saying that you consider the Actions to be part of the view... is that what you intended? I can't answer for Ted, but I consider *all* of MVC

Re: What's wrong with DTOs?

2005-10-18 Thread Leon Rosenberg
On 10/18/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I can't answer for Ted, but I consider *all* of MVC to be part of the view tier. The Model is just the presentation layer's view of the business system. It should be abstract and opaque and contain all of the business logic.

Re: What's wrong with DTOs?

2005-10-19 Thread Leon Rosenberg
, October 18, 2005 4:49 PM Subject: RE: What's wrong with DTOs? From: Leon Rosenberg P.S. Have you ever considered, that the View itself can be an MVC as well? Yes, patterns are fractal. - To unsubscribe, e-mail: [EMAIL

Re: Serialize Form-Beans with a Database. A good strategy?

2005-10-21 Thread Leon Rosenberg
as long as you only use it as blob, store and retrieve it, without querying subforms, a byte[] gained through serialization or externalization would be surely the faster alternative... regards leon On 10/21/05, gollinger [EMAIL PROTECTED] wrote: Ciao, I've planned to transform a Form-Bean to

Re: [slightly OT] Prince of Struts questions his database maintenance strategy

2005-10-25 Thread Leon Rosenberg
my option is a) and it works far better than hibernate or ibatis :-) as for other options: b) can't happen, because you don't code sql in jsp if you code struts :-) c) ah well, same as a) isn't it? d) can't happen, there are no perfect applications, only changing applications or dead applications

Re: [OT] Cookies enabled on browsers

2006-01-16 Thread Leon Rosenberg
On 1/16/06, Deepa Khetan [EMAIL PROTECTED] wrote: yes, i also dont understand the same. when i keep my browser privacy level to medium-High i get a true for request.isRequestedSessionIdFromCookie() , and if it is High or All Cookies Blocked , i get it as false! Also, i have non-persistent

Re: struts/jsp security/access question

2006-01-19 Thread Leon Rosenberg
4. put all jsps under WEB-INF so they are NOT accessable via url. always link urls to actions and forward to jsps. Make a simply forward action (the only line: return mapping.findForward(success); ) for jsp which do not need any preprocessing regards Leon On 1/19/06, David Thielen [EMAIL

Re: Manage JSP View (READ-ONLY, READ-WRITE) with FormView

2006-01-28 Thread Leon Rosenberg
btw, the title of your sourceforge page http://formview.sourceforge.net/ is From View not Form View. A typo I guess. (head titleFrom View/title ) regards Leon On 1/28/06, Angelo zerr [EMAIL PROTECTED] wrote: Hello, I mail you to announce that FormView project is created on sourceforge.

Re: [Friday] - finding the Mavens in the Java world

2006-02-03 Thread Leon Rosenberg
David Geary (http://www.jroller.com/page/dgeary) states himself as maven on his page, and writes some other names: http://jroller.com/page/dgeary?catname=%2FRuby+on+Rails Connectors are people who are extraordinarily connected to other people: they are the people who seem to know everybody.

Re: Using HTTP Client in Struts to send xml and show rendered document

2006-02-15 Thread Leon Rosenberg
your another application send a request to your struts application, your struts application generates the answer as xml (you can stream out w3c xml objects through the response stream or just have a jsp which generates the xml) the first application grabs the struts application's response and

Re: Statistics

2006-02-17 Thread Leon Rosenberg
I have developed a solution where each struts action has an ActionStats object which counts automatically number of requests, number of errors, min/mid/max/last execution times and does all this for any specified intervals (5minutes, 15 minutes, 1 hour etc). Another action then generates xml and

Re: [Friday]

2006-02-20 Thread Leon Rosenberg
you soap the rope to make it slide well and you are sure the knot will really break your neck. On 2/20/06, Marco Mistroni [EMAIL PROTECTED] wrote: Hello, The expression applies in greek as well and is used to point out a difficult situation where rope and soap is the obvious way out :-)

Re: [OT] Ruby on rails VS Java Based Web Applications

2006-02-20 Thread Leon Rosenberg
Well RoR is a wonderful thing if you are playing. But you can't develop and you have no chance to maintain a serious application with it. So the proper question would be RoR or php and php would probably win :-) Leon On 2/20/06, Garner, Shawn [EMAIL PROTECTED] wrote: Can anyone give me pros and

Re: [OT] Ruby on rails VS Java Based Web Applications

2006-02-20 Thread Leon Rosenberg
On 2/20/06, Dave Newton [EMAIL PROTECTED] wrote: Leon Rosenberg wrote: Well RoR is a wonderful thing if you are playing. But you can't develop and you have no chance to maintain a serious application with it. I'm having zero issues maintaining several, although they are not high-load apps

Re: [OT] Ruby on rails VS Java Based Web Applications

2006-02-20 Thread Leon Rosenberg
- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: Monday, February 20, 2006 2:03 PM To: Struts Users Mailing List Subject: Re: [OT] Ruby on rails VS Java Based Web Applications Well RoR is a wonderful thing if you are playing. But you can't develop and you have no chance to maintain

Re: [OT] Ruby on rails VS Java Based Web Applications

2006-02-20 Thread Leon Rosenberg
for you to use ror? leon On 2/20/06, Dave Newton [EMAIL PROTECTED] wrote: Leon Rosenberg wrote: On 2/20/06, Dave Newton [EMAIL PROTECTED] wrote: Leon Rosenberg wrote: Well RoR is a wonderful thing if you are playing. But you can't develop and you have no chance to maintain a serious

Re: [OT] Ruby on rails VS Java Based Web Applications

2006-02-20 Thread Leon Rosenberg
On 2/20/06, Dave Newton [EMAIL PROTECTED] wrote: Leon Rosenberg wrote: well... maybe you are a totally cool development team, A yeah. Okay, not really ;) following call stacks, debugging... distribution and so on would be a real mess... but, as I told before, I never tried myself

Re: [OT] Ruby on rails VS Java Based Web Applications

2006-02-21 Thread Leon Rosenberg
PROTECTED] wrote: Leon Rosenberg wrote: I rather ment things like interception/reflection or/and AOP :-) Ah. Lots of reflection. AOP is being actively discussed for Ruby2. Pure-Ruby implementations for simple AOP exist but I've not used them. Pardon me for being devils advocate, but how do you

Re: [OT] Ruby on rails VS Java Based Web Applications

2006-02-21 Thread Leon Rosenberg
Very interesting numbers, please allow me a question, you have only 43 lines of java code in your application, but 1107 lines ruby code... but are talking about smaller code base with ror? :-) leon On 2/21/06, Dave Newton [EMAIL PROTECTED] wrote: Leon Rosenberg wrote: A pretty simple document

Re: How to inject code between HEAD /HEAD of a generated page ?

2006-02-23 Thread Leon Rosenberg
headyourtag/head? regards leon On 2/23/06, David Duke [EMAIL PROTECTED] wrote: Hi everybody, This is my first post on this mailing list. I developped a personal tag librairy which need to inject code - link a javascript or stylesheet file - between the XHtml head /head tags of my

Re: How to inject code between HEAD /HEAD of a generated page ?

2006-02-23 Thread Leon Rosenberg
/yourtag Dave Newton a écrit : Leon Rosenberg wrote: headyourtag/head? Ah, see, that won't work. Try headyourtag//head instead. ;) (Hey, it was either this or I would have had to respond to the I want to write a fully object-based Java program, how do I do that? thread

Re: Business logic validation should be handled in business objec ts.

2006-02-23 Thread Leon Rosenberg
class Person{ Date birthday; public void setBirthday(Date aBirthday){ int age = calculateAge(aBirthday); if (dMIN_AGE) throw new PersonValidationException(You are far too young); if (dMAX_AGE) throw new PersonValidationException(You are probably dead by now);

Re: Off Topic Expression Language question

2006-02-23 Thread Leon Rosenberg
is it always the same object (class) and the same method you are calling? In this case I'd suggest you write a three-line custom tag for it. If you have to do it more often, maybe a tag using reflection api would be an answer. I you write one, let me know, I may need one too :-) regards Leon On

Re: BusinessObject and DataTransferObject

2006-02-23 Thread Leon Rosenberg
On 2/23/06, Simon Chappell [EMAIL PROTECTED] wrote: I'm sure someone can give you a much more Comp.Sci. answer, but here's my in the trenches answer. A business object is any object that you use to represent a business concept. Classic examples would be customer, address and order. A data

Re: How to inject code between HEAD /HEAD of a generated page ?

2006-02-23 Thread Leon Rosenberg
: Thursday, February 23, 2006 7:53 AM To: Struts Users Mailing List Subject: Re: How to inject code between HEAD /HEAD of a generated page ? Na, he just asummed the tag was doing additionnal work at a later part: /html /yourtag Dave Newton a écrit : Leon Rosenberg wrote

Re: [OT] Java Hosting Providers, yes, I know it's been brought up before on the list.

2006-03-01 Thread Leon Rosenberg
I can offer you webhosting. In fact I'm doing this to a (small) number of customers right now. You can have your own tomcat and virtual host integration in the apache. Mail/Backup/ssh/ftp access is also offered. Contact me offlist if you are interested :-) Leon On 3/1/06, Rick Reumann [EMAIL

[OT] Question about licensing

2006-03-08 Thread Leon Rosenberg
I'm sorry for OT, but I am pretty stupid with legal stuff, and after carefully reading gnu und apache license packages I am as unknowing as I was before. Here my problem: I am trying to convince one of my customers to make some of the libs I wrote for him public available. For process reasons the

Re: [OT] Question about licensing

2006-03-08 Thread Leon Rosenberg
in the distribution under the same license. -Ted. On 3/8/06, Leon Rosenberg [EMAIL PROTECTED] wrote: I'm sorry for OT, but I am pretty stupid with legal stuff, and after carefully reading gnu und apache license packages I am as unknowing as I was before. Here my problem: I am trying

Re: Auto Generated URLs

2006-03-11 Thread Leon Rosenberg
I think the most easy ways are: use a servlet which maps to title and evaluate the last part of the path use a filter which does the same but maps the last part of the path to a parameter evaluate by the action later. regards leon On 3/11/06, Jeff Thorne [EMAIL PROTECTED] wrote: I have noticed

Re: has struts reached the saturation

2006-03-13 Thread Leon Rosenberg
Just my 2 cents. If you design an application you can consider using different frameworks for different application parts. Struts is there for the presentation layer only. Struts doesn't care for the business logic in behind, and this makes you more flexible. You can use ejb with struts, or

Re: getting started

2006-03-13 Thread Leon Rosenberg
On 3/13/06, Dave Newton [EMAIL PROTECTED] wrote: starki78 wrote: Hibernate is a very fine tool to learn the basics of java Database programming very deeply so if you have time beneath your studies you can learn most from Hibernate!! As a counter-view, I would argue that Hibernate

Re: has struts reached the saturation

2006-03-15 Thread Leon Rosenberg
same here, jobpilot (germans monster.com): java 1538 java struts 120 java jsf 18 On 3/16/06, Hey Nony Moose [EMAIL PROTECTED] wrote: Hey Nony Moose wrote: ... Keyword = jsf ... 21 jobs ... Keyword = struts ... 126 jobs source: http://www.jobnet.com.au click Job Search and try the keywords

Re: has struts reached the saturation

2006-03-15 Thread Leon Rosenberg
Speaking of JSF, is there somewhere a Filter or n extension allowing you to use JSF/Shale/MyFaces without having a single url and send everything over POST? Until there is one, I don't see how you can use JSF in portals, but if there is one, I'd love to try it out :-) regards Leon

Re: has struts reached the saturation

2006-03-16 Thread Leon Rosenberg
(speaking of Front Controller and MVC) and specialized API. A very intrusive approach if you ask me. But this is offtopic for this thread ;) On 3/15/06, Leon Rosenberg [EMAIL PROTECTED] wrote: Speaking of JSF, is there somewhere a Filter or n extension allowing you to use JSF/Shale/MyFaces

Re: ActionForm Stringvariables

2006-03-16 Thread Leon Rosenberg
1. The general rule is: never use null. 2. The specific rule for your application must be given by your application, but in doubt the general rule applies. regards leon On 3/16/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi there, I'm a newbie to struts and I have a question concerning

  1   2   3   4   5   6   >