Re: Extra Lines in Compiled JSP

2004-02-21 Thread Adam Hardy
nal Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Friday, February 20, 2004 3:42 PM To: Struts Users Mailing List Subject: Re: Extra Lines in Compiled JSP Perhaps it was in the taglibs-user mailing list where I dreamt it? Maybe I'm searching for the wrong key-words - I've looked f

Re: Tile, Action and Form

2004-02-22 Thread Adam Hardy
On 02/21/2004 02:07 PM Esteban Forzani wrote: Hi, using Tiles and Struts I would like to know if is it possible have two tiles in the same page with two action and formbean. The tile1 asociatted with action1 and form1 and the tile2 asociatted with action2 and form2. How I can inicialize the form

Re: [Newbie] Is it worth subclassing your own Action and ActionForm classes to attain code re-use?

2004-02-22 Thread Adam Hardy
On 02/22/2004 05:40 AM Mark Jones wrote: My application allows a user to make various different types of bookings for a (fictional!!!) hospital and logs them in a database. Each type of booking has a set of common properties but also different ones depending on the type of booking being made. I hav

Re: How to create a "No Action" ActionForward

2004-02-23 Thread Adam Hardy
Not having any roles effectively means from the container managed security point of view that you have only one role. What problems did you have 'integrating' the container security? As far as your app is concerned, j_security_check is not something that is relevant. The whole login should be t

Re: How to create a "No Action" ActionForward

2004-02-23 Thread Adam Hardy
d make the session bean. On 02/23/2004 10:00 AM Carl wrote: By integarting with struts, I mean to have a loginAction witch fill the session with data about the logged user. I can't see how to manage that with classic j_security_check. regards, Carl Adam Hardy wrote: Not having any roles ef

Re: Breadcrumbs

2004-02-23 Thread Adam Hardy
I need to implement breadcrumb menus too. I know of no such module available, except perhaps struts-menu. It depends on what the technical basis of the breadcrumb menu is meant to be. Do you configure the whole lot before hand in XML (in which case struts-menu would help) or do you want to do i

Re: Breadcrumbs

2004-02-23 Thread Adam Hardy
Are you guys talking about breadcrumb 'trail' as in showing history, or do you mean drilling down into a tree of subsections and subsubsections? On 02/23/2004 11:09 PM Carl wrote: Hi, We have similar needs, is it possible for you to send the code ? Thanks, Carl [EMAIL PROTECTED] wrote: I cre

Re: Breadcrumbs

2004-02-23 Thread Adam Hardy
Kudos, Jason. You not only thought outside the box, you left it crying and miserable in the old boxes home. On 02/23/2004 11:27 PM Jason Lea wrote: Is there any slick way of putting breadcrumbs into a web app with Struts? If so, what's the preferred way? I did this using tiles. I have my tiles

Re: How to create a "No Action" ActionForward

2004-02-24 Thread Adam Hardy
reate a "No Action" ActionForward By integarting with struts, I mean to have a loginAction witch fill the session with data about the logged user. I can't see how to manage that with classic j_security_check. regards, Carl Adam Hardy wrote: Not having any roles effectively means

Re: Session management

2004-02-24 Thread Adam Hardy
For the sake of a clean design, restrict your transaction management to your model layer (in MVC). That means, like Navjot says, keep it clear of your struts action classes. On 02/24/2004 10:19 AM Navjot Singh wrote: struts has nothing to do with managing sessions. we should better talk about s

Re: A picture speaks a thousand words

2004-02-24 Thread Adam Hardy
On 02/24/2004 01:56 PM A.White wrote: Hi I'm new to struts and am having some difficulties understanding how it all links together. I was hoping that someone could post some links which give a visual representation of how struts work and link together There's a bunch of links to resources o

Re: using

2004-02-24 Thread Adam Hardy
On 02/24/2004 06:38 PM Dean A. Hoover wrote: Newbie here wanting to generate xhtml. I am looking at http://www.w3.org/TR/xhtml1#normative I believe I need to output something like the following to be conforming. I can handle the xml and DOCTYPE tags just fine, but how do I generate the stuff in the

Re: EL - can't get access to my constants

