Ajax and MVC pattern

2006-05-24 Thread Adam Hardy
I have only a small knowledge of the Ajax frameworks out there and I am trying to work out how much an Ajax app would depend on Struts. I assume the view in an Ajax app is handled at the initial request by a JSP with HTML and that afterwards every request from the browser is XHR, ideally broken

Re: what is the best practice?

2006-05-22 Thread Adam Hardy
Hi Joel, the methods you mention are all data access calls, not business methods, because business methods would actually carry out some form of business logic on the data. But anyway your methods are OK. It just corresponds to the number of ways your app needs to access the data. There

Sealing Violation running struts war files in tomcat5

2006-05-20 Thread Adam Hardy
Does anyone know what this error is caused by? (see below) It's from a jpetstore example application running on tomcat on Debian. A sealing violation means that a class has been loaded from a sealed package (org.apache.commons.collections in this case) and another class from the same package

Re: what is the best practice?

2006-05-20 Thread Adam Hardy
Hi Joel, your English is fine. Best practices would normally dictate that you fetch everything you need from the database in one hit. It does depend on what framework or coding pattern you are using for your database access though. I assume you are coding simple JDBC API calls? I would

Re: How do other deal with being OO and dealing with multselects on front end?

2006-05-11 Thread Adam Hardy
This is something for which I've tried to find an elegant solution on the last couple of projects I worked on. Using DTO / POJOs from Hibernate for the Person and the Cats and Dogs, I end up using a sorted set of Cats or Dogs in the page context, which I then iterate over in the JSP. This

Re: How do otherS deal with being OO and dealing with multi-selects on front end?

2006-05-11 Thread Adam Hardy
. On 5/11/06, Adam Hardy [EMAIL PROTECTED] wrote: This is something for which I've tried to find an elegant solution on the last couple of projects I worked on. Using DTO / POJOs from Hibernate for the Person and the Cats and Dogs, I end up using a sorted set of Cats or Dogs in the page context

Re: how to display a message for every request

2006-05-08 Thread Adam Hardy
Srinivas Vakkalanka on 08/05/06 11:32, wrote: Hi, I am new to struts. I have a request that, for every request I want to display a message or log a message using struts frame work. How this could achieve. Please help in this regard Hi Srinivas, your requirement would normally be implemented

Re: FW: StrutsTestCase Hibernate

2006-05-06 Thread Adam Hardy
I think unit tests on everything are always a good idea - the problem comes if you start making them 'more' than just unit tests. Ideally you should be able to unit test action classes quickly with mock objects or stubs for both the business tier below and the MVC controller tier above.

Re: Are throwing RuntimeExceptions in a struts app 'that evil'?

2006-05-04 Thread Adam Hardy
Rick Reumann on 03/05/06 23:40, wrote: Do I really want to have to wrap that with a try/catch or declare that it throws WhateverException? What does that really gain me? I guess this is religion/style thing. I would never return SQLwhatever exceptions to business/web layer, I would convert

Re: Conditional validation

2006-05-04 Thread Adam Hardy
In the last couple of days someone said that they separated the two flows using GET and POST - or at least I thought so. It sounded interesting but on looking at the struts-config DTD, there seems no way to do this. I can't find the thread in the archive now. Did I misread that previous

Re: Conditional validation

2006-05-04 Thread Adam Hardy
, with wildcards for verbosely declarative simplicity -- now there's an oxymoron for ya :) -- James Mitchell On May 4, 2006, at 11:27 AM, Adam Hardy wrote: In the last couple of days someone said that they separated the two flows using GET and POST - or at least I thought so. It sounded

Re: Conditional validation

2006-05-04 Thread Adam Hardy
Dave Newton on 04/05/06 19:13, wrote: Adam Hardy wrote: In the last couple of days someone said that they separated the two flows using GET and POST - or at least I thought so. It sounded interesting but on looking at the struts-config DTD, there seems no way to do this. I can't find

Re: OT: Bespoke

2006-05-04 Thread Adam Hardy
Vinny on 04/05/06 19:31, wrote: bespoke. Wow. Please setlle this bet among our dev team that you _must_ be Brittish. On 5/4/06, Adam Hardy [EMAIL PROTECTED] wrote: - you would have a bespoke exception superclass Yes I am British! I get all my bespoke exceptions made on Saville Row

