Re: viewing email from this list

2002-02-23 Thread Patrick Refondini
But not yet on Linux :) Eddie Bush wrote: OutlookExpress works in a similar fashion =) - Original Message - From: Ted Husted [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, February 22, 2002 2:28 PM Subject: Re: viewing email from this list Netscape

help required on tomcat 4.01

2002-02-23 Thread Amitkumar_J_Malhotra
hello everyone, i require urgent help on tomcat 4.01, are there any volunteers so that i may ask the questions directly to them without disturbing the mailing list. rgds amit -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: ActionForm and default values

2002-02-23 Thread Sarah Farrell
All I can say is that I was really tired last night. Because this certainly does not work. So I still could use some help. At 10:34 PM 2/22/2002 -0700, you wrote: It's Friday, it's late, and I'm answering my own posts replacing newInstance() with getInstance() does the trick. At

Re: ActionForm and default values

2002-02-23 Thread Ted Husted
I'm not sure if we know what you are trying to do =:o) Sarah Farrell wrote: All I can say is that I was really tired last night. Because this certainly does not work. So I still could use some help. -- Ted Husted, Husted dot Com, Fairport NY US -- Developing Java Web Applications

Related Action Classes - Questions...

2002-02-23 Thread Tom Brunner
Hi all, Sorry, but I am somewhat new to Struts and have a question related to similar actions. I have a group of ActionForms. All of these forms are related to an 'enter', 'process', and 'edit' action. What is the best way to go about organizing the Action classes associated with these? Should

Re: ActionForm and default values

2002-02-23 Thread Sarah Farrell
Short story: I need to retrieve existing ActionForms (ActionFormBeans?) from the Controller Servlet or from the current Session. (I also do not understand the difference between an ActionForm object and an ActionFormBean object). Long story: I have this web application with about 10 forms on

ActionForm and Strings question...

2002-02-23 Thread Tom Brunner
Hi all, From what I understand all attributes of an ActionForm need to be String type so they can be output to the GUI via Struts html tags. With this being true or assumed currently i am converting these to their 'actual' data types in an Action class and they shipping them off to some 'model'

no getter method

2002-02-23 Thread Steven Dahlin
javax.servlet.jsp.JspException: No getter method for property UserLog of bean org.apache.struts.taglib.html.BEAN at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:517) at org.apache.struts.taglib.html.BaseFieldTag.doStartTag(BaseFieldTag.java:188) at

Re: ActionForm and default values

2002-02-23 Thread Ted Husted
If they were all sessions scope form-beans, then they would all be stored in the session context under the name given in the Struts config. Often, developers will use one ActionForm object under one form-bean name for something like this, and just expose part of the object on each page. The

Re: ActionForm and Strings question...

2002-02-23 Thread Ted Husted
The Action class. Sometimes helper methods are built into the ActionForm to make this simplier. For the native types, the BeanUtis properties and describe methods can be a quick and easy way to transform the properties. Other times, people will create transformation object that takes the

Re: Related Action Classes - Questions...

2002-02-23 Thread Ted Husted
Most often, they would at least have their own ActionMapping. Whether they share the same Action or not varies quite a bit, and often depends on the needs of your business logic. Generally, the simplest thing is to use the DispatchAction. As a rule, it's best to minimize the number of Action

Re: no getter method

2002-02-23 Thread Ted Husted
Use lowercase for the property names in the form, and follow strict JavaBean conventions when naming the public methods for these. -- Ted Husted, Husted dot Com, Fairport NY US -- Developing Java Web Applications with Struts -- Tel: +1 585 737-3463 -- Web: http://husted.com/about/services

Re: ActionForm and default values

2002-02-23 Thread Sarah Farrell
Thanks Ted. I read about doing the one-form-bean method, but it would be one huge file. My forms have way too many elements on each page with too much validation logic. It would be a nightmare to maintain. Smaller ActionForms for each part makes it easier to see what's going on and easier to

Re: ActionForm and default values

2002-02-23 Thread Sarah Farrell
So the answer, in code, from within my ReviewAction class is the line: ContactForm cForm = (ContactForm) request.getSession(false).getAttribute(contactForm); where contactForm is the name in the struts-config.xml file for the form-bean: form-bean name=contactForm

