Re: RE: Populating form in the action

2001-12-06 Thread Joey Gibson
> The form passed in is a null because that Action is > called the first time I type in the URL (.do), not > after a form has been submited. > > In other words, I would like to "pre-populate" the > form before displaying it. If you have associated the action with a form in your struts-config.xml

Re: RE: Populating form in the action

2001-12-05 Thread Joey Gibson
> > For instance, I create a ActionForm in the perform > method of the Action class, and then forward the > control to a jsp page. How does the JSP page know > that the form that it gets is the form that just get > populated in the Action before? Don't create an instance of the form, use the

Re: Icons next to form elements with validation errors

2001-12-03 Thread Joey Gibson
> > // insert image here > > maxlength="100"/> What about using next to the field in question and having the error message contain an tag to the icon? In your action, set the error message: ActionError err = new ActionError("error.search.crit"); errors.add("searchCrit", err); Then in yo

Re: Passing information to the jsp

2001-11-30 Thread Joey Gibson
> If you want to pass data to a jsp, where the > information will not be in > an HTML form, do I need to pass it through the > ActionForm that is in the > mapping, or should I just put a bean in the request > and use it on the > jsp? If you need to pass info that won't be in the form, then I woul

Re: Directory structure of a Struts project

2001-11-30 Thread Joey Gibson
> WEB-INF/classes/com/iamtestdomain/testproject -(1) > > and my taglibs in a the directory > > WEB-INF/classes/taglib -(2) > > Is this a good way to organize things? The project I'm working on is organized thusly under a com.foo. package: actions entities forms servlets taglibs utils with a

Re: check for null collection

2001-11-29 Thread Joey Gibson
If the collection is truly null, then will be false so you won't get into the tag body. To see if the collection is just an empty collection: Inside your you can use a combo of tags from the bean and logic taglibs: No records. record(s) And you don't have to do the since most o

Re: Help with perform method

2001-11-29 Thread Joey Gibson
> What I would like to do is that if there is some type > of error in this > method, I want to be able to do a > mapping.findForward("failure") and at the > same time be able to include some type of error > message to the user in the > failure page. My failure page is probably the same > form the

Re: relatively complicated iterate problem.

2001-11-27 Thread Joey Gibson
> My problem is. I don't want to use Roll class, since > it only contains a string. I have just created this Roll class, since I > couln't find any way to make it run with struts. What do you think? > is there any other way to do > same thing? If you don't specify the property attribute, the tag

Re: JSP page without form bean ?

2001-11-21 Thread Joey Gibson
What exactly are you trying to do? I have several actions that have no forms that work fine. I do GETs to them, do some processing, and then forward to a jsp. Sent via jApache.org -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: RE: RE: Dynamic anchor

2001-11-20 Thread Joey Gibson
> > name="beanContainingMyPage"/> > name="beanContainingMyAnch"/> > linkText > > > This would avoid many ugly <%...%> hacks IMHO. > > I'm still not sure whether the tld syntax allows for > nesting. Anybody > has links for tld ? > > tomK That would be really nice to be able to do it like th

Re: Beginner Question :How to use Ant with struts ?

2001-11-20 Thread Joey Gibson
On Tue, 20 Nov 2001 09:37:06 -0500, Lily Zou <[EMAIL PROTECTED]> wrote: ||| I am new to struts. I am currently using apache-tomcat-cocoon framework ||| with ant and preparing swithing to apache-tomcat-struts.We now use ant to ||| build and deploy applications. I wonder if anybody could tell

Re: RE: Dynamic anchor

2001-11-20 Thread Joey Gibson
This might be a wee bit cleaner: <%@ taglib uri="struts-bean.tld" prefix="bean" %> <%@ taglib uri="struts-html.tld" prefix="html" %> Foo This produces this link: http://localhost/foo/index.jsp#xxx (the page was deployed in a webapp called 'foo') I tried putting a bean:write in the anchor a

Re: RE: Dynamic anchor

2001-11-20 Thread Joey Gibson
This might be a wee bit cleaner: <%@ taglib uri="struts-bean.tld" prefix="bean" %> <%@ taglib uri="struts-html.tld" prefix="html" %> Foo This produces this link: http://localhost/foo/index.jsp#xxx (the page was deployed in a webapp called 'foo') I tried putting a bean:write in the anchor a

Re: Struts with SilverStream