2004-02-25 Thread Adam Hardy
How did you try to use it in your EL? It doesn't look very Javabean-specification-conformant. i.e. use myProperty for getMyProperty() and setMyProperty() On 02/25/2004 12:02 PM Axel Groà wrote: dear friends! i declared a getter method for a constant, but i can't use it using jsp2.0 Expression

Re: Suppresing the generation of blank lines while using logic tags - Ver 1.0.2

2004-02-25 Thread Adam Hardy
On 02/25/2004 03:04 PM Pranay Parsatwar wrote: We are facing problem of jsp file size exceeding to more than 5 MB at runtime. The jsp file is full of struts tag with lot many logic:equal, notEqual in the code. The compiled html when generated takes a lot of time for browser rendering because of the

Re: action errors and resource bundles

2004-02-27 Thread Adam Hardy
On 02/27/2004 05:04 PM David Adelson wrote: I have numerous property files for storing my resources (applicationresources.properties). Each one has a bundle name identified in struts-config. Is there a way for ActionError or ActionMessage to get data from a particular bundle? LOoking at the javado

Re: action errors and resource bundles

2004-02-27 Thread Adam Hardy
ule2". But now it appears that all the errors we use all have to be in one properties file. bummer. -----Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Friday, February 27, 2004 11:15 AM To: Struts Users Mailing List Subject: Re: action errors and resource bundle

Re: action errors and resource bundles

2004-02-27 Thread Adam Hardy
ot;, new ActionError("keyinpropertiesfile")); IE, there is no way to tell it which bundle (file) to use. -----Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Friday, February 27, 2004 11:42 AM To: Struts Users Mailing List Subject: Re: action errors and resource bundles Er, hold o

Re: Problems with UTF-8 and forms

2004-02-29 Thread Adam Hardy
On 02/28/2004 11:37 PM Jon Bohm wrote: Hello, I'm using Aaron Rustads SetCharacterEncodingFilter-filter for Struts but with mixed results (see link below). * All my Resource-, JSP- and Java-files are saved in UTF-8 format. Hi Jon, do you mean you have to use a UTF-8 editor to edit the files? Thi

Re: Breadcrumbs

2004-02-29 Thread Adam Hardy
Jason, it just occurred to me (must have had my eyes shut) after a couple of weeks that the last breadcrumb in the breadcrumb menu done with your tiles method is actually a link to the page that you are already on. Is this the way you have implemented it, or have I done it wrong? Adam On 02/

Re: Problems with UTF-8 and forms

2004-02-29 Thread Adam Hardy
You can also set the struts controller to automatically set every response to UTF-8. On 02/29/2004 02:19 PM Adam Hardy wrote: On 02/28/2004 11:37 PM Jon Bohm wrote: Hello, I'm using Aaron Rustads SetCharacterEncodingFilter-filter for Struts but with mixed results (see link below). * A

multipart-request / file upload problem

2004-02-29 Thread Adam Hardy
I use the Commons multipart request handler stuff to set up a DynaActionForm properly for my file upload so: which works fine, but in some circumstances I want to manually create this form, grab the file and save the DynaActionForm (in a filter). Like so: ActionForm form = RequestUtils.c

Re: Breadcrumbs

2004-03-01 Thread Adam Hardy
On 02/29/2004 08:33 PM Jason Lea wrote: it just occurred to me (must have had my eyes shut) after a couple of weeks that the last breadcrumb in the breadcrumb menu done with your tiles method is actually a link to the page that you are already on. Is this the way you have implemented it, or have

Re: Problems with UTF-8 and forms

2004-03-01 Thread Adam Hardy
On 03/01/2004 12:29 AM Jon Bohm wrote: BUT if I rewrite my custombean's getValue method it all works fine (except for swedish uppercase letters): public String getValue() { return new String( value.getBytes(), "UTF-8"); } Still shouldn't be necessary. Apache Tomcat/5.0.12 Java 1.4.2_01-b06 Str

Re: multipart-request / file upload problem

2004-03-01 Thread Adam Hardy
I'm going to put this another way: what's the secret with file upload requests? I can't see my file parameter in the request parameters when I submit the form with the multipart-request. Adam On 02/29/2004 07:05 PM Adam Hardy wrote: I use the Commons multipart request handler st

Re: tiles - smth like addToList?

