Iterating two lists

2002-05-01 Thread David Corbin
class that holds one item from each and combine the two lists into one. Thanks. David Corbin -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Re: JavaDocs

2002-03-01 Thread David Corbin
Galbreath, Mark wrote: >The question of the location of the latest JavaDocs keeps recurring here. >If you have the source code, run the JavaDoc utility yourself and voila! >The latest documentation. If you don't know how to do this, look it up in >any basic Java book (or type "javadoc" at a comm

JavaDoc

2002-03-01 Thread David Corbin
Is the struts javadoc available as a download, or as part of the binary package? I can't find it. (I know it's available on the web-site, but that's a) online, and b) the 1.1 stuff. Thanks. -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: Does struts spawn a new action class for every user?

2001-10-26 Thread David Corbin
The documentation is very clear that there is only one instance of the action class. You should not use member variables in action classes. David Corbin - Original Message - From: "Greg Lehane" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 25

more on 'include' with Struts

2001-10-04 Thread David Corbin
It has come to my attention (and I notice several threads in the archives) that one include generally doesn't work well with Struts. I've tried to work around it in a whole bunch of ways. Then I had this idea: Is there any reason that actions have to be forwarded instead of included? If I had t

Re: Tiles: using tileContent inside another tile

2001-10-03 Thread David Corbin
> A little. Can you give a simple example? I'm not sure what your definitions of > "is based on" and "specified 'inline with reference to..." are, and I think some > code might clarify them for me. I've left out all the directives for the taglibs, but each file needs the tiles prefix to be de

Re: Tiles: using tileContent inside another tile

2001-10-03 Thread David Corbin
n't know about .HTML files. Is that clearer? - Original Message - From: "Eric Rizzo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 03, 2001 2:23 PM Subject: Re: Tiles: using tileContent inside another tile > David Corbin wrote: >

Re: Tiles: using tileContent inside another tile

2001-10-03 Thread David Corbin
Original Message - From: "Cedric Dumoulin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 03, 2001 12:05 PM Subject: Re: Tiles: using tileContent inside another tile > > I have try a lot of possibilities with Tiles, but never this one ;-). > It wasn't my intent

Re: Tiles: using tileContent inside another tile

2001-10-03 Thread David Corbin
Actually tiles works reasonably well this way, AS LONG AS you only need the "content" from a single action per page. But, I agree this sucks. - Original Message - From: "Eric Rizzo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 03, 2001 12:24 PM Subject: Re: Tiles:

Re: Tiles: using tileContent inside another tile

2001-10-03 Thread David Corbin
in such body (which is what or > does). > This is a limitation from jsp1.1. > > To resume, you can't insert or get a page inside the body of a tag. > > Cedric > > > David Corbin wrote: > > > Well, I don't think it's either of the two ca

Re: Tiles: using tileContent inside another tile

2001-10-03 Thread David Corbin
tiles:insert tags. AND, C.jsp is really that simple. (at this point). Any further ideas? ----- Original Message - From: "David Corbin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 03, 2001 6:17 AM Subject: Re: Tiles: using tileContent inside another

Re: Tiles: using tileContent inside another tile

2001-10-03 Thread David Corbin
ink that only the tag implements 'BodyTag' in > Struts. > >Cedric > > David Corbin wrote: > > > I'm using the tiles library, and I've been quite happy with up 'till now. > > > > The following example is simplified-- > > > > I h

Re:

2001-10-02 Thread David Corbin
ort for this in bugzilla > > > (http://nagoya.apache.org/bugzilla/), to make sure we don't lose track > of > > > it? Thanks. > > > > > > -- > > > Martin Cooper > > > > > > > > > - Original Message - > > > From: "Ted Husted" <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Sunday, September 23, 2001 6:32 AM > > > Subject: Re: > > > > > > > > > > It seems to have been in HTML specification since at least 3.2 - I'm > not > > > > sure why we didn't include it. I'm also not seeing anything in the > > > > archives :~| > > > > > > > > [EMAIL PROTECTED] wrote: > > > > > > > > > > My guess is because the 'align' attribute is not part of XHTML, and > is > > > also > > > > > not in the HTML 4 Strict DTD. But it might just be an oversight. :-} > > > > > > > > > > -- > > > > > Martin Cooper > > > > > > > > > > - Original Message - > > > > > From: "David Corbin" <[EMAIL PROTECTED]> > > > > > To: "Struts User" <[EMAIL PROTECTED]> > > > > > Sent: Friday, September 21, 2001 1:33 PM > > > > > Subject: > > > > > > > > > > > Is there any reason that html:text doesn't support the align > > > attribute? > > > > > > > > > > > > > > > > > >

Tiles: using tileContent inside another tile

2001-10-02 Thread David Corbin
I'm using the tiles library, and I've been quite happy with up 'till now. The following example is simplified-- I have a a template, standardPage.jsp which consists of standard header and footer HTML, and expects a tile named body. It uses . Works great, an lets me deifne pages like this:

struts-user@jakarta.apache.org

2001-09-21 Thread David Corbin
Is there any reason that html:text doesn't support the align attribute?

Re: Several Data-Sources in struts-config.xml

2001-09-20 Thread David Corbin
I would have guessed, that instead of " To: <[EMAIL PROTECTED]> Sent: Thursday, September 20, 2001 9:15 AM Subject: Several Data-Sources in struts-config.xml Hi All, how can I define more than one data-source for one struts-application? I want to read data from two separate databases in one appl

Re: Suggestion: Enhance Struts perfrommance.....

2001-09-20 Thread David Corbin
in many cases it is non-issue. Furthermore, there have been articles and discussions on introspection performance that indicate it is not nearly as bad performance wise as some believe, though personally I remain a little skeptical about that. David Corbin - Original Message - From: "

Tiles: bug?

2001-09-13 Thread David Corbin
When I use , if foo is not specified, I'm getting "null". David Corbin

Re: Tiles: suggestion

2001-09-13 Thread David Corbin
> Why not. Have to find a nice way to do that. Do you have something to propose > ? How about having a an attribute on the that causes all of the tiles to automatically propogate? My suggestions would be either "inherit=true", or "cascade=true". > > > > > > > And, the last question (hah!) we

Re: Tiles: suggestion

2001-09-12 Thread David Corbin
> > > > Here's another one. Sometimes, template A which depends on template B etc. > > Do you mean a template A inserting a template B, etc ... Yes. > > > > > > > When I do this, I find I'm having to re-define the attributes in each > > successive template. > > > > > This solution allows to

Re: Tiles: suggestion

2001-09-12 Thread David Corbin
iles: suggestion > > You can use . This disable > exception throwing if attribute is not found. > > Otherwise, you can 'import' a tile attributes to a jsp context by using > . Check tiles tag syntax > (http://www.lifl.fr/~dumoulin/tiles/doc/tilesTags.html) for more. &g

Tiles: suggestion

2001-09-12 Thread David Corbin
#x27; attribute. Or, if the things were stored as beans or regular request attributes, I could use other standard (struts) tags to work around this. Thanks. David Corbin

on templates

2001-09-08 Thread David Corbin
er, better solutions? If so, what? Should I spend more time trying to penetrate struts templates? Thanks very much. David Corbin

Re: bean:define, bean:write

2001-09-07 Thread David Corbin
an:define, bean:write > My guess is that jsp:define creates it if not there > but struts bean:define doesn't. > > > --- David Corbin <[EMAIL PROTECTED]> wrote: > > I thought that bean:define takes care of that > > - Original Message - > >

struts-user@jakarta.apache.org

2001-09-07 Thread David Corbin
The tag doesn't seem to support a way to generate the "main path" from an attribute. Is this correct? In other words, I want a link to be yadda yadda yadda, but I want the value foobar to come from an attribute in the request scope. Any ideas? Thanks.

Re: bean:define, bean:write

2001-09-06 Thread David Corbin
> request.putAttribute("pageTitle", yourObject); > > in your ActionForm? > > Keith. > > > --- David Corbin <[EMAIL PROTECTED]> wrote: > > Why does this jsp fragment generate an exception > > > > javax.servlet.jsp.JspException: Cannot f

bean:define, bean:write

2001-09-06 Thread David Corbin
Why does this jsp fragment generate an exception javax.servlet.jsp.JspException: Cannot find bean pageTitle in scope request --cut-- <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> . . . --cut-- Thanks David Corbin

Re: Can you get these quotes arranged correctly?

2001-09-05 Thread David Corbin
It's perfectly legitimate when the outer tag is an HTML tag. I just the "other" quote. - Original Message - From: "Lacerda, Wellington (AFIS)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 05, 2001 12:49 PM Subject: RE: Can you get these quotes arranged correctl

Re: ActionMapping parameter

2001-09-04 Thread David Corbin
I'm not saying it's a bad idea, but be very careful what road you start down. If you're not careful, you end up "programming" in xml, which can have its down sides - Original Message - From: "Ernest Jones" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesda

Re: Action arguments

2001-09-02 Thread David Corbin
ot; > validate="true" > input="/WEB-INF/pages/Entry.jsp" > parameter="store"> > name="continue" > path="/WEB-INF/pages/Article.jsp"/> > > > Then in the Action:

Action arguments

2001-09-02 Thread David Corbin
an be defined by a string constant, I'd rather define it in struts-config.xml Thanks. David Corbin

Re: XHTML compliant output (and, parsing HTML) (more)

2001-09-01 Thread David Corbin
Well, I solved my immediate problem, so you ignore the parser-half of the question, but I think the first part is still worth answering - Original Message - From: "David Corbin" <[EMAIL PROTECTED]> To: "Struts User" <[EMAIL PROTECTED]> Sent: Satur

XHTML compliant output (and, parsing HTML)

2001-09-01 Thread David Corbin
JTidy, HEX, openxml and docuverse. I seem to have problems with all four. Thanks much. David Corbin

Digester Register

2001-08-31 Thread David Corbin
I have an additional Net-based DTD I'd like to register (I think). How does one do it? David Corbin

Struts & Sustem.output/err

2001-08-30 Thread David Corbin
Struts (Tomcat?) seems to spit out some information lines about registering some files (DTDs at least) and later resolving them. Is there a way to turn this off, so that it doesn't generate such? Thanks. David Corbin

Re: Attribute value should be quoted

2001-08-30 Thread David Corbin
d be quoted > send a copy of your jsp, its usually a html tag just above or below the line > in question > > -Original Message- > From: David Corbin [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 29, 2001 4:04 PM > To: Struts User > Subject: Attribute value sh

Tag Libaries, No ID attribute

2001-08-29 Thread David Corbin
Is there a particular reason that that the Struts Tag Libraries don't support (according to the doc) an ID attribute which gets translated directly into the HTML? Mostly I'm talking about the family, but it is a general question.

Attribute value should be quoted

2001-08-29 Thread David Corbin
tical color is correct, my quotes are balanced. It looks just like one from another page that works fine. I do have the <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> at the top of the .JSP file. I'm baffled. Any ideas? Thanks. David Corbin

Re: Am i on the right lines regarding tags

2001-08-29 Thread David Corbin
Nope. It's . David Corbin - Original Message - From: "Chuck Amadi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 29, 2001 4:32 AM Subject: Am i on the right lines regarding tags Hi, I am replacing my HTML(input) tags with tags , t

Re: tags build upon tags

2001-08-27 Thread David Corbin
lier on this list, see "Using tags > > from Java code". The short answer is you do it all yourself. > > > > Hmm, the main reason that and are two > separate tags (instead of one) is so you *can* compose them together. > > > David Corbin wrote: > > > &

Re: findForward failures

2001-08-27 Thread David Corbin
on-existant forward mapping. David - Original Message - From: "Craig R. McClanahan" <[EMAIL PROTECTED]> To: "Struts User" <[EMAIL PROTECTED]> Sent: Monday, August 27, 2001 7:53 PM Subject: Re: findForward failures > > > On Thu, 23 Aug 2001, David Corb

Original request

2001-08-27 Thread David Corbin
If I have an action, which forwards to another action, and then forwards to another action, which then forwards to a .JSP, is there any history available to the .JSP, of "how it got there"?

Re: Dynamic forwardings...

2001-08-27 Thread David Corbin
gt; parameters. > > It would also populate the same or different ActionForm for the second > ActionMapping if you forwarded the request. > > David Corbin wrote: > > > > I'm not sure where I'm miscommunication, so I'll go back to the beginning. > >

Re: Dynamic forwardings...

2001-08-26 Thread David Corbin
The ActionMappings form an API for the legal entry points to the > application. > > Usually, the only thing that is truly dynamic is a reference into a data > source, to look something up. In that case, the link tag can take one or > more dynamic parameters, based on the collecti

Re: Dynamic forwardings...

2001-08-26 Thread David Corbin
ou can use the parameter property > > path="/do/item/Add" > ... > parameter="add"> > > > and have the action check for the code there > > String code = mapping.getParameter(); > > > David Cor

Re: Place all Java ServerPages below WEB-INF

2001-08-26 Thread David Corbin
n access my web.xml via > http://localhost/NASApp/warName/WEB-INF/web.xml. > > I guess iPlanet is defective in this area. > > Thanks, > > Matt > > --- David Corbin <[EMAIL PROTECTED]> wrote: > > If you can access ANYTHING in WEB-INF, you have a defective application &

Dynamic forwardings...

2001-08-26 Thread David Corbin
I've got a an action "add", which requires a an argument "code". One (at least) of the possible forwards needs to specify this "code" on the forward URL. How can I do that? Thanks David Corbin

Re: Place all Java ServerPages below WEB-INF

2001-08-26 Thread David Corbin
If you can access ANYTHING in WEB-INF, you have a defective application server. See if you can access your .class files that way, or your web.xml file. - Original Message - From: "Matt Raible" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, August 26, 2001 12:22 PM Subject: Pl

tags build upon tags

2001-08-24 Thread David Corbin
I would like to write a tag that is essentially + + domain data from a database. Is there a standard way to construct such a tag? Should I just write the whole thing by hand? Should I write it be calling the other tag classes? David Corbin

Struts Fast collections, deprecation

2001-08-24 Thread David Corbin
I've just tried using FastTreeMap, and found that it had been deprecated. Why? Is there replacement (other than the standard classes)? Can someone update the online documentation to reflect this deprecation? Thanks. David Corbin

findForward failures

2001-08-23 Thread David Corbin
When a findForward("name") fails, because "name" isn't known, why isn't there an exception thrown? It seems like misspelling this (or my case, miscapitalizing) would be common occurrence that a programmer would like to find out about soonest Am I missing something?

Re:   with

2001-08-22 Thread David Corbin
o the > same as the the Struts bean:write tag > (org.apache.struts.taglib.bean.WriteTag.java). > This new tag could then do the additional check on the property value, and > write the default value " " to the output writer if the original bean > property's value is empty... > > Hope this inspires you :-)

  with

2001-08-22 Thread David Corbin
I'm using bean:write to populate a table. When a string is empty, I (sometimes) need to put out " " so that the tables borders look right. I've found that I can do this directly (setting the bean property), so what should I do? David Corbin

caching

2001-08-21 Thread David Corbin
Will Struts detect that the struts-configl.xml file has changed and reload it automatically? Thanks.