Re: Confirmation Messages

2002-02-23 Thread Ted Husted
I just use the same queue for both. Though, in the nightly build there's a message tag that gives both a ActionErrors and ActionMessage queuue. In practice, messages of any ilk are usually displayed in the same place, so it's easier just to use the same tag. The user won't know the difference.

Re: Confirmation Messages

2002-02-23 Thread Adam Hardy
Hi Ted, What's the ETA for a release containing a message tag / queue / ActionMessage? Actually I'm not sure I get what you're implying - at present in the current release, the user does know the difference between a message and an error immediately, because of the error.header. Oops, I've

can't find ApplicationResouce.properties

2002-02-23 Thread Myriam Boisjoli/CanWest/IBM
I am setting up the Struts example application with Visual Age 3.5.3. While attempting to display index.jsp, the application can't seem to find the strings in the ApplicationResources.properties file (specifically titlebean:message key=index.title//title). While debugging the RequestUtils.message

Checkbox state not changing after checked on

2002-02-23 Thread Chris Means
I'm having a problem with setting check box states on my form. I have a checkbox on my form, it's supposed to be checked if muting is occurring, and not checked otherwise. The user just needs to click the checkbox to change/toggle the state. However, I only seem to get an Action setting if the

Dynamic Tree

2002-02-23 Thread luvpdas
Hi , I am totally new to struts and I am looking for something that will enable me to have a Selection Tree on the leftside, in a table and keyboard accessible. When I click on a node on the tree I want it to expand automatically. I need to support Netscape 4.0+ and IE 4.0+. Does anyone

Re: Confirmation Messages

2002-02-23 Thread Ted Husted
Yes, what the header says, or doesn't say, is up to you. The Messages tag in the nightly build makes it easy to send both messages and errors to the same page at the same time, and then render them differently, if you want. http://jakarta.apache.org/struts/kickstart.html#release Adam Hardy

Re: Checkbox state not changing after checked on

2002-02-23 Thread Ted Husted
The underlying problem is that the HTML spec tells the browsers to not submit a checkbox if it is not checked. (Or any other blank control for that matter.) There's not a lot we can do about that =:o( What happens with a box that starts out checked, is that when it is unchecked, nothing is

Re: Dynamic Tree

2002-02-23 Thread Ted Husted
Struts supports the use of structures like that, but doesn't provide those types of gizmos out of the box. Struts is mainly a front controller that helps web applications provide structures like that with the data they need, and then store it for future use. So, you would have to look elsewhere

Re: Dynamic Tree

2002-02-23 Thread g.spellauge
please have a look at http://wings.mercatis.de . sp Ted Husted wrote: Struts supports the use of structures like that, but doesn't provide those types of gizmos out of the box. Struts is mainly a front controller that helps web applications provide structures like that with the data they need,

RE: Checkbox state not changing after checked on

2002-02-23 Thread Chris Means
Thanks Ted. So if I want to keep the checkbox metaphor (rather than use a radio button, which might confuse the UI), I should use an image of a checkbox (in either of it's states). Yes? Is there an obvious way to derive a mapping between the Form bean and the image on the JSP? Thanks for your

jsp exception with useBean . %= ...%

2002-02-23 Thread @Basebeans.com
Subject: jsp exception with useBean . %= ...% From: Les Dunaway [EMAIL PROTECTED] === Folks, I'm feeling very dumb here. I'm using struts templates and they work, but when I imbed a %= someid.someMethod() % in a sidebar.jsp which was put'ed and then get'ed, I get jsp exception. When I run

Re: ActionForm and default values

2002-02-23 Thread Jay sissom
I've missed most of the thread on this, but if the struts-config.xml was as you listed, wouldn't an easier way of getting the form bean be: ContactForm cForm = (ContactForm)form; where form is one of the parameters passed to the perform method? This is the way we do it in our applications.

Re: ActionForm and default values

2002-02-23 Thread Sarah Farrell
I was trying to access a form that wasn't directly associated with that particular Action in the config file. I'm going to want to access about 10 of them all together inside one Action class. Normally, you would do it the way you mentioned when you have one Action mapped with one ActionForm in