2004-03-01 Thread Adam Hardy
On 03/01/2004 02:37 PM Axel Gross wrote: I see the need for extending the entries of a putList without overriding the entries in the super definition. Example: so usually

Re: tiles - smth like addToList?

2004-03-01 Thread Adam Hardy
On 03/01/2004 06:12 PM Axel Groß wrote: On 2004-03-01 at 17:53:30 +0100, Adam Hardy wrote: I see the need for extending the entries of a putList without overriding the entries in the super definition. Example: so usually this would replace the list in .head.common with

Re: multipart-request / file upload problem

2004-03-01 Thread Adam Hardy
t to admit that the current multipart implementation is a little, um, arcane (not that I invented it ;). The plan is to completely rewrite it for Struts 2.x, when we get there. Hope this helps. -- Martin Cooper Adam On 02/29/2004 07:05 PM Adam Hardy wrote: I use the Commons multipart request h

Re: Semi-OT: Saving state when using EJB Session Beans and Struts

2004-03-01 Thread Adam Hardy
On 03/01/2004 05:47 PM Smith, Darrin wrote: In short, the Actions will be calling various Stateful Session Beans to do the actual work. These are used for various reasons with the main one being their built-in transaction support (online orders...need to be either done...or not done). How should s

Re: Life, the Universe and Everything (was: RE: [OT] RE: Memory usage)

2004-03-02 Thread Adam Hardy
I just found that mozilla had put this complete thread in my spam folder. Obviously mozilla's opinion on the content. I found it interesting though. Since we're talking about the quality of mailing lists, does anybody know which the best JBoss list is? The forum and associated mailing list at

Re: How do I access Message Resources in an Action?

2004-03-02 Thread Adam Hardy
I could send you off to look at the Javadoc, but sometimes working stuff out painstaking. Here's what I do: MessageResources resources = (MessageResources) context.getAttribute(Globals.MESSAGES_KEY); String msg = resources.getMessage("my.key"); Globals.MESSAGES_KEY is the default. If you

Re: Semi-OT: Saving state when using EJB Session Beans and Struts

2004-03-02 Thread Adam Hardy
as session scope in the struts config file as well? -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 5:35 PM To: Struts Users Mailing List Subject: Re: Semi-OT: Saving state when using EJB Session Beans and Struts On 03/01/2004 05:47 PM Smith, Darrin wrote: In s

Re: OT - java.sun.com is not accecsible

2004-03-02 Thread Adam Hardy
On 03/02/2004 10:08 PM Wendy Smoak wrote: Karuna wrote: Does anybody noticed and know why java.sun.com is not accessible today? http://java.sun.com works fine for me, however you might want to try http://192.18.97.175. Someone posted to cljp that the server changed IP addresses and the DNS chang

Re: Semi-OT: Saving state when using EJB Session Beans and Struts

2004-03-02 Thread Adam Hardy
a semi-contrived example of course but it is an example of what the thinking is. -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 02, 2004 12:21 PM To: Struts Users Mailing List Subject: Re: Semi-OT: Saving state when using EJB Session Beans and Struts

Re: Tiles problem

2004-03-03 Thread Adam Hardy
Jim, sounds like you haven't realised that tiles attributes are not given global scope. You have to explicitly "useAttribute" each time. That includes when you nest a child tile - you must "useAttribute" on it first, and then have it again in-between the s for the child. On 03/02/2004 10:15 PM

Re: JSF RI Final is out!

2004-03-04 Thread Adam Hardy
How steep's the learning curve on JSF? Is it as big as it is for struts? On 03/04/2004 11:39 AM Christian Bollmeyer wrote: If 'less than 24hrs' counts as new, then it probably is. HTH, -- Chris. - Original Message - From: "Jitender Kumar C" <[EMAIL PROTECTED]> To: "Struts Users Mailing

validator-rules.xml

2004-03-04 Thread Adam Hardy
Where can I get the latest validator-rules.xml from? I looked for it on jakarta-struts website and jakarta-commons, but can't find it. Even checked the archives before coming here to make myself look foolish. Obviously I am assuming that this is a standard part of the code base - or is it? I n

Re: validator-rules.xml