Re: iteration with indexed properties

2006-04-24 Thread Adam Hardy
you need to have an instantiated array of wrapper[] that is big enough to take what your HTML submits. If your action form is in the request, then wrappers[] will be null unless you instantiate it. martin on 23/04/06 16:59, wrote: I've a problem with indexed properties inside an iteration.

Re: Can struts do it / 2?

2006-04-21 Thread Adam Hardy
Marco Mistroni on 21/04/06 11:23, wrote: i cant manage to populate back to the Action class,.. since I will have an array of DTO that needs to be submitted from the page. The crucial problem that I am having is mainly that within the logic:iterate, for each 'row' I need to create an input

Re: Can struts do it / 2?

2006-04-21 Thread Adam Hardy
investigate more and get back to the list nxt week.. I m pretty busy on other things at the moment.. Thx and regards marco -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: 21 April 2006 16:16 To: Struts Users Mailing List Subject: Re: Can struts do it / 2? Marco

Re: javascript in mozilla

2006-04-20 Thread Adam Hardy
So my guess was close - you are talking about validation? Chaitanya Parkhi on 20/04/06 10:45, wrote: hi adam,everyrhing is ther in my project but still the same code works in IE but not in firefox. On 4/19/06, Adam Hardy [EMAIL PROTECTED] wrote: Chaitanya Parkhi on 19/04/06 05:59, wrote: hi

Re: strange problem with session IDs

2006-04-19 Thread Adam Hardy
Hi Dan, there would only be a new session id created for the user in step 2 if the user closes the browser after step 1, or if the browser has been configured to start a new session in new windows. Adam Daniel Blumenthal on 19/04/06 06:34, wrote: I'm having a very strange problem with

Re: log 4 j error in struts 1.2.8

2006-04-19 Thread Adam Hardy
Hi Raghuveer, this means that you have either not configured a logger in log4j.properties / log4j.xml, or that java is not finding the file. Your logger name which you are getting with getLogger(cal.getTime) is highly unusual! Such an approach would be virtually impossible to configure

Re: Struts / Tiles Problem with RAD