2001-10-02 Thread Joey Gibson
On Tue, 02 Oct 2001 10:19:20 +0200, Wolfgang Frank <[EMAIL PROTECTED]> wrote: ||| Hi there, ||| ||| does anybody have experienece how to integrate STRUTS in the SilverStream J2EE ||| Server? ||| I uploaded my struts WAR ... i can see the jsp if i directly link up to them but ||| i get an ||| "ba

Re: getting jsp:include to work behind WEB-INF wall

2001-09-12 Thread Joey Gibson
On Wed, 12 Sep 2001 18:25:14 +0200, VIAUD Cédric <[EMAIL PROTECTED]> wrote: ||| If you read carefully the servlet spécification, you see that everything ||| under "/WEB-INF" will nerver be served by HTTP server. So if you do a : ||| ||| you make an HTTP request to the server. But the target is s

Re: welcome file in web.xml with pre-compiled jsp's?

2001-08-24 Thread Joey Gibson
On Fri, 24 Aug 2001 10:34:03 -0700, John Raley <[EMAIL PROTECTED]> wrote: ||| Joey Gibson wrote: ||| ||| > ||| > An ever-so-slightly-less-clumsy way to do this it to have an index.jsp ||| >that looks like this: ||| > ||| > ||| > ||| But if index.jsp is precompiled

Re: welcome file in web.xml with pre-compiled jsp's?

2001-08-24 Thread Joey Gibson
On Fri, 24 Aug 2001 12:40:04 -0400, [EMAIL PROTECTED] wrote: ||| PS I can work around it with a index.htm as a welcome page that redirects you ||| with javascript to index.jsp, but that's very clumsy! An ever-so-slightly-less-clumsy way to do this it to have an index.jsp that looks like

Re: Ant problem - but getting closer any suggestions on snippet

2001-07-13 Thread Joey Gibson
On Fri, 13 Jul 2001 10:25:54 +0100, Chuck Amadi <[EMAIL PROTECTED]> wrote: ||| Hi , getting closer i cd to ||| C:\>cd:\ant ||| C:\ant>ant ||| Buildfile: buildfile.xml ||| ||| Build FAILED ||| ||| C:\ant\build.xml:19: The file or path you specified ||| (..\..\..\nbuild\netbeans) ||| is invalid r

Re: Report to Recipient(s)

2001-07-11 Thread Joey Gibson
On Wed, 11 Jul 2001 08:51:32 -0600, "Matt Raible" <[EMAIL PROTECTED]> wrote: ||| It's cause I typed in what is banned - it's the letter "x" three times in a ||| row! You've got to love those simplistic internet filters! Joey -- Sun Certified Java2 Programmer -- Political Rants: www.joe

Quarantine?

2001-07-11 Thread Joey Gibson
On Tue, 10 Jul 2001 23:33:04 -0500, "Paladin" <[EMAIL PROTECTED]> wrote: ||| Incident Information:- ||| ||| Originator:"suhas" <[EMAIL PROTECTED]> ||| Recipients:<[EMAIL PROTECTED]> ||| Subject: Re: Error: org.apache.struts.action.MESSAGE ||| ||| Message from "suhas" <[EMAIL PROTECTED]

Re: Know of any consulting companies?

2001-07-06 Thread Joey Gibson
If anyone who read my post about BravePoint and consulting tried to get to our corporate site, please be sure to use the www.bravepoint.com url and NOT the links at the bottom of the page. Those links were my personal stuff and have nothing to do with the company. I didn't mean to include them...

Re: Know of any consulting companies?

2001-07-06 Thread Joey Gibson
On Thu, 5 Jul 2001 13:40:06 -0700 (PDT), Eric Loeb <[EMAIL PROTECTED]> wrote: ||| Is there an ARS-Digita-like consulting company that ||| uses the various jakarta components to build web apps ||| for clients? My company, BravePoint (www.bravepoint.com) is an Atlanta-based company that do

Re: Present/NotPresent Blows Up With SilverStream 3.7

2001-07-03 Thread Joey Gibson
I just did some more testing (I always seem to gain insight after I post...) and I discovered that it is the SECOND occurrence of a present/notPresent on a page that dies. If I have a present that fails, and then have another present/notPresent, on the same bean or a different bean, it wil

Present/NotPresent Blows Up With SilverStream 3.7

2001-07-03 Thread Joey Gibson
I'm deploying some struts-apps on SilverStream 3.7 (don't ask...) but the logic:present and logic:notPresent tags die if the object-that-I-want-to-check-for is not present. This same app works, without modification under WebLogic 5.1 and 6.0. Here is the error I get when hitting a page wit