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

2004-03-25 Thread Adam Hardy
struts jar to their project and having no problems. Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

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
out ideas. Adam On 03/25/2004 04:37 PM Dean A. Hoover wrote: Scenario: An HTML form is contructed using JSP where most of the widgets are statically created (except for labels). However, there is a group of check boxes which are created based on information contained in a database. There may be one

Re: form based auth and session timeout and post data

2004-03-25 Thread Adam Hardy
, only by tomcat 'filtering' on the URL and passing it the requests it's been configured to see in the web.xml. Adam On 03/25/2004 10:35 PM Martin Alley wrote: Hi Adam, I modified the filter from xpetstore when I introduced container based security. It should now redirect the user

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

2004-03-19 Thread Adam Hardy
churlish not to allow dynamic rearrangement of the site map. But it depends on how you do it - most of the URLs in a struts-tiles app are based in files that can only be reloaded by reloading the whole app. I think that's your first worry. Adam On 03/19/2004 09:45 AM Andrew Freeman wrote: After

Re: Map-backed Forms and Struts Validator

2004-03-18 Thread Adam Hardy
it says you can't use validWhen until you upgrade to struts 1.2 or a nightly build. I admit, it doesn't look hopeful. Have you tried a simple test case using the syntax like in the ppt doc? Adam On 03/18/2004 12:56 AM Derek Richardson wrote: Read through the various Struts validator docs

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
when simply displaying data on a page? Do developers typically copy data out of the domain object just to display it? (As opposed to using it w/ a form.) The only issue I see is that you may end up introducing view helper methods to your model beans. Nick Robert Taylor wrote: Adam, its

Re: security framework!!!

2004-03-18 Thread Adam Hardy
help. I assume you are talking about deciding on the presence / absence of form controls depending on the user viewing the page. Adam On 03/18/2004 09:34 AM Max Cooper wrote: David, I think it is unusual to design the security system such that you must switch identities to meet your requirements

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

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

2004-03-17 Thread Adam Hardy
in the heirarchy. It is basic, so I'm not sure if it could fulfil what you describe as 'knowing its relationship to the rest of the pages' or an 'API to know the current page's parent siblings children'. Perhaps a couple of examples to show what you mean would help. Adam On 03/17/2004 04:45 AM Andrew

Re: action - delegate - facade

2004-03-17 Thread Adam Hardy
? Thanks! Adam On 03/17/2004 09:22 AM HG wrote: Hi Robert and Adam... Guess I am paranoid or prepared.. :-) I use nearly the approach Robert described, using a Factory for the delegatealthough the purpose is not the same.. I use the Delegate as the web tier view of the business logic/services

Re: action - delegate - facade

2004-03-17 Thread Adam Hardy
PROTECTED] Sent: Wednesday, March 17, 2004 12:31 PM Subject: Re: action - delegate - facade Hi Adam. Your first question, regarding packaging I keep that part simple, so I place all value objects in a model package, say com.mycompany.myproduct.model. Both the ejb-jar and the web-jat contain

Re: action - delegate - facade

2004-03-17 Thread Adam Hardy
Thanks Matthias. The codecamp looks like just the right thing. Adam On 03/17/2004 02:17 PM Matthias Wessendorf wrote: Hi Adam there is a good book on it! http://www.corej2eepatterns.com/Patterns2ndEd/index.htm i use it very often... but more it's german version... :-) however that covers

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
of the Struts community would still frown on it. Adam On 03/18/2004 12:20 AM Robert Taylor wrote: Adam, its frowned upon to pass a web tier object (ActionForm) into the business tier. I believe a widely used technique is to use BeanUtils to copy the properties from the ActionForm to a DTO (a Domain

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
for the existence of the Delegate layer? Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

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
. It's easy, central and maintenance-free. Better than updating all your JSPs. As for tags, I'm not sure about logic tags, I use c tags in JSTL. Setting form properties in the Action classes is standard practice. Adam On 03/13/2004 11:43 PM Theodosios Paschalidis wrote: Struts seems

Re: security framework!!!

2004-03-14 Thread Adam Hardy
. The manager can assign himself whatever standard role he likes depending on his 'extra' roles. This would change the info in your realm and he would have to log out and back in again. Or have I got the wrong end of the stick? Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian

Re: html:cancel doesn't perform as advertised

2004-03-14 Thread Adam Hardy
/html:cancel 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. According to the documentation for html:cancel: Pressing of this submit button causes the action servlet to bypass calling the associated form bean validate() method. I tried

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
Hi Dean, I'm not sure what you're doing in your LookupDispatchAction, so I can't really say. I'm not too hot on DispatchActions. Isn't there a default? Or some other way that DispatchAction handles cancels? Adam On 03/14/2004 03:34 PM Dean A. Hoover wrote: Adam, OK, I get that part now... I

Re: security framework!!!

2004-03-14 Thread Adam Hardy
You mean you don't want to force the user to log out and back in again? I would have thought that was a reasonable demand since they are effectively changing their identity. Your HttpServletRequest wrapper sounds OK as a solution though. Adam On 03/14/2004 03:51 PM David Friedman wrote: Adam

Re: Checking if user has a valida session

2004-03-14 Thread Adam Hardy
Theo I would check in struts-examples in the struts installation. Adam On 03/14/2004 04:03 PM Theodosios Paschalidis wrote: Adam thank you for your reply. It is most likely Tomcat (4.1.24) that does not refresh (supposedly peaks up the updated classes) and I have to delete its temporary working

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
wondering whether sslext is going to be absorbed by the struts project? Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

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
) context.getAttribute(Globals.MESSAGES_KEY); String msg = resources.getMessage(my.key); Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: Validator classes and validator-rules.xml

