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,

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

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

Re: form based auth and session timeout and post data

2004-03-25 Thread Adam Hardy
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] Sent: 25 March 2004 21:18 To: Struts Users Mailing List Subject: Re: form

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

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

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

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
using roles in all of those places with the various levels of control I need to exert (albeit probably rarely switching roles) ? Thanks (to all) for any constructive suggestions, David -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 17, 2004 6:51 PM

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

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

Re: action - delegate - facade

2004-03-17 Thread Adam Hardy
/BusinessDelegate.html http://www.developer.com/java/other/article.php/626001 robert -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 16, 2004 6:26 PM To: Struts Users Mailing List Subject: action - delegate - facade I've just been perusing the archive

Re: action - delegate - facade

2004-03-17 Thread Adam Hardy
feel free to ask. Best regards Henrik - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, March 17, 2004 11:01 AM Subject: Re: action - delegate - facade I am surprised to see that the xpetstore @ sourceforge has

Re: action - delegate - facade

2004-03-17 Thread Adam Hardy
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: Wednesday

Re: action - delegate - facade

2004-03-17 Thread Adam Hardy
Message - From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, March 17, 2004 2:07 PM Subject: Re: action - delegate - facade Is it safe? I really don't know. You'd have to ask someone else or wait until I've got a couple of years experience

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

Re: action - delegate - facade

2004-03-17 Thread Adam Hardy
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 more

Re: security framework!!!

2004-03-17 Thread Adam Hardy
-Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Monday, March 15, 2004 10:28 AM To: Struts Users Mailing List Subject: Re: security framework!!! On 03/15/2004 03:00 PM David Friedman wrote: I should have explained this a bit better. Each level is like a company

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

Re: dtd validation of tld's

2004-03-15 Thread Adam Hardy
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 thinking it has

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

Re: security framework!!!

2004-03-15 Thread Adam Hardy
: 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 complete ID or username etc

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

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,

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: input type=submit name=org.apache.struts.taglib.html.CANCEL value=Cancel onclick=bCancel=true; / The JSP should look like this: html:cancelCancel or

Re: html:cancel doesn't perform as advertised

2004-03-14 Thread Adam Hardy
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: input type=submit name=org.apache.struts.taglib.html.CANCEL value=Cancel

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!

Re: html:cancel doesn't perform as advertised

2004-03-14 Thread Adam Hardy
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-Javascript validation?... that's what I want to avoid

Re: security framework!!!

2004-03-14 Thread Adam Hardy
. 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: Sunday, March

Re: Checking if user has a valida session

2004-03-14 Thread Adam Hardy
- 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's going wrong, you can bet your bottom dollar it's

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

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

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

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,

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 html:xhtml/ 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

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: definition name=.default path=/tiles/layouts/base.jsp put name=header

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 would

Re: Validator doubt

2004-03-05 Thread Adam Hardy
On 03/05/2004 12:33 PM MOHAN RADHAKRISHNAN wrote: field property=cocNumber depends=integer msg name=integer key=error.coc.check/ arg0 key=label.coc.incident/ /field So if I input a value that is not a integer in

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

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 List

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

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

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

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

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 put again in-between the inserts for the child. On 03/02/2004

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
? -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 short, the Actions will be calling various Stateful

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

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

2004-03-02 Thread Adam Hardy
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 It's difficult to know what scenario you

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

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 stuff to set up

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: definition name=.head.common path=htmlHead.jsp putList name=httpEquiv item value=pragma link=no-cache /

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: definition name=.head.common path=htmlHead.jsp putList name=httpEquiv item value

Re: multipart-request / file upload problem

2004-03-01 Thread Adam Hardy
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 handler stuff to set up a DynaActionForm properly for my

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

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?

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

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). * All my

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: form-bean name=linklibImportForm type=org.apache.struts.validator.DynaValidatorActionForm form-property name=bookmarksFile

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

Re: action errors and resource bundles

2004-02-27 Thread Adam Hardy
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 bundles On 02/27/2004 05:04 PM David Adelson

