Re: Iterating over Hastable ??

2001-03-30 Thread Dan Miser
The opening tag should read like this (note the lack of the terminator): It looks like this is a bug in the docs. Also, be sure you include a reference to the logic TLD in the JSP page. -- Dan Miser http://www.distribucon.com - Original Message - From: "Christof Ettl" <[EMAIL PROTEC

Re: bean in session

2001-03-30 Thread Martin Cooper
The and tags do this. They are documented here: http://jakarta.apache.org/struts/struts-logic.html Hope this helps. -- Martin Cooper - Original Message - From: "Yuriy Zubarev" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 30, 2001 1:02 PM Subject: bean in session

Re: ITERATE-TAG

2001-03-30 Thread Martin Cooper
The getSalesProductHt() method must be public for the iterate tag to be able to access it. You have it declared as protected, which is why you are seeing the exception. -- Martin Cooper - Original Message - From: "hunkpapa" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March

Re: value missing

2001-03-30 Thread Martin Cooper
That was fixed fairly recently. The latest nightly builds do the right thing. -- Martin Cooper At 03:24 PM 3/30/01, Jacob Thomas wrote: >does not seem to output the "value" attribute of the corresponding tag. >Has anybody encountered this? -- Thanks Jacob

RE: Pooling with Oracle database

2001-03-30 Thread Abraham Kang
Hi All, Is there any specific reason oci8 will not work with iPlanet? I have used the Oracle oci drivers before and all that is required is a client install of Oracle on the box that will be accessing Oracle. All "OCI" means is the JDBC drivers will be using the native SQL*NET drivers (from the

retaining a reference to an object using digester

2001-03-30 Thread Derek Harding
I was wondering how to retain a reference to the first object created with the Digester. I don't quite understand the user's guide. It says to push the object onto the stack before parseing. When I do this I get an End event threw exception java.lang.NoSuchMethodException. Any ideas?

struts-user@jakarta.apache.org

2001-03-30 Thread Peri Srinivas
Hi, I havea requirement of 8 file attachments in a page.Is there any way that i can have FormFile[] in FormBean. Currently i have file1,file2,file3 etc in form class and it does not look good. Thanks, Peri

RE: Pooling with Oracle database

2001-03-30 Thread malcolm davis
Yes, your correct, I meant ‘oci8’. Too many cups of Java. :) The issue with connection pooling depends on your production environment. For instances, if you plan to deploy to iPlanet, you can NOT use ‘oci8’ directly, you have to use ‘thin’, or use iPlanet’s connection pooling. iPlanet will not

AW: AW: using log4J with Struts

