RE: Upload corrupts file

2002-11-10 Thread Daniel Joshua
Curious, shouldn't this sort of thing be posted in struts-dev instead of struts-user? Regards, Daniel -Original Message- From: Roland Polzer [mailto:ropoking@;hotmail.com] Sent: Saturday, November 09, 2002 9:24 PM To: [EMAIL PROTECTED] Subject: Upload corrupts file Hi, I have a case

RE: HTML:checkbox question

2002-11-10 Thread Andrew Hill
G'day Sean, The way a checkbox in the browser 'works' is as follows: If the checkbox is not ticked NOTHING is submitted for that field (if true, of course the value is submitted as usual). What this means is that when the request hits struts and the contents of your ActionForm instance are updated,

HTML:checkbox question

2002-11-10 Thread Sean Gay
Hey all, The problem I am having is setting the default state of a checkbox and having the state retained over form submission. If I set the default state to be selected (true in the underlying actionform) when the form is submitted the checkbox remains selected even if it has been de-selected be

RE: Redux: Actions and business logic, or Using Struts with the Rational Unified Process

2002-11-10 Thread James Higginbotham
Comments inline. > > Quite short on details, but the report recommends > that "the Struts framework should be used to implement > > the interaction between the presentation and business > layers". > > Comments? True. > > example apps, so I'm interested in how Struts maps > > to > > the con

RE: : how do I preselect some of the items?

2002-11-10 Thread Brian Topping
In the quest for adding to the collective knowledge of this subject (read: for the archives :), it's strictly true that putting a Collection in the 'property' attribute of works, but know that BeanUtils.getArrayProperty() is used to convert that Collection to a string that can be compared against

Re: Making peace between Struts logic iterate and Ed Hill's displ ay tag...

2002-11-10 Thread V. Cekvenich
I hope you think this helps, because I do not think you have a technical issue, just a design issue: " have variable columns which may or may not appear " Yes that would be a problem for any design review, not something that is a good design. Like how would you unit test the bean outside of the v

Re: Map-backed Action Forms

2002-11-10 Thread Mark Ayad
Fould the problem ! I should have in my MapForm class: private final Map values = new HashMap(); public void setValue(String key, Object value) { values.put(key, value); } public Object getValue(String key) { return values.get(key); } - Original Message ---

Re: Using a Link with a Form

2002-11-10 Thread David Graham
I think you have to use js to submit a form with a link. David From: "Max Kremer" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: Using a Link with a Form Date: Sun, 10 Nov 2002 17:15:31 -0500 Hi,

Map-backed Action Forms

2002-11-10 Thread Mark Ayad
I'm trying out a Map-backed ActionForm. In my jsp I use : The action form is: public class MapForm extends ActionForm { private HashMap map = new HashMap(); public void setValue(String key, Object value) { map.put(key, value); } public Object getValue(String key) { return getMap().g

RE: Making peace between Struts logic iterate and Ed Hill's display tag...

2002-11-10 Thread McLure, David
Both of these solutions are a little cleaner in terms of JSP, but my real problem is the underlying Java code with its 30 property getter and setters (this was the code which set off the code review alarm bells). Ideally, I think I need to combine something similar to the examples you two supplied

Re: Redux: Actions and business logic, or Using Struts with the Rational Unified Process

2002-11-10 Thread John Bigboote
A follow-up to my initial post: I should have mentioned that a search of the Rational site yielded the following resource: http://www.therationaledge.com/content/sep_02/m_bestPractices_pr.jsp Quite short on details, but the report recommends that "the Struts framework should be used to imple

Redux: Actions and business logic, or Using Struts with the Rational Unified Process

2002-11-10 Thread John Bigboote
My company operates an electronic marketplace very much like a stock exchange. As such, there are a myriad of rules and regulations that govern its operation. We have adopted the Rational Unified Process and, not wanting to reinvent the wheel, I'm exploring how Struts would fit into an architectu

Something that doesn't work at the state of the art in Struts

2002-11-10 Thread kiuma
Maybe I'm wrong, but if I have a submit button labeled da "My submit" it isnt mapped in LookupDispatchAction, so I have to label my submit button as "My submit". Is it a bug, or a known issue? regards -- To unsubscribe, e-mail: For additiona

Alternatives to map-backed ActionForm in 1.0.2

2002-11-10 Thread Krzysztof Swietlinski
Hi, What would be the best alternative to map-backed ActionForm if I have to use 1.0.2 ? I've got a search criteria page that consist of many dynamically generated dropdowns (I mean, both number and content of dropdowns is dynamic). Currently I'm torn between declaring multiplum properties on my Ac

Re: Struts on the web

2002-11-10 Thread Adolfo Miguelez
http://jakarta.apache.org/struts/resources/powered.html and more generically http://jakarta.apache.org/struts/resources/index.html Regards, Adolfo From: Alireza Fattahi <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTE

Re: How to Initialize multibox ?? SOLVED

2002-11-10 Thread wolfgang
Hi there, I just used name="myForm" in iterate tag, and restart the tomcat. Then it worked !! thank you. wolfgang -- wolfgang <[EMAIL PROTECTED]> -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: java.sql.Date formatting problem

2002-11-10 Thread kiuma
thank u, You helped me to find my stupid problem. it was that i had defined tag lib as <%@ taglib uri="/WEB-INF/fmt.tld" prefix="f" %> and not as fmt. regards flare wrote: Hi all I've the following problem: if I try to use nothing is displayed. validityEnd is of type java.sql.Date (an

How to Initialize multibox ??

2002-11-10 Thread wolfgang
Hi there, I tried to use the multibox, but getting the following error... org.apache.jasper.JasperException: Cannot find bean guitar.box in any scope Here is snippet of the jsp causing the problem... -

Re: java.sql.Date formatting problem

2002-11-10 Thread flare
> Hi all > I've the following problem: > if I try to use > > nothing is displayed. > > validityEnd is of type java.sql.Date (and not null) what shoud I do to > format it ? thx, kiuma perhaps you forgot <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"; %> I usually use to format jav

Struts on the web

2002-11-10 Thread Alireza Fattahi
Hi, Is there a list of popular sites that use struts? Alireza