Q: How to get all the Form properties contained in a JSP ??

2001-11-26 Thread Xavier Brunel
Hi all, I would like to get dynamically all the ActionForm properties present in a JSP file. Do you have a idea of this ??? Why do I need so ?? In fact, I am builduing a struts application with a wizard style part (5 jsp pages for one business functionnality). As It is explained in the Struts

RE: Struts Checker Tool

2001-11-26 Thread Alexander Jesse
Hi, sounds good. As we want to launch use of Struts in our corp. I think we could really benefit from such a checking tool. I case it is not already in progress, I would like to integrate it into JBuilder5, so let me know when the code (source?) is available. thanks in advance Alexander Jesse

RE: Tomcat 4.0 and Apache

2001-11-26 Thread Arnaud Héritier
you should get a file workers.properties from a release 3.X of tomcat. If you open your file mod_jk.conf-auto you'll see a line like this : JkWorkersFile ??/??/??/??/???/workers.properties edit a workers.properties file and put it in this directory. arno -Message d'origine- De:

RE: How to get all the Form properties contained in a JSP ??

2001-11-26 Thread Alexander Jesse
Hi, my solution is to request a hidden field containing the names of the form-fields on a wizard page from the page-designer. Then I have a base form that has an automatic reset-method using this hidden field. hope this helps Alexander -Original Message- From: [EMAIL PROTECTED]

RE: Help with struts model

2001-11-26 Thread Alexander Jesse
Hi, to get some form-data to the server the links on top need to be form-buttons (if you do nat want to use javascript). In this case you would have one action per jsp-page. In that action you can process the the desired action ((say, for example, authorize the user, save...) and then use the

=?ISO-8859-2?Q?Newbie design question - How to use properly use a connection pool in the b=

2001-11-26 Thread Nobody
usiness logic beans?= X-Mailer: Sysdump.com X-Originating-IP: 12.83.106.244 Content-Type: text/plain; charset=iso-8859-1 From: [EMAIL PROTECTED] I am trying to stick with the MVC paradigm and keep separate the model from the view. As the Struts User Manual suggests, I am writing the business

RE: =?ISO-8859-2?Q?Newbie design question - How to use properly use a connection pool in the b=

2001-11-26 Thread Markus Massak
if you have a central dbmanager bean (handling the connpool) which each object can see because it is a singleton, the db beans can access it. this has nothing to do with servletcontext and even less with view. it's communication between model (db beans) and controller (dbmanager). you also can

Question

2001-11-26 Thread Francesco Marsoni
I would like to write a method in a ActionForm to retrieve values from a database based on Locale set for the current user so I can use them in html:options tag. But I can't see the way to get the Locale. public final class RoomForm extends ActionForm { public void reset(ActionMapping mapping,

Dynamic selection of correct language value in pulldown list

2001-11-26 Thread Rob Breeds
Hi I am creating a pulldown list with a list of languages, English, French, German... and when form is submitted pass a language code en, fr, de etc. I think I can work out how to do this with html:options but what I also need to do is have the display language property pick up the appropriate

Re: back button causes form resubmit

2001-11-26 Thread Rob Breeds
And the answer was... use a transaction token! The archives REALLY are useful sometimes! :) Rob Rob

RE: back button causes form resubmit

2001-11-26 Thread Markus Massak
see a good reference implementation in David M. Geary's book advanced Java Server Pages -Original Message- From: Rob Breeds [mailto:[EMAIL PROTECTED]] Sent: Montag, 26. November 2001 12:08 To: Struts Users Mailing List Subject: Re: back button causes form resubmit And the answer

RE: Basic Question About custom Tags

2001-11-26 Thread Alvin Kutttikkat Antony
Is it possible to use a Struts Tag inside my custom Tag ,for example I have to perform Iteration in my custom tag!. Any help? Alvin alvin kuttikkat antony Internet und Virtuelle Hochshule Directory Universität München Leopoldstr .3 80802 München Germany Office Tel + 49.89.21025979 Office