2001-03-30 Thread Rainer Alföldi
Hi Azeem,   I think I attached all needed files. I just renamed them and deleted everthing not needed for log4j.   - Startup-mailinglist.java: Contains public void init(ServletConfig config) which is called during servlet initialisation. This method calls private void initLog4J( Properties

value missing

2001-03-30 Thread Jacob Thomas
does not seem to output the "value" attribute of the corresponding tag. Has anybody encountered this? -- Thanks Jacob

Re: AW: using log4J with Struts

2001-03-30 Thread Azeem Niazi
Rainer You forgot to attach the routines and log4 J config file. I am new to both Struts and Log4j.So what it is coming down to is you define init params in one of the routines you are talking here and then reference them in web.xml, so it gets registered with controller servlet. Could you send a

RE: JUNIT and Struts

2001-03-30 Thread RAP
Absolutely, Well done, and a very worthwhile contribution. > -Original Message- > From: Ted Husted [mailto:[EMAIL PROTECTED]] > Sent: 30 March 2001 14:14 > To: [EMAIL PROTECTED] > Subject: Re: JUNIT and Struts > > > Vincent and Ron have been working on some things. Take a look at the >

AW: using log4J with Struts

2001-03-30 Thread Rainer Alföldi
Hi Jon,   we set up a startup servlet, that initializes our application. This is very simple and basically just calls various init routines. (No subclassing) After that the ActionServlet is called.   All applications use init.props to get up and running. The same with log4j. I have attache

actions without using struts-config.xml?

2001-03-30 Thread Derek Harding
I am wondering if there is a way to call actions without going through the struts-config.xml. For example if i have just action-mappings in an xml file similar to what is in the struts-config, and parse the xml with the digeseter, am I able to call actions this way? if so how. thanks

Re: using log4J with Struts

2001-03-30 Thread Jon Wilmoth
So your suggesting subclassing the default controller, org.apache.struts.action.ActionServlet, to override only the init method?  Also, I'm not familiar enough with the web.xml format as to be able to configure the org.apache.log4j.PropertyConfigurator.  How would one do this?   Thanks, Jon

RE: contribution - menuing component

2001-03-30 Thread Scott Sayles
Ted Husted has gracially put a copy of my Struts compatible menuing component on his site at http://husted.com/about/struts. Thanks Ted. The basic overview: Menus can be modeled in an XML file and displayed by JSP via tags. The strings used to display the menus in HTML are contained in a prope

Re: Internationalized JavaScript?...Solved!!

2001-03-30 Thread Dallas_Browning
I do appreciate the suggestions presented to me. Let me share with you how I solved the problem. It was actually quite simple. I simply added the following line to my resin.conf (I'm using resin, but the same type of solution should work for anything) file: That way I can still keep the

bean in session

2001-03-30 Thread Yuriy Zubarev
Hello friends, I would like to ask if someone knows how to check for some bean presence/absence in jsp page by means of tags. Thank you for your time. Best of luck, Yuriy Zubarev ___ Do You Yahoo!? Get your free @yahoo.ca address at http://

SOLVED: What has changed in the DataSource part?

2001-03-30 Thread Shamdasani Nimmi-ANS004
It was a small mistake

RE: using log4J with Struts

2001-03-30 Thread Tomer Meshorer
Yes, In the init() method of the controller servlet define all your categories and give them a priority. You may also want to put the categris in web.xml so you can read them in runtime and thus be able to change the log detail level (i.e. only ERROR log messages) when you are in production.

using log4J with Struts

2001-03-30 Thread Azeem Niazi
Has anyone used log4J with struts. If so, how did you do it. Do you need to register log4j with controller servlet?Get your FREE download of MSN Explorer at http://explorer.msn.com

Re: Internationalized JavaScript?...

2001-03-30 Thread Peter Alfors
Dallas, We chose to do option 1. We found it to be the most flexible. For instance, we use a javascript confirm to ask the user: 'Are you sure you want to delete widget XYZ?' Where XYZ is the item he clicked on. The rest of the text is internationalized. HTH, Pete [EMAIL PROTECTED] w

ITERATE-TAG

2001-03-30 Thread hunkpapa
Hello, I have the following Problem I putted a Bean in the ActionServlet in the Scope "session".This Bean implements an Hashtable(salesProduct) ,wich I want to iterate with the IterateTag " . " This throws following Exception: " No getter method for property salesProductHt of bean sp "

Populating object array in ActionForm bean from a request

2001-03-30 Thread Jacob Thomas
Has any one tried populating a property in an ActionForm bean that is an array, through the default handling of a request? This is about presenting serveral choices on page each of which has a checkbox and then determining which choices were selected by the user. -- Thanks in advance. Jacob

Internationalized JavaScript?...

2001-03-30 Thread Dallas_Browning
Let's say you have an alert box that has a message. You want that message to be internationalized. Let's also assume that you want your JavaScript source to not be in the jsp/html page, you would rather link to it (i.e.

RE: CVS directory structure

2001-03-30 Thread Assenza, Chris
How it is deployed in production and how you develop will probably look different. I prefer to have a tree such as: Project Name - build - dist - doc - src - bin * stuff for building app (you should use ANT IMO) or other exe

CVS directory structure

2001-03-30 Thread Mitesh Mehta
Title: CVS directory structure I am trying to figure out the CVS directory structure for a large multi-component web application. I know that the Servlet/JSP specs prescribe a certain directory structure that is used to build war files.  I am interested in knowing if any of you have added to

MYSQL

2001-03-30 Thread James Bell
Thanks everyone   I opted for mm.mysql  v2.0.4.  I have had no problems so far.    James

Need extended functionality of and

2001-03-30 Thread Mindaugas Idzelis
I need some extra functionality of these two tags. These tags limit what you can use for the "value" attribute to a static value. It would be nice to use the value of a bean or a dynamic property for this. For example: Currently: "> It would be great to do something like this: Would something

What has changed in the DataSource part?

2001-03-30 Thread Shamdasani Nimmi-ANS004
Hi, My application works great with struts version 1 of 1/29/01 but now I want to move to the latest version of struts and its not working. No changes have been made to the application itself. I have tried even beta 1 version and other versions after that but no luck. The problem seems to be

RE: using struts in a load-balanced environement

2001-03-30 Thread Doug Wright
thanks for all your great advice! -Original Message- From: Doug Wright [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 28, 2001 4:50 PM To: [EMAIL PROTECTED] Subject: using struts in a load-balanced environement I am very curious about whether the struts framework could be app

Re: JavaScript in Struts

2001-03-30 Thread David Winterfeldt
There is an article in last months Java Pro that shows how to define menus in xml and then generate javascript menus based off of them. I just tried to look at it and it doesn't work (generating an Exception) and I also had to fix the web.xml file to even get it running. Maybe some of the code w

RE: getting value from bean

2001-03-30 Thread Nishit Trivedi
thanx all...got it...i just had to type cast the form varible to "MyBean" which is passed in perform method..and then call getter... thanx again.. Nishit -Original Message- From: Assenza, Chris [mailto:[EMAIL PROTECTED]] Sent: Friday, March 30, 2001 11:11 AM To: '[EMAIL PROTECTED]' Subj

RE: Communicating with EJB's from Action

2001-03-30 Thread Deadman, Hal
I like this description, mainly because it sounds like what I have been doing. Something like this might make a good section in the documentation - Struts & EJBs. I would consider the stateless session beans part of the model because they contain business logic. You also talk about "basic value ch

RE: getting value from bean

2001-03-30 Thread Assenza, Chris
Check out the sample app! :) Here's the code for the logon screen that gets the data from the ActionForm. String username = ((LogonForm) form).getUsername(); String password = ((LogonForm) form).getPassword(); LogonForm is the name of the Form Bean and form is from the arguments

RE: getting value from bean

2001-03-30 Thread Nishit Trivedi
ok.. so i am upto this point.. I have perform method in ProcessMyBean.java it has four aguements : ActionMapping mapping,ActionForm form,HttpServletRequest request,HttpServletResponse response so how do i get the reference of "MyBean" in this ProcessBeanClass without creating new object of "MyBe

Re: JavaScript in Struts

2001-03-30 Thread Jean-Noel Ribette
- Original Message - From: Tom Miller <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 30, 2001 3:33 PM Subject: Re: JavaScript in Struts > Thanks, Ted. > > I like Craig's suggestion about combining dynamic Javascript menu systems > with Struts. I wonder if anyone has tr

Re: tag libraries [for WML or HDML]

2001-03-30 Thread Eduardo Pelegri-Llopart
I did a quick look and found this: http://coldjava.hypermart.net/servlets/escape.htm useful for WAP/WML developers - converts on the fly HTML to WML http://coldjava.hypermart.net/servlets/wapdtd.htm Writes a standard WAP DTD header for your wml file. http://coldjava.hypermart.net/servlets/w

AW: MySQL

2001-03-30 Thread D. Veniseleas
Hi James, I use the archive mm.mysql-2.0.4-bin.jar, got it at http://www.worldserver.com/mm.mysql, works quite fine... Dimitris > > I want to use MySQL with Struts. Although not a Struts specific question, what jdbc driver is the best to use. I downloaded the driver from caucho and notic

Re: MySQL

2001-03-30 Thread Richard Reich
Yes, use the org.gjt.mm.mysql driver. But be sure to get 2.0.4 (or later if it exists). -r - Original Message - From: James Bell To: [EMAIL PROTECTED] Sent: Thursday, March 29, 2001 23:59 Subject: MySQL Hi everyone I want to use MySQL with Struts. Although not a Struts specific quest

Re: Can i get the exact Exception.

2001-03-30 Thread Dan Miser
Can i get the exact Exception.In addition to the suggestion about the server logs, turn off the "Show friendly HTTP error messages" option in IE. It's in Tools | Internet Options | Advanced. -- Dan Miser http://www.distribucon.com - Original Message - From: Tewathia, Atul To: [EMAIL PROTE

RE: JavaScript in Struts

2001-03-30 Thread Hines, Bill
Tom, Here is another JavaScript fly-out type tree menu: http://developer.netscape.com/docs/examples/javascript/menu/menu.html Bill Hines Hershey Foods -Original Message- From: Tom Miller [mailto:[EMAIL PROTECTED]] Sent: Friday, March 30, 2001 8:34 AM To: [EMAIL PROTECTED] Subject: Re: J

Re: Pooling with Oracle database

2001-03-30 Thread Robert Hentosh
I think what was meant was oci8. The valid values are thin, oci8 and kprb. The thin driver is entirely written in Java. The OCI is a mixture of C and Java, so that is the reason it can't be used in applets, since the C portion is not platform independent. The kprb is for, as the docs say

Re: iterate tag, once again

2001-03-30 Thread Jean-Noel Ribette
>- Original Message - >From: Marcin Baj <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Friday, March 30, 2001 2:37 PM >Subject: iterate tag, once again > >Hello, >I've read themessage: > >You must use to introduce a reference to an existing bean, if you wish >to reference that bea

Re: JavaScript in Struts

2001-03-30 Thread Tom Miller
Thanks, Ted. I like Craig's suggestion about combining dynamic Javascript menu systems with Struts. I wonder if anyone has tried this. I'm looking for a Javascript tree or slider menu to adapt in this way and would appreciate it if anyone could share any research. I have looked at "Morten's Java

Re: Can i get the exact Exception.

2001-03-30 Thread Todd Hoff
Usually the web server will have logs where you can get more information. Apache, for example, has error and access logs. You should look at both to help figure out what is going on. The other way is to try and run the code standalone, without the browser. And your server system may have logs too

tag libraries

2001-03-30 Thread Jesse Vitrone
Title: tag libraries Does anyone know if they have tag libs for anything besides HTML?  Are there any tig libs for WML or HDML out there? Thanks,     Jesse Vitrone

Re: JUNIT and Struts

2001-03-30 Thread Ted Husted
Vincent and Ron have been working on some things. Take a look at the web/test directory in the nightly build. Vincent is also in midst of donating J2EEUnit to Apache/Jakarta. Yeah Vincent! > Padma Ginnaram wrote: > Is there a sample available for testing struts with j2eeunit

Re: .properties file

2001-03-30 Thread Ted Husted
I believe the message resource is implemented as a hashmap. The resource is loaded into memory for each locale (when 1 or more users need it), and so storing a relatively big amount of text this way may be unwise. You want to determine the locale within your view and then display or include the

Can i get the exact Exception.

2001-03-30 Thread Tewathia, Atul
Title: Can i get the exact Exception. While experimenting with struts I generally get following error on the browser. Error 500--Internal Server Error It makes debugging difficult. Is there a way for me to see the exact Exception on the browser that has occurred ?

iterate tag, once again

2001-03-30 Thread Marcin Baj
Hello, I've read themessage:   You must use to introduce a reference to an existing bean, if you wish to reference that bean with other standard JSP tags (such as or ). If you only wish to reference such beans with other Struts tags, use of is not required. ,so I thougth, that I shouln't

RE: MySQL

2001-03-30 Thread Alix Jermyn
I also use the mm driver (with jRelation Framework (jrf)) and have never had any problems -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Friday, 30 March 2001 14:16 To: [EMAIL PROTECTED] Subject: Re: MySQL I use Mark Matthew's driver < http://mmmysql.sourceforge.

Re: MySQL

2001-03-30 Thread Ted Husted
I use Mark Matthew's driver < http://mmmysql.sourceforge.net/ >, which works well with Resin (and everything else under the sun). Caucho even puts it in their own examples. > James Bell wrote: > > Hi everyone > > I want to use MySQL with Struts. Although not a Struts specific > question, what

Iterating over Hastable ??

2001-03-30 Thread Christof Ettl
My code like this: --- <% { java.util.Hashtable ht = new java.util.Hashtable(); ht.put(new Integer(1), "First"); ht.put(new Integer(2), "Second"); ht.put(new Integer(3), "Third"); pageContext.setAttribute("ht", ht, PageContext.P

Re: Pooling with Oracle database

2001-03-30 Thread Rafal Zakrzewski
neither ora8 nor ori8 doesn't work. I receive exception java.sql.SQLException: Invalid Oracle URL specified: OracleDriver.connect rz - Original Message - From: "malcolm davis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, March 29, 2001 9:33 AM Subject

Re: Validating dates

2001-03-30 Thread William Jaynes
Here are some utility methods I use for date validation and rendering to and from strings. Nothing fancy. - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 29, 2001 2:53 PM Subject: Validating dates > > > Does anyone have a code example for va

Antwort: Re: Pooling with Oracle database

2001-03-30 Thread michael . brohl
Hi Craig, I tried the first example (servlet.findDataSource(null);) but get the following error when compiling my source: "LogonAction.java": Error #: 314 : cannot access class javax.sql.DataSource; neither class nor source found for javax.sql.DataSource at line 75, column 13 Can you please

RE: Internationalised 'alt' text

2001-03-30 Thread Howard Moore
I see, you are using the html:image tag not the html:img tag. Looking at the source for the latest version (the version in 1.0b1 is broken) there is a bug that stops the altKey attribute working. I have reported it to bugzilla. See http://nagoya.betaversion.org/bugzilla/show_bug.cgi?id=1155