Re: using a resource key to extra validation errors

2006-02-16 Thread Chris Cheshire
Yes what I have in my code is exactly what is in the example. It is not however what I am after. What is the point of using things from the resource bundle if it only works through 3/4 of the application? I have the error message next to the input field, by hardcoding the result of what would be

Re: [OT] Hiding methods

2006-02-16 Thread Frank W. Zammetti
What's wrong with the implementation? And, if it took my replacement a week to figure that out, I would hope he'd have a replacement shortly thereafter :) Frank Josh McDonald wrote: It's not the idea we're objecting to so much as the suggested implementation. But the problem is no matter h

Re: using a resource key to extra validation errors

2006-02-16 Thread Niall Pemberton
Did you try my suggestion - I believe that will do exactly what you want - you seem to be getting confused between the key used to store the ActionErrors in the request (global error key) and the property under which a message is stored in the ActionErrors. The validwhen example in the struts-exam

Re: Multiple buttons with Dispatch Action

2006-02-16 Thread Michael Jouravlev
Use this one: http://issues.apache.org/bugzilla/attachment.cgi?id=17485 The related ticket: http://issues.apache.org/bugzilla/show_bug.cgi?id=38343 This class is better, simpler and leaner than LookupDispatchAction. Michael. On 2/16/06, Sun Shine <[EMAIL PROTECTED]> wrote: > Hi, > I have a page

Multiple buttons with Dispatch Action

2006-02-16 Thread Sun Shine
Hi, I have a page with multiple 'links'. One is an image button and another is a simple submit button. I was using a Dispatch action that maps to each one of these buttons, using javascript to set the methodToCall on each of the buttons. worked like a charm until... I was informed I cannot use j

Re: using a resource key to extra validation errors

2006-02-16 Thread Chris Cheshire
That's not the issue, it is actually doing that, via a resource bundle lookup (I only have one configured). I want to be able to retrieve the error on the jsp side by getting the key via the resource bundle similar to the way it is being added, instead of just using the value that is referenced in

Re: [OT] Hiding methods

2006-02-16 Thread Paul Benedict
Spring can give you method-level security if you're interested in it. http://acegisecurity.org/ It will use AOP to proxy your classes and make sure any thread has the proper credentials to access your code. Paul __ Do You Yahoo!? Tired of spam?

Re: [OT] Hiding methods

2006-02-16 Thread Dave Newton
Josh McDonald wrote: > It's not the idea we're objecting to so much as the suggested > implementation. > > But the problem is no matter how nice your implementation is, you've > still got to maintain a list of "allowed" classes, which is fine for > you. Unfortunately when you've moved interstate,

Re: using a resource key to extra validation errors

2006-02-16 Thread Niall Pemberton
Modify your code to do this: errors.add("password", message); http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html#section5 Niall - Original Message - From: "Chris Cheshire" <[EMAIL PROTECTED]> Sent: Friday, February 17, 2006 1:50 AM I have an ActionForm

using a resource key to extra validation errors

2006-02-16 Thread Chris Cheshire
I have an ActionForm with its own validate method that adds errors keyed upon entries in a resource bundle, so that the errors can be linked back to the field they are pertinent to, not just as a global error. String label = resources.getMessage("label.password"); ActionMes

Re: [OT] Hiding methods

2006-02-16 Thread Josh McDonald
It's not the idea we're objecting to so much as the suggested implementation. But the problem is no matter how nice your implementation is, you've still got to maintain a list of "allowed" classes, which is fine for you. Unfortunately when you've moved interstate, and your replacement's replaceme

Re: [OT] Hiding methods

2006-02-16 Thread Frank W. Zammetti
Because knowing the calling object might not be sufficient... you may want to know the exact method that called, and further, you may not want to introduce the extra parameter, which changes the public interface. Mind you, I AM NOT saying this is a good idea or anything, but I am a little surp

Re: [OT] Hiding methods

2006-02-16 Thread Frank W. Zammetti
What is so objectionable about it? If you think securing a method is a good idea (I'm not sure I do, but let's assume for the sake of argument), why is this answer "square"? :) I don't doubt there is a better answer, but what is it? Frank Laurie Harper wrote: Frank W. Zammetti wrote: I sa

Re: [OT] Hiding methods

2006-02-16 Thread Frank W. Zammetti
Question: How is the basic concept any different from method-level security on an EJB? Aren't you in essence putting security on a public interface? I personally would tend to not block access to method either, by whatever method, as was originally asked about... but is it really as evil as

