[ANN] Wildcard-Matched Actions

2003-06-08 Thread Don Brown
This project allows wildcards to be used in Struts 1.1+ action mappings. The wildcard-matched values can then be substituted in the values of various Struts action mapping and action forward attributes. It uses the wildcard matching class from Apache Cocoon which is the default matching class us

Struts-resume app & session facade

2003-06-08 Thread Martin Naskovski
Hi, I was looking at Matt Raible's Struts-Resume application and it seems he's using Hibernate to do his persistence. One thing I'm not 100% clear on is - which part of his application represents the Session Facade pattern? Is it the *Manager.java classes or is this pattern non-existent in this app

Re: Direct access problem

2003-06-08 Thread Xu Cheng
Prevent the user from directly accessing the JSP page by putting all JSP pages under WEB-INF directory, or use a Filter. On Saturday 07 June 2003 22:55, otsuka wrote: > When a user directly access to a JSP page which belongs to > a Struts module, module switching is not processed a

Re: adding / creating new collection elements in a form

2003-06-08 Thread Rob
Hi Dan, This seems to be the most promising solution as of yet. I am however a little unclear as to how this avoids the need for a request for each row added. If I understand what your describing the LookupDispatchAction extension is for handling forms with multiple buttons. As you describe one

Re: Validator and Tiles

2003-06-08 Thread Marco Tedone
No I hadn't. Where in the struts application shall I subclass ValidatorForm? I declared a DynaValidatorForm in the struts-config.xml file and then I declared my form in the validation.xml file. Shall I do something more? Thanks, Marco - Original Message - From: "David Graham" <[EMAIL PRO

Re: Validator and Tiles...Problem Solved

2003-06-08 Thread Marco Tedone
David, your email was illuminating. Actually I had a closer look at the code; the [silly!] problem was that I declared a DynaValidatorActionForm in the struts-config.xml file and used a DynaValidatorForm in my action. Now I declared both to be DynaValidatorForm and it works. Thanks, Marco - O

Question about maxlength with Validator

2003-06-08 Thread Marco Tedone
Hi, now that I got Validator working properly, I'm trying to declare a validation by which an edited field cannot be greater than a certain size, but it doesn't work. Here follows what I've done: In the struts-config.xml file, i declared among the others, a password property in the DynaValidator

Re: Direct access problem

2003-06-08 Thread otsuka
> Prevent the user from directly accessing the JSP page by > putting all JSP pages under WEB-INF directory, > or use a Filter. I understand the "under WEB-INF" solution, but I don't know the filter strategy. Could you tell me about a filter which solves the direct access p

Re: Direct access problem

2003-06-08 Thread Xu Cheng
Create a Filter that is mapped to all JSP requests, and in its doFilter method, redirect to a page that says something like direct access to JSP pages are not allowed. For details of Filter, see SVR.6 of Servlet Spec 2.3. I can show you some code on Monday, if you would like. I don't

Struts doesn't execute my ActionForm.

2003-06-08 Thread Thomas Miskiewicz
Hi! I have a small HTML-Form with 3 textfields. I've implemented the validation rules in the validate() method of the ActionForm belonging to the html form. Unfortunately Struts isn't using the ActionForm. Why? Here my struts-config.xml http://jakarta.apache.org/struts/dtds/struts-config_1_1.dt

Re: Struts doesn't execute my ActionForm.

2003-06-08 Thread Marco Tedone
I'm not sure, but it seems to me that in the following: > input="/WEB-INF/jsp/postTest.jsp" > name="postTestForm" > scope="request" > validate="true" > type="com.mycompany.PostTestForm"> > > the input elememe

Re: Struts doesn't execute my ActionForm.

2003-06-08 Thread Rob
Thomas Miskiewicz wrote: Hi! I have a small HTML-Form with 3 textfields. I've implemented the validation rules in the validate() method of the ActionForm belonging to the html form. Unfortunately Struts isn't using the ActionForm. Why? Here my struts-config.xml "http://jakarta.apache.org/struts

Re: Struts doesn't execute my ActionForm.

2003-06-08 Thread Thomas Miskiewicz
Marco, > >> input="/WEB-INF/jsp/postTest.jsp" > > name="postTestForm" > > scope="request" > > validate="true" > > type="com.mycompany.PostTestForm"> > > path="/execute/homePageSetup"/> > > > the input elememe