2004-03-04 Thread Adam Hardy
OK, well I can't find the validator-rules.xml anywhere else, so I guess I'll have to download the struts 1.2 binary! I was looking through the validator's urlValidator class and it's pretty complicated with lots of perl-based pattern matching, so I'm not surprised there's no javascript equivale

Re: Form based authentication in tomcat with struts

2004-03-04 Thread Adam Hardy
On 03/04/2004 09:28 PM Edd Dawson wrote: Now what i want to be able to do is have my servlet automatically log them in as the register without the need for them to be redirected to the login-form and re-enter their username and password. I am presuming this is possible as i log my users out by invo

ConfigHelper.getActionMapping

2004-03-04 Thread Adam Hardy
I'm creating an ActionForm for my request under certain circumstances in a filter, because if I do a redirect in the filter, I want to save the original request parameters in the correct actionform and stick it in the session for later. But I just upgraded from struts 1.1 to 1.2, and I'm gettin

Re: Where Do I Put This properties File (internationalization)

2004-03-05 Thread Adam Hardy
On 03/05/2004 05:16 AM Caroline Jen wrote: And "mvnplugin_mvnforum_MVNForumConfig" is a properties file. Please advice regarding the directory in which this properties file is supposed to be. It goes in the same place as your *.java code files. As you have it, there is no directory for it, so it

Re: ConfigHelper.getActionMapping

2004-03-05 Thread Adam Hardy
On 03/05/2004 12:09 AM Adam Hardy wrote: But I just upgraded from struts 1.1 to 1.2, and I'm getting null action mapping returned for my URLs when I call ConfigHelper.getActionMapping(url). Hmm. Just looked at the source code. The method has only one line in it: return null; - which

Re: Validator doubt

2004-03-05 Thread Adam Hardy
On 03/05/2004 12:33 PM MOHAN RADHAKRISHNAN wrote: So if I input a value that is not a integer in this particular field I should see a message specified by Why are specifying a different msg key? There is a default one already 'error

URL validation - anyone using it?

2004-03-05 Thread Adam Hardy
I'm looking at providing URL validation on a page which saves links for users. I put together the latest build of commons-validator (1.1.2) and struts (1.2) to see what the URL validation is like. The class for server-side validation is in place, but the javascript doesn't exist. It works ver

Re: Tiles attributes problem

2004-03-06 Thread Adam Hardy
David, it's a bit difficult to know what's going on without seeing your action mapping which calls that .default definition. On 03/05/2004 10:08 PM David Erickson wrote: First the sample code: XML defintion: my editUsers.jsp <%@ taglib uri="struts-tiles.tld" prefix="tiles"

Re: Use MessageResource in taglib

2004-03-08 Thread Adam Hardy
On 03/08/2004 08:35 AM Billy Ng wrote: Hi folks, I need to get a value from the properties file. I can easily do it in action subclass with the getResource().getMessage() and in jsp with the bean:message tag. However, how I can it in a taglib? MessageResources resources = (MessageResources)

Re: Validator classes and validator-rules.xml

2004-03-08 Thread Adam Hardy
On 03/08/2004 12:02 PM Chris Searle wrote: I'm getting an odd exception: 2004-03-08 11:19:41,405 ERROR [org.apache.commons.validator.Validator] reflection: org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.

Re: can struts generate strict XHTML