Re: struts 2

2006-02-16 Thread Ted Husted
On 2/13/06, Robin Ericsson <[EMAIL PROTECTED]> wrote: > With the merger of Struts and WebWork, where is the best end to start > looking? WebWork website says WebWork 2.2 is a good start, is that the > basic idea from the Struts side aswell? Yes, it is. But the proper reference would be "Action 2"

Re: font classes in html:link

2006-02-16 Thread Dave Newton
Chris Cheshire wrote: > Thanks, I wasn't looking deep enough on the struts site - I didn't > even see that section. I was looking for documentation links at the > top level. > It's a little twisty sometimes. plugh - To unsub

Re: [OT] Hiding methods

2006-02-16 Thread Josh McDonald
The short of it is you can get around public, private etc with reflection anyway, so why slow down the entire system just because you're under the incorrect assumption you can "force" api consumers to do anything? If it's that flaming important, sick the lawyers on 'em. That's what they're for.

Re: [OT] Hiding methods

2006-02-16 Thread Josh McDonald
Strewth! I just went back and read this thread... Throw an exception and check to see if you like the caller That makes baby jesus cry. If you have public methods you don't want people to call, ask them not to. If doing what you ask them not to causes exceptions and their program not to work,

Re: [OT] Hiding methods

2006-02-16 Thread Paul Benedict
It sounds like it is time you move to the Spring Framework. [1] Do not allow your DAO to manage transactions. [2] Transactions are managed by manager proxies. [3] Transaction Managers are configured to say which methods start a transaction. [4] Transaction Managers are smart enough to know, wi

Re: [OT] Hiding methods

2006-02-16 Thread netsql
Wow. Why not method(args, this); so you know the calling object. or better version. register(this); method(arg); Plenty of OO designs. Or just don't make it public, there are 3 "modifier" choices left other then public, including package/friend. I would just expose an

Re: [OT] Hiding methods

2006-02-16 Thread Laurie Harper
Frank W. Zammetti wrote: I saw a very similar question asked a few months back in a general Java forum, and I suggested an answer that I've never had the chance to actually try out... the theory is interesting though... In the method you want to "protect", immediately throw an exception and catc

Re: font classes in html:link

2006-02-16 Thread Chris Cheshire
Thanks, I wasn't looking deep enough on the struts site - I didn't even see that section. I was looking for documentation links at the top level. On 2/16/06, Dave Newton <[EMAIL PROTECTED]> wrote: > Chris Cheshire wrote: > > I am new to using Struts and I can't see how to specify the font class >

Re: font classes in html:link

2006-02-16 Thread Dave Newton
Chris Cheshire wrote: > I am new to using Struts and I can't see how to specify the font class > and styles for an html:link tag. > > Previously I would have something like link body > > I don't see any equivalent thing to use in the html:link tag. > http://struts.apache.org/struts-doc-1.2.x/use

RE: WebWork's OGNL form handling - very RoR in approach. Possible in Struts 1.x?

2006-02-16 Thread Wendel Schultz
Yet again I have reconsidered because ThreadLocals are sort of clumsy, and since I need these objects in the freemarker/velocity/jsp (presentation) phase of the game, I need to clean up the ThreadLocal way late which seems like a filter's job. All of this is just getting obnoxious. We extended Re

font classes in html:link

2006-02-16 Thread Chris Cheshire
I am new to using Struts and I can't see how to specify the font class and styles for an html:link tag. Previously I would have something like link body I don't see any equivalent thing to use in the html:link tag. How do I go about this? Thanks Chris -

RE: Re: [SHALE] Using the Test Framework

2006-02-16 Thread CONNER, BRENDAN \(SBCSI\)
Thanks, George. Good points. ...except I find it easier to test method invocations than Http responses. - Brendan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, February 16, 2006 4:17 PM To: user@struts.apache.org Subject: RE: Re: [SHALE] Using the

Re: Frustrating IE6 Caching problem......PLEASE HELP!!!!

2006-02-16 Thread zahid mohammed
Finally here are the relevant portions of the jsp code. <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%> <[EMAIL PROTECTED] import="witr.domain.User"%> <% response.setH

RE: Re: [SHALE] Using the Test Framework