Re: action errors and resource bundles

2004-02-27 Thread Adam Hardy
ActionErrors(); errors.add(name, 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

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

Re: How to create a No Action ActionForward

2004-02-24 Thread Adam Hardy
j_security_check. regards, Carl Adam Hardy wrote: 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

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

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

Re: using html:xhtml/

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

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

Re: How to create a No Action ActionForward

2004-02-23 Thread Adam Hardy
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 effectively means

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

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

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: 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

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

Re: Extra Lines in Compiled JSP

2004-02-21 Thread Adam Hardy
: 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 for 'white space

Re: Extra Lines in Compiled JSP

2004-02-20 Thread Adam Hardy
Maybe I just dreamt this but I thought I remember one of the tomcat committers saying here that they had added a config option to remove these blank lines around JSP taglib tags, and set the configuration option by default to false/off, because it violates the JSP spec. I just quickly

Re: Extra Lines in Compiled JSP

2004-02-20 Thread Adam Hardy
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 for 'white space' and 'blank lines' but not found anything. Perhaps it was even on this list? Check this link for a filter solution: http://www.mail-archive.com/[EMAIL

Re: Problem Dynamically creating form properties

2004-02-18 Thread Adam Hardy
I wonder whether a module along these lines has been incorporated into JavaFaces? On 02/17/2004 09:44 PM Hubert Rabago wrote: Cool! I'll write something up tonight that'll provide more info and send it to you so you can see where it's at. --- Niall Pemberton [EMAIL PROTECTED] wrote: Your stuff

Re: Securing Struts - Which is my best option

2004-02-13 Thread Adam Hardy
Joanne, struts can be used to implement security easily using the 'roles=' attribute on the action mappings in your struts-config. This allows you to specify which roles can access an action or not. This depends on use of container-managed security, but I think that the SecurityFilter plugin

Re: Struts 1.1 on Tomcat 5.0.18?

2004-02-11 Thread Adam Hardy
Since no-one has said anything about an error in the struts-examples app here, then I assume it's something in your setup that you or your colleagues have done. Did you do anything during install apart from set JAVA_HOME, CATALINA_HOME, PATH? Do you have anything in JAVA_OPTS or JAVA_OPTIONS?

Re: Dynamic generation of forms out of a config table in a database

2004-02-11 Thread Adam Hardy
Hi Tom, I saw a long thread last year on this mailing list discussing this subject. I can't remember the details but I do remember the person declared their success at the end. If you have a good search in the mail list archives on DynaActionForms and similar words, you are bound to find it.

Re: Tiles Dynamic Menu: Design Question

2004-02-10 Thread Adam Hardy
Zach, did you miss http://sourceforge.net/projects/struts-menu/ ? I don't remember its details - it may do some of those things you don't like. I don't see why you are keeping menu urls in the ApplicationResources. At least you could make a new resource bundle and load it yourself with the

Re: Struts 1.1 on Tomcat 5.0.18?

2004-02-10 Thread Adam Hardy
On 02/10/2004 07:38 PM Steve Hill wrote: Is anyone here successfully using Struts 1.1 on Tomcat 5.0.18? I am getting java.lang.IllegalStateException: zip file closed errors with any struts-using code and am wondering if this is a bug and I should go back to an earlier version of one or the other.

Re: Need to modify the URL path of the forward dynamically

2004-02-09 Thread Adam Hardy
I do what Andrew does too. I don't see it as being too laborious, considering that I feel the ActionForward's original URL should be good enough as it is in most cases not to need appending to. Otherwise I think I would look at redesigning my approach in a more Struts-like manner. On

Re: Struts Tiles: Question Mark characters in page output

2004-02-08 Thread Adam Hardy
On 02/07/2004 10:53 PM eric scroger wrote: Can someone tell me why I'm getting question mark chacters in my output display instead of the actual page content? I'm using Tomcat 4.0.x with Struts 1.1. Question marks in the output can be the result of fmt:message taglibs not finding their given key

Re: [OT] Examining Response Headers

2004-02-07 Thread Adam Hardy
here's my suggestion: Firebird or Mozilla browser with LiveHttpHeaders extension. On 02/07/2004 12:35 AM Mike Duffy wrote: Robert, DevProxy is a great program for monitoring the request and response headers: http://www.widgetbuilders.com/ I recently did some socket programming. DevProxy was

Re: [OT] Examining Response Headers

2004-02-07 Thread Adam Hardy
-Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Saturday, February 07, 2004 5:59 AM To: Struts Users Mailing List Subject: Re: [OT] Examining Response Headers here's my suggestion: Firebird or Mozilla browser with LiveHttpHeaders extension. On 02/07/2004 12:35 AM Mike Duffy wrote

Re: [FRIDAY] YA Stuts In Action / JUnit in Action Trivia Quiz

2004-02-07 Thread Adam Hardy
Hi Ted, it's not gone stale, the questions are just getting hard! The best bit is waiting to see how long it will be before someone posts the answer to the list! And then seeing what their reaction is once they realise what they did! Actually Brian Higdon's answer (to try to 'recall' his

Re: [Friday] Java in Aus

2004-02-06 Thread Adam Hardy
Since it's Friday, I thought I'd ask you Aussie java guys what the deal is on this strange points system Australia has for its working visas. I thought for a few years I'd never meet the target, whenever I thought about moving to down under. I'm too old, too British, not enough relatives

Re: Request.getParameter()

2004-02-06 Thread Adam Hardy
On 02/06/2004 11:11 AM Kamal Gupta wrote: Can I set the request to null once I have got the value i required. I have a parameter which has to be set to null in the request object once it is been used as i dont want that request to go to the next page No, you're not allowed to edit the request

Re: Looking for junior Java/Struts developers

2004-02-04 Thread Adam Hardy
oh come off it Andrew you don't need a car in Singapore. The public transport there is excellent - and anyway, where are you going to drive to? I guess I'm biased though. I hate cars. On 02/04/2004 05:49 PM Andrew Hill wrote: Least you can afford a car in Herdon VA. Over here even a simple

Re: Why doesn't ActionForm's constructor have access to HttpServletRequest?

2004-02-03 Thread Adam Hardy
Have I missed something here? What is wrong with using the reset method instead of the constructor? That gives you the mapping and the request as parameters. On 02/03/2004 08:17 AM Michael McGrady wrote: I think you really want something other than an ActionForm if you want to do this. Why

Re: Guidelines and steps for architecting a struts application

2004-02-03 Thread Adam Hardy
On 02/02/2004 11:20 PM Al Rathon wrote: Hi: I am developing a simple application (basically does CRUD operations on various entities in the application). I want to use the Tiles, Validator also. I would like to know what steps I need to follow to design the architecture. Check out 'MVC'

Re: Response not XHTML-comliant when using html:html xhtml='true'

2004-02-03 Thread Adam Hardy
On 02/03/2004 12:35 PM Andreas Amstutz wrote: Ok folks, thanks for the input on this topic. The quick and dirty solution for my problem was to download the struts source. Changing the xhtml class member's default value from 'false' to 'true' and buid it. Ohh, I really should have done that much

Re: Populating a DynaActionForm with a complex object graph

2004-02-03 Thread Adam Hardy
Hi Doug, your title threw me off the scent a little but I think what you are looking for is nested beans. HTH Adam On 02/03/2004 03:58 PM Doug Dixon wrote: OK, I've starting off down the Map-backed, manual indexing route, and it's grim... It forces me to have model logic in three places - the

Re: Response not XHTML-comliant when using html:html xhtml='true'

2004-02-01 Thread Adam Hardy
Use this instead in your tiles: html:xhtml / I validate my tiles xhtml the only error I ever get is one saying that I shouldn't be using the onclick event due to accessibility issues. Adam On 01/31/2004 10:46 PM Michael McGrady wrote: I have run into similar difficulties with Tiles and have

  1   2   3   4   5   6   7   8   9   >