2004-03-08 Thread Adam Hardy
On 03/08/2004 02:12 PM Ruud Steeghs wrote: hi, Can Struts actually generate compliant valid XHTML 1.0 strict markup using the tag? If so, which version of Struts to use? (http://www.junlu.com/msg/22026.html, but hey, technologies may change so fast) Yes, I'm doing it. Can't remember when I start

Re: Switching from HTTPS to HTTP

2004-03-12 Thread Adam Hardy
sslext works brilliantly with struts and container-managed security. Definitely what you want. You put attributes in your action mappings to tell it whether you want the action mapping under SSL or not. It handles the redirection to / from SSL. Adam On 03/12/2004 03:39 PM Mark Lowe wrote: You

sslext http/https switching taglib and tiles

2004-03-13 Thread Adam Hardy
Is anybody using Tiles and the sslext taglib form & link tags? I am thinking of using them with Tiles. Has this been implemented yet? I was wondering because I think it must be a fairly complicated algorithm to check whether a link URL or a form submit action needs HTTPS or not. I was also won

Re: Checking if user has a valida session

2004-03-14 Thread Adam Hardy
Struts is rock solid - if something's going wrong, you can bet your bottom dollar it's something you've done. Doing it in your jsps is, as someone else said earlier, way too late. If you're not going to use container-managed security, which is sufficient for most needs, then put it in a filter.

Re: security framework!!!

2004-03-14 Thread Adam Hardy
On 03/13/2004 05:48 PM David Friedman wrote: My bigger problem is my scenario, which no one supports. I'd like to allow manager accounts to become one of if it's sub-accounts. My system would support at least 5 levels where 4 could 'drill down' and back up again: admin, reseller, client, manager,

Re: html:cancel doesn't perform as advertised

2004-03-14 Thread Adam Hardy
The javascript will be output by the html:form tag and it stops javascript validation. The cancel button should look like this: The JSP should look like this: Cancel or whatever Adam On 03/14/2004 12:56 AM Dean A. Hoover wrote: I have an html:form with a html:submit and an html:cancel. Acco

Re: html:cancel doesn't perform as advertised

2004-03-14 Thread Adam Hardy
onal anyway and doesn't seem like the best way to implement it (because its optional). Dean Adam Hardy wrote: The javascript will be output by the html:form tag and it stops javascript validation. The cancel button should look like this: The JSP should look like this: Cancel or what

Re: a security framework!

2004-03-14 Thread Adam Hardy
Support the JAAS framework? Directly? Don't you mean the container-managed security? On 03/14/2004 01:21 PM Mailing List wrote: Hi, As I fond the logic:present and logic:notPresent tags does support the JAAS frame work. They have an attribute called role. I have not mentioned that before! Surpri

Re: html:cancel doesn't perform as advertised

2004-03-14 Thread Adam Hardy
forward. What do I need to do to my Action to accomplish that? Dean Hoover Adam Hardy wrote: Server-side validation is skipped by struts when it sees the "org.apache.struts.taglib.html.CANCEL" request param. On 03/14/2004 12:20 PM Dean A. Hoover wrote: What about the non-Javascrip

Re: security framework!!!

2004-03-14 Thread Adam Hardy
, etc. and possibly backs out each level one by one). Can you suggest any other avenues or theories for me to investigate since my research has resulted in only that one workable solution? Hints appreciated. :) Regards, David -Original Message----- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Sun

Re: Checking if user has a valida session

2004-03-14 Thread Adam Hardy
nks again, Theo - Original Message ----- From: "Adam Hardy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Sunday, March 14, 2004 10:11 AM Subject: Re: Checking if user has a valida session Struts is rock solid - if something

Re: dtd validation of tld's

2004-03-14 Thread Adam Hardy
On 03/14/2004 08:59 PM hanasaki wrote: Any thoughts on why Tomcat would be giving an error saying: Digester error... SEVERE Parse error Document is invalid: no grammar found This is happening on all TLD's. They are JSTL and Struts. I am thinking it has something to do with the DTD specif

Re: dtd validation of tld's

2004-03-15 Thread Adam Hardy
5mo mothballs. Adam Hardy wrote: On 03/14/2004 08:59 PM hanasaki wrote: Any thoughts on why Tomcat would be giving an error saying: Digester error... SEVERE Parse error Document is invalid: no grammar found This is happening on all TLD's. They are JSTL and Struts. I am think

Re: security framework!!!

2004-03-15 Thread Adam Hardy
Right, I get it. So you not only want the higher level user to take on the lower level user's role, you want them to have their complete ID or username etc. Tricky! I think alot depends on what kind of use you have for the user info. Is it purely roles that are important here? Or is there owne

Re: security framework!!!

2004-03-15 Thread Adam Hardy
Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Monday, March 15, 2004 4:25 AM To: Struts Users Mailing List Subject: Re: security framework!!! Right, I get it. So you not only want the higher level user to take on the lower level user's role, you want them to have their comp

action - delegate - facade

2004-03-16 Thread Adam Hardy
I've just been perusing the archive to check out what people have been saying about struts to EJB interfacing. One thing that occurs to me is that the only reason mentioned for having a business delegate layer between the Actions and the Session Facade is to allow for loose coupling of the stru

Re: what would it take to build site navigation into struts?

