Re: [FRIDAY] MVC as metaphor

2005-07-22 Thread Ron Grabowski
For more information on the golden rectangle: Donald in Mathmagic Land (1959) http://www.imdb.com/title/tt0052751/ :-) --- Ted Husted <[EMAIL PROTECTED]> wrote: > On 7/11/05, Leon Rosenberg <[EMAIL PROTECTED]> wrote: > > Some time ago I tried to postulate an enterprise application as a > > r

Re: preselect dropdown

2004-10-29 Thread Ron Grabowski
> I usually do something like this: > > > > Whoops, "months" belongs to the ActionForm: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: preselect dropdown

2004-10-29 Thread Ron Grabowski
> The problem is that I have dropdowns for month and day. I would like > it if the dropdown for month could be prepolutated with the value the > user has allready saved before. So for example it could be > prepoluted with "February" and the user can select another value from > the dropdown if he/

Re: pulling dynamic data out of a form...

2004-07-30 Thread Ron Grabowski
I found this post helpful: http://www.mail-archive.com/[EMAIL PROTECTED]/msg96800.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: LookupDispatchAction and html:image

2004-07-09 Thread Ron Grabowski
--- Darryl Smith <[EMAIL PROTECTED]> wrote: > Has anyone got the two to work together? > In my ApplicationResources.properties file, I have entries such as: lookupDispatchParameter=action button.signin=Sign In button.image.signin=/images/standardButtons2/signin.gif My header.jsp file makes t

Re: Converting Java Code in JSP to JSTL

2004-06-28 Thread Ron Grabowski
> 1. what is the JSTL equivalent of the <%else {%> ... > <%}%> tag? The c:choose, c:when, and c:otherwise tags: http://tinyurl.com/2kqlz > 2. how to write a tag to replace the > tag while passing a number of > parameters? You could do this: Click Me Depending on how you

Re: Getting index value of iteration

2004-06-25 Thread Ron Grabowski
> <%-- Nested tag way Notice how much less to write out--%> > > > Division: > > --- Department: > > Thanks for the code snippet Rick. It helped trim down a lot of code. Whenever I would try and submit the form I was getting BeanUtil.populate errors. I tracke

Re: Integrating displaytag with struts

2004-06-17 Thread Ron Grabowski
--- Hari Saptoadi <[EMAIL PROTECTED]> wrote: > Hi all. > i want to use displaytag for replace logis:iterate tag > is it "name" in display:table tag have same function with > "property" in logic:iterate ? > if not, how can i set data that i want to display in my jsp ? > The front page of th

Re: Theoretical debate

2004-06-17 Thread Ron Grabowski
> In Struts, although you aren't FORCED to, what you GENERALLY do is > create > three different Action classes like addItemAction, removeItemAction > and > totalPriceAction, and each is called in response to a form > submission. Most (if not all) the Actions in my current application extend Look

Re: How do I put a JSP via a DispatchAction class into a tile?

2004-06-16 Thread Ron Grabowski
> Date: Wed, 16 Jun 2004 16:50:17 +0200 > From: bojke <[EMAIL PROTECTED]> > To: Struts Users Mailing List > <[EMAIL PROTECTED]>, >[EMAIL PROTECTED] > Subject: How do I put a JSP via a DispatchAction > class into a tile? > > I understand how to put a static page into a tile > ... > >

Re: using java.util.Map

2004-06-15 Thread Ron Grabowski
> From: "Barnett, Brian W." <[EMAIL PROTECTED]> > To: 'Struts Users Mailing List' > <[EMAIL PROTECTED]> > Subject: RE: using java.util.Map > Date: Tue, 15 Jun 2004 13:44:00 -0500 > > If you don't use the collection attribute, and you > want different values and > labels in the list, you need to d

Re: Is it bad when beans don't serialize?

2004-06-10 Thread Ron Grabowski
I think I've tracked down my offending code to one of the properties of my bean. getSiteList() uses iBatis to get information out of our database. Do I need to do anything special in terms of making those supporting calls/classes Serializeable? public LabelValueBean[] getSites() {

Is it bad when beans don't serialize?

2004-06-10 Thread Ron Grabowski
A few days ago someone posted code to calculate the size of a user's session (very helpful! thank you). According to that code's serializiableTest method, the first version of the SearchForm bean below serializes fine while the second doese not. I thought as long as a no argument constructor was p

Re: getting a random number with JSTL?

2004-06-10 Thread Ron Grabowski
http://tinyurl.com/yqv2v http://jakarta.apache.org/taglibs/doc/random-doc/random-1.0/index.html " The Random tag library creates random strings and random numbers. You may specify a set of allowable characters as well as the length for randomly generated strings. You may specify a range of allowa

Re: html:link and map of request parameters

2004-06-09 Thread Ron Grabowski
> Date: Wed, 9 Jun 2004 10:12:08 -0400 > From: Kris Schneider <[EMAIL PROTECTED]> > To: Struts Users Mailing List > <[EMAIL PROTECTED]> > Subject: Re: html:link and map of request parameters > There's really not much difference between using: > > Map results = new HashMap(map); > > and: > > Ma

Re: html:link and map of request parameters

2004-06-08 Thread Ron Grabowski
> Date: Tue, 8 Jun 2004 15:42:58 -0400 > From: Kris Schneider <[EMAIL PROTECTED]> > To: Struts Users Mailing List > <[EMAIL PROTECTED]> > Subject: Re: html:link and map of request parameters > > I believe the base requirement for Struts 1.1 is JDK > 1.2 or later. Since > LinkedHashMap was introdu

Re: html:link and map of request parameters

2004-06-08 Thread Ron Grabowski
> From: "James Mitchell" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" > <[EMAIL PROTECTED]> > Subject: Re: html:link and map of request parameters > Date: Mon, 7 Jun 2004 12:23:33 -0400 > > Here's how I do it: > (This demonstrates both static and dynamic values > for use with the > html:l

Re: validating indexed properties

2004-06-03 Thread Ron Grabowski
> non-numeric cash value is entered. I would like to > display a little > exclamation point icon next to the field with the > bad cash value. > > Is this possible? I don't see any support in the > "messagesPresent" tag > for indexed properties, nor do I see any support for > indexed items in

Re: Struts/tiles: Run-time definition of which tile to include

2004-06-03 Thread Ron Grabowski
> Standard scenario, a user can be logged in or out. I > want to determine which > Tile is included based on whether they're logged in. > This can be determined > from a bean in the session scope. > [snip] > From loggedinout.jsp (this is the file that I want > do do away with): > scope="session

Re: Default methodName for DispatchAction

2004-06-03 Thread Ron Grabowski
I get the digest so I don't know if this thread has completely died. Most (all?) of my Struts 1.1 Actions use a variation of this base class: public abstract class BaseLookupDispatchAction extends LookupDispatchAction { protected Map getKeyMethodMap() { return null; } public Acti

Re: Using DispatchActions with validation

2004-05-17 Thread Ron Grabowski
> From: "Nicholas L Mohler" > <[EMAIL PROTECTED]> > Date: Mon, 17 May 2004 09:27:11 -0400 > > Hi Jacob, > > I asked almost the same question when we were > implementing validation. We > had the same issue with preparing things before > creating the user page. We > ended up creating an input tha