Re: Struts doesn't execute my ActionForm.

2003-06-08 Thread Sloan Bowman
I am new to Struts and learning myself but from what I have read the input attribute is for validation if the form/Action fails it will send it back to the view. And know that you should never has .jsp pages located in your WEB-INF directory. Just an idea. --Sloan Marco, >

Re: Struts doesn't execute my ActionForm.

2003-06-08 Thread Thomas Miskiewicz
> I am new to Struts and learning myself but from what I have read the > input attribute is for validation if the form/Action fails it will > send it back to the view. My book states: "input - Used to define where the user should be redirected, if a validation error occurs. Usually, the user is red

Re: Struts doesn't execute my ActionForm.

2003-06-08 Thread Marco Tedone
Tom, the type attribute in the action element should point to an Action, not to a class which extends the ActionForm class, therefore the source you enclosed in your mail seems to be correct, but shouldn't be indicated in the input attribute. When you indicate the attribute 'validate' = true, the v

Re: Struts doesn't execute my ActionForm.

2003-06-08 Thread Marco Tedone
- Original Message - From: "Thomas Miskiewicz" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Sunday, June 08, 2003 6:02 PM Subject: Re: Struts doesn't execute my ActionForm. > > I am new to Struts and learning myself but from what I have read the > > inpu

Errata

2003-06-08 Thread Marco Tedone
- Original Message - From: "Marco Tedone" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "Thomas Miskiewicz" <[EMAIL PROTECTED]> Sent: Sunday, June 08, 2003 6:02 PM Subject: Re: Struts doesn't execute my ActionForm. > Tom, the type attribute in the action eleme

How to access the ActionForm instance from within the JSP

2003-06-08 Thread Carlos Saraiva
Hi, I need to call methods of the ActionForm instance from within the JSP. Can someone please tell me how to do this? I've tried defining a bean, but I get a different instance of the class. -- Best regards, Carlos Saraiva Raleigh, NC http://www.carlossaraiva.com mailto:[EMAIL PROTECTED] -

Re: How to access the ActionForm instance from within the JSP

2003-06-08 Thread Marco Tedone
Which kind of methods do you need to call? Marco - Original Message - From: "Carlos Saraiva" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Sunday, June 08, 2003 6:23 PM Subject: How to access the ActionForm instance from within the JSP > Hi, > > I need to

endless actionforms and valueobjects questions

2003-06-08 Thread florian
hi! i dont want to start the discussion again. just wanted some feedback on some thoughs =) i had some dicussions with some friends who argued that valueObjects should never never be so far out in the presentation layer. i kinda agree with that. valueObjects should really only be used on the bord

Re: endless actionforms and valueobjects questions

2003-06-08 Thread Marco Tedone
You are not wrong, florian, at the end of days what you should present to user are strings. The question is: how to retrieve those strings? One possible answer is by means of valueObjects. Let's think to the classic user's data (email, password, first name, last name, etc.) and to a normal Register

Re: Struts doesn't execute my ActionForm.

2003-06-08 Thread Thomas Miskiewicz
> > > > Why? What's wrong with the type? > > name="postTestForm" > > scope="request" > > validate="true" > > type="com.mycompany.PostTestForm"> > You've definately gone wrong with the type here, the > type="..." should specify an Action not a

RE: Question about maxlength with Validator

2003-06-08 Thread John Devine
I just went through the same problem last night. Here's how I solved it: minlength 4 minlength 6 -Original Message- From: Marco Tedone [mailto:[EMAIL PROTECTED] Sent: Sunday, June 08, 2003 5:03 AM To

RE: How to access the ActionForm instance from within the JSP

2003-06-08 Thread Carlos Saraiva
> > Hi, > > > > I need to call methods of the ActionForm instance from within > the JSP. Can > > someone please tell me how to do this? I've tried defining a bean, but I > get > > a different instance of the class. > > Which kind of methods do you need to call? > > Marco Methods written by myself

Re: How to access the ActionForm instance from within the JSP

2003-06-08 Thread Marco Tedone
Ok, which functionalities do those method perform? Have you thought to personal taglibs? The ActionForm should contain only getter/setter and validation methods. *Work* methods on data could be easily grouped somewhere else. The logic of the framework is request -> ?action(form) -> presentation, th

Re: How to access the ActionForm instance from within the JSP