RE: Basic Question About custom Tags

2001-11-26 Thread Tom Klaasen (TeleRelay)
Have you got any concrete problems? I think it should work... tomK -Original Message- From: Alvin Kutttikkat Antony [mailto:[EMAIL PROTECTED]] Sent: maandag 26 november 2001 12:45 To: [EMAIL PROTECTED] Subject: RE: Basic Question About custom Tags Is it possible to use a

RE: Basic Question About custom Tags

2001-11-26 Thread Tom Morris
I'm sure it is possible. Our Scenario: We use the struts iterator tags, we have custom tags that inspects the bean exposed by that iterator, our custom tags output manipulated content ( other derived content). We experienced no problem, though may have something more complex in mind. TomM

Re: Question

2001-11-26 Thread Ted Husted
Generally, you would want the Action to handle that, and then tuck the text into beans for the view to display. Alternatively, you can retrieve the locale in the Action, and set it to your form. public Locale getLocale(HttpServletRequest request) { Locale result = null;

dbtag usage

2001-11-26 Thread Amitkumar J Malhotra
hello friends, i have asked this question before also and am asking the same again..i know that this is not the right forum but i am desperate. i am using dbtag library from jakarta-tablibs.am am desperately trying to configure the same , and this is my second stint at this..i have failed

RE: dbtag usage

2001-11-26 Thread Tom Klaasen (TeleRelay)
why don't you use the taglib-users mailinglist? Anyway, if I read http://marc.theaimsgroup.com/?l=taglibs-userm=100238947032154w=2, I think you should be _much_ more attentive to the details. Mistakes I found: - in web.xml, you specify

RE: dbtag usage

2001-11-26 Thread Amitkumar J Malhotra
i have already tried what you have suggested a couple of time but there seems to be no response from there or i think i am not subscribed , anyway thanx a lot for the help i will try out the same -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail:

RE: dbtag usage

2001-11-26 Thread Tom Klaasen (TeleRelay)
We... maybe you should subscribe then. In the meantime, I even found someone else giving you the same remarks as I did on that list (http://marc.theaimsgroup.com/?l=taglibs-userm=100252895704906w=2). And there are more reactions than that one. So you would have spared yourself a month of

RE: dbtag usage

2001-11-26 Thread Amitkumar J Malhotra
thanx tom, i did not know about http://marc.theaimsgroup.com/?l=taglibs-userm=100238947032154w=2,hope thingswork out this time and start working thanx once again -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

How to iterate in reverse order

2001-11-26 Thread Stefano Mancarella
Is there a way to use logic:iterate to traverse a collection in reverse order? ATM the only way I can achieve this is via a scriptlet. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

AW: How to iterate in reverse order

2001-11-26 Thread Hudayioglu, Fehmi
Did you try to reverse in the Form bean, and iterate that newly reversed vector. -Ursprüngliche Nachricht- Von: Stefano Mancarella [mailto:[EMAIL PROTECTED]] Gesendet am: Monday, November 26, 2001 3:29 PM An: Struts Users Mailing List Betreff: How to iterate in reverse order Is there a

1:N relationships in forms

2001-11-26 Thread Adam Smith
Someone asked a similar question last week, and although someone gave a satisfactory response to the particular problem, the original question that was asked went unanswered. Usually, an HTML form maps to one java object for that form, and if that object follows JavaBeans naming conventions,

Re: Design question - Action Form vs Business Delegates/Value Objects

2001-11-26 Thread Paul Devine
Hi Ted yes, you are right. The adapters don't have any fields, just getters and setters essentially telling the business objects what to do. One thing I'm not too pleased with is that some of the methods in my adapter end up being more complex than I'd like. For example a method like

RE: Design question - Action Form vs Business Delegates/Value Obj ects

2001-11-26 Thread Hoang, Hai
Michelle, You wrote You're probably right. So far I have only used it for Strings and numbers for which no special mapping was required. In this case it was simple to implement. I've tred and it works for Long datatype. Have you try for int or long? What about editing a record? if you don't

RE: Design question - Action Form vs Business Delegates/Value Obj ects

2001-11-26 Thread Hoang, Hai
I used session scope because I want the form to remember or correctly selected my value dropdown list. But I don't know why all of the values that I did not display as hidden field or text field are lost. Thanks, Hai -Original Message- From: Michelle Popovits [mailto:[EMAIL PROTECTED]]

Handling Exception in Struts

2001-11-26 Thread radha krishnan
Hi there, I am new to struts and am in process of learning. I am running into trouble in the way an exception needs to be handled in Struts, I tried to do the traditional Jsp way, using the error page tag in the page directive and after looking into the mailing list, I made changes into the

Re: Design question - Action Form vs Business Delegates/Value Objects

2001-11-26 Thread Ted Husted
I don't see where this part of the thread began, but reset() is always called before the bean is autopopulated from the request, regardless of scope. If your reset is setting fields you want to retain to null, you should have it stop. This is really only necessary when checkboxes are expected.

RE: Struts salability

2001-11-26 Thread dhay
Hi Ghoot, Just been given the task of setting up a Wiki, and only good ones we could find were based in CGI/Perl (uck!). So...would be VERY interested in your Chiki Wiki! Any ideas how soon soon is?! Cheers, Dave Emaho, Ghoot [EMAIL PROTECTED] on 11/22/2001 04:29:53 AM Please respond

init-param for Actions.

2001-11-26 Thread Marcelo Caldas
Hi, I was wandering if there's a way to declare a init-param for an action in the same way that we declare for servlets... I know that I can declare this init-param for my ActionServlet, but then the parameter is available for all the actions that I'm creating, while all I want is to have it

RE: maxlength

2001-11-26 Thread David Winterfeldt
If you use the validation framework, there is a max length validation. It is the nightly build and also posted at the link below. http://home.earthlink.net/~dwinterfeldt David --- Leo Grove [EMAIL PROTECTED] wrote: try ezverify at ezverify.com. It's currently beta, but it will apply length

Re: init-param for Actions.

2001-11-26 Thread Marcelo Caldas
I'm already using the Parameter=... for something else... Any other Ideas? - Original Message - From: Steve Bendiola [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, November 26, 2001 12:49 PM Subject: RE: init-param for Actions. You can add a parameter

Re: init-param for Actions.

2001-11-26 Thread Ted Husted
You can extend ActionMapping to include whatever property you need. (1) Specify your ActionMapping class in the web.xml init-param param-namemapping/param-name param-valuecom.mycompany.mypackage.MyActionMapping/param-value /init-param (2) Use

JBuilder 5 and Validator Framework

2001-11-26 Thread Chen, Yong
Hi, I am using Jbuilder 5, Tomcat 3.2 to develop my web app in struts framework. I tried to integrate David Winterfeldt's http://home.earthlink.net/~dwinterfeldt/ Validation framework into my project, however, I got this error when Tomcat is trying to load validation.xml file: 2001-11-26

[ANNOUNCE] Struts Console v1.1 Final

2001-11-26 Thread James Holmes
Struts Console version 1.1 is now available. http://www.jamesholmes.com/struts/ http://www.jamesholmes.com/struts/struts-console-1.1.zip This is the final 1.1 release which has plugin support for the following IDEs: Sun Forte for Java, NetBeans and Borland JBuilder. With this release all

MVC security?

2001-11-26 Thread Daniel Jimenez
This issue has probably already been covered but if someone could lend me a hand in describing any security benefits of having an MVC framework. I'm not a security expert by any means, but my gut reaction is that the struts framework provides some increase in security. Could someone respond

Form Bean Methods in Struts

2001-11-26 Thread Louis Burroughs
If you store Domain objects as attributes in a Form object is there a problem with having methods in the form object to get the domain objects and have them execute some method? public class FormObject extends ActionForm { DomainObject1 domain1 = new DomaniObject1(); DomainObject2

Re: MVC security?

2001-11-26 Thread Peter Georgiou
Struts does allow you to place all your files including jsp files under the web-inf directory, and therefore make them much more difficult for outsiders to view. You also don't have to give the name of the jsp file you want to access from a form submission/link. action=someJsp.do in the

Re: How to iterate in reverse order

2001-11-26 Thread Renaud Waldura
How about making your bean return a reversed collection? Collections.reverse() is your friend. - Original Message - From: Stefano Mancarella [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, November 26, 2001 6:28 AM Subject: How to iterate in reverse

Handling MaxLengthExceededException when uploading

2001-11-26 Thread Renaud Waldura
How am I supposed to handle the MaxLengthExceededException raised when someone attempts to upload a file bigger than the maximum size? This exception is raised inside RequestUtils.populate(), AFAIK way before I'm given a chance of handling it. Am I missing something obvious here? How else can I

Problem with Iterating-No getter method for property....... Any Ideas?

2001-11-26 Thread antony
Hello Ladies and Gentlemen I am just starting out with Struts and I have a problem when I try and iterating over a Hasmap. I am always getting the error [snip] javax.servlet.ServletException: No getter method for property messages of bean Messages [snip] The jsp code which I am calling

RE: Problem with Iterating-No getter method for property....... Any Ideas?

2001-11-26 Thread Shri
what is the scope you are using to look up for the bean, try putting one and you may fix it.. Shri -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 27 November 2001 1:26 PM To: [EMAIL PROTECTED] Subject: Problem with Iterating-No getter method for

What does CRUD mean?

2001-11-26 Thread Francisco Hernandez
Ive seen people use the word (or acronym) CRUD, what does this mean?

RE: What does CRUD mean?

2001-11-26 Thread Robert
Create Retrieve Update Delete (referring to database operations mostly) If I remember right... -Original Message- From: Francisco Hernandez [mailto:[EMAIL PROTECTED]] Sent: Monday, November 26, 2001 8:52 PM To: [EMAIL PROTECTED] Subject: What does CRUD mean? Ive seen people use the

Re: Problem with Iterating-No getter method for property....... Any Ideas?

2001-11-26 Thread antony
Thank you for the reply. How can I set the scope from inside the java code? Cheers Tony Shri wrote: what is the scope you are using to look up for the bean, try putting one and you may fix it.. Shri -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]

Re: Problem with Iterating-No getter method for property....... Any Ideas?

2001-11-26 Thread antony
I am still getting the same error. When I create the bean, I am using Messages message = new Messages(); session.setAttribute(Messages, messages); and in the jsp code I now have logic:iterate id=messagestag name=Messages property=messages scope=session Can you see what I am doing wrong?

RE: Problem with Iterating-No getter method for property....... Any Ideas?

2001-11-26 Thread Brett Porter
It isn't directly related, but: public void Messages() { should be public Messages() { I seem to remember something about beans needing to have a public default construtor to work. If this helps, you may also need public Message() {} in your other class. Good luck, Brett

RE: Problem with Iterating-No getter method for property....... Any Ideas?

2001-11-26 Thread Shri
Try this: logic:iterate id=messagestag name=Messages scope=session bean:write name=messagestag / /logic:iterate ( or ) logic:iterate id=messagestag name=Messages scope=session bean:write name=messagestag property=messages / /logic:iterate if any of the above works, probably you can make out

Usage to Table with struts

2001-11-26 Thread Abhishek Srivastava
Hello All, I have 2 questions regarding the display of a html table when using struts. 1. Is there a table tag library with struts. currently I am rendering the table my means of a scriptlet. something like % Collection col = (Collection) session.getAttribute(list);