2004-03-08 Thread Adam Hardy
that reflection process takes inheritance into account. Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: can struts generate strict XHTML

2004-03-08 Thread Adam Hardy
when I started, but it definitely works on struts 1.1. There are a couple of issues to look out for, such as with tiles, where you use the tag you mention. In your main pages, use html:html xhtml=true Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian

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
it would go in the root directory of your source code. If it was called mvnplugin.mvnforum.MVNForumConfig, then you would put it in your source code under the mnvplugin/mvnforum/ directory. Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian

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
in this particular field I should see a message specified by msg name=integer key=error.coc.check/ Why are specifying a different msg key? There is a default one already 'errors.integer', if you have put it in your ApplicationResources. Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20

URL validation - anyone using it?

2004-03-05 Thread Adam Hardy
UrlValidator.java in my source code and modify it for my purposes, but I would like to know if there is anyone else interested or even actively working on this? Perhaps I should post this to the struts-dev list. Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian

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
need the latest javascript for the validate-url rule, that's why. But then it occurred to me that it might be the same as struts-config.xml, i.e. roll-your-own. Thanks Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian

Re: validator-rules.xml

2004-03-04 Thread Adam Hardy
equivalent (yet... hopefully) Thanks for the pointers. Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Form based authentication in tomcat with struts

2004-03-04 Thread Adam Hardy
. Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

ConfigHelper.getActionMapping

2004-03-04 Thread Adam Hardy
getting null action mapping returned for my URLs when I call ConfigHelper.getActionMapping(url). Is what I'm doing for some reason now not struts compatible? I'm going to check out the source code, but if anyone knows immediately, you could save me some time. Thanks Adam PS Here's the way I'm doing

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
at www.jboss.org is not up to the standard I'm used to at Jakarta. In fact, I'm wondering whether there is an alternative at all actually. Thanks Adam On 03/02/2004 04:46 AM Andrew Hill wrote: Ive found the best way to avoid those kind of morons is to work at small companies where any deadwood has

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

2004-03-02 Thread Adam Hardy
set up other bundles, just change it appropriately. context is the page context - I took this from a taglib - you'd have to convert it to the servlet context I presume. Adam On 03/02/2004 01:37 PM [EMAIL PROTECTED] wrote: Hey everybody! Well the subject basically states my problem already. I'd

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
change hasn't propagated all the way through yet. I was able to get 1.5.0 Beta 1 from there with no problems. read that they've just released the jdk 1.5 preview and the traffic is slowing everything down. Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian

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
wikki. Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

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
that I use already. I don't know how you manage to replace the list. My definitions inherit the list and its contents. (I am not sure about replacement). Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian

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
Thanks for the expos. :) So it's worse than I feared! Well, I shall just come up with a convincing error message in those situations where I would have needed it, rather than try to force a square peg somewhere it doesn't want to go. Adam On 03/01/2004 08:23 PM Martin Cooper wrote: I'm going

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

2004-03-01 Thread Adam Hardy
'use the business delegate pattern with an EJB session facade'. Secondly, it depends heavily on what your stateful session beans are holding as state. Care to name something? Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian

Re: Problems with UTF-8 and forms

2004-02-29 Thread Adam Hardy
, but getting a little out-of-date now. Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

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). * 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
at the javadoc for ActionMessages, I would say no, it must be hard-coded to get it from the default bundle. Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

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 the jasper servlet in the conf/web.xml config. However it is still going to take processing time to remove the white space, so it might not be the enhancement you are hoping for. Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian

Re: How to create a No Action ActionForward

2004-02-24 Thread Adam Hardy
hold of the user's session? I don't see any way of obtaining access to it from the LoginModule. Adam On 02/24/2004 02:00 AM Jacqueline Gomes wrote: That sounds like a good idea! However, I don't have any 'roles', they are just users that need to authenticate, and I wanted to secure blah/do/admin

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 the struts website. I remember some good diagrams there. Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: using html:xhtml/

2004-02-24 Thread Adam Hardy
html:xhtml/ is to place in tiles and jsp:includes which are not compiled in the main body's context. Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: How to create a No Action ActionForward