2003-06-08 Thread Vic Cekvenich
If I can suggest that this is not MVC and not Struts. Consider, if you have not yet, purchasing a Struts book. And maybe post a JSP mail list, if you are not using Struts to pre-populate a bean in action. .V Carlos Saraiva wrote: Hi, I need to call methods of the ActionForm instance from withi

RE: How to access the ActionForm instance from within the JSP

2003-06-08 Thread Carlos Saraiva
OK, here's the deal. I've got a JSP with a form that's included in another JSP. When the imbedded JSP gets called, I want the fields in the form to be populated by the attributes of the object it represents. The form object doesn't get called before the JSP is instantiated. I'm looking for a way to

Re: How to access the ActionForm instance from within the JSP

2003-06-08 Thread Marco Tedone
Put the form which contains the properties you want to reuse in a session scope, and then from the JSP use this form. Marco - Original Message - From: "Carlos Saraiva" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Sunday, June 08, 2003 9:27 PM Subject: RE:

Re: Struts doesn't execute my ActionForm.

2003-06-08 Thread Thomas Miskiewicz
Hello! > public class PostTest extends Action > { > public ActionForward perform(ActionMapping mapping, > ActionForm form, > HttpServletRequest request, > HttpServletResponse response) > { >return (mapping.findForward("posttest.success")); > } > > } >

Re: Validator and Tiles...Problem Solved

2003-06-08 Thread David Graham
We really need to figure out a better way of doing things for ValidatorForm and ValidatorActionForm. The differences between the classes are minor and they should probably be only one class. I'm glad you fixed your problem! David David, your email was illuminating. Actually I had a closer loo

Re: Question about maxlength with Validator

2003-06-08 Thread David Graham
This may be do to an arg problem in recent commons-validator nightly builds. I fixed this last night so it should show up in today or tommorrow's commons-validator build. You could also download commons-validator-1.0.2.jar and use that. You should also be aware that Struts will not generate a

Validation Problem

2003-06-08 Thread Thomas Miskiewicz
Hi! I now have a strange validation problem. I use this ActionForm class: package com.mycompany; import org.apache.struts.action.Action; import org.apache.struts.action.ActionMapping; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.str

Adding server-side validation when using DispatchAction

2003-06-08 Thread Alen Ribic
Hey all I'm currently combining several similar actions using sublass of DispatchAction class. I'm using the Validator (validator-rules.xml, validation.xml as plugin) for my client-side validation successfully. I'm also using the DynaActionForm for my form bean(s). Since now I don't have a subcl

Re: Validation Problem

2003-06-08 Thread David Graham
Well, these validations have already been coded for you and can be configured in an xml file by using the Validator. I highly recommend you look into using the validator because it will save you a bunch of time. Your problem may have something to do with setting the fields = "" in reset. I wo

Re: Validation Problem

2003-06-08 Thread Thomas Miskiewicz
David, > Well, these validations have already been coded for you and can be > configured in an xml file by using the Validator. I highly recommend you > look into using the validator because it will save you a bunch of time. I'll do soon. I getting acquainted with Struts working with the book Pr

Re: How to specify the FormBean in an iterate tags name property?

2003-06-08 Thread Rodrigo di Lorenzo Lopes
Let you FormBean has the name myform so ... in jsp, use: important : YOU MUST SPECIFY YOUR FormBean to any tag inst part of html:form Mike Whittaker writes: > > How do I specify the FormBean in the name property? > > I have DynaActionForm, with a List property (myList), > I populate it in my A

Re: Adding server-side validation when using DispatchAction

2003-06-08 Thread Alen Ribic
Ok, maybe I don't understand the Validator system well yet. I would like to apply the server-side and client side validation. (server-side for if client side falls thought for some or other reason) What is the best and easiest way to do this? - Original Message - From: "Alen Ribic" <[EMAIL

Re: Validation Problem

2003-06-08 Thread Marco Tedone
Why don't you use ? Marco - Original Message - From: "Thomas Miskiewicz" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Sunday, June 08, 2003 9:47 PM Subject: Validation Problem > Hi! > > I now have a strange validation problem. I use this ActionForm class

logic:iterate and html:submit