2004-03-17 Thread Adam Hardy
You're talking about breadcrumbs as site navigation - just to be clear, because there is another implementation of breadcrumbs as history navigation. It is relatively simple to implement (and maintain) a navigation breadcrumb menu using Tiles, which shows the position of your page in the heira

Re: action - delegate - facade

2004-03-17 Thread Adam Hardy
interpretation of the some of the forces behind the pattern and an idea on implementing it. Here's more information: http://java.sun.com/blueprints/corej2eepatterns/Patterns/BusinessDelegate.html http://www.developer.com/java/other/article.php/626001 robert -Original Message- From:

Re: action - delegate - facade

2004-03-17 Thread Adam Hardy
he "Business Services" it uses (ie. the Facades). Hope to help...otherwisefeel free to ask. Best regards Henrik - Original Message - From: "Adam Hardy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, Mar

Re: action - delegate - facade

2004-03-17 Thread Adam Hardy
overs j2ee1.4 cheers, btw. under the sun, there is a code camps, or however they call it for strtus and j2ee_patterns: http://developers.sun.com/events/techdays/codecamps/index.html (third link ;-)) cheers! Matthias -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Wedn

Re: action - delegate - facade

2004-03-17 Thread Adam Hardy
a "view". If aa prepopulated html form is to be presented I send a "view" and a form bean. Voila :) Pedro Salgado (http://www.04web.com/) - Original Message - From: "Adam Hardy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PR

Re: action - delegate - facade

2004-03-17 Thread Adam Hardy
Great book. Thanks for the link. I think I need more knowledge of xdoclet before I make my mind up though. This offers alot to mull over. Plus I'm also quite keen to use faster, quicker patterns. I use dynaactionforms in struts almost exclusively and regarding this Data Transfer Hashmap, it ir

Re: action - delegate - facade

2004-03-17 Thread Adam Hardy
omain Object) which can be passed to the business tier. robert -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 17, 2004 5:57 PM To: Struts Users Mailing List Subject: Re: action - delegate - facade Great book. Thanks for the link. I think I need

Re: security framework!!!

2004-03-17 Thread Adam Hardy
approval, depending on the activity. Essentially, all of the work they do can be seen by no one else (though a manager might need to approve certain types of request). Regards, David -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Monday, March 15, 2004 10:28 AM

Re: Map-backed Forms and Struts Validator

2004-03-18 Thread Adam Hardy
Hi Derek, from the ppt doc, it looks like validWhen is using a syntax that is designed for checking indexed properties. I haven't used it though. I assume that it would handle nested beans as well, in accordance with the rest of the action form functionality. But again, I don't know. Also it s

Re: [FRIDAY]:RE: calling ASP inside a JSP

2004-03-18 Thread Adam Hardy
The ugly bit is when you try to incorporate an ASP page with a JSP page, M$ will sue you for stealing their code. ;) On 03/18/2004 03:21 AM Andrew Hill wrote: Whats the Ugly? PHP? hmmm. Friday seems to come very early in your part of the world ;-) -Original Message- From: Wiebe de Jon

Re: action - delegate - facade

2004-03-18 Thread Adam Hardy
Downside is though, trying to cram string request parameters into your DTO in your form before you validate them. Causes ugly exception messages on the browser. On 03/18/2004 02:25 AM Robert Taylor wrote: Well, I would say it depends. If I had a DTO ( a domain object) which had all the fields I

Re: security framework!!!

2004-03-18 Thread Adam Hardy
much alteration to the package[s]) use roles for Struts, Tiles, and JSPs, I'm at a loss how to change my identity/roles If I made a filter to wrapper the Request with a HTTPServletRequestWrapper object then added my own push/pop/depth methods, I see how I could use roles in all of those places

Re: Validator: Validation based on action path and not by form name

2004-03-18 Thread Adam Hardy
Kamakshya, if you use the ValidatorActionForm instead of the ValidatorForm, then you can do this. Adam On 03/18/2004 08:26 AM Prasad, Kamakshya wrote: Hi All, Is it possible for validation.xml to take action path attribute instead of form name for putting javascript validation rules for a page

Re: portal concepts [was: what would it take to build site navigation into struts?]