2006-02-16 Thread George.Dinwiddie
I'm just telling you what I find easier. > -Original Message- > From: CONNER, BRENDAN (SBCSI) [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 16, 2006 4:51 PM > To: Struts Users Mailing List > Subject: RE: Re: [SHALE] Using the Test Framework > > > Although those are interesting co

Re: Frustrating IE6 Caching problem......PLEASE HELP!!!!

2006-02-16 Thread Dave Newton
Frank W. Zammetti wrote: > On Thu, February 16, 2006 4:51 pm, Michael Jouravlev said: > >> The last thing I can think of is a hook, a rope and some soap. >> > > Why do I get the feeling this just turned into a [Friday] post?!? ;) LOL > I was with him until the soap, then I was just scare

Re: [OT] Re: Frustrating IE6 Caching problem......PLEASE HELP!!!!

2006-02-16 Thread Dave Newton
zahid mohammed wrote: > One thing which surprises me is the difference in behavior of " > System.out.println" and the "out.println" statements. The former statement > is printing the write set of elements on the console whereas the " > out.println" is printing the wrong set of elements on the jsp.

Re: Tiles + WebWork

2006-02-16 Thread Greg Reddin
Thank you!! I'll take a look at it as soon as possible. Greg On Feb 16, 2006, at 3:46 PM, Matt Raible wrote: Here's a TilesListener that works for me. It could probably use some polishing and a unit test, but it works for me. http://issues.apache.org/bugzilla/attachment.cgi?id=17721 From b

Re: Frustrating IE6 Caching problem......PLEASE HELP!!!!

2006-02-16 Thread Frank W. Zammetti
On Thu, February 16, 2006 4:51 pm, Michael Jouravlev said: > The last thing I can think of is a hook, a rope and some soap. Why do I get the feeling this just turned into a [Friday] post?!? ;) LOL Frank - To unsubscribe, e-mail:

Re: Frustrating IE6 Caching problem......PLEASE HELP!!!!

2006-02-16 Thread Michael Jouravlev
Does it show the proper data when you reload the page? The last thing I can think of is a hook, a rope and some soap. Or, as another option, get an HTTP sniffer and see what is actually happening. Michael. On 2/16/06, zahid mohammed <[EMAIL PROTECTED]> wrote: > I have checked > Tools->Internet O

RE: Re: [SHALE] Using the Test Framework

2006-02-16 Thread CONNER, BRENDAN \(SBCSI\)
Although those are interesting comments, they don't address my basic point about the amount of effort required to mock up all those calls. ;-) - Brendan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, February 16, 2006 3:41 PM To: user@struts.apache.o

Re: Tiles + WebWork

2006-02-16 Thread Matt Raible
Here's a TilesListener that works for me. It could probably use some polishing and a unit test, but it works for me. http://issues.apache.org/bugzilla/attachment.cgi?id=17721 >From bug: http://issues.apache.org/bugzilla/show_bug.cgi?id=38255 Matt On 2/16/06, Matt Raible <[EMAIL PROTECTED]> wro

Re: Frustrating IE6 Caching problem......PLEASE HELP!!!!

2006-02-16 Thread zahid mohammed
I have checked Tools->Internet Options->Connections->LAN settings and it does not select anything in Proxy Server. Yes the app and browser are on the same machine. PLEASE HELP Thanks. On 2/16/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > Are you sure about that? Maybe your network admi

RE: Re: [SHALE] Using the Test Framework

2006-02-16 Thread George.Dinwiddie
CONNER, BRENDAN wrote: > I understand the concept; I'm just worried about the amount > of effort required to mock up all those calls, relative to > the complexity of my Action methods themselves. One nice > thing about using JSF is that our Action methods themselves > are almost ridiculously s

RE: Re: [SHALE] Using the Test Framework

2006-02-16 Thread CONNER, BRENDAN \(SBCSI\)
Cool. Actually, all joking aside, I'm anxious to learn about it. - Brendan -Original Message- From: Hermod Opstvedt [mailto:[EMAIL PROTECTED] Sent: Thursday, February 16, 2006 3:35 PM To: 'Struts Users Mailing List' Subject: SV: Re: [SHALE] Using the Test Framework Hi If you have not

Re: [OT] Re: Frustrating IE6 Caching problem......PLEASE HELP!!!!

2006-02-16 Thread zahid mohammed
I am not using any network "speedup" mechanisms. If the application was'nt working in Firefox I would have thought there might be some problem in the code, but its working great in firefox which means there is no problem in the code. One thing which surprises me is the difference in behavior of "

SV: Re: [SHALE] Using the Test Framework

2006-02-16 Thread Hermod Opstvedt
Hi If you have not looked at Spring before: Boy do you have something in store for you. Hermod -Opprinnelig melding- Fra: CONNER, BRENDAN (SBCSI) [mailto:[EMAIL PROTECTED] Sendt: 16. februar 2006 22:31 Til: Struts Users Mailing List Emne: RE: Re: [SHALE] Using the Test Framework Sigh.

RE: Re: [SHALE] Using the Test Framework

2006-02-16 Thread CONNER, BRENDAN \(SBCSI\)
Sigh. OK, now I'll *also* look into Spring. I hope their users don't tell me to look into something else ("Autumn"?). ;-) - Brendan -Original Message- From: Hermod Opstvedt [mailto:[EMAIL PROTECTED] Sent: Thursday, February 16, 2006 3:22 PM To: 'Struts Users Mailing List' Subject: SV:

Re: Frustrating IE6 Caching problem......PLEASE HELP!!!!

2006-02-16 Thread Frank W. Zammetti
Ok, silly question... have you run something like HTTPWatch and looked at the request? I had a similar issue a few years back that wound up being a proxy caching something when it shouldn't, and the problem showed up that way. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Tec

Re: Frustrating IE6 Caching problem......PLEASE HELP!!!!

2006-02-16 Thread Michael Jouravlev
Are you sure about that? Maybe your network admin is using it? Check Tools->Internet Options->Connections->LAN settings that it does not select anything in Proxy Server. Is your app and browser on one machine? On 2/16/06, zahid mohammed <[EMAIL PROTECTED]> wrote: > No I am not using firewalls/pro

SV: Re: [SHALE] Using the Test Framework

2006-02-16 Thread Hermod Opstvedt
Hi Easy: Spring. It's all done with configuration. In a no "EJB container available" setting, you configure spring to return a different service than when you have EJB container available. Hermod -Opprinnelig melding- Fra: CONNER, BRENDAN (SBCSI) [mailto:[EMAIL PROTECTED] Sendt: 16. fe

[OT] Re: Frustrating IE6 Caching problem......PLEASE HELP!!!!

2006-02-16 Thread Dave Newton
zahid mohammed wrote: > No I am not using firewalls/proxies. > In the IE options I have tried selecting the options "Every visit to the > page" and "Automatically" for "Check for newer versions of stored pages". > This does'nt make any difference. > > PLEASE HELP > Are you surfing using one

RE: Re: [SHALE] Using the Test Framework

2006-02-16 Thread CONNER, BRENDAN \(SBCSI\)
Or, more precisely, how do you isolate your Web layer from the EJB layer during unit testing and then re-establish the linkage during integration testing in your environment? And what kind of tooling do you use for each? Thanks, - Brendan -Original Message- From: CONNER, BRENDAN (SBCS

Re: Frustrating IE6 Caching problem......PLEASE HELP!!!!

2006-02-16 Thread zahid mohammed
No I am not using firewalls/proxies. In the IE options I have tried selecting the options "Every visit to the page" and "Automatically" for "Check for newer versions of stored pages". This does'nt make any difference. PLEASE HELP Thanks On 2/16/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote

RE: Re: [SHALE] Using the Test Framework

2006-02-16 Thread CONNER, BRENDAN \(SBCSI\)
Sounds good. So how do you isolate your Web Layer from the EJB layer during testing and then re-establish the linkage during deployment in your environment? - Brendan -Original Message- From: Hermod Opstvedt [mailto:[EMAIL PROTECTED] Sent: Thursday, February 16, 2006 2:59 PM To: 'Strut

RE: [OT] Hiding methods

2006-02-16 Thread Frank W. Zammetti
Just a quick hacked-together test: public class test { public static void main(String[] args) { m1(); } private static void m1() { m2(); } private static void m2() { Throwable t = new Throwable(); t.fillInStackTrace(); StackTraceElement[] ste = t.getStackTrace();

SV: Re: [SHALE] Using the Test Framework

2006-02-16 Thread Hermod Opstvedt
Hi I totally agree with Craig. There is a huge difference between Unit testing and Integration testing. We do both, using different tooling for the different test types. Hermod -Opprinnelig melding- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av Craig McClanahan Sendt: 16

Re: Frustrating IE6 Caching problem......PLEASE HELP!!!!

2006-02-16 Thread Jason King
If indeed this is a get like Frank described you can fake out IE by passing a parameter that changes on every call, e.g. http:/server/app/yourpage.jsp?now=<%=System.currentTimeMillis()%> You don't have to use the argument for anything, it just makes IE understand that it has to re-fetch the pag

Re: Frustrating IE6 Caching problem......PLEASE HELP!!!!

2006-02-16 Thread Michael Jouravlev
On 2/16/06, zahid mohammed <[EMAIL PROTECTED]> wrote: > Hi Michael, > I just tried placing another with the meta tags at the bottom of the > jsp. But it did'nt help. I am still getting the old set of elements. > > Please HELP Do you use firewalls/proxies? For example, Naviscope likes to "opti

Re: [OT] Hiding methods

2006-02-16 Thread Dave Newton
[EMAIL PROTECTED] wrote: > I don't think you'd have to throw and catch it. I think it's sufficient > to create an instance of Throwable to check the stack trace. > That is correct. Before you could get the array (or whatever it is) of the stack trace we'd 'print' the stack trace to a string th

RE: [OT] Hiding methods

2006-02-16 Thread Frank W. Zammetti
Hey yeah, I think your right! It *still* may be a little heavy, but one would definitely think less so. Off to play for a few minutes... -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED]

Re: Frustrating IE6 Caching problem......PLEASE HELP!!!!

2006-02-16 Thread zahid mohammed
Hi Michael, I just tried placing another with the meta tags at the bottom of the jsp. But it did'nt help. I am still getting the old set of elements. Please HELP Thanks On 2/16/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > I don't know is this still relevant: > > http://www.htmlgoodie

RE: [OT] Hiding methods

2006-02-16 Thread George.Dinwiddie
Michael Jouravlev replied > On 2/16/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > > In the method you want to "protect", immediately throw an exception > > and catch it. Then, parse the stack trace and see who the > caller was. > > If it's not a class you want to have access to the method

Re: [OT] Hiding methods

2006-02-16 Thread Frank W. Zammetti
Throwing exceptions has always been a somewhat expensive operation, so certainly where high performance is a concern I wouldn't even think of doing this. But, if it's a handful of especially sensitive methods that aren't called all the time, it might be acceptable. Some quick and easy tests shoul

RE: Re: [SHALE] Using the Test Framework

2006-02-16 Thread CONNER, BRENDAN \(SBCSI\)
I understand the concept; I'm just worried about the amount of effort required to mock up all those calls, relative to the complexity of my Action methods themselves. One nice thing about using JSF is that our Action methods themselves are almost ridiculously simple (since the business logic is in

Re: [OT] Hiding methods

2006-02-16 Thread Michael Jouravlev
On 2/16/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > I saw a very similar question asked a few months back in a general Java > forum, and I suggested an answer that I've never had the chance to > actually try out... the theory is interesting though... > > In the method you want to "protect",

Re: Struts Application deployment in iPlanet Server

2006-02-16 Thread Thomas Joseph
Hi Srinivas, > ... can any one suggest which version of iPlanet server is accepting struts application > and how to deploy.. You just need to check with ur iPlanet documentation (release notes) as to which version of Servlet specs does it support. The Struts 1.0 support Servlet Specs v2.2. (s

RE: [SHALE] Using the Test Framework

2006-02-16 Thread George.Dinwiddie
CONNER, BRENDAN (SBCSI) asked: > Sent: Thursday, February 16, 2006 1:08 PM > To: Struts Users Mailing List > Subject: RE: [SHALE] Using the Test Framework > > > OK, so maybe I have to learn more about the injection > process. For all this talk about simplifying the process, > it's starting to

Re: Frustrating IE6 Caching problem......PLEASE HELP!!!!

2006-02-16 Thread Frank W. Zammetti
On Thu, February 16, 2006 2:18 pm, zahid mohammed said: > Thanks for replying Frank. > Your question : Is the URL you are requesting the result of a GET, and > never > changing? > Answer: No. > Just to send a different URL I have appended a variable rand which has > different value everytime.This i

Re: Thread safety in struts and better practice question !

2006-02-16 Thread digant . k . joshi
Laurie: Thanks for your response. You are right big mistake ! Even if Java has pass by value, if you want to make it work like pass by reference you need to have Valid object ( one which is instatiated). Also I wanted initialize method to do work of accessing Ses

Re: Frustrating IE6 Caching problem......PLEASE HELP!!!!

2006-02-16 Thread zahid mohammed
Thanks for replying Frank. Your question : Is the URL you are requesting the result of a GET, and never changing? Answer: No. Just to send a different URL I have appended a variable rand which has different value everytime.This is a part of the code and within the javascript function (onClick fo

Re: Re: [SHALE] Using the Test Framework

2006-02-16 Thread Craig McClanahan
On 2/16/06, Gary VanMatre <[EMAIL PROTECTED]> wrote: > > > >From: "CONNER, BRENDAN (SBCSI)" <[EMAIL PROTECTED]> > > > > OK, I'll look at that. But, out of curiosity, how is the Shale Test > > Framework being used by people now? Is it being used mostly for > > non-3-tier applications? What is the ex

Re: Problem forwarding to an action in another webapp

2006-02-16 Thread Alexandre Simon
Oups... I didn't saw the webapps were in SEPARATE ear files... you will probably encounter some bad classloader issues. Do a redirect, not a forward. Michael Jouravlev wrote: On 2/16/06, Mineau, Christian <[EMAIL PROTECTED]> wrote: We develop an application with Struts MVC. In this applica

Re: Problem forwarding to an action in another webapp

2006-02-16 Thread Alexandre Simon
Action path is relative to the current webapp. What you want is a crosscontext forward, ie. : getServletContext().getContext("/Webapp2").getRequestDispatcher("/action2.do").forward(...) Be sure your container accept it. Hope helps. Mineau, Christian wrote: We develop an application with Str

Re: Frustrating IE6 Caching problem......PLEASE HELP!!!!

2006-02-16 Thread Michael Jouravlev
I don't know is this still relevant: http://www.htmlgoodies.com/beyond/reference/article.php/3472881 "The Pragma statement up above sometimes fails in IE because of the way IE caches files. There is a 64K buffer that must be filled before a page is cached in IE. The problem is that the vast major

Re: Problem forwarding to an action in another webapp

2006-02-16 Thread Michael Jouravlev
On 2/16/06, Mineau, Christian <[EMAIL PROTECTED]> wrote: > We develop an application with Struts MVC. In this application, we have > two webApps containing some Struts Actions in each one (i.e two > Struts-config.xml files). These both webApps are in separate EAR files. > > > > > Example: > > Webap

Problem forwarding to an action in another webapp

2006-02-16 Thread Mineau, Christian
We develop an application with Struts MVC. In this application, we have two webApps containing some Struts Actions in each one (i.e two Struts-config.xml files). These both webApps are in separate EAR files. Example: Webapp1 contains action11 and action12 Webapp2 contains action21 and actio

RE: WebWork's OGNL form handling - very RoR in approach. Possible in Struts 1.x?

2006-02-16 Thread Wendel Schultz
Ok. I meant to declare the private Product as a ThreadLocal. So: private ThreadLocal product; public void setProduct(Product product) { if ( product == null ) { this.product = new ThreadLocal(); } this.product.set( product ); logger.error( "I just got a p

Re: ActionMessage display html tag on the jsp

2006-02-16 Thread RathinaGanesh MeenakshiSundaram
Set the filter="false" on jsp. Like this... Thanks, Ganesh! On 12/23/05, Carl Smith <[EMAIL PROTECTED]> wrote: > > I am using ActionMessage: > > > actionMessages.add(ActionMessages.GLOBAL_MESSAGE, > new ActionMessage("message.key", > parameter1,parameter1,parameter2,parameter3)); > sa

Re: Thread safety in struts and better practice question !

2006-02-16 Thread Laurie Harper
Java just doesn't work like that. See inline: [EMAIL PROTECTED] wrote: My understanding for making Struts action thread safe you shouldn't have instance variable in any action class. Correct ? ( it should be OK if you have read only variable ). But to make app for flexible, so in future you can

RE: Re: [SHALE] Using the Test Framework

2006-02-16 Thread Gary VanMatre
>From: "CONNER, BRENDAN (SBCSI)" <[EMAIL PROTECTED]> > > OK, I'll look at that. But, out of curiosity, how is the Shale Test > Framework being used by people now? Is it being used mostly for > non-3-tier applications? What is the extent of the problem space in > which it is useful? (Obviously,

WebWork's OGNL form handling - very RoR in approach. Possible in Struts 1.x?

2006-02-16 Thread Wendel Schultz
One very nice thing about WebWork and presumably Struts 2.x is the OGNL form data scraping. RoR takes a similar approach. Though I realize many will push back at the idea, I wrote a fairly straightforward way to accomplish putting the form information conveniently in the Action class using XWork'

Re: [OT] Hiding methods

2006-02-16 Thread Frank W. Zammetti
I saw a very similar question asked a few months back in a general Java forum, and I suggested an answer that I've never had the chance to actually try out... the theory is interesting though... In the method you want to "protect", immediately throw an exception and catch it. Then, parse the stac

Re: [OT] Hiding methods

2006-02-16 Thread Laurie Harper
Tom Ziemer wrote: Hi, I have got a question quite unrelated to Struts: My app. is pretty much layered, meaning, I have Hibernate, on top of which there are SpringDAOs, on top of which are Managers that represent my business logic. Now I wonder, if it is possible, to *hide* (maybe with annotatio

Thread safety in struts and better practice question !

2006-02-16 Thread digant . k . joshi
My understanding for making Struts action thread safe you shouldn't have instance variable in any action class. Correct ? ( it should be OK if you have read only variable ). But to make app for flexible, so in future you can change value of variable and pass it around helper functions, I made var

RE: [SHALE] Using the Test Framework

2006-02-16 Thread CONNER, BRENDAN \(SBCSI\)
OK, so maybe I have to learn more about the injection process. For all this talk about simplifying the process, it's starting to get complicated, but, hey, I'm flexible. ;-) Can someone point me to a resource that would explain this in more detail? It sounds like I have to create a bunch of alte

Re: Frustrating IE6 Caching problem......PLEASE HELP!!!!

2006-02-16 Thread Frank W. Zammetti
Question: is the URL you are requesting the result of a GET, and never changing? If so, IE will return a cached result every time after the first GET because it is somewhat over-aggressive in its caching scheme. All the headers in the world tend to not help either. -- Frank W. Zammetti Founder

RE: Re: [SHALE] Using the Test Framework

2006-02-16 Thread CONNER, BRENDAN \(SBCSI\)
OK, I'll look at that. But, out of curiosity, how is the Shale Test Framework being used by people now? Is it being used mostly for non-3-tier applications? What is the extent of the problem space in which it is useful? (Obviously, it's not meant for stand-alone Java J2SE applications, because

RE: [SHALE] Using the Test Framework

2006-02-16 Thread George.Dinwiddie
CONNER, BRENDAN replied: > So are you agreeing that there is currently no framework that > can currently do round-trip testing as I've described it? Or > am I missing something? No, but I'm saying that you'll likely find it messy and difficult to mock out part of a big environment but include o

Frustrating IE6 Caching problem......PLEASE HELP!!!!

2006-02-16 Thread zahid mohammed
Hello All, I have asked this question before in several forums but could'nt get the solution for it. We have a struts application and the server is Tomcat 5.5. I display an Arraylist (set in request) on the first page using Logic:Iterate tag. If the user clicks next, another set is selected and th

RE: Re: [SHALE] Using the Test Framework

2006-02-16 Thread Gary VanMatre
>From: "CONNER, BRENDAN (SBCSI)" <[EMAIL PROTECTED]> > > Thanks for the info. I'm definitely interested in simplifying my > testing strategy to the extent that it's possible, so any suggestions > are welcome. In particular I'm trying to avoid having different > versions of my delegates (one ver

RE: Re: [SHALE] Using the Test Framework

2006-02-16 Thread CONNER, BRENDAN \(SBCSI\)
Thanks for the info. I'm definitely interested in simplifying my testing strategy to the extent that it's possible, so any suggestions are welcome. In particular I'm trying to avoid having different versions of my delegates (one version that returns a dummy result and another that actually makes

Re: Spawning a new window from Action.execute

2006-02-16 Thread Jari Fredriksson
Tom Ansley wrote: Yes, I use javascript for the exact problem you mention. Here is the code I use for the different possible formats: That way the Form gets not submitted, and the bean does not have the latest data on form. It may not always be a problem, but I see it not perfect.. But i

Re: [shale] datatables request scope

2006-02-16 Thread Mark Lowe
On 2/16/06, CONNER, BRENDAN (SBCSI) <[EMAIL PROTECTED]> wrote: > Man, people are going to a lot of work to avoid ! ;-) That is a very good point.. > > - Brendan > > -Original Message- > From: Mark Lowe [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 16, 2006 8:17 AM > To: Struts User

Re: [SHALE] Using the Test Framework

2006-02-16 Thread Laurie Harper
Brendan, I think the upshot of all this is that you *may* be able to use the Shale test framework to mock out the JSF side of things, but run the resulting tests using Cactus so you still get the container functionality you need. However, it's not something anyone's done so it may or may not wo

[OT] Re: Struts in Portals-Help me

2006-02-16 Thread Dave Newton
I HARIKRISHNA wrote: > I am working on a Struts1.1 migration project from Weblogic 6.1 to 8.1 > I have three severe issues > 1)In my 6.1 code i have one import :: > com.bea.jsptools.p13n.usermgmt.servlets.jsp.RealmConfigBean which was > working fine in 6.1 > But in 8.1 i am getting the

[OT] Re: Regarding Struts- Mysql Connection.

2006-02-16 Thread Dave Newton
Ashok kumar wrote: > I am beginner for struts.now I have developed one simple > application using Struts 1.24 with Mysql 4.1.I have created all the tables > successfully.and Program is also correct.And I have copied the " > mm.mysql-2.0.6.jar" into lib Folder.But it Shows some database ex

Re: Example 1 from "Struts in Action" gets stuck at register.do

2006-02-16 Thread Frank W. Zammetti
Think simple: throw some println's in RegisterAction and see where it gets hung up. Also, have a look at this: http://wiki.apache.org/struts/StrutsLogging That may help. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo:

Example 1 from "Struts in Action" gets stuck at register.do

2006-02-16 Thread Martin Wunderlich
Dear all, I am brand new user to Struts and just trying to get the first example from "Struts in Action" working (the little user registration form). My code looks fine and the app deployed ok on Tomcat 5.5.4. However, when I click the submit button of the registration form, I get forwarded to re

Re: problem

2006-02-16 Thread Michael Jouravlev
On 2/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi all I have a problem loading persisted values in tag. > I have > >labelProperty="pathName"/> > > > where allSerials is a list of MySpecialBean with getter and setter methods. Have you already looked here: http://wiki.apache.org

Struts in Portals-Help me

2006-02-16 Thread I HARIKRISHNA
Hi all, I am working on a Struts1.1 migration project from Weblogic 6.1 to 8.1 I have three severe issues 1)In my 6.1 code i have one import :: com.bea.jsptools.p13n.usermgmt.servlets.jsp.RealmConfigBean which was working fine in 6.1 But in 8.1 i am getting the following exception

RE: [SHALE] Using the Test Framework

2006-02-16 Thread CONNER, BRENDAN \(SBCSI\)
So are you agreeing that there is currently no framework that can currently do round-trip testing as I've described it? Or am I missing something? Just trying to get a practical answer. ;-) - Brendan P.S. We *are* using delegates, DAO factories, etc. It just would be nice to be able to test ou

RE: [shale] datatables request scope

2006-02-16 Thread CONNER, BRENDAN \(SBCSI\)
Man, people are going to a lot of work to avoid ! ;-) - Brendan -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Thursday, February 16, 2006 8:17 AM To: Struts Users Mailing List Subject: Re: [shale] datatables request scope The datatable is actually in the request sc

Re: Tiles + WebWork

2006-02-16 Thread Greg Reddin
Matt, Just as an addendum, I have plans to eventually implement a listener to handle the stuff being done by TilesServlet now. Unfortunately, It's a pretty good ways down the list, which you can see here: http://wiki.apache.org/struts/StandaloneTiles. I'm hoping very soon to actually h

RE: [SHALE] Using the Test Framework

2006-02-16 Thread George.Dinwiddie
What Cactus does is allow your test code to run from within the container, controlled by the same test code outside the container. It connects the two with a proxy arrangement. It can call anything in your code or available to your code. Cactus *is* a PITA to work with, and complicated to think

[OT] Hiding methods

2006-02-16 Thread Tom Ziemer
Hi, I have got a question quite unrelated to Struts: My app. is pretty much layered, meaning, I have Hibernate, on top of which there are SpringDAOs, on top of which are Managers that represent my business logic. Now I wonder, if it is possible, to *hide* (maybe with annotations?) my DAOs from al

problem

2006-02-16 Thread [EMAIL PROTECTED]
Hi all I have a problem loading persisted values in tag. I have where allSerials is a list of MySpecialBean with getter and setter methods. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

  1   2   >