Datasource not found by Plugin on startup

2005-10-03 Thread Faisal Mahmoud
Hi, I have written a plugin for a Struts app which accesses a DB connection via a datasource. The datasource is defined in the Tomcat server.xml file, and is loaded via a library we wrote. I know the datasource works fine because I can access if from other classes in the app. But when I start up T

Navigation menu help

2005-10-05 Thread Faisal Mahmoud
I have created a navigation menu jsp file that I include with all the pages on my webapp via the jsp:include tag. This page has the following nav menu: Home New Job Retrieve Job I have placed all jsp pages under WEB-INF/jsp/, except for the login page which resides at WebRoot/index.jsp. The use

Cannot find a bean in the session

2005-10-07 Thread Faisal Mahmoud
I am using Struts 1.1 deployed in Tomcat 4.1 running under JDK 1.3. I have a contact form I am building. It will get the user's email from an object called a UserInfoBean, which is not an ActionForm subclass, but does follow the JavaBean paradigm. It simply holds user info such as first name, last

Re: Struts Tags examples and usage

2005-10-07 Thread Faisal Mahmoud
TheServerSide.com has access to a free PDF download of Jakarta Struts Live. While I don't think the book is that great overall, there are some chapters on the Struts tag libs. http://www.theserverside.com/books/sourcebeat/JakartaStrutsLive/index.tss On 10/7/05, Leon Rosenberg <[EMAIL PROTECTED]>

Re: Cannot find a bean in the session

2005-10-08 Thread Faisal Mahmoud
:) Thanks for the help Wendy, I was looking at the wrong object, it wasn't a typo. Yet another reason why coding at 8pm on a Friday is a bad idea. On 10/8/05, Wendy Smoak <[EMAIL PROTECTED]> wrote: > From: "Faisal Mahmoud" <[EMAIL PROTECTED]> > > > Sec

Is this an appropriate use for plugins

2005-10-08 Thread Faisal Mahmoud
For the webapp I am writing, I have several compenents that run as services that always need to be available. I refer to them as JobManagers. Basically, a job handler will receive a job request, add that job to it's job queue and then launch a thread to work on the job. I plan on having these JobMa

Re: Is this an appropriate use for plugins

2005-10-09 Thread Faisal Mahmoud
ot; <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" > Sent: Saturday, October 08, 2005 5:28 PM > Subject: Re: Is this an appropriate use for plugins > > > > See > > > > http://wiki.apache.org/struts/StrutsPlugins > > > > Niall > &g

Trouble with and params

2005-10-12 Thread Faisal Mahmoud
I need to construct a table of files available for download. A file is downloaded by hitting the /download.do?jobId=2 action. The info for each row in the table is stored in an action form called retrieveJobsFormBean. This actionform contains a List of DownloadJob objects. Each of these objects is

Re: Trouble with and params

2005-10-12 Thread Faisal Mahmoud
Actually, what I did was the following change to my So I changed teh paramName to "job", which is the variable that refers to the bean during the iteration. On 10/12/05, Jeff Beal <[EMAIL PROTECTED]> wrote: > On 10/12/05, Faisal Mahmoud <[EMAIL PROTECTED]> wrote:

Adding images to items in a drop down list

2005-10-19 Thread Faisal Mahmoud
Hi, I am creating a drop down list using the HTML and tags. The items in the list will be color names (ex. red, green, blue, etc..). I would like a small square image to be next to each color name text in the list. How would I go about this in my jsp file with my struts tags? -Faisal -- http:/

Re: Adding images to items in a drop down list

2005-10-19 Thread Faisal Mahmoud
Okay, somewhere in my head I can remember seeing an example of this, but I can't recall where it was. Sounds like the solution (if one exists) is non-trivial. Appreciate the ideas and if I do come across or develop some sort of solution I will post back to this thread. On 10/19/05, Frank W. Zammet

Problem with results of validate method in ActionForm

2005-10-20 Thread Faisal Mahmoud
I have an an HTML form displayed on a jsp with struts html:form tags. In the validate method, I have a checkForEmpty and checkForNumber method that will check whether the field is empty or not a number (as applicable) and if so, add an ActionError to the ActionErrors object. The validate method wor

Re: OT: Best AJAX framework

2005-11-08 Thread Faisal Mahmoud
Check out http://www.backbase.com for an Ajax framework. On 11/8/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > Far be it from me to push my own creation... > > http://javawebparts.sourceforge.net > > Go into the javadocs and look at the javawebparts.taglib.ajaxtags package. > This isn't the