2004-03-19 Thread Adam Hardy
Are you aiming to put Broadvision out of business? ;) It sounds like quite a task. The admin tool that you use to build page heirarchies - how does it store the info? XML presumably? And the XML is read by the application at run-time. And so your plug-in would do the same - read its config from

Re: Users, Roles & Access Control in Struts Applications - Where to get information?

2004-03-25 Thread Adam Hardy
This might come through twice - if so, sorry. On 03/25/2004 11:28 AM Tom Bednarz wrote: 1) How are Roles defined? Where are they stored? I don't want these things stored in a XML file. Is there a way to store these things in a database? Is there any documentation about a datamodel (Fields, dataty

Re: form based auth and session timeout and post data

2004-03-25 Thread Adam Hardy
That's one mean filter. It's not part of struts but judging merely from its name, it's obviously built into the app security. What does xpetstore say it's meant to do? Have you checked the filter's javadoc? Adam On 03/25/2004 10:07 PM Martin Alley wrote: Hi, I've got a struts based app usi

Re: dynamic widgets

2004-03-25 Thread Adam Hardy
Give us an example. What is the form editing? The iterate tag is probably what you want, if it's simple. Or you could use NestedBeans. If the form edits the actual object, you can get a bunch of beans, each representing x pieces of info, and store them inside the main object. Just throwing out

Re: form based auth and session timeout and post data

2004-03-25 Thread Adam Hardy
ight away (unlike the non-timeout scenario). I guess the order of play is: Container based security Filter ActionServlet Can't work out why the filter would appear to be bypassed. Any ideas? Thanks for helping. Martin -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sen

Re: Problem with session ojects: memory size, updates

2002-07-18 Thread Adam Hardy
Value objects that can be serialized can be automatically saved to disk by your application server, if it provides memory management configuration options. If your session fills up with data, then the app server can be configured to remove the data from memory and store it on disk. I think!

Re: the context

2002-07-18 Thread Adam Hardy
Sounds like Deep Thought you're dealing with there. Similarly to Magicthighs and Broomfondle, you have unfortunately not defined your question enough and the answer would take 7.5 million years to formulate. Adolfo Miguelez wrote: > Hi All, > > we are are developing a framework based on Struts

Re: Related Select lists

2002-07-18 Thread Adam Hardy
I would output the data into javascript arrays in a JSP. The tags work just as well mixed in with javascript as they do with html. Depends what your target browser is. If it includes NS4 you've got more problems, but otherwise it should be fairly simple - use the onchange event on the select b

Re: getting nested tags to work with DynaActionForm???

2002-07-18 Thread Adam Hardy
Arron, I wonder how your lazy initialisation works. I'm afraid I didn't look at the code - since you said you wanted to explain it to the masses anyway, perhaps you won't mind explaining, rather than telling me not to be so lazy myself. Basically, if you have your example: In the request param

Re: getting nested tags to work with DynaActionForm???

2002-07-18 Thread Adam Hardy
I am now using nested tags everywhere and not programming my action forms with getter and setter methods for anything except one or two properties, and the nested beans of course. Is there any reason to regard this as bad practice? I also write my value beans with two properties for every real