2003-06-08 Thread Rodrigo di Lorenzo Lopes
Friendly developers, I am substituting html:link to html:submit, to populate the actionForm before to change the action. I would like use html:submit button to edit items of a collection. When I ws using html:link I had specified a property of this item to find its. So... how could I substitute h

RE: [validator] arg0-arg3 elements need name attribute to display message?

2003-06-08 Thread John Cavacas
Thanks for the reply David. I'll update my source from CVS and build from there. I'm glad someone is doing some work on the validator. And speaking of that, I will most likely be using the validator extensively pretty soon in a new application, which may result in some contributions. Are there sp

Re: logic:iterate and html:submit

2003-06-08 Thread Marco Tedone
- Original Message - From: "Rodrigo di Lorenzo Lopes" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Sunday, June 08, 2003 10:34 PM Subject: logic:iterate and html:submit > Friendly developers, > > I am substituting html:link to html:submit, to populate th

RE: How to access the ActionForm instance from within the JSP

2003-06-08 Thread Carlos Saraiva
Thanks Marco, I think I know how to do that. -- Best regards, Carlos Saraiva Raleigh, NC http://www.carlossaraiva.com mailto:[EMAIL PROTECTED] > -Original Message- > From: Marco Tedone [mailto:[EMAIL PROTECTED] > Sent: Sunday, June 08, 2003 4:35 PM > To: Struts Users Mailing List > Subjec

Re: logic:iterate and html:submit

2003-06-08 Thread Rodrigo di Lorenzo Lopes
Marco Tedone writes: > > - Original Message - > From: "Rodrigo di Lorenzo Lopes" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Sunday, June 08, 2003 10:34 PM > Subject: logic:iterate and html:submit > > > > Friendly developers, > > > > I am substituti

Re: Validation Problem

2003-06-08 Thread David Graham
The author is incorrect. Check out http://jakarta.apache.org/struts/faqs/newbie.html#reset for more info. David > Well, these validations have already been coded for you and can be > configured in an xml file by using the Validator. I highly recommend you > look into using the validator becau

Re: Struts doesn't execute my ActionForm.

2003-06-08 Thread Sloan Bowman
With most Container's you always want to lock down the WEB-INF directory from any external access. If you use the container with lets say apache you would use the Override all deny etc.. to keep users out of this directory. Again though this is coming from the jsp/Servlet standpoint. With Stru

RE: [validator] arg0-arg3 elements need name attribute to display message?

2003-06-08 Thread David Graham
I'm glad someone is doing some work on the validator. And speaking of that, I will most likely be using the validator extensively pretty soon in a new application, which may result in some contributions. Are there specific bugs or feature requests where help is needed? You can query bugzilla for a

Re: Adding server-side validation when using DispatchAction

2003-06-08 Thread David Graham
You need to use either DynaValidatorForm or DynaValidatorActionForm for the Struts validator to work. If you've already configured the validations in the xml files then all you should need to do is use the right Dyna classes. David Ok, maybe I don't understand the Validator system well yet. I

Re: logic:iterate and html:submit

2003-06-08 Thread Marco Tedone
So if this is java code, you should use: Edit Am I wrong? In any case, if it's a name that you need, have you tried ? Hope it will help, Marco - Original Message - From: "Rodrigo di Lorenzo Lopes" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Sunday, Ju

Dispatch Action help...

2003-06-08 Thread Keith Pemberton
Hi all, I have a webform that I am trying to create and I have run into a huge problem. So, at the top of the form I have the action specified and underneath I have defined the inputs using the struts taglib. Now, I can submit the form to the Action just fine and all the ActionForm is filled

Re: [validator] arg0-arg3 elements need name attribute to displaymessage?

2003-06-08 Thread Gareth Andrew
David Graham wrote: I'm glad someone is doing some work on the validator. And speaking of that, I will most likely be using the validator extensively pretty soon in a new application, which may result in some contributions. Are there specific bugs or feature requests where help is needed? You

Re: [validator] arg0-arg3 elements need name attribute to display message?

2003-06-08 Thread David Graham
Does that mean that future struts-1.x releases will be unable to use commons-validator 2.x without changing the Struts base requirements to 1.4? Struts would not use commons-validator 2.x in the 1.x series. I have no timeline for changing commons-validator to 2.x anyways. David Gareth. - Chan

Re: logic:iterate and html:submit

