Re: Weird problem with struts tags

2010-07-02 Thread Greg Lindholm
Your basic problem is that having both getEmployee() and isEmployee() is a violation of the JavaBeans "standard" so you are asking for trouble. The Employee property is not a boolean so you really should rename isEmployee() to something else (maybe isTypeEmployee()). If you can't do this then you

Problem with figuring out Convention Plugin

2010-07-02 Thread JP Cafaro
I've been having trouble figuring out exactly how the convention plugin works. I've been reading the site(http://struts.apache.org/2.1.8.1/docs/convention-plugin.html#ConventionPlugin-Helloworld) but am still having trouble getting simple examples to work. I have a class WelcomeUser.java loca

Re: Weird problem with struts tags

2010-07-02 Thread Ken
I think you can just spell out the method: On Fri, 2010-07-02 at 10:13 +0100, John Dowson wrote: >

Re: Conversion problem String / float

2010-07-02 Thread Ken
It probably would have been better if you posted more of class ProductAction... I just glanced over this quickly... I don't understand how priceOption is set in ProductAction... class ProductAction does have a setter for priceOption?

How to map a wildcard-matched method to an exception?

2010-07-02 Thread leonardo aramaki
Hello, I'm working with Struts 2.1.8.1, JDK 1.6.0_17, with container WASCE 2.1 on Windows 7 Pro. Here's a snippet of my struts.xml file: .. ... /registerCrisis.jsp /dummy.jsp /error.jsp ... When I run the application as: ht

Re: Mapping a dynamic html form with ActionForm

2010-07-02 Thread Jawahar Nayak
is this "response text " the xml what I talk about my above thread. I need to make that xml and setting response to and hidden text field. And that text is read in Action. Is this what you suggesting ? To set the xml, I need to do javascript... am i getting correct ? Paweł Wielgus wrote: >

Weird problem with struts tags

2010-07-02 Thread John Dowson
I have an action class that has the following method public WebUser getAuthenticatedUser() The WebUser class has the following methods: public Employee getEmployee() public boolean isEmployee()... and the WebUser class has the following method public boolean isWorkgroupEnable(