2004-02-23 Thread Adam Hardy
be transparent to your app. As long as you map the security constraints correctly, the user will never see a protected page unless they login. Adam On 02/23/2004 08:54 AM Carl wrote: I've faced the same issue too. (using tomcat) To solve it I've found 2 options : - implement a filter witch

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
it dynamically? Is there any way it could be done dynamically? Just thinking aloud. Adam On 02/23/2004 10:41 PM Miller, Judd M,,DMDCWEST wrote: I have the same basic needs as Andy does for my application. I would add that I'm expecting there's an intelligent way of storing/calling breadcrumbs

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
in the same definition, then only one of them will succeed, because the originating action obviously provides only one form bean. Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL

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

2004-02-22 Thread Adam Hardy
to divvy the handling of the form data via inheritance is too complicated and / or unnecessary. I once had a ActionForm superclass with getter / setter methods for frequently occuring fields - but dropped it because the advantage was trivial. And I started using DynaActionForms. Adam -- struts 1.1

Re: Extra Lines in Compiled JSP

2004-02-21 Thread Adam Hardy
it in all its glory. Adam On 02/20/2004 10:47 PM Piper, James D CECOM SEC EPS wrote: Why do you have this problem with extra lines in your html generated by the %@ % section of your jsp and I do not - I use JBOSS and WebLogic both -- never saw this problem? - Jim -Original Message- From

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: html:link passing multiple parameters

2004-02-15 Thread Adam L
There's also the use of c:url. The catch there is that if you incude the resulting url in a html:link, it will be double contexted, which means you should use a standard href tag and use a c:out to spit out the final url. - Original Message - From: Nick Faiz [EMAIL PROTECTED] To:

Re: Securing Struts - Which is my best option

2004-02-13 Thread Adam Hardy
is about all you need to do, along with setting up the login realm. HTH Adam On 02/12/2004 01:36 PM Joanne L Corless wrote: Hi, I know this topic has been discussed before but I've looked at all the previous posts and can't find anything to answer my problem I have a struts app that is designed

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
to it dynamically in the init or reset methods. You would have to write your own DynaActionForm child class that extends DynaActionForm to do that, and declare it as struts-config's form-bean... type. Hope that helps, Adam PS You must be the Thomas Stockhammer I worked with on APLA? How's

Re: Tiles Dynamic Menu: Design Question

2004-02-10 Thread Adam Hardy
the struts-config.xml by having a sub-app for the menu. The tile does not have to be pure JSP. You can define a tile to go through an action first. Adam On 02/10/2004 05:13 PM [EMAIL PROTECTED] wrote: Struts v1.1 We are currently using Struts and Tiles and have a dynamic navigation menu with 2-3 nested

Re: Struts 1.1 on Tomcat 5.0.18?

2004-02-10 Thread Adam Hardy
. Thanks. Yes, probably hundreds of people. When do you get that error? Without more details it's impossible to say what you need to do. Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail

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: Orkut - Done!

2004-02-09 Thread Adam L
day late, dollar short. if someone would pass along the invitation, I'd be much obliged. thanks! -- adam - Original Message - From: Vic Cekvenich [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 09, 2004 10:16 AM Subject: Re: Orkut - Done! I invited the people so far

Re: Struts Tiles: Question Mark characters in page output

2004-02-08 Thread Adam Hardy
in the resource bundle. Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

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
; /** * To specify to debugRequest() to display request * headers */ public static final int SHOW_HDRS = 2; On 02/07/2004 04:00 PM Robert Taylor wrote: Adam, thanks. I did that. The problem is that I need to see request and response headers from different browsers. robert

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

2004-02-07 Thread Adam Hardy
someone posts the answer. :) Adam On 02/07/2004 05:04 PM Ted Husted wrote: Last time, we asked contestants to name for a popular science fiction series that featured a psi cop named after a science fiction author 1 The series (Babylon 5) 2 The character (Alfred Bester) 3 The actor who played

Re: [Friday] Java in Aus

2004-02-06 Thread Adam Hardy
Security experience, your lovely government wouldn't want me. What's that all about? Adam On 02/05/2004 03:09 AM [EMAIL PROTECTED] wrote: Okay, OT is okay as far as it goes but lets not turn the struts mailing list into a forum for the great Sydney/Melbourne rivalry. Please. Anyway, everyone knows

Re: Request.getParameter()

2004-02-06 Thread Adam Hardy
parameters. You can set and remove request attributes though. Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tiles And Frames

2004-02-05 Thread Adam L
According to: http://www.w3.org/TR/REC-html40/present/frames.html 16.2 Layout of frames An HTML document that describes frame layout (called a frameset document) has a different makeup than an HTML document without frames. A standard document has one HEAD section and one BODY. A frameset

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
redesign of the website interface. Validator automates validation for you - it won't drastically influence your design - just make your development time faster. HTH Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian

  1   2   3   4   5   6   7   8   9   10   >