2003-06-08 Thread Rodrigo di Lorenzo Lopes
Thanx for your attention... Still not compiling: Actually, the last message error is: [ServletException in:/common/partyCollection.jsp] Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated. An error occurred at line: 18 in the jsp file: /common/partyColle

Re: logic:iterate and html:submit

2003-06-08 Thread Marco Tedone
Try: Alterar - Original Message - From: "Rodrigo di Lorenzo Lopes" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Sunday, June 08, 2003 11:51 PM Subject: Re: logic:iterate and html:submit > Thanx for your attention... > > >

[Tiles Beginner Question] Href & Tile Definitions

2003-06-08 Thread Pat Quinn
I've successfully got tiles up and running... I do understand how i can use a tile definition as a struts forward for my actions but i'm looking to redirect to a tile definition using a href link. E.g. I have the following tile definition: I have tried the following but

Re: logic:iterate and html:submit

2003-06-08 Thread Rodrigo di Lorenzo Lopes
Sorry friend, but it doesnt work too. ServletException in:/common/partyCollection.jsp] Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated. An error occurred at line: 19 in the jsp file: /common/partyCollection.jsp Generated servlet error: C:\DOCUME~1\RODRIG~1\CONFIG~1

using struts token

2003-06-08 Thread Riyaz Mansoor
hi i want to use struts tokens to (un)process duplicate submissions. however, i could not find out anything about using tokens in any of the sample apps that come with struts. 1) is there a sample application which demonstrates using tokens in struts? 2) i'm not using the struts html tag librar

validator and Multiple resource bundle

2003-06-08 Thread Hariharan
Hello friends, i have already posted this Q. once but never got any reply, can other atleast tell me what could be a work around for this? I am trying to use validator with struts 1.1 My idea is to maintain separate resource bundle for each module for jsp pages I can give something like this

Re: logic:iterate and html:submit

2003-06-08 Thread Rick Reumann
On Sun, Jun 08,'03 (10:09 PM GMT-0300), Rodrigo wrote: > Sorry friend, but it doesnt work too. > > Marco Tedone writes: > > Try: > > > > > > > > > > > > > > > > > title="Alterar"/>Alterar Try <% out.print( buttonName.toString() ); %> You'd think <%= would call the

Re: using struts token

2003-06-08 Thread David Graham
i want to use struts tokens to (un)process duplicate submissions. however, i could not find out anything about using tokens in any of the sample apps that come with struts. 1) is there a sample application which demonstrates using tokens in struts? struts-example uses tokens. You can also look a

Re: using struts token

2003-06-08 Thread Rick Reumann
On Mon, Jun 09,'03 (08:39 AM GMT+0500), Riyaz wrote: > 1) is there a sample application which demonstrates using tokens in > struts? Actually I didn't find the Struts example app using the token stuff too well. Maybe the example has changed though since it's been a while since I looked at, but

[OT] Logging.. when to use it

2003-06-08 Thread Vijay Pawar
Hi All, I wish to know when to use the logging. What are the application senarios where logging will be useful. I mean to say that what will be the ideal situations where logging can be used. I would appreciate an eye opening reply for this. Cheers Vijay --

Re: [OT] Logging.. when to use it

2003-06-08 Thread David Graham
Hi All, I wish to know when to use the logging. What are the application senarios where logging will be useful. I mean to say that what will be the ideal situations where logging can be used. Logging is extremely useful when debugging problems in production applications. I normally setup except

RE: Newbie Q: Cannot load JDBC driver class using Datasource Connection

2003-06-08 Thread Srilatha
I guess u need to put the jdbc2_0-stdext.jar IN THE LIB folder and if u r using mysql put the mysql-connector-java-3.0.6-stable-bin.jar also -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, June 07, 2003 11:29 PM To: [EMAIL PROTECTED] Subject: Newbie Q:

Re: [OT] Logging.. when to use it

2003-06-08 Thread Marco Tedone
It is useful for system administrator and application developer's to monitor system activity, bugs and warnings under a technical point of view. It's useful to the management, for instance, to monitor sites performance and take the right decisions. Marco - Original Message - From: "Vijay

Re: logic:iterate and html:submit

2003-06-08 Thread Marco Tedone
Try my code and add the following in the bean definition: Marco - Original Message - From: "Rodrigo di Lorenzo Lopes" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, June 09, 2003 2:09 AM Subject: Re: logic:iterate and html:submit Sorry friend,