Re: Setter Methods not being called in nested:iterate scenario :+(

2002-07-18 Thread Adam Hardy
nested tags / indexed properties / nested beans gotcha. You have to instantiate the beans yourself in the form reset() if you want to capture the indexed properties. [this answer was automated, virtually] hemant wrote: > Comrades, > > I am trying to Iterate over a Collection of Collections o

Re: [ANN] Chapter 18 of the O'Reilly Struts book now available

2002-07-18 Thread Adam Hardy
That's unfair - I'd have a beaver. And no smart comments on that thanks. James Mitchell wrote: >>I think it's taking them a long time to figure out >>which animal they want on the cover :) > > > +1 for sasquatch. > http://www.bfro.net/ > > > > James Mitchell > Software Engineer\Struts Ev

Re: Setter Methods not being called in nested:iterate scenario :+(

2002-07-19 Thread Adam Hardy
thods. > >The collectionOfPairs is instantiated and populated. If not, I would not be >seeing the page with the correct data. right? > >As I said earlier, the getters work, the setters do not work. All this >inspite of having the bean in the form. > >Thanks >hemant > >

Re: when to populate dependent entities?

2002-07-22 Thread Adam Hardy
Hi David, it sounds like you need to do some use case analysis to work out exactly when you need to getCompanyBeanWithDepartments() and when you need to getCompanyBeanWithout() Same for employee beans. I wouldn't have the beans hang on to a factory reference - what if they fall over when tryi

Re: Struts OReilly Book....

2002-07-22 Thread Adam Hardy
Would O'Reilly's be polite enough to ask? Shall we run a sweepstake on it? A dollar / euro each ... I'm still for a beaver. Chappell, Simon P wrote: > I say that we ask Craig McClanahan if he has a favourite animal ... it worked for >Linus Torvalds. > > My second vote was going to be for a Rh

Re: Master/Detail data - editing multiple entities in a grid

2002-07-23 Thread Adam Hardy
I mailed this before but it didn't get thro I think, apologies if it's a double post. The monkey - bunches - banana model using nested tags sounds like exactly what you need. The indexed properties output by the tags keeps all the relationships. NB if you do go that way, remember to either kee

CLASSPATH, env, lib, jars and all that

2002-02-12 Thread Adam Hardy
Hi All, I'm setting up struts to use at home and at work on projects which I take back & forth, and I want to rationalise the way I set up my progs, java environment, tomcat and all. One thing complicating it all, which I'm afraid will trip me up when I start using newer versions in the futu

Re: CLASSPATH, env, lib, jars and all that

2002-02-12 Thread Adam Hardy
On Tue, 12 February 2002, Struts Newsgroup wrote: > 1. Share WebApps folder and map it as say S: drive. > > 2. Then I put all my JARs in WEB-INF\lib, and put all of them in classpath. Do you mean your own app JARs or do you mean java, jakarta, etc.jars? Find the best deals on the web at AltaV

Re: Editing a database record best practice?

2002-02-12 Thread Adam Hardy
On Tue, 12 February 2002, "Jonathan Gibbons" wrote: > > I guess the really OTT answer is: > > User/GUI = Form Object, all strings > > Mid Tier = Value object holding equivalent fields for each form field, but in native >data type, but no struts code. > > DB = EJB, local interfaces. OTT as in

RE: "if" tag

2002-02-12 Thread Adam Hardy
How many pages do you need an If tag / scriplet for? Why not switch the Action forward to choose the right page? Just have 2 pages with no Ifs. Perhaps I'm being too simplistic. On Tue, 12 February 2002, "Knoll, Zach" wrote: > > I totally agree with you. The only issue/desire that I have is t

Ye olde ApplicationResources.properties & ant --> tomcat?

2002-02-13 Thread Adam Hardy
Hi All, on setting up my new struts app, I found that ant isn't copying my ApplicationResources.properties from my src directory into the build or the deploy directories. When I compiled struts from source, ant managed to sort the properties file out for the example app, but I can't see anyw

RE: Ye olde ApplicationResources.properties & ant --> tomcat?

2002-02-13 Thread Adam Hardy
d something like > > > > > > > This may be being done when you compile, but not otherwise, but without seeing the >build.xml > > Hope this helps > > Ghoot > > > -Original Message- > > From: Adam Hardy [mailto:[EMAIL PROTECTED]] > &g

Multi-language string resource strategy

2002-02-13 Thread Adam Hardy
Hi All, in my previous applications whenever I wrote multiple strings for languages, I just wrote strings for each page and sorted them based on page, but now with the struts framework, basing it on pages doesn't really work. What do people do? I was thinking of some sort of dictionary-like li

RE: Multi-language string resource strategy

2002-02-13 Thread Adam Hardy
On Wed, 13 February 2002, "Galbreath, Mark" wrote: > Try before you cry: > http://www.mail-archive.com/struts-user%40jakarta.apache.org/ I like your tagline. I guess before too long after talking to me you'll have to increase it to include a URL to RTFM Find the best deals on the web at Alta

RE: Multi-language string resource strategy

2002-02-13 Thread Adam Hardy
On Wed, 13 February 2002, Andrew B Forman wrote: > > As such, we have very few application-level strings > and keep most at a page-scope. > > This way, when marketing wants one word changed it's > a very small change to the resource bundle rather > than having to go through the pages and change

<    2   3   4   5   6   7   8   9   >