2006-04-18 Thread Adam Hardy
The IO error indicates that it found the file but just doesn't like it. Are you sure that it is text and hasn't been corrupted? Or is zero length? Hans-Peter Petek on 18/04/06 07:19, wrote: Hallo all, following problem - i developed an app on RAD 6.0 (but weblevel 2.3 - so compliant to was

Re: AW: Struts / Tiles Problem with RAD

2006-04-18 Thread Adam Hardy
-Ursprüngliche Nachricht- Von: Adam Hardy [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 18. April 2006 10:24 An: Struts Users Mailing List Betreff: Re: Struts / Tiles Problem with RAD The IO error indicates that it found the file but just doesn't like it. Are you sure that it is text

Re: friday ha ha

2006-04-18 Thread Adam Hardy
Jonathan Revusky on 18/04/06 09:29, wrote: Well, the fact is that Action2 is just Webwork. What you see on the dev list is just a lot of discussion of renaming packages and classes and taglib prefixes, but hardly anything substantive. And Webwork is hardly something you need to wait for, it

Re: Struts v1.1, Tiles, Bean property question...

2006-04-17 Thread Adam Hardy
Alan Treece on 17/04/06 07:11, wrote: I'm working on the layout with Tiles and having a difficult time getting past this one issue. The Perl code has various header and footer pieces of code based on whether a use id logged on or not and whether the user is accessing what is termed an external

Re: Struts v1.1, Tiles, Bean property question...

2006-04-17 Thread Adam Hardy
, Adam Hardy wrote: Alan Treece on 17/04/06 07:11, wrote: I'm working on the layout with Tiles and having a difficult time getting past this one issue. The Perl code has various header and footer pieces of code based on whether a use id logged on or not and whether the user is accessing what

Re: Efficient session object and cookie checks in struts

2006-04-15 Thread Adam Hardy
Jeff Thorne on 15/04/06 06:19, wrote: My struts application maintains 2 small objects in the user’s session. One is for the users location info (mandatory) and the other is the User Object (optional). I also save 2 cookies one being the user’s location info (mandatory) and the other the user’s

Re: Working with business validation errors

2006-04-14 Thread Adam Hardy
Emmanouil Batsis on 14/04/06 08:56, wrote: I'm very interested to hear about how do you guys handle business-tier-dependent validation errors in a struts+EJB application. For example, suppose a user tries to create an account with a username that already exists (maybe a poor example but you

Re: Tiles headaches - should be simple - driving me nuts here...

2006-04-14 Thread Adam Hardy
Hi Rick, I can't see anything that looks wrong but a couple of ideas might throw something up: - mainLayout.jsp is in / but your other jsps are in WEB-INF/jsp/ - is that right? - try renaming your tiles 'put-names', e.g. header - headerTile (I find this gives more readily comprehensible

Re: [URGEN] Validation in Action and using redirection to view result page :(

2006-04-12 Thread Adam Hardy
Hi bowlkhin, the approach that I used is this: I have a JSP tile which just contains the HTML for errors and messages display. I put a scriptlet in this tile after the errors and messages tags. The scriptlet removes the error or message from the session. Hope that helps. Adam Pham Anh

Re: How to make work Log4j with Struts?

2006-04-12 Thread Adam Hardy
Hi Starki, try this: log4j.logger.org=WARN log4j.logger.org.apache.struts=info ALternatively check out the short manual at jakarta, it will give you a concise run-down of what to do. Adam starki78 on 12/04/06 08:49, wrote: Hi I'm programming Struts by using JDeveloper. When I start the

Re: Struts tiles layout by tiles-config

2006-04-11 Thread Adam Hardy
Hi Raghuveer, split the unwanted footer from your header. put it in minimal.definition, and make base.definition extend minimal.definition so that it still has the header. Then for your error page, extend minimal.definition. Adam Raghuveer on 10/04/06 17:05, wrote: Is there facility to

Re: Use struts module with relative url path when forwarding request from webserver

2006-04-09 Thread Adam Hardy
webserver to app server. So even we move them into common, we still have to use relative path to point to them. On 4/6/06, Adam Hardy [EMAIL PROTECTED] wrote: Scott, try placing the shared javascript in a 'common' module and refer to it using a leading slash src=/common/js/base Adam Scott Zhu

Re: looking for struts authorization authentication

2006-04-06 Thread Adam Hardy
A. Lotfi on 05/04/06 20:05, wrote: Hi, I looked for a struts that different categorie of users login and got forwarded to different pages, please help me if you have a tutorial or web application . thank you, your help is appreciated. If you are looking for example applications, try browsing

Re: Use struts module with relative url path when forwarding request from webserver

2006-04-06 Thread Adam Hardy
Scott, try placing the shared javascript in a 'common' module and refer to it using a leading slash src=/common/js/base Adam Scott Zhu on 06/04/06 18:25, wrote: I have encountered a problem related struts module and would like to see if you have any suggestions. A new requirement for our

Re: Struts Forward and URL prefix problem

2006-04-05 Thread Adam Hardy
Jeff Thorne on 03/04/06 21:25, wrote: I am trying out struts action mappings and wildcards so that I can provide my dynamic content static URLs that are not based on query strings. When my action class forwards to success or failure all the URLs in the receiving .jsp page are prefix with the

Re: html:link / how to use message resource key for href

2006-04-05 Thread Adam Hardy
What does your c:set look like? Vinit Sharma on 04/04/06 08:58, wrote: But I faced a problem with the fmt tag, the variable link contains the key instead of the text value. Any clue?? On 4/4/06, Vinit Sharma [EMAIL PROTECTED] wrote: Thanks, I used a c:set/ in combination with

Re: get info error

2006-04-05 Thread Adam Hardy
Angel Navarro on 04/04/06 18:46, wrote: Hi, in my struts web application have (web.xml): error-page exception-typejava.lang.Throwable/exception-type location/templates/error/error.jsp/location /error-page and i want to get the description error in error.jsp. in logging

Re: response.addHeader problem

2006-04-01 Thread Adam Hardy
Hi Amarakoon, I think you are expecting those header attributes to behave like cookies, but that's not so. The action forward you choose is translated by struts into a 'redirect' response, so instead of going out through the JSP layer, it goes straight out to the browser as a W3C-defined

Re: Drawing of Struts web application

2006-04-01 Thread Adam Hardy
chuanjiang lo on 31/03/06 13:56, wrote: Hi all, I've recently developed a struts web application and with all the mappings here and there..i think it would be good for me to have some visual documentation on how the web application flows from a page to another. Is there any good open source

Re: Tags for Pagination

2006-01-23 Thread Adam Hardy
Gary VanMatre on 23/01/06 20:11, wrote: We have a situation where we require to paginate our result list (which is quite huge, around 1000+ records). We found few tags like DisplayTags from sourceforge.net but the current version does not support batch lists (i.e. retrieving the list in

Re: Validation Security Hole?

2006-01-22 Thread Adam Hardy
Tamas Szabo on 22/01/06 07:30, wrote: There is a legitimate case: when an form can be cancelled, you do want to skip client-side and server-side validation. That's just fine because in these case you do want to call the cancelled() method from DispatchAction, dump out any state you collected,

Re: prepopulating a dropdown box _in_a_struts_way_.

2005-12-12 Thread Adam Hardy
There are also limitless ways in struts of instantiating the lists of beans or values for dropdowns. In my experience the only factors involved in making a list available to a JSP taglib are: (1) which list is needed (2) what parameters are required to constrain the list and (3) how long it

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-05 Thread Adam Hardy
Ted Husted on 05/12/05 12:54, wrote: IMHO, I don't see the engineering value-add of a one size fits all framework. A framework is a semi-complete application, and action/page applications are built differently than event/component frameworks. Since the applications are different, the frameworks

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-03 Thread Adam Hardy
Ted Husted on 02/12/05 04:29, wrote: We have two because JSF is fundamentally incompatible with action-orientated frameworks. (As stated on the Struts home page.) But, that will not be the case for Ti. We plan to create a clear and relatively painless migration path, so that investments in skill

Re: paging in struts

2005-11-30 Thread Adam Hardy
- Original Message - From: Michael Jouravlev To: Struts Users Mailing List Sent: Wednesday, November 30, 2005 12:41 AM Subject: Re: paging in struts On 11/29/05, Adam Hardy [EMAIL PROTECTED] wrote: Michael Jouravlev on 29/11/05 16:54, wrote: Both Struts Dialogs

Re: checkbox for nested collection

2005-11-30 Thread Adam Hardy
Per Jørgen Walstrøm on 30/11/05 17:09, wrote: hello, I have the following code in my jsp: nested:iterate id=sectionComponent property=geSectionComponents nested:checkbox property=restrictive/ /nested:iterate my Collection geSectionComponents contains objects of type GeSectionComponent

Re: slightly [OT] Hibernate and domain objects in web apps

2005-11-30 Thread Adam Hardy
Matt Morton on 30/11/05 15:00, wrote: I have always wrestled with the DTO question. I guess I haven't seen the need for it while using Spring and Hibernate. I have also created objects that are specific to the view object (like a set of menu links) that is being created dynamically and then

Re: Ok, I'll bite. Struts + Webwork = Struts Ti?

2005-11-29 Thread Adam Hardy
personally i don't think it matters what framework comes out of the wash, as long as it is better. by that i mean it should: - offer the same level of modular functionality such as validator and tiles - make application development quicker, ironing out the time-consuming parts of present

Re: paging in struts

2005-11-29 Thread Adam Hardy
Michael Jouravlev on 29/11/05 16:54, wrote: Is any better way of implementing pagination by struts tags.? You can try display:table tag ! You can found it here : http://displaytag.sourceforge.net/ DisplayTag is good, sleek and proven solution. In case you don't want to use DisplayTag, check

Re: jaas authorization with struts

2005-11-20 Thread Adam Hardy
Hi Raghu, Laurie, I did a project recently which used the Acegi security project which comes bundled with Spring, and although I was never involved in the implementation of it myself, I heard that it was effective. Am I correct in assuming though that it does not offer the alternative that

Re: jaas authorization with struts

2005-11-20 Thread Adam Hardy
, it's easy to change with changing business requirements. L. Adam Hardy wrote: Hi Raghu, Laurie, I did a project recently which used the Acegi security project which comes bundled with Spring, and although I was never involved in the implementation of it myself, I heard that it was effective

Re: Struts ModuleConfig when forwarding between modules

2005-11-16 Thread Adam Hardy
Brian Sayatovic/AMIG on 14/11/05 23:48, wrote: I ran into an instance where an Action in module A is forwarding to a page that is designed for module B. However, the resources that the page sees are the resources from module A. I'm using Struts 1.1. I've goine through the source quite a bit.

Re: Struts ModuleConfig when forwarding between modules

2005-11-16 Thread Adam Hardy
As Brian Holzer said in his reply (did you see it? It wasn't threaded), the message resources can be managed well with taglibs and declarations in the web.xml if you are using jstl. I won't ask why you have to do what you're doing. Sounds like a nightmare :( Adam Brian Sayatovic/AMIG on

Re: Fwd: Re: Struts ModuleConfig when forwarding between modules

2005-11-16 Thread Adam Hardy
: [EMAIL PROTECTED] In-Reply-To: [EMAIL PROTECTED] Something like that. Rgds Adam Brian Holzer on 16/11/05 20:23, wrote: Hey Adam, Please ignore my previous reply as I got confused that you were responding to Brians original message rather than my earlier response. Brian Adam Hardy [EMAIL

Re: Validator 1.2.0 RC3 now available for review

2005-11-06 Thread Adam Hardy
Aah, so this is why you were too busy to make it to the user group meet-up, Niall! ;) Niall Pemberton on 03/11/05 15:48, wrote: On 11/3/05, David G. Friedman [EMAIL PROTECTED] wrote: Niall, Some of those listed extensions are long awaited. :) Regards, David Great, if you get a chance

Re: Problem validating multipart form data

2005-11-02 Thread Adam Hardy
Collin, are you using org.apache.commons.fileupload.DiskFileUpload.parseRequest(request) ? I'm not sure anymore if this is wrapped by struts or not, but I guess it is and it's this bit that isn't working. Adam Collin VanDyck on 02/11/05 20:53, wrote: Hello All Any ideas on this one?

Re: new website look

2005-10-31 Thread Adam Hardy
Wendy Smoak on 30/10/05 16:50, wrote: From: Ted Husted [EMAIL PROTECTED] If someone has an itch to patch the stylesheets, that's great. I added a 'theme' section to the website conversion Wiki Page: http://wiki.apache.org/struts/StrutsWebsiteConversion (at the bottom.) There are links to

Re: new website look

2005-10-31 Thread Adam Hardy
Struts homepage: https://addons.mozilla.org/extensions/moreinfo.php?id=60 Or directly at: http://chrispederick.com/work/webdeveloper/ Short-cut: Control-Shift-E Long-way: right click, Web Developer, CSS, Edit CSS Regards, David -Original Message- From: Adam Hardy [mailto:[EMAIL

Re: new website look

2005-10-27 Thread Adam Hardy
Ted Husted on 27/10/05 14:03, wrote: On 10/26/05, Niall Pemberton [EMAIL PROTECTED] wrote: Personally I'm still in the Struts Classic camp at this point in time, but thats because my day job has 4+ years worth of investment in it and I havem't had time to evaluate the alternatives yet. It

Re: new website look

2005-10-25 Thread Adam Hardy
Wendy Smoak on 25/10/05 17:34, wrote: From: David Delbecq [EMAIL PROTECTED] Wendy wrote: As Frank mentioned, the site is generated by Maven, which means we are not (and do not want to be) in control of the XSLT and CSS that make it happen. maven allows you to provide your own css for your

Re: sharing message resources with jstl

2005-10-22 Thread Adam Hardy
michael Muttai on 22/10/05 05:02, wrote: I have three message resources defined in struts-config.xml: message-resources parameter=ErrorMessageResources key=errors/ message-resources parameter=ApplicationMessageResources/ message-resources parameter=InfoMessageResources key=info/ In web.xml, I

new website look

2005-10-22 Thread Adam Hardy
Hi All, nice new fresh looking website. Is that the maven-generated one? Are you guys using maven2 yet? It just went production-ready. ;) Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: sharing message resources with jstl

2005-10-22 Thread Adam Hardy
michael Muttai on 22/10/05 15:11, wrote: Is there a way to register multiple message resources in context so I can get access to them by fmt:message tag? Not sure. Go to the java.sun.com website and get the JSTL spec for the version you are using. The specification is well written and an

Re: Message.properties encoding problem

2005-10-22 Thread Adam Hardy
Łukasz Piątkowski on 22/10/05 12:33, wrote: Hello again ! I have Message_pl.properties file for polish language. The problem is every time I want to add something new to it, using polish characters, I need to convert polish properties file with native2ascii tool. Then everything is

Re: testing struts

2005-10-21 Thread Adam Hardy
and thanks in advance Adam Hardy [EMAIL PROTECTED] wrote: hem hem on 20/10/05 22:57, wrote: i am using struts jar 1.2 in my web app. i want to test my struts action classes and jsps using Junit are there any nice tutorials on this. i want to use MockStrutsTestcase in my junit tests What

nested and jstl iterate

2005-10-21 Thread Adam Hardy
Just curious before looking into it in a big way, but is there now a major amount of duplication between nested taglibs and jstl c:iterate, c:set, c:out with EL? I assume nested is considered 'finished' - does this mean that it will be replaced over time by JSTL? (I don't mean in the struts

Re: testing struts

2005-10-20 Thread Adam Hardy
hem hem on 20/10/05 22:57, wrote: i am using struts jar 1.2 in my web app. i want to test my struts action classes and jsps using Junit are there any nice tutorials on this. i want to use MockStrutsTestcase in my junit tests What precisely do you want to test? There are many different junit

Re: I am getting frustrated with LookupDispatchAction

2005-10-19 Thread Adam Hardy
Michael Jouravlev on 19/10/05 00:44, wrote: On 10/18/05, Adam Hardy [EMAIL PROTECTED] wrote: Secondly, getKeyMethodMap() looks really clunky - is there no way this can be pushed into the struts-config.xml? It can be done, but if this to be defined inside existing structures like action

Re: I am getting frustrated with LookupDispatchAction

2005-10-18 Thread Adam Hardy
Michael, I like your code alot but a couple of things prevent me from purloining it for my own purposes: firstly, I like to allocate my base class to sort out user, locale, msgKeys, and messages objects for use in the subclass. It doesn't seem to be possible to sandwich a subclass

Re: Validation and error messages in session

2005-10-17 Thread Adam Hardy
It's a shame no-one answered this. I was interested in reading a reply. My situation is that on validation failure, my 'input' mapping is to another action, not direct to a JSP, so that I can carry out the necessary view helper code. As part of this I can also grab the validation errors from

Re: Submit buttons getting their value

2005-10-16 Thread Adam Hardy
Martin, what HTML does this taglib produce? Seems as if it would be so: input type=submit label=some text value=delete / A cursory check on the W3C website confirmed my suspicions - I don't believe that the label attribute is valid HTML4 and if so is unlikely to be supported by browsers like

Re: Submit buttons getting their value

2005-10-16 Thread Adam Hardy
intelligent fashion Does this answer your question(s)? Cheers, Martin- - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Sunday, October 16, 2005 2:26 PM Subject: Re: Submit buttons getting their value Martin, what HTML does

Re: Validation Configuration for Multiple Modules

2005-10-13 Thread Adam Hardy
Message - From Adam Hardy [EMAIL PROTECTED] Date Wed, 12 Oct 2005 21:02:00 +0100 To Struts Users Mailing List user@struts.apache.org Subject Re: Validation Configuration for Multiple Modules [EMAIL PROTECTED] on 11/10/05 07:20, wrote: I'm using *Struts 1.1* to build an application

Re: Validation Configuration for Multiple Modules

2005-10-12 Thread Adam Hardy
[EMAIL PROTECTED] on 11/10/05 07:20, wrote: I'm using *Struts 1.1* to build an application with multiple Struts modules. I put my validations for each module in a seperate validations.xml file. For example, I have validations-a.xml for module a and validations-b.xml for module b. I then

Re: startup time validator validation?

2005-10-12 Thread Adam Hardy
David G. Friedman on 11/10/05 20:58, wrote: Wouldn't XDoclet's Struts Validator features work for you in this regard? It wouldn't be i nthe JSP or at startup but at build/compile time. See: http://xdoclet.sourceforge.net/xdoclet/tags/[EMAIL PROTECTED] David, that looked tantalising but

Re: Why I Hate Struts Modules

2005-10-12 Thread Adam Hardy
Hubert, does that work for all config items including global exceptions etc, as was discussed earlier? Adam Hubert Rabago on 12/10/05 17:09, wrote: Paul, You can declare something like a struts-config-common.xml which will contain the config items that are common among your modules and

container-managed security and struts

2005-10-12 Thread Adam Hardy
Hi All, I want to stick with container-managed security and I would like to have form-based login on servlet 2.4 (tomcat 5), with SSL encryption on the login form but then switch back out of SSL for the remainder of the session (mostly). I tried this 18 months ago and if my memory serves me

Re: container-managed security and struts

2005-10-12 Thread Adam Hardy
Dave Newton on 12/10/05 23:22, wrote: Adam Hardy wrote: I tried this 18 months ago and if my memory serves me well, in tomcat 5, if I switch the request back out of SSL with a redirect or similar, I can no longer see the SSL session (and am effectively not logged in anymore

Re: How to minimize security related code in Action classes

2005-10-10 Thread Adam Hardy
Barnett, Brian W. on 07/10/05 21:16, wrote: Can someone point me to some articles or provide some examples on how to minimize security related code (authorization) in my Action classes? I am currently using container-managed, form-based security (Tomcat) for authentication and security-contraint

Re: database design

2005-10-03 Thread Adam Hardy
Rafael Taboada on 03/10/05 18:22, wrote: Hi folks. When u design a database... What soft do u use?? What's the best?? I use Embarcadero E/R... Is there any program better than embarcadero? microsoft visio. would use a linux tool but haven't found one. i prefer the way visio allows you to

Re: database design

2005-10-03 Thread Adam Hardy
Hmm. Good question. Last time I looked, mysql uses ansi sql, right? In that case, it should work. Barnett, Brian W. on 03/10/05 20:34, wrote: Adam, Does Visio work with MySQL? -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Monday, October 03, 2005 1:31 PM

Re: Getting at exceptions in Action Classes when forwarded fromweb.xml?

2005-10-03 Thread Adam Hardy
Preston CRAWFORD on 03/10/05 21:47, wrote: I'm trying to setup global exception handling. I have web.xml sending 404 and 500 exceptions to /error.do. In that action I should be able to get at the exception, shouldn't I? Or do I have to do that earlier in the process? I simply want to get at the

Hibernate domain / DTOs in JSPs.....

2005-10-03 Thread Adam Hardy
Has anybody got any experience of using Hibernate pojos with nesting lazy loading in their JSPs in an enterprise app? Are there any caveats? I have always transfered the data from Hibernate beans into my own form beans or bespoke view DTOs in my actions, until now. It seems nice and easy

Re: Getting at exceptions in Action Classes when forwardedfromweb.xml?

2005-10-03 Thread Adam Hardy
Yes you could do that, or you could try error-page error-code404/error-code location/error404.do/location /error-page error-page error-code500/error-code location/error500.do/location /error-page and map them to the same action class with

Re: Getting at exceptions in Action Classes whenforwardedfromweb.xml?

2005-10-03 Thread Adam Hardy
Oh I see, sorry. That would be a tomcat thing. I have a suspicion that there may never be an exception. Tomcat (or your appserver) is just creating an error - that doesn't mean that it actually threw a Java exception. I believe that it is merely a status for the http response packet. The

Re: [OT] Maven dependencies Commercial

2005-09-24 Thread Adam Hardy
Peter A. Pilgrim on 24/09/05 12:41, wrote: I am getting into Maven using Struts and the OReilly A Developer Notebook edition. One thing I am clueless about is how to tell Maven about a build that is not in a repository like weblogic.jar ? How do tell Maven about ``commercial''

Re: AW: AW: struts on jboss

2005-09-19 Thread Adam Hardy
Marc Ende on 17/09/05 18:20, wrote: Hi Adam, hmmm... I always had this problem with the struts.jar. So I decided to put the jar in the shared lib. The .war I do deploy is an application wich have connections to an existing ejb on the same server but there are no ejb's inside this project. There

Re: AW: struts on jboss

2005-09-17 Thread Adam Hardy
Marc, I've never had that problem with JBoss locking up the struts.jar. If it just a webapp with no EJB, then basically you are just using tomcat and I can't see what would make it lock the jars. Did you remove the struts.jar from the shared lib dir? Marc Ende on 16/09/05 18:49, wrote:

Re: Who decides?

2005-09-11 Thread Adam Hardy
. On 9/10/05, Adam Hardy [EMAIL PROTECTED] wrote: Dakota Jack on 10/09/05 07:09, wrote: I sympathize entirely with what you are saying, Murray, and believe that there is no good reason for the present difficulties you face. The situation is NOT inevitable or even desirable. I would strongly

Re: Hibernate 3 versioning/concurrency

2005-09-10 Thread Adam Hardy
Lee Harrington on 09/09/05 14:59, wrote: Would love to get some best practices for setting up hibernate with struts. I'm gettin staleobject exceptions when I'm the only one editing. I had this problem with Hibernate 2 and eventually solved it, but never really understood. Now the problem is

Re: ot: struts obsesed

2005-09-10 Thread Adam Hardy
Vic Cekvenich on 09/09/05 21:52, wrote: http://jroller.com/page/RickHigh?entry=is_struts_dead_is_struts Is he going to get over it? I wonder who the #2 framework is? As someone who has never really contributed much to struts except a few bug reports, I feel slightly out-of-place saying this,

Re: Who decides?

2005-09-10 Thread Adam Hardy
Dakota Jack on 10/09/05 07:09, wrote: I sympathize entirely with what you are saying, Murray, and believe that there is no good reason for the present difficulties you face. The situation is NOT inevitable or even desirable. I would strongly suggest you consider the Spring alternative which

Re: ot: struts obsesed

2005-09-10 Thread Adam Hardy
i was using past tense Vic Cekvenich on 10/09/05 13:00, wrote: Looking at CVS and developer comments on the dev list I would say that by far, Struts development has never been more active by order of magnitude. 1.3 classic release is iminent (in Struts time). .V Adam Hardy wrote: it's just

Re: [OT] Who decides?

2005-09-10 Thread Adam Hardy
Adam Hardy on 10/09/05 11:11, wrote: Since you are recommending Spring, can you answer a couple of questions about it? For instance, is there any outstanding improvement over struts in the patterns that it offers for say: [snip] * security - Spring is based on Acegi right? while i'm

Re: Action based validations

2005-09-09 Thread Adam Hardy
rajiv verma on 08/09/05 19:55, wrote: I am using struts 1.2 and my client side validations using based on action rather than form are not working? Is there a bug in the 1.2 release. I have worked previously with 1.1 and it used to work just fine. In the validation file, instead of form

Re: AW: Struts in loadbalanced enviroment

2005-09-07 Thread Adam Hardy
Hi there, this approach I presume restricts you to SSL only on all your redirects - or do you have logic in there to determine whether any particular URL has to be SSL encoded or not? Am I correct in thinking that the use of the load-balancer to do the SSL-encoding prevents the use of

Re: Struts and XHTML

2005-09-07 Thread Adam Hardy
It's valid XHTML 1.0 transitional. What are you using? [EMAIL PROTECTED] on 07/09/05 00:01, wrote: Dne středa 07 září 2005 00:46 [EMAIL PROTECTED] napsal(a): Hello all, I have problem with struts. Is struts XHTML compliant ? I mean that html lang=en is not allowed in XHTML and in example

Re: logout problem

2005-09-05 Thread Adam Hardy
Leon Rosenberg on 31/08/05 13:17, wrote: On Wed, 2005-08-31 at 12:46 +0100, Adam Hardy wrote Emmanouil Batsis on 31/08/05 12:37, wrote Sławek Tuleja wrote: question: but how to evoke Logoff action when user closes browser? In general you dont :-) You just wait for the session to expire

Re: DAOs in service methods

2005-09-05 Thread Adam Hardy
Christian Bollmeyer on 01/09/05 18:19, wrote: my suggestion would be to have a closer look at the Spring framework. IoC / dependency injection is really cool once you get a grasp of it. Instead of having the service look up a DAO instance, you simply inject the fitting implementation class into

Re: Error

2005-09-05 Thread Adam Hardy
Hi Laurindo, generally you get a faster and better response if you give more info than just a stack trace. For instance, when the error occurs, with what parameters, are you using dynaforms, are you using validation etc etc Just looking at it, it looks like a bean utils PropertyUtils problem

Re: logout problem

2005-08-31 Thread Adam Hardy
Emmanouil Batsis on 31/08/05 12:37, wrote: Sławek Tuleja wrote: question: but how to evoke Logoff action when user closes browser? In general you dont :-) You just wait for the session to expire using a session event listener. However, if the client supports javascript, you can catch the

<    1